(function (_, kotlin_com_github_UstadMobile_door_door_runtime, kotlin_kotlin, kotlin_app_cash_paging_paging_common, kotlin_io_ktor_ktor_client_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_io_github_aakira_napier) { 'use strict'; //region block: imports var imul = Math.imul; var RoomDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i2; var protoOf = kotlin_kotlin.$_$.lg; var classMeta = kotlin_kotlin.$_$.te; var setMetadataFor = kotlin_kotlin.$_$.mg; var VOID = kotlin_kotlin.$_$.h; var DoorJsImplClasses = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k2; var getKClass = kotlin_kotlin.$_$.f; var objectMeta = kotlin_kotlin.$_$.kg; var listOf = kotlin_kotlin.$_$.xa; var ReplicationFieldMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e2; var listOf_0 = kotlin_kotlin.$_$.ya; var RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z2; var Order_INSTEAD_OF_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e3; var Event_INSERT_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a3; var On_RECEIVEVIEW_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c3; var Trigger = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a; var ReplicationEntityMetaData = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d2; var to = kotlin_kotlin.$_$.xo; var Order_AFTER_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d3; var On_ENTITY_getInstance = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b3; var mapOf = kotlin_kotlin.$_$.bb; var DoorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d; var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.m; var lazy = kotlin_kotlin.$_$.ho; var KProperty1 = kotlin_kotlin.$_$.yh; var getPropertyCallableRef = kotlin_kotlin.$_$.gf; var lazy_0 = kotlin_kotlin.$_$.io; var NodeEventManagerJs = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t1; var toString = kotlin_kotlin.$_$.qg; var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.h2; var THROW_CCE = kotlin_kotlin.$_$.fn; var DoorDatabaseWrapper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r2; var get_rootDatabase = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v; var get_nodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.r; var NodeIdAuthCache = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l2; var equals = kotlin_kotlin.$_$.ye; var doorDatabaseMetadata = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j; var DoorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s2; var getKClassFromExpression = kotlin_kotlin.$_$.e; var copyToArray = kotlin_kotlin.$_$.f9; var InvalidationTracker = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g2; var RoomDatabaseJdbcImplHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h2; var mutableLinkedListOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q; var ArrayList_init_$Create$ = kotlin_kotlin.$_$.r; var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n2; var DoorDatabaseJdbc = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p2; var RoomJdbcImpl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j2; var RepositoryHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.w2; var DoorDatabaseRepository = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q2; var mapRows = kotlin_com_github_UstadMobile_door_door_runtime.$_$.k1; var EntityInsertionAdapter = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u2; var CoroutineImpl = kotlin_kotlin.$_$.zd; var Unit_getInstance = kotlin_kotlin.$_$.j6; var PreparedStatement = kotlin_com_github_UstadMobile_door_door_runtime.$_$.q1; var isInterface = kotlin_kotlin.$_$.tf; var executeUpdateAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j3; var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.kd; var executeQueryAsyncKmp = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i3; var useResults = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p1; var PreparedStatementConfig = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v2; var prepareAndUseStatementAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f3; var prepareAndUseStatementAsync_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g3; var SuspendFunction1 = kotlin_kotlin.$_$.be; var get_doorPrimaryKeyManager = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n; var Long = kotlin_kotlin.$_$.xm; var systemTimeInMillis = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n2; var mapNextRow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.j1; var getFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e1; var DoorLimitOffsetPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.v1; var createArrayOrProxyArrayOf = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g; var prepareAndUseStatement = kotlin_com_github_UstadMobile_door_door_runtime.$_$.t; var doorFlow = kotlin_com_github_UstadMobile_door_door_runtime.$_$.a1; var prepareAndUseStatement_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.u; var SuspendFunction0 = kotlin_kotlin.$_$.ae; var LoadParams = kotlin_app_cash_paging_paging_common.$_$.d; var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.k; var setRepoUrl = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x; var doorNodeIdHeader = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l; var header = kotlin_io_ktor_ktor_client_core.$_$.m; var Companion_getInstance = kotlin_kotlin.$_$.d6; var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1; var parameter = kotlin_io_ktor_ktor_client_core.$_$.n; var StringCompanionObject_getInstance = kotlin_kotlin.$_$.w5; var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1; var IntCompanionObject_getInstance = kotlin_kotlin.$_$.u5; var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1; var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1; var pagingSourceLoadParameters = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s; var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.k; var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r; var onClientRepoDoorMessageHttpResponse = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l3; var endOfPaginationReached = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c2; var Napier_getInstance = kotlin_io_github_aakira_napier.$_$.g; var Companion_getInstance_1 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n3; var Exception = kotlin_kotlin.$_$.tm; var withRepoChangeMonitorAsync = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m3; var RepoDaoFlowHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.b1; var DoorRepositoryReplicatePullPagingSource = kotlin_com_github_UstadMobile_door_door_runtime.$_$.z1; var withRepoChangeMonitor = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f2; var RepositoryDaoWithFlowHelper = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c1; var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1; var bodyAsText = kotlin_io_ktor_ktor_client_core.$_$.a; var BooleanCompanionObject_getInstance = kotlin_kotlin.$_$.q5; var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1; var getIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f1; var getBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.d1; var setFloatNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.m1; var mapNextRow_0 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i1; var OutgoingReplication = kotlin_com_github_UstadMobile_door_door_runtime.$_$.c; var hasListOrArrayParams = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p; var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1; var getStringNonNull = kotlin_com_github_UstadMobile_door_door_runtime.$_$.h1; var SyncNode = kotlin_com_github_UstadMobile_door_door_runtime.$_$.y2; var setLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.o1; var getLongNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.g1; var setBooleanNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.l1; var setIntNullable = kotlin_com_github_UstadMobile_door_door_runtime.$_$.n1; var copyWithExtraParams = kotlin_com_github_UstadMobile_door_door_runtime.$_$.e; var copy = kotlin_com_github_UstadMobile_door_door_runtime.$_$.f; var emptyList = kotlin_kotlin.$_$.k9; var DoorMigrationStatementList = kotlin_com_github_UstadMobile_door_door_runtime.$_$.s1; var interfaceMeta = kotlin_kotlin.$_$.kf; var dbType = kotlin_com_github_UstadMobile_door_door_runtime.$_$.i; var Companion_getInstance_2 = kotlin_com_github_UstadMobile_door_door_runtime.$_$.p3; var numberRangeToNumber = kotlin_kotlin.$_$.cg; var Pair = kotlin_kotlin.$_$.cn; var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3; var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t; var LongSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y; var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h; var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2; var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2; var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h3; var objectCreate = kotlin_kotlin.$_$.jg; var getBooleanHashCode = kotlin_kotlin.$_$.cf; var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z; var getStringHashCode = kotlin_kotlin.$_$.hf; var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x; var FloatSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w; var getNumberHashCode = kotlin_kotlin.$_$.ef; var hashCode = kotlin_kotlin.$_$.if; var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2; var DoubleSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v; var THROW_IAE = kotlin_kotlin.$_$.gn; var enumEntries = kotlin_kotlin.$_$.he; var Enum = kotlin_kotlin.$_$.rm; var throwArrayMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g3; var ensureNotNull = kotlin_kotlin.$_$.ao; var ByteSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u; var toString_0 = kotlin_kotlin.$_$.wo; var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.o1; var SyncNodeIdCallback = kotlin_com_github_UstadMobile_door_door_runtime.$_$.x2; //endregion //region block: pre-declaration setMetadataFor(UmAppDatabase, 'UmAppDatabase', classMeta, RoomDatabase, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(UmAppDatabaseJsImplementations, 'UmAppDatabaseJsImplementations', objectMeta, DoorJsImplClasses); setMetadataFor(UmAppDatabase_DoorMetadata, 'UmAppDatabase_DoorMetadata', classMeta, DoorDatabaseMetadata, VOID, UmAppDatabase_DoorMetadata); setMetadataFor(UmAppDatabase_DoorWrapper, 'UmAppDatabase_DoorWrapper', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseWrapper], VOID, VOID, VOID, [0, 1]); setMetadataFor(UmAppDatabase_JdbcImpl, 'UmAppDatabase_JdbcImpl', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseJdbc, RoomJdbcImpl], VOID, VOID, VOID, [0, 1]); setMetadataFor(Companion, 'Companion', objectMeta); setMetadataFor(UmAppDatabase_Repo, 'UmAppDatabase_Repo', classMeta, UmAppDatabase, [UmAppDatabase, DoorDatabaseRepository], VOID, VOID, VOID, [0, 1]); setMetadataFor(CacheLockJoinDao, 'CacheLockJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 3, 1, 2]); setMetadataFor(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda, 'CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda, 'CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda, 'CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda, 'CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateLockIdAndStatusCOROUTINE$0, '$updateLockIdAndStatusCOROUTINE$0', classMeta, CoroutineImpl); setMetadataFor(CacheLockJoinDao_JdbcImpl, 'CacheLockJoinDao_JdbcImpl', classMeta, CacheLockJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3, 2]); setMetadataFor(BaseDao, 'BaseDao', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OneToManyJoinDao, 'OneToManyJoinDao', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao, 'ClazzAssignmentDao', classMeta, VOID, [BaseDao, OneToManyJoinDao], VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor($upsertListAsyncCOROUTINE$1, '$upsertListAsyncCOROUTINE$1', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$2, '$insertAsyncCOROUTINE$2', classMeta, CoroutineImpl); setMetadataFor($insertListAsyncCOROUTINE$3, '$insertListAsyncCOROUTINE$3', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_DoorWrapper, 'ClazzAssignmentDao_DoorWrapper', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda, 'ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda, 'ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda, 'ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda, 'ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda, 'ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda, 'ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda, 'ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda, 'ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$4, '$insertAsyncCOROUTINE$4', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$5, '$updateAsyncCOROUTINE$5', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$6, '$updateActiveByUidCOROUTINE$6', classMeta, CoroutineImpl); setMetadataFor($updateActiveByListCOROUTINE$7, '$updateActiveByListCOROUTINE$7', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_JdbcImpl, 'ClazzAssignmentDao_JdbcImpl', classMeta, ClazzAssignmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzAssignmentDao_Repo$updateActiveByUid$slambda, 'ClazzAssignmentDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda, 'ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzAssignmentDao_Repo$updateAsync$slambda, 'ClazzAssignmentDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$upsertListAsync$slambda, 'ClazzAssignmentDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$updateActiveByList$slambda, 'ClazzAssignmentDao_Repo$updateActiveByList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda, 'ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$insertAsync$slambda, 'ClazzAssignmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$insertListAsync$slambda, 'ClazzAssignmentDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzAssignmentDao_Repo$updateListAsync$slambda, 'ClazzAssignmentDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getAllAssignmentsByClazzUidAsyncCOROUTINE$8, '$getAllAssignmentsByClazzUidAsyncCOROUTINE$8', classMeta, CoroutineImpl); setMetadataFor($getCourseGroupMembersByAssignmentUidCOROUTINE$9, '$getCourseGroupMembersByAssignmentUidCOROUTINE$9', classMeta, CoroutineImpl); setMetadataFor($getAssignmentSubmissionsByAssignmentUidCOROUTINE$10, '$getAssignmentSubmissionsByAssignmentUidCOROUTINE$10', classMeta, CoroutineImpl); setMetadataFor($getAssignmentMarksByAssignmentUidCOROUTINE$11, '$getAssignmentMarksByAssignmentUidCOROUTINE$11', classMeta, CoroutineImpl); setMetadataFor($getPeerReviewerAllocationsByAssignmentUidCOROUTINE$12, '$getPeerReviewerAllocationsByAssignmentUidCOROUTINE$12', classMeta, CoroutineImpl); setMetadataFor($getPeerReviewAllocationsForPersonCOROUTINE$13, '$getPeerReviewAllocationsForPersonCOROUTINE$13', classMeta, CoroutineImpl); setMetadataFor($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14, '$getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14', classMeta, CoroutineImpl); setMetadataFor($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15, '$getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15', classMeta, CoroutineImpl); setMetadataFor($getSubmitterCountFromAssignmentCOROUTINE$16, '$getSubmitterCountFromAssignmentCOROUTINE$16', classMeta, CoroutineImpl); setMetadataFor($getSubmitterUidCOROUTINE$17, '$getSubmitterUidCOROUTINE$17', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$18, '$findByUidAsyncCOROUTINE$18', classMeta, CoroutineImpl); setMetadataFor($findByUidAndClazzUidAsyncCOROUTINE$19, '$findByUidAndClazzUidAsyncCOROUTINE$19', classMeta, CoroutineImpl); setMetadataFor($getGroupUidFromAssignmentCOROUTINE$20, '$getGroupUidFromAssignmentCOROUTINE$20', classMeta, CoroutineImpl); setMetadataFor($getMarkingTypeFromAssignmentCOROUTINE$21, '$getMarkingTypeFromAssignmentCOROUTINE$21', classMeta, CoroutineImpl); setMetadataFor($findByUidWithBlockAsyncCOROUTINE$22, '$findByUidWithBlockAsyncCOROUTINE$22', classMeta, CoroutineImpl); setMetadataFor($findEnrolmentsByPersonUidAndAssignmentUidCOROUTINE$23, '$findEnrolmentsByPersonUidAndAssignmentUidCOROUTINE$23', classMeta, CoroutineImpl); setMetadataFor($findCourseGroupMembersByPersonUidAndAssignmentUidCOROUTINE$24, '$findCourseGroupMembersByPersonUidAndAssignmentUidCOROUTINE$24', classMeta, CoroutineImpl); setMetadataFor($findPeerReviewerAllocationsByPersonUidAndAssignmentUidCOROUTINE$25, '$findPeerReviewerAllocationsByPersonUidAndAssignmentUidCOROUTINE$25', classMeta, CoroutineImpl); setMetadataFor($getLatestSubmissionTimeAllowedCOROUTINE$26, '$getLatestSubmissionTimeAllowedCOROUTINE$26', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$27, '$insertAsyncCOROUTINE$27', classMeta, CoroutineImpl); setMetadataFor(ClazzAssignmentDao_Repo, 'ClazzAssignmentDao_Repo', classMeta, ClazzAssignmentDao, [ClazzAssignmentDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 3, 4, 2]); setMetadataFor(ClazzDao, 'ClazzDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2]); setMetadataFor($insertAsyncCOROUTINE$28, '$insertAsyncCOROUTINE$28', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_DoorWrapper, 'ClazzDao_DoorWrapper', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda, 'ClazzDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findAllLive$slambda$slambda, 'ClazzDao_JdbcImpl$findAllLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda, 'ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$updateAsync$slambda, 'ClazzDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByUidLive$slambda, 'ClazzDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$findByClazzCode$slambda, 'ClazzDao_JdbcImpl$findByClazzCode$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda, 'ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findAllLive$slambda, 'ClazzDao_JdbcImpl$findAllLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsync$slambda, 'ClazzDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda, 'ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda, 'ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findClazzesWithPermission$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda, 'ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda, 'ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda, 'ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda, 'ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda, 'ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$getCoursesByName$slambda, 'ClazzDao_JdbcImpl$getCoursesByName$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda, 'ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$29, '$insertAsyncCOROUTINE$29', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$30, '$updateAsyncCOROUTINE$30', classMeta, CoroutineImpl); setMetadataFor($updateClazzAttendanceAverageAsyncCOROUTINE$31, '$updateClazzAttendanceAverageAsyncCOROUTINE$31', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_JdbcImpl, 'ClazzDao_JdbcImpl', classMeta, ClazzDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzDao_Repo$findByUidAsFlow$slambda, 'ClazzDao_Repo$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$updateAsync$slambda, 'ClazzDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$findClazzesWithPermission$slambda, 'ClazzDao_Repo$findClazzesWithPermission$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda, 'ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda, 'ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzWithDisplayDetails$slambda, 'ClazzDao_Repo$getClazzWithDisplayDetails$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getTitleByUidAsFlow$slambda, 'ClazzDao_Repo$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$getClazzNameAsFlow$slambda, 'ClazzDao_Repo$getClazzNameAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzDao_Repo$insertAsync$slambda, 'ClazzDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByClazzCodeCOROUTINE$32, '$findByClazzCodeCOROUTINE$32', classMeta, CoroutineImpl); setMetadataFor($findByClazzCodeFromWebCOROUTINE$33, '$findByClazzCodeFromWebCOROUTINE$33', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$34, '$findByUidAsyncCOROUTINE$34', classMeta, CoroutineImpl); setMetadataFor($clazzUidExistsAsyncCOROUTINE$35, '$clazzUidExistsAsyncCOROUTINE$35', classMeta, CoroutineImpl); setMetadataFor($findByUidWithHolidayCalendarAsyncCOROUTINE$36, '$findByUidWithHolidayCalendarAsyncCOROUTINE$36', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$37, '$updateAsyncCOROUTINE$37', classMeta, CoroutineImpl); setMetadataFor($getClassNamesFromListOfIdsCOROUTINE$38, '$getClassNamesFromListOfIdsCOROUTINE$38', classMeta, CoroutineImpl); setMetadataFor($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39, '$getClazzTimeZoneByClazzUidAsyncCOROUTINE$39', classMeta, CoroutineImpl); setMetadataFor($getCoursesByNameCOROUTINE$40, '$getCoursesByNameCOROUTINE$40', classMeta, CoroutineImpl); setMetadataFor($findOneRosterUserClazzesCOROUTINE$41, '$findOneRosterUserClazzesCOROUTINE$41', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$42, '$insertAsyncCOROUTINE$42', classMeta, CoroutineImpl); setMetadataFor(ClazzDao_Repo, 'ClazzDao_Repo', classMeta, ClazzDao, [ClazzDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2]); setMetadataFor(ClazzEnrolmentDao, 'ClazzEnrolmentDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor($insertAsyncCOROUTINE$43, '$insertAsyncCOROUTINE$43', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_DoorWrapper, 'ClazzEnrolmentDao_DoorWrapper', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda, 'ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda, 'ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda, 'ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda, 'ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda, 'ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda, 'ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda, 'ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda, 'ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda, 'ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$44, '$insertAsyncCOROUTINE$44', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$45, '$updateAsyncCOROUTINE$45', classMeta, CoroutineImpl); setMetadataFor($updateDateLeftByUidCOROUTINE$46, '$updateDateLeftByUidCOROUTINE$46', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_JdbcImpl, 'ClazzEnrolmentDao_JdbcImpl', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda, 'ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_Repo$updateAsync$slambda, 'ClazzEnrolmentDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda, 'ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda, 'ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzEnrolmentDao_Repo$insertAsync$slambda, 'ClazzEnrolmentDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findEnrolmentWithLeavingReasonCOROUTINE$47, '$findEnrolmentWithLeavingReasonCOROUTINE$47', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$48, '$updateAsyncCOROUTINE$48', classMeta, CoroutineImpl); setMetadataFor($findAllClazzesByPersonWithClazzAsListAsyncCOROUTINE$49, '$findAllClazzesByPersonWithClazzAsListAsyncCOROUTINE$49', classMeta, CoroutineImpl); setMetadataFor($getAllClazzEnrolledAtTimeAsyncCOROUTINE$50, '$getAllClazzEnrolledAtTimeAsyncCOROUTINE$50', classMeta, CoroutineImpl); setMetadataFor($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51, '$getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$52, '$findByUidCOROUTINE$52', classMeta, CoroutineImpl); setMetadataFor($findActorEntitiesForGradebookCOROUTINE$53, '$findActorEntitiesForGradebookCOROUTINE$53', classMeta, CoroutineImpl); setMetadataFor($findEnrolmentsAndPersonByClazzUidWithPermissionCheckCOROUTINE$54, '$findEnrolmentsAndPersonByClazzUidWithPermissionCheckCOROUTINE$54', classMeta, CoroutineImpl); setMetadataFor($findByAccountPersonUidAndClazzUidCOROUTINE$55, '$findByAccountPersonUidAndClazzUidCOROUTINE$55', classMeta, CoroutineImpl); setMetadataFor($findEnrolmentsByClazzUidAndRoleCOROUTINE$56, '$findEnrolmentsByClazzUidAndRoleCOROUTINE$56', classMeta, CoroutineImpl); setMetadataFor($findEnrolmentsByClazzUidAndRolePagedCOROUTINE$57, '$findEnrolmentsByClazzUidAndRolePagedCOROUTINE$57', classMeta, CoroutineImpl); setMetadataFor($findAllEnrolmentsByClazzUidAndRoleCOROUTINE$58, '$findAllEnrolmentsByClazzUidAndRoleCOROUTINE$58', classMeta, CoroutineImpl); setMetadataFor($updateClazzEnrolmentRoleCOROUTINE$59, '$updateClazzEnrolmentRoleCOROUTINE$59', classMeta, CoroutineImpl); setMetadataFor($getClazzNameAndPersonNameCOROUTINE$60, '$getClazzNameAndPersonNameCOROUTINE$60', classMeta, CoroutineImpl); setMetadataFor($findClazzEnrolmentEntitiesForPersonViewPermissionCheckCOROUTINE$61, '$findClazzEnrolmentEntitiesForPersonViewPermissionCheckCOROUTINE$61', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$62, '$insertAsyncCOROUTINE$62', classMeta, CoroutineImpl); setMetadataFor(ClazzEnrolmentDao_Repo, 'ClazzEnrolmentDao_Repo', classMeta, ClazzEnrolmentDao, VOID, VOID, VOID, VOID, [1, 3, 4, 9, 2, 10, 5]); setMetadataFor(ClazzLogAttendanceRecordDao, 'ClazzLogAttendanceRecordDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($insertListAsyncCOROUTINE$63, '$insertListAsyncCOROUTINE$63', classMeta, CoroutineImpl); setMetadataFor($upsertListAsyncCOROUTINE$64, '$upsertListAsyncCOROUTINE$64', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$65, '$insertAsyncCOROUTINE$65', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_DoorWrapper, 'ClazzLogAttendanceRecordDao_DoorWrapper', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda, 'ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda, 'ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda, 'ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$66, '$insertAsyncCOROUTINE$66', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_JdbcImpl, 'ClazzLogAttendanceRecordDao_JdbcImpl', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda, 'ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByClazzLogUidCOROUTINE$67, '$findByClazzLogUidCOROUTINE$67', classMeta, CoroutineImpl); setMetadataFor($findByClazzAndTimeCOROUTINE$68, '$findByClazzAndTimeCOROUTINE$68', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$69, '$insertAsyncCOROUTINE$69', classMeta, CoroutineImpl); setMetadataFor(ClazzLogAttendanceRecordDao_Repo, 'ClazzLogAttendanceRecordDao_Repo', classMeta, ClazzLogAttendanceRecordDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ClazzLogDao, 'ClazzLogDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2, 5]); setMetadataFor($upsertListAsyncCOROUTINE$70, '$upsertListAsyncCOROUTINE$70', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$71, '$insertAsyncCOROUTINE$71', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_DoorWrapper, 'ClazzLogDao_DoorWrapper', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda, 'ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$updateAsync$slambda, 'ClazzLogDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByUidAsync$slambda, 'ClazzLogDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByUidLive$slambda, 'ClazzLogDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda, 'ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda, 'ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda, 'ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda, 'ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$72, '$insertAsyncCOROUTINE$72', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$73, '$updateAsyncCOROUTINE$73', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_JdbcImpl, 'ClazzLogDao_JdbcImpl', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda, 'ClazzLogDao_Repo$findByClazzUidAsFactory$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ClazzLogDao_Repo$updateAsync$slambda, 'ClazzLogDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_Repo$upsertListAsync$slambda, 'ClazzLogDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ClazzLogDao_Repo$insertAsync$slambda, 'ClazzLogDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$74, '$findByUidAsyncCOROUTINE$74', classMeta, CoroutineImpl); setMetadataFor($findByClazzUidAsyncCOROUTINE$75, '$findByClazzUidAsyncCOROUTINE$75', classMeta, CoroutineImpl); setMetadataFor($findAllForClazzByClazzLogUidCOROUTINE$76, '$findAllForClazzByClazzLogUidCOROUTINE$76', classMeta, CoroutineImpl); setMetadataFor($findByClazzUidWithinTimeRangeAsyncCOROUTINE$77, '$findByClazzUidWithinTimeRangeAsyncCOROUTINE$77', classMeta, CoroutineImpl); setMetadataFor($findMostRecentClazzLogToEditUidCOROUTINE$78, '$findMostRecentClazzLogToEditUidCOROUTINE$78', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$79, '$insertAsyncCOROUTINE$79', classMeta, CoroutineImpl); setMetadataFor(ClazzLogDao_Repo, 'ClazzLogDao_Repo', classMeta, ClazzLogDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CommentsDao, 'CommentsDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertAsyncCOROUTINE$80, '$insertAsyncCOROUTINE$80', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_DoorWrapper, 'CommentsDao_DoorWrapper', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda, 'CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda, 'CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda, 'CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$81, '$insertAsyncCOROUTINE$81', classMeta, CoroutineImpl); setMetadataFor($updateDeletedByCommentUidCOROUTINE$82, '$updateDeletedByCommentUidCOROUTINE$82', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_JdbcImpl, 'CommentsDao_JdbcImpl', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(CommentsDao_Repo$insertAsync$slambda, 'CommentsDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CommentsDao_Repo$updateDeletedByCommentUid$slambda, 'CommentsDao_Repo$updateDeletedByCommentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda, 'CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda, 'CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$83, '$insertAsyncCOROUTINE$83', classMeta, CoroutineImpl); setMetadataFor($findPrivateCommentsForUserByAssignmentUidPersonsCOROUTINE$84, '$findPrivateCommentsForUserByAssignmentUidPersonsCOROUTINE$84', classMeta, CoroutineImpl); setMetadataFor($findCourseCommentsByAssignmentUidPersonsCOROUTINE$85, '$findCourseCommentsByAssignmentUidPersonsCOROUTINE$85', classMeta, CoroutineImpl); setMetadataFor(CommentsDao_Repo, 'CommentsDao_Repo', classMeta, CommentsDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ContentCategoryDao, 'ContentCategoryDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$86, '$insertAsyncCOROUTINE$86', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_DoorWrapper, 'ContentCategoryDao_DoorWrapper', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$87, '$insertAsyncCOROUTINE$87', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_JdbcImpl, 'ContentCategoryDao_JdbcImpl', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategoryDao_Repo$insertAsync$slambda, 'ContentCategoryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$88, '$insertAsyncCOROUTINE$88', classMeta, CoroutineImpl); setMetadataFor(ContentCategoryDao_Repo, 'ContentCategoryDao_Repo', classMeta, ContentCategoryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao, 'ContentCategorySchemaDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$89, '$insertAsyncCOROUTINE$89', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_DoorWrapper, 'ContentCategorySchemaDao_DoorWrapper', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$90, '$insertAsyncCOROUTINE$90', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_JdbcImpl, 'ContentCategorySchemaDao_JdbcImpl', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentCategorySchemaDao_Repo$insertAsync$slambda, 'ContentCategorySchemaDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$91, '$insertAsyncCOROUTINE$91', classMeta, CoroutineImpl); setMetadataFor(ContentCategorySchemaDao_Repo, 'ContentCategorySchemaDao_Repo', classMeta, ContentCategorySchemaDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao, 'ContentEntryContentCategoryJoinDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$92, '$insertAsyncCOROUTINE$92', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_DoorWrapper, 'ContentEntryContentCategoryJoinDao_DoorWrapper', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$93, '$insertAsyncCOROUTINE$93', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_JdbcImpl, 'ContentEntryContentCategoryJoinDao_JdbcImpl', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda, 'ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$94, '$insertAsyncCOROUTINE$94', classMeta, CoroutineImpl); setMetadataFor(ContentEntryContentCategoryJoinDao_Repo, 'ContentEntryContentCategoryJoinDao_Repo', classMeta, ContentEntryContentCategoryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao, 'ContentEntryDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertListAsyncCOROUTINE$95, '$insertListAsyncCOROUTINE$95', classMeta, CoroutineImpl); setMetadataFor($upsertAsyncCOROUTINE$96, '$upsertAsyncCOROUTINE$96', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$97, '$insertAsyncCOROUTINE$97', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_DoorWrapper, 'ContentEntryDao_DoorWrapper', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda, 'ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda, 'ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$updateAsync$slambda, 'ContentEntryDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda, 'ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda, 'ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda, 'ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda, 'ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda, 'ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda, 'ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda, 'ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda, 'ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$findByTitle$slambda, 'ContentEntryDao_JdbcImpl$findByTitle$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda, 'ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentByOwner$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda, 'ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda, 'ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$98, '$insertAsyncCOROUTINE$98', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$99, '$updateAsyncCOROUTINE$99', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_JdbcImpl, 'ContentEntryDao_JdbcImpl', classMeta, ContentEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_Repo$insertListAsync$slambda, 'ContentEntryDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$upsertAsync$slambda, 'ContentEntryDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda, 'ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda, 'ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryDao_Repo$updateAsync$slambda, 'ContentEntryDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryDao_Repo$insertAsync$slambda, 'ContentEntryDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$100, '$findByUidAsyncCOROUTINE$100', classMeta, CoroutineImpl); setMetadataFor($findEntryWithLanguageByEntryIdAsyncCOROUTINE$101, '$findEntryWithLanguageByEntryIdAsyncCOROUTINE$101', classMeta, CoroutineImpl); setMetadataFor($findByUidWithEditDetailsCOROUTINE$102, '$findByUidWithEditDetailsCOROUTINE$102', classMeta, CoroutineImpl); setMetadataFor($findTitleByUidAsyncCOROUTINE$103, '$findTitleByUidAsyncCOROUTINE$103', classMeta, CoroutineImpl); setMetadataFor($getChildrenByParentAsyncCOROUTINE$104, '$getChildrenByParentAsyncCOROUTINE$104', classMeta, CoroutineImpl); setMetadataFor($getCountNumberOfChildrenByParentUUidAsyncCOROUTINE$105, '$getCountNumberOfChildrenByParentUUidAsyncCOROUTINE$105', classMeta, CoroutineImpl); setMetadataFor($getContentByUuidAsyncCOROUTINE$106, '$getContentByUuidAsyncCOROUTINE$106', classMeta, CoroutineImpl); setMetadataFor($findAllLanguageRelatedEntriesAsyncCOROUTINE$107, '$findAllLanguageRelatedEntriesAsyncCOROUTINE$107', classMeta, CoroutineImpl); setMetadataFor($findByUidWithLanguageAsyncCOROUTINE$108, '$findByUidWithLanguageAsyncCOROUTINE$108', classMeta, CoroutineImpl); setMetadataFor($findBySourceUrlWithContentEntryStatusAsyncCOROUTINE$109, '$findBySourceUrlWithContentEntryStatusAsyncCOROUTINE$109', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$110, '$updateAsyncCOROUTINE$110', classMeta, CoroutineImpl); setMetadataFor($getContentEntryFromUidsCOROUTINE$111, '$getContentEntryFromUidsCOROUTINE$111', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$112, '$insertAsyncCOROUTINE$112', classMeta, CoroutineImpl); setMetadataFor(ContentEntryDao_Repo, 'ContentEntryDao_Repo', classMeta, ContentEntryDao, [ContentEntryDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao, 'ContentEntryImportJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda, 'ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda, 'ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda, 'ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda, 'ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda, 'ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda, 'ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertJobItemCOROUTINE$113, '$insertJobItemCOROUTINE$113', classMeta, CoroutineImpl); setMetadataFor($updateItemStatusCOROUTINE$114, '$updateItemStatusCOROUTINE$114', classMeta, CoroutineImpl); setMetadataFor($updateItemStatusAndErrorCOROUTINE$115, '$updateItemStatusAndErrorCOROUTINE$115', classMeta, CoroutineImpl); setMetadataFor($updateErrorDismissedCOROUTINE$116, '$updateErrorDismissedCOROUTINE$116', classMeta, CoroutineImpl); setMetadataFor($updateItemProgressCOROUTINE$117, '$updateItemProgressCOROUTINE$117', classMeta, CoroutineImpl); setMetadataFor(ContentEntryImportJobDao_JdbcImpl, 'ContentEntryImportJobDao_JdbcImpl', classMeta, ContentEntryImportJobDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ContentEntryParentChildJoinDao, 'ContentEntryParentChildJoinDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 0, 3]); setMetadataFor($insertListAsyncCOROUTINE$118, '$insertListAsyncCOROUTINE$118', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$119, '$insertAsyncCOROUTINE$119', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_DoorWrapper, 'ContentEntryParentChildJoinDao_DoorWrapper', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda, 'ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$120, '$insertAsyncCOROUTINE$120', classMeta, CoroutineImpl); setMetadataFor($moveListOfEntriesToNewParentCOROUTINE$121, '$moveListOfEntriesToNewParentCOROUTINE$121', classMeta, CoroutineImpl); setMetadataFor($setEntriesDeletedCOROUTINE$122, '$setEntriesDeletedCOROUTINE$122', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_JdbcImpl, 'ContentEntryParentChildJoinDao_JdbcImpl', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda, 'ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda, 'ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda, 'ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda, 'ContentEntryParentChildJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findListOfChildsByParentUuidCOROUTINE$123, '$findListOfChildsByParentUuidCOROUTINE$123', classMeta, CoroutineImpl); setMetadataFor($selectTopEntriesCOROUTINE$124, '$selectTopEntriesCOROUTINE$124', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$125, '$findByUidCOROUTINE$125', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$126, '$insertAsyncCOROUTINE$126', classMeta, CoroutineImpl); setMetadataFor(ContentEntryParentChildJoinDao_Repo, 'ContentEntryParentChildJoinDao_Repo', classMeta, ContentEntryParentChildJoinDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(ImageDao, 'ImageDao', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4]); setMetadataFor(ContentEntryPicture2Dao, 'ContentEntryPicture2Dao', classMeta, VOID, [ImageDao], VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_DoorWrapper, 'ContentEntryPicture2Dao_DoorWrapper', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda, 'ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$127, '$updateUriCOROUTINE$127', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPicture2Dao_JdbcImpl, 'ContentEntryPicture2Dao_JdbcImpl', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda, 'ContentEntryPicture2Dao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryPicture2Dao_Repo$updateUri$slambda, 'ContentEntryPicture2Dao_Repo$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryPicture2Dao_Repo, 'ContentEntryPicture2Dao_Repo', classMeta, ContentEntryPicture2Dao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(ContentEntryPictureDao, 'ContentEntryPictureDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$128, '$insertAsyncCOROUTINE$128', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_DoorWrapper, 'ContentEntryPictureDao_DoorWrapper', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda, 'ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda, 'ContentEntryPictureDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda, 'ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda, 'ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$129, '$insertAsyncCOROUTINE$129', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$130, '$updateAsyncCOROUTINE$130', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_JdbcImpl, 'ContentEntryPictureDao_JdbcImpl', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryPictureDao_Repo$updateAsync$slambda, 'ContentEntryPictureDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryPictureDao_Repo$insertAsync$slambda, 'ContentEntryPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByContentEntryUidAsyncCOROUTINE$131, '$findByContentEntryUidAsyncCOROUTINE$131', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$132, '$insertAsyncCOROUTINE$132', classMeta, CoroutineImpl); setMetadataFor(ContentEntryPictureDao_Repo, 'ContentEntryPictureDao_Repo', classMeta, ContentEntryPictureDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao, 'ContentEntryRelatedEntryJoinDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$133, '$insertAsyncCOROUTINE$133', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_DoorWrapper, 'ContentEntryRelatedEntryJoinDao_DoorWrapper', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda, 'ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda, 'ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda, 'ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor($insertAsyncCOROUTINE$134, '$insertAsyncCOROUTINE$134', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_JdbcImpl, 'ContentEntryRelatedEntryJoinDao_JdbcImpl', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda, 'ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllTranslationsForContentEntryAsyncCOROUTINE$135, '$findAllTranslationsForContentEntryAsyncCOROUTINE$135', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$136, '$insertAsyncCOROUTINE$136', classMeta, CoroutineImpl); setMetadataFor(ContentEntryRelatedEntryJoinDao_Repo, 'ContentEntryRelatedEntryJoinDao_Repo', classMeta, ContentEntryRelatedEntryJoinDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao, 'ContentEntryVersionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor($insertAsyncCOROUTINE$137, '$insertAsyncCOROUTINE$137', classMeta, CoroutineImpl); setMetadataFor(ContentEntryVersionDao_DoorWrapper, 'ContentEntryVersionDao_DoorWrapper', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda, 'ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda, 'ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$138, '$insertAsyncCOROUTINE$138', classMeta, CoroutineImpl); setMetadataFor($updateTransferJobItemEtagCOROUTINE$139, '$updateTransferJobItemEtagCOROUTINE$139', classMeta, CoroutineImpl); setMetadataFor(ContentEntryVersionDao_JdbcImpl, 'ContentEntryVersionDao_JdbcImpl', classMeta, ContentEntryVersionDao, VOID, VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(ContentEntryVersionDao_Repo$insertAsync$slambda, 'ContentEntryVersionDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda, 'ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda, 'ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$140, '$findByUidAsyncCOROUTINE$140', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$141, '$insertAsyncCOROUTINE$141', classMeta, CoroutineImpl); setMetadataFor($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142, '$findLatestVersionUidByContentEntryUidEntityCOROUTINE$142', classMeta, CoroutineImpl); setMetadataFor($findContentEntryVersionsWithoutCacheLockCOROUTINE$143, '$findContentEntryVersionsWithoutCacheLockCOROUTINE$143', classMeta, CoroutineImpl); setMetadataFor(ContentEntryVersionDao_Repo, 'ContentEntryVersionDao_Repo', classMeta, ContentEntryVersionDao, [ContentEntryVersionDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 0]); setMetadataFor(CourseAssignmentMarkDao, 'CourseAssignmentMarkDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [2, 3, 1]); setMetadataFor($insertAsyncCOROUTINE$144, '$insertAsyncCOROUTINE$144', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_DoorWrapper, 'CourseAssignmentMarkDao_DoorWrapper', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [2, 3, 1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda, 'CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda, 'CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda, 'CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$145, '$insertAsyncCOROUTINE$145', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_JdbcImpl, 'CourseAssignmentMarkDao_JdbcImpl', classMeta, CourseAssignmentMarkDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda, 'CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentMarkDao_Repo$insertAsync$slambda, 'CourseAssignmentMarkDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getAllMarksForSubmitterAsFlowMarkerPersonsCOROUTINE$146, '$getAllMarksForSubmitterAsFlowMarkerPersonsCOROUTINE$146', classMeta, CoroutineImpl); setMetadataFor($findNextSubmitterToMarkForAssignmentCOROUTINE$147, '$findNextSubmitterToMarkForAssignmentCOROUTINE$147', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$148, '$insertAsyncCOROUTINE$148', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentMarkDao_Repo, 'CourseAssignmentMarkDao_Repo', classMeta, CourseAssignmentMarkDao, [CourseAssignmentMarkDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [2, 3, 1]); setMetadataFor(CourseAssignmentSubmissionDao, 'CourseAssignmentSubmissionDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2]); setMetadataFor($insertListAsyncCOROUTINE$149, '$insertListAsyncCOROUTINE$149', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$150, '$insertAsyncCOROUTINE$150', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_DoorWrapper, 'CourseAssignmentSubmissionDao_DoorWrapper', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$151, '$insertAsyncCOROUTINE$151', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_JdbcImpl, 'CourseAssignmentSubmissionDao_JdbcImpl', classMeta, CourseAssignmentSubmissionDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda, 'CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda, 'CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda, 'CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getLatestSubmissionForUserAsyncCOROUTINE$152, '$getLatestSubmissionForUserAsyncCOROUTINE$152', classMeta, CoroutineImpl); setMetadataFor($doesUserHaveSubmissionsCOROUTINE$153, '$doesUserHaveSubmissionsCOROUTINE$153', classMeta, CoroutineImpl); setMetadataFor($countFileSubmissionFromStudentCOROUTINE$154, '$countFileSubmissionFromStudentCOROUTINE$154', classMeta, CoroutineImpl); setMetadataFor($countSubmissionsFromSubmitterCOROUTINE$155, '$countSubmissionsFromSubmitterCOROUTINE$155', classMeta, CoroutineImpl); setMetadataFor($findLastSubmissionFromStudentCOROUTINE$156, '$findLastSubmissionFromStudentCOROUTINE$156', classMeta, CoroutineImpl); setMetadataFor($checkNoSubmissionsMadeAsyncCOROUTINE$157, '$checkNoSubmissionsMadeAsyncCOROUTINE$157', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$158, '$insertAsyncCOROUTINE$158', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionDao_Repo, 'CourseAssignmentSubmissionDao_Repo', classMeta, CourseAssignmentSubmissionDao, [CourseAssignmentSubmissionDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2]); setMetadataFor(CourseAssignmentSubmissionFileDao, 'CourseAssignmentSubmissionFileDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($insertListAsyncCOROUTINE$159, '$insertListAsyncCOROUTINE$159', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$160, '$insertAsyncCOROUTINE$160', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_DoorWrapper, 'CourseAssignmentSubmissionFileDao_DoorWrapper', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$161, '$insertAsyncCOROUTINE$161', classMeta, CoroutineImpl); setMetadataFor($updateUriCOROUTINE$162, '$updateUriCOROUTINE$162', classMeta, CoroutineImpl); setMetadataFor($setDeletedCOROUTINE$163, '$setDeletedCOROUTINE$163', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_JdbcImpl, 'CourseAssignmentSubmissionFileDao_JdbcImpl', classMeta, CourseAssignmentSubmissionFileDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda, 'CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda, 'CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda, 'CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda, 'CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$164, '$insertAsyncCOROUTINE$164', classMeta, CoroutineImpl); setMetadataFor(CourseAssignmentSubmissionFileDao_Repo, 'CourseAssignmentSubmissionFileDao_Repo', classMeta, CourseAssignmentSubmissionFileDao, [CourseAssignmentSubmissionFileDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 3]); setMetadataFor(CourseBlockDao, 'CourseBlockDao', classMeta, VOID, [BaseDao, OneToManyJoinDao], VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor($replaceListAsyncCOROUTINE$165, '$replaceListAsyncCOROUTINE$165', classMeta, CoroutineImpl); setMetadataFor($upsertListAsyncCOROUTINE$166, '$upsertListAsyncCOROUTINE$166', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$167, '$insertAsyncCOROUTINE$167', classMeta, CoroutineImpl); setMetadataFor($insertListAsyncCOROUTINE$168, '$insertListAsyncCOROUTINE$168', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_DoorWrapper, 'CourseBlockDao_DoorWrapper', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda, 'CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$updateAsync$slambda, 'CourseBlockDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$updateListAsync$slambda, 'CourseBlockDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidAsync$slambda, 'CourseBlockDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$existsByUid$slambda, 'CourseBlockDao_JdbcImpl$existsByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda, 'CourseBlockDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda, 'CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda, 'CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$findBySourcedId$slambda, 'CourseBlockDao_JdbcImpl$findBySourcedId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUid$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda, 'CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda, 'CourseBlockDao_JdbcImpl$updateFromLineItem$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda, 'CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$169, '$insertAsyncCOROUTINE$169', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$170, '$updateAsyncCOROUTINE$170', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$171, '$updateActiveByUidCOROUTINE$171', classMeta, CoroutineImpl); setMetadataFor($updateFromLineItemCOROUTINE$172, '$updateFromLineItemCOROUTINE$172', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_JdbcImpl, 'CourseBlockDao_JdbcImpl', classMeta, CourseBlockDao, VOID, VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockDao_Repo$updateAsync$slambda, 'CourseBlockDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$replaceListAsync$slambda, 'CourseBlockDao_Repo$replaceListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda, 'CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda, 'CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda, 'CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockDao_Repo$updateActiveByUid$slambda, 'CourseBlockDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$upsertListAsync$slambda, 'CourseBlockDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findByUidAsFlow$slambda, 'CourseBlockDao_Repo$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda, 'CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda, 'CourseBlockDao_Repo$findByClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$updateFromLineItem$slambda, 'CourseBlockDao_Repo$updateFromLineItem$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$insertAsync$slambda, 'CourseBlockDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$insertListAsync$slambda, 'CourseBlockDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockDao_Repo$updateListAsync$slambda, 'CourseBlockDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$173, '$findByUidAsyncCOROUTINE$173', classMeta, CoroutineImpl); setMetadataFor($existsByUidCOROUTINE$174, '$existsByUidCOROUTINE$174', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$175, '$updateAsyncCOROUTINE$175', classMeta, CoroutineImpl); setMetadataFor($findAllCourseBlockByClazzUidAsyncCOROUTINE$176, '$findAllCourseBlockByClazzUidAsyncCOROUTINE$176', classMeta, CoroutineImpl); setMetadataFor($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177, '$findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177', classMeta, CoroutineImpl); setMetadataFor($findCourseBlockByDiscussionPostUidCOROUTINE$178, '$findCourseBlockByDiscussionPostUidCOROUTINE$178', classMeta, CoroutineImpl); setMetadataFor($findClazzUidByCourseBlockUidCOROUTINE$179, '$findClazzUidByCourseBlockUidCOROUTINE$179', classMeta, CoroutineImpl); setMetadataFor($findBySourcedIdCOROUTINE$180, '$findBySourcedIdCOROUTINE$180', classMeta, CoroutineImpl); setMetadataFor($findByClazzUidCOROUTINE$181, '$findByClazzUidCOROUTINE$181', classMeta, CoroutineImpl); setMetadataFor($findCourseBlockAndClazzUidByCbUidCOROUTINE$182, '$findCourseBlockAndClazzUidByCbUidCOROUTINE$182', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$183, '$insertAsyncCOROUTINE$183', classMeta, CoroutineImpl); setMetadataFor(CourseBlockDao_Repo, 'CourseBlockDao_Repo', classMeta, CourseBlockDao, [CourseBlockDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 3, 9]); setMetadataFor(CourseBlockPictureDao, 'CourseBlockPictureDao', classMeta, VOID, [ImageDao], VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_DoorWrapper, 'CourseBlockPictureDao_DoorWrapper', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseBlockPictureDao_JdbcImpl$updateUri$slambda, 'CourseBlockPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$184, '$updateUriCOROUTINE$184', classMeta, CoroutineImpl); setMetadataFor(CourseBlockPictureDao_JdbcImpl, 'CourseBlockPictureDao_JdbcImpl', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseBlockPictureDao_Repo$upsertListAsync$slambda, 'CourseBlockPictureDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockPictureDao_Repo$updateUri$slambda, 'CourseBlockPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseBlockPictureDao_Repo, 'CourseBlockPictureDao_Repo', classMeta, CourseBlockPictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseGroupMemberDao, 'CourseGroupMemberDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2, 5]); setMetadataFor($insertListAsyncCOROUTINE$185, '$insertListAsyncCOROUTINE$185', classMeta, CoroutineImpl); setMetadataFor($upsertListAsyncCOROUTINE$186, '$upsertListAsyncCOROUTINE$186', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$187, '$insertAsyncCOROUTINE$187', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_DoorWrapper, 'CourseGroupMemberDao_DoorWrapper', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda, 'CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda, 'CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda, 'CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda, 'CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$188, '$insertAsyncCOROUTINE$188', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_JdbcImpl, 'CourseGroupMemberDao_JdbcImpl', classMeta, CourseGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupMemberDao_Repo$insertListAsync$slambda, 'CourseGroupMemberDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$updateListAsync$slambda, 'CourseGroupMemberDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda, 'CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$upsertListAsync$slambda, 'CourseGroupMemberDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupMemberDao_Repo$insertAsync$slambda, 'CourseGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByGroupSetUidAsyncCOROUTINE$189, '$findByGroupSetUidAsyncCOROUTINE$189', classMeta, CoroutineImpl); setMetadataFor($findByPersonUidCOROUTINE$190, '$findByPersonUidCOROUTINE$190', classMeta, CoroutineImpl); setMetadataFor($findByCourseGroupSetAndClazzCOROUTINE$191, '$findByCourseGroupSetAndClazzCOROUTINE$191', classMeta, CoroutineImpl); setMetadataFor($findByCourseGroupSetAndClazzAsFlowPersonsCOROUTINE$192, '$findByCourseGroupSetAndClazzAsFlowPersonsCOROUTINE$192', classMeta, CoroutineImpl); setMetadataFor($findByCourseGroupSetAndClazzAsFlowEnrolmentsCOROUTINE$193, '$findByCourseGroupSetAndClazzAsFlowEnrolmentsCOROUTINE$193', classMeta, CoroutineImpl); setMetadataFor($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194, '$findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$195, '$insertAsyncCOROUTINE$195', classMeta, CoroutineImpl); setMetadataFor(CourseGroupMemberDao_Repo, 'CourseGroupMemberDao_Repo', classMeta, CourseGroupMemberDao, [CourseGroupMemberDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 5]); setMetadataFor(CourseGroupSetDao, 'CourseGroupSetDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$196, '$upsertAsyncCOROUTINE$196', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$197, '$insertAsyncCOROUTINE$197', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_DoorWrapper, 'CourseGroupSetDao_DoorWrapper', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$updateAsync$slambda, 'CourseGroupSetDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda, 'CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda, 'CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$198, '$insertAsyncCOROUTINE$198', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$199, '$updateAsyncCOROUTINE$199', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_JdbcImpl, 'CourseGroupSetDao_JdbcImpl', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_Repo$updateAsync$slambda, 'CourseGroupSetDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda, 'CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseGroupSetDao_Repo$upsertAsync$slambda, 'CourseGroupSetDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseGroupSetDao_Repo$insertAsync$slambda, 'CourseGroupSetDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($updateAsyncCOROUTINE$200, '$updateAsyncCOROUTINE$200', classMeta, CoroutineImpl); setMetadataFor($findAllCourseGroupSetForClazzListAsyncCOROUTINE$201, '$findAllCourseGroupSetForClazzListAsyncCOROUTINE$201', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$202, '$findByUidAsyncCOROUTINE$202', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$203, '$insertAsyncCOROUTINE$203', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDao_Repo, 'CourseGroupSetDao_Repo', classMeta, CourseGroupSetDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao, 'CoursePermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor($upsertAsyncCOROUTINE$204, '$upsertAsyncCOROUTINE$204', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_DoorWrapper, 'CoursePermissionDao_DoorWrapper', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda, 'CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$setDeleted$slambda, 'CoursePermissionDao_JdbcImpl$setDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda, 'CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda, 'CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda, 'CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($setDeletedCOROUTINE$205, '$setDeletedCOROUTINE$205', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_JdbcImpl, 'CoursePermissionDao_JdbcImpl', classMeta, CoursePermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3, 4]); setMetadataFor(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda, 'CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda, 'CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$upsertAsync$slambda, 'CoursePermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$setDeleted$slambda, 'CoursePermissionDao_Repo$setDeleted$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda, 'CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda, 'CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAndClazzUidCOROUTINE$206, '$findByUidAndClazzUidCOROUTINE$206', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzByEnrolmentUidEntities2COROUTINE$207, '$personHasPermissionWithClazzByEnrolmentUidEntities2COROUTINE$207', classMeta, CoroutineImpl); setMetadataFor($userHasEnrolmentEditPermissionCOROUTINE$208, '$userHasEnrolmentEditPermissionCOROUTINE$208', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzEntities2COROUTINE$209, '$personHasPermissionWithClazzEntities2COROUTINE$209', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzPairAsyncCOROUTINE$210, '$personHasPermissionWithClazzPairAsyncCOROUTINE$210', classMeta, CoroutineImpl); setMetadataFor($personHasPermissionWithClazzAsync2COROUTINE$211, '$personHasPermissionWithClazzAsync2COROUTINE$211', classMeta, CoroutineImpl); setMetadataFor($findApplicableCoursePermissionEntitiesForAccountPersonCOROUTINE$212, '$findApplicableCoursePermissionEntitiesForAccountPersonCOROUTINE$212', classMeta, CoroutineImpl); setMetadataFor(CoursePermissionDao_Repo, 'CoursePermissionDao_Repo', classMeta, CoursePermissionDao, [CoursePermissionDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [2, 1, 3, 4]); setMetadataFor(CoursePictureDao, 'CoursePictureDao', classMeta, VOID, [ImageDao], VOID, VOID, VOID, [1, 4]); setMetadataFor($upsertAsyncCOROUTINE$213, '$upsertAsyncCOROUTINE$213', classMeta, CoroutineImpl); setMetadataFor(CoursePictureDao_DoorWrapper, 'CoursePictureDao_DoorWrapper', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CoursePictureDao_JdbcImpl$updateUri$slambda, 'CoursePictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateUriCOROUTINE$214, '$updateUriCOROUTINE$214', classMeta, CoroutineImpl); setMetadataFor(CoursePictureDao_JdbcImpl, 'CoursePictureDao_JdbcImpl', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CoursePictureDao_Repo$upsertAsync$slambda, 'CoursePictureDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePictureDao_Repo$updateUri$slambda, 'CoursePictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CoursePictureDao_Repo, 'CoursePictureDao_Repo', classMeta, CoursePictureDao, VOID, VOID, VOID, VOID, [1, 4]); setMetadataFor(CourseTerminologyDao, 'CourseTerminologyDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$215, '$upsertAsyncCOROUTINE$215', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$216, '$insertAsyncCOROUTINE$216', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_DoorWrapper, 'CourseTerminologyDao_DoorWrapper', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda, 'CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$updateAsync$slambda, 'CourseTerminologyDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda, 'CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda, 'CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$217, '$upsertAsyncCOROUTINE$217', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$218, '$insertAsyncCOROUTINE$218', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$219, '$updateAsyncCOROUTINE$219', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_JdbcImpl, 'CourseTerminologyDao_JdbcImpl', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda, 'CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(CourseTerminologyDao_Repo$updateAsync$slambda, 'CourseTerminologyDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseTerminologyDao_Repo$upsertAsync$slambda, 'CourseTerminologyDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(CourseTerminologyDao_Repo$insertAsync$slambda, 'CourseTerminologyDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getTerminologyForClazzCOROUTINE$220, '$getTerminologyForClazzCOROUTINE$220', classMeta, CoroutineImpl); setMetadataFor($getTerminologyForAssignmentCOROUTINE$221, '$getTerminologyForAssignmentCOROUTINE$221', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$222, '$findByUidAsyncCOROUTINE$222', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$223, '$updateAsyncCOROUTINE$223', classMeta, CoroutineImpl); setMetadataFor($upsertAsyncCOROUTINE$224, '$upsertAsyncCOROUTINE$224', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$225, '$insertAsyncCOROUTINE$225', classMeta, CoroutineImpl); setMetadataFor(CourseTerminologyDao_Repo, 'CourseTerminologyDao_Repo', classMeta, CourseTerminologyDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao, 'DeletedItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda, 'DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda, 'DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda, 'DeletedItemDao_JdbcImpl$updateStatusByUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226, '$insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226', classMeta, CoroutineImpl); setMetadataFor($updateStatusByUidsCOROUTINE$227, '$updateStatusByUidsCOROUTINE$227', classMeta, CoroutineImpl); setMetadataFor(DeletedItemDao_JdbcImpl, 'DeletedItemDao_JdbcImpl', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda, 'DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(DeletedItemDao_Repo$findDeletedItemsForUser$slambda, 'DeletedItemDao_Repo$findDeletedItemsForUser$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DeletedItemDao_Repo$updateStatusByUids$slambda, 'DeletedItemDao_Repo$updateStatusByUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByTableIdAndEntityUidCOROUTINE$228, '$findByTableIdAndEntityUidCOROUTINE$228', classMeta, CoroutineImpl); setMetadataFor(DeletedItemDao_Repo, 'DeletedItemDao_Repo', classMeta, DeletedItemDao, VOID, VOID, VOID, VOID, [3, 2]); setMetadataFor(DiscussionPostDao, 'DiscussionPostDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($upsertAsyncCOROUTINE$229, '$upsertAsyncCOROUTINE$229', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$230, '$insertAsyncCOROUTINE$230', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_DoorWrapper, 'DiscussionPostDao_DoorWrapper', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$updateAsync$slambda, 'DiscussionPostDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda, 'DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getPostTitle$slambda, 'DiscussionPostDao_JdbcImpl$getPostTitle$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByUid$slambda, 'DiscussionPostDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda, 'DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda, 'DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda, 'DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$231, '$insertAsyncCOROUTINE$231', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$232, '$updateAsyncCOROUTINE$232', classMeta, CoroutineImpl); setMetadataFor($setDeletedAsyncCOROUTINE$233, '$setDeletedAsyncCOROUTINE$233', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_JdbcImpl, 'DiscussionPostDao_JdbcImpl', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda, 'DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_Repo$updateAsync$slambda, 'DiscussionPostDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda, 'DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(DiscussionPostDao_Repo$upsertAsync$slambda, 'DiscussionPostDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_Repo$setDeletedAsync$slambda, 'DiscussionPostDao_Repo$setDeletedAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(DiscussionPostDao_Repo$insertAsync$slambda, 'DiscussionPostDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getTopLevelPostsByCourseBlockUidPersonsCOROUTINE$234, '$getTopLevelPostsByCourseBlockUidPersonsCOROUTINE$234', classMeta, CoroutineImpl); setMetadataFor($getTopLevelPostsByCourseBlockUidLatestMessageCOROUTINE$235, '$getTopLevelPostsByCourseBlockUidLatestMessageCOROUTINE$235', classMeta, CoroutineImpl); setMetadataFor($getPostTitleCOROUTINE$236, '$getPostTitleCOROUTINE$236', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$237, '$findByUidCOROUTINE$237', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$238, '$updateAsyncCOROUTINE$238', classMeta, CoroutineImpl); setMetadataFor($findByPostIdWithAllRepliesPersonsCOROUTINE$239, '$findByPostIdWithAllRepliesPersonsCOROUTINE$239', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$240, '$insertAsyncCOROUTINE$240', classMeta, CoroutineImpl); setMetadataFor(DiscussionPostDao_Repo, 'DiscussionPostDao_Repo', classMeta, DiscussionPostDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(EnrolmentRequestDao, 'EnrolmentRequestDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertCOROUTINE$241, '$insertCOROUTINE$241', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_DoorWrapper, 'EnrolmentRequestDao_DoorWrapper', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda, 'EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda, 'EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda, 'EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda, 'EnrolmentRequestDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor($updateStatusCOROUTINE$242, '$updateStatusCOROUTINE$242', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_JdbcImpl, 'EnrolmentRequestDao_JdbcImpl', classMeta, EnrolmentRequestDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(EnrolmentRequestDao_Repo$insert$slambda, 'EnrolmentRequestDao_Repo$insert$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda, 'EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$updateStatus$slambda, 'EnrolmentRequestDao_Repo$updateStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda, 'EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($findByClazzAndPersonCOROUTINE$243, '$findByClazzAndPersonCOROUTINE$243', classMeta, CoroutineImpl); setMetadataFor($hasPendingRequestsCOROUTINE$244, '$hasPendingRequestsCOROUTINE$244', classMeta, CoroutineImpl); setMetadataFor(EnrolmentRequestDao_Repo, 'EnrolmentRequestDao_Repo', classMeta, EnrolmentRequestDao, [EnrolmentRequestDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ErrorReportDao, 'ErrorReportDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$245, '$insertAsyncCOROUTINE$245', classMeta, CoroutineImpl); setMetadataFor(ErrorReportDao_DoorWrapper, 'ErrorReportDao_DoorWrapper', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_JdbcImpl$findByUidAsync$slambda, 'ErrorReportDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_JdbcImpl$findByErrorCode$slambda, 'ErrorReportDao_JdbcImpl$findByErrorCode$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$246, '$insertAsyncCOROUTINE$246', classMeta, CoroutineImpl); setMetadataFor(ErrorReportDao_JdbcImpl, 'ErrorReportDao_JdbcImpl', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ErrorReportDao_Repo$insertAsync$slambda, 'ErrorReportDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$247, '$insertAsyncCOROUTINE$247', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$248, '$findByUidAsyncCOROUTINE$248', classMeta, CoroutineImpl); setMetadataFor($findByErrorCodeCOROUTINE$249, '$findByErrorCodeCOROUTINE$249', classMeta, CoroutineImpl); setMetadataFor(ErrorReportDao_Repo, 'ErrorReportDao_Repo', classMeta, ErrorReportDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao, 'ExternalAppPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda, 'ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda, 'ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda, 'ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$250, '$insertAsyncCOROUTINE$250', classMeta, CoroutineImpl); setMetadataFor(ExternalAppPermissionDao_JdbcImpl, 'ExternalAppPermissionDao_JdbcImpl', classMeta, ExternalAppPermissionDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(HolidayCalendarDao, 'HolidayCalendarDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$251, '$insertAsyncCOROUTINE$251', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_DoorWrapper, 'HolidayCalendarDao_DoorWrapper', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda, 'HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda, 'HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda, 'HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda, 'HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$updateAsync$slambda, 'HolidayCalendarDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda, 'HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda, 'HolidayCalendarDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findByUid$slambda, 'HolidayCalendarDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda, 'HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$252, '$insertAsyncCOROUTINE$252', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$253, '$updateAsyncCOROUTINE$253', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_JdbcImpl, 'HolidayCalendarDao_JdbcImpl', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayCalendarDao_Repo$updateAsync$slambda, 'HolidayCalendarDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayCalendarDao_Repo$insertAsync$slambda, 'HolidayCalendarDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($updateAsyncCOROUTINE$254, '$updateAsyncCOROUTINE$254', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$255, '$findByUidCOROUTINE$255', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$256, '$findByUidAsyncCOROUTINE$256', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$257, '$insertAsyncCOROUTINE$257', classMeta, CoroutineImpl); setMetadataFor(HolidayCalendarDao_Repo, 'HolidayCalendarDao_Repo', classMeta, HolidayCalendarDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao, 'HolidayDao', classMeta, VOID, [BaseDao, OneToManyJoinDao], VOID, VOID, VOID, [1]); setMetadataFor($updateAsyncCOROUTINE$258, '$updateAsyncCOROUTINE$258', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$259, '$insertAsyncCOROUTINE$259', classMeta, CoroutineImpl); setMetadataFor($insertListAsyncCOROUTINE$260, '$insertListAsyncCOROUTINE$260', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_DoorWrapper, 'HolidayDao_DoorWrapper', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_JdbcImpl$updateListAsync$slambda, 'HolidayDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda, 'HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$261, '$insertAsyncCOROUTINE$261', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_JdbcImpl, 'HolidayDao_JdbcImpl', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(HolidayDao_Repo$updateAsync$slambda, 'HolidayDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayDao_Repo$insertAsync$slambda, 'HolidayDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayDao_Repo$insertListAsync$slambda, 'HolidayDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(HolidayDao_Repo$updateListAsync$slambda, 'HolidayDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByHolidayCalendaUidAsyncCOROUTINE$262, '$findByHolidayCalendaUidAsyncCOROUTINE$262', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$263, '$insertAsyncCOROUTINE$263', classMeta, CoroutineImpl); setMetadataFor(HolidayDao_Repo, 'HolidayDao_Repo', classMeta, HolidayDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao, 'LanguageDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($insertListAsyncCOROUTINE$264, '$insertListAsyncCOROUTINE$264', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$265, '$insertAsyncCOROUTINE$265', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_DoorWrapper, 'LanguageDao_DoorWrapper', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda, 'LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda, 'LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda, 'LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$updateAsync$slambda, 'LanguageDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$findLanguagesAsSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda, 'LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$findByUidAsync$slambda, 'LanguageDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LanguageDao_JdbcImpl$findAllLanguageLive$slambda, 'LanguageDao_JdbcImpl$findAllLanguageLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda, 'LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$266, '$insertAsyncCOROUTINE$266', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$267, '$updateAsyncCOROUTINE$267', classMeta, CoroutineImpl); setMetadataFor($toggleVisibilityLanguageCOROUTINE$268, '$toggleVisibilityLanguageCOROUTINE$268', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_JdbcImpl, 'LanguageDao_JdbcImpl', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageDao_Repo$insertListAsync$slambda, 'LanguageDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LanguageDao_Repo$updateAsync$slambda, 'LanguageDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LanguageDao_Repo$toggleVisibilityLanguage$slambda, 'LanguageDao_Repo$toggleVisibilityLanguage$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LanguageDao_Repo$insertAsync$slambda, 'LanguageDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByTwoCodeAsyncCOROUTINE$269, '$findByTwoCodeAsyncCOROUTINE$269', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$270, '$findByUidAsyncCOROUTINE$270', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$271, '$updateAsyncCOROUTINE$271', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$272, '$insertAsyncCOROUTINE$272', classMeta, CoroutineImpl); setMetadataFor(LanguageDao_Repo, 'LanguageDao_Repo', classMeta, LanguageDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(LanguageVariantDao, 'LanguageVariantDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$273, '$insertAsyncCOROUTINE$273', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_DoorWrapper, 'LanguageVariantDao_DoorWrapper', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$274, '$insertAsyncCOROUTINE$274', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_JdbcImpl, 'LanguageVariantDao_JdbcImpl', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LanguageVariantDao_Repo$insertAsync$slambda, 'LanguageVariantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$275, '$insertAsyncCOROUTINE$275', classMeta, CoroutineImpl); setMetadataFor(LanguageVariantDao_Repo, 'LanguageVariantDao_Repo', classMeta, LanguageVariantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao, 'LeavingReasonDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [0, 1]); setMetadataFor($replaceListCOROUTINE$276, '$replaceListCOROUTINE$276', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$277, '$insertAsyncCOROUTINE$277', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_DoorWrapper, 'LeavingReasonDao_DoorWrapper', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda, 'LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda, 'LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda, 'LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$updateAsync$slambda, 'LeavingReasonDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findAllReasons$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda, 'LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda, 'LeavingReasonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidList$slambda, 'LeavingReasonDao_JdbcImpl$findByUidList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(LeavingReasonDao_JdbcImpl$findByUidLive$slambda, 'LeavingReasonDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda, 'LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$278, '$insertAsyncCOROUTINE$278', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$279, '$updateAsyncCOROUTINE$279', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_JdbcImpl, 'LeavingReasonDao_JdbcImpl', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(LeavingReasonDao_Repo$replaceList$slambda, 'LeavingReasonDao_Repo$replaceList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LeavingReasonDao_Repo$updateAsync$slambda, 'LeavingReasonDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(LeavingReasonDao_Repo$insertAsync$slambda, 'LeavingReasonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllReasonsAsyncCOROUTINE$280, '$findAllReasonsAsyncCOROUTINE$280', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$281, '$findByUidAsyncCOROUTINE$281', classMeta, CoroutineImpl); setMetadataFor($findByUidListCOROUTINE$282, '$findByUidListCOROUTINE$282', classMeta, CoroutineImpl); setMetadataFor($getReasonsFromUidsCOROUTINE$283, '$getReasonsFromUidsCOROUTINE$283', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$284, '$updateAsyncCOROUTINE$284', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$285, '$insertAsyncCOROUTINE$285', classMeta, CoroutineImpl); setMetadataFor(LeavingReasonDao_Repo, 'LeavingReasonDao_Repo', classMeta, LeavingReasonDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(MessageDao, 'MessageDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertCOROUTINE$286, '$insertCOROUTINE$286', classMeta, CoroutineImpl); setMetadataFor(MessageDao_DoorWrapper, 'MessageDao_DoorWrapper', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda, 'MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(MessageDao_JdbcImpl, 'MessageDao_JdbcImpl', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda, 'MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$conversationsForUserAsPagingSource$slambda, 'MessageDao_Repo$conversationsForUserAsPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(MessageDao_Repo$insert$slambda, 'MessageDao_Repo$insert$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(MessageDao_Repo, 'MessageDao_Repo', classMeta, MessageDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao, 'OfflineItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor($insertAsyncCOROUTINE$287, '$insertAsyncCOROUTINE$287', classMeta, CoroutineImpl); setMetadataFor(OfflineItemDao_DoorWrapper, 'OfflineItemDao_DoorWrapper', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda, 'OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda, 'OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$288, '$insertAsyncCOROUTINE$288', classMeta, CoroutineImpl); setMetadataFor($updateActiveByOfflineItemUidCOROUTINE$289, '$updateActiveByOfflineItemUidCOROUTINE$289', classMeta, CoroutineImpl); setMetadataFor(OfflineItemDao_JdbcImpl, 'OfflineItemDao_JdbcImpl', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OfflineItemDao_Repo$insertAsync$slambda, 'OfflineItemDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda, 'OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$290, '$insertAsyncCOROUTINE$290', classMeta, CoroutineImpl); setMetadataFor(OfflineItemDao_Repo, 'OfflineItemDao_Repo', classMeta, OfflineItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(OutgoingReplicationDao, 'OutgoingReplicationDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(OutgoingReplicationDao_JdbcImpl$listReplications$slambda, 'OutgoingReplicationDao_JdbcImpl$listReplications$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(OutgoingReplicationDao_JdbcImpl, 'OutgoingReplicationDao_JdbcImpl', classMeta, OutgoingReplicationDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(PeerReviewerAllocationDao, 'PeerReviewerAllocationDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2, 3]); setMetadataFor($replaceListAsyncCOROUTINE$291, '$replaceListAsyncCOROUTINE$291', classMeta, CoroutineImpl); setMetadataFor($upsertListCOROUTINE$292, '$upsertListCOROUTINE$292', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$293, '$insertAsyncCOROUTINE$293', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_DoorWrapper, 'PeerReviewerAllocationDao_DoorWrapper', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda, 'PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$294, '$insertAsyncCOROUTINE$294', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$295, '$updateActiveByUidCOROUTINE$295', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_JdbcImpl, 'PeerReviewerAllocationDao_JdbcImpl', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PeerReviewerAllocationDao_Repo$replaceListAsync$slambda, 'PeerReviewerAllocationDao_Repo$replaceListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda, 'PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PeerReviewerAllocationDao_Repo$upsertList$slambda, 'PeerReviewerAllocationDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PeerReviewerAllocationDao_Repo$insertAsync$slambda, 'PeerReviewerAllocationDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getAllPeerReviewerAllocationsCOROUTINE$296, '$getAllPeerReviewerAllocationsCOROUTINE$296', classMeta, CoroutineImpl); setMetadataFor($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297, '$getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$298, '$insertAsyncCOROUTINE$298', classMeta, CoroutineImpl); setMetadataFor(PeerReviewerAllocationDao_Repo, 'PeerReviewerAllocationDao_Repo', classMeta, PeerReviewerAllocationDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonAuth2Dao, 'PersonAuth2Dao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_DoorWrapper, 'PersonAuth2Dao_DoorWrapper', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda, 'PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_JdbcImpl$findByUsername$slambda, 'PersonAuth2Dao_JdbcImpl$findByUsername$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$299, '$insertAsyncCOROUTINE$299', classMeta, CoroutineImpl); setMetadataFor(PersonAuth2Dao_JdbcImpl, 'PersonAuth2Dao_JdbcImpl', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuth2Dao_Repo$insertListAsync$slambda, 'PersonAuth2Dao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonAuth2Dao_Repo$insertAsync$slambda, 'PersonAuth2Dao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$300, '$insertAsyncCOROUTINE$300', classMeta, CoroutineImpl); setMetadataFor($findByPersonUidCOROUTINE$301, '$findByPersonUidCOROUTINE$301', classMeta, CoroutineImpl); setMetadataFor($findByUsernameCOROUTINE$302, '$findByUsernameCOROUTINE$302', classMeta, CoroutineImpl); setMetadataFor(PersonAuth2Dao_Repo, 'PersonAuth2Dao_Repo', classMeta, PersonAuth2Dao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuthDao, 'PersonAuthDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonAuthDao_JdbcImpl$updateAsync$slambda, 'PersonAuthDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonAuthDao_JdbcImpl$findByUidAsync$slambda, 'PersonAuthDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda, 'PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$303, '$insertAsyncCOROUTINE$303', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$304, '$updateAsyncCOROUTINE$304', classMeta, CoroutineImpl); setMetadataFor(PersonAuthDao_JdbcImpl, 'PersonAuthDao_JdbcImpl', classMeta, PersonAuthDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonDao, 'PersonDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2, 3]); setMetadataFor($insertListAsyncCOROUTINE$305, '$insertListAsyncCOROUTINE$305', classMeta, CoroutineImpl); setMetadataFor($insertOrReplaceCOROUTINE$306, '$insertOrReplaceCOROUTINE$306', classMeta, CoroutineImpl); setMetadataFor($insertPersonGroupCOROUTINE$307, '$insertPersonGroupCOROUTINE$307', classMeta, CoroutineImpl); setMetadataFor($insertPersonGroupMemberCOROUTINE$308, '$insertPersonGroupMemberCOROUTINE$308', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$309, '$insertAsyncCOROUTINE$309', classMeta, CoroutineImpl); setMetadataFor(PersonDao_DoorWrapper, 'PersonDao_DoorWrapper', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidLive$slambda$slambda, 'PersonDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda, 'PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$updateAsync$slambda, 'PersonDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$countUsername$slambda, 'PersonDao_JdbcImpl$countUsername$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda, 'PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda, 'PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUsernameAsync$slambda, 'PersonDao_JdbcImpl$findByUsernameAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findSystemAccount$slambda, 'PersonDao_JdbcImpl$findSystemAccount$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPicture$slambda, 'PersonDao_JdbcImpl$findByUidWithPicture$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$findByUidLive$slambda, 'PersonDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$findByUidAsync$slambda, 'PersonDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$findByUidAsFlow$slambda, 'PersonDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUid$slambda, 'PersonDao_JdbcImpl$getNamesByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_JdbcImpl$getNamesByUidAsync$slambda, 'PersonDao_JdbcImpl$getNamesByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$updateUsername$slambda, 'PersonDao_JdbcImpl$updateUsername$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_JdbcImpl$selectExistingUsernames$slambda, 'PersonDao_JdbcImpl$selectExistingUsernames$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertPersonGroupCOROUTINE$310, '$insertPersonGroupCOROUTINE$310', classMeta, CoroutineImpl); setMetadataFor($insertPersonGroupMemberCOROUTINE$311, '$insertPersonGroupMemberCOROUTINE$311', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$312, '$insertAsyncCOROUTINE$312', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$313, '$updateAsyncCOROUTINE$313', classMeta, CoroutineImpl); setMetadataFor(PersonDao_JdbcImpl, 'PersonDao_JdbcImpl', classMeta, PersonDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonDao_Repo$insertListAsync$slambda, 'PersonDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$insertOrReplace$slambda, 'PersonDao_Repo$insertOrReplace$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$updateAsync$slambda, 'PersonDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$insertPersonGroup$slambda, 'PersonDao_Repo$insertPersonGroup$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$insertPersonGroupMember$slambda, 'PersonDao_Repo$insertPersonGroupMember$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda, 'PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda, 'PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$getNamesByUid$slambda, 'PersonDao_Repo$getNamesByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$updateUsername$slambda, 'PersonDao_Repo$updateUsername$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonDao_Repo$insertAsync$slambda, 'PersonDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($countUsernameCOROUTINE$314, '$countUsernameCOROUTINE$314', classMeta, CoroutineImpl); setMetadataFor($findUidAndPasswordHashAsyncCOROUTINE$315, '$findUidAndPasswordHashAsyncCOROUTINE$315', classMeta, CoroutineImpl); setMetadataFor($findByUsernameAndPasswordHash2COROUTINE$316, '$findByUsernameAndPasswordHash2COROUTINE$316', classMeta, CoroutineImpl); setMetadataFor($findByUsernameAsyncCOROUTINE$317, '$findByUsernameAsyncCOROUTINE$317', classMeta, CoroutineImpl); setMetadataFor($findSystemAccountCOROUTINE$318, '$findSystemAccountCOROUTINE$318', classMeta, CoroutineImpl); setMetadataFor($findByUidWithPictureCOROUTINE$319, '$findByUidWithPictureCOROUTINE$319', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$320, '$findByUidAsyncCOROUTINE$320', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$321, '$updateAsyncCOROUTINE$321', classMeta, CoroutineImpl); setMetadataFor($insertPersonGroupCOROUTINE$322, '$insertPersonGroupCOROUTINE$322', classMeta, CoroutineImpl); setMetadataFor($insertPersonGroupMemberCOROUTINE$323, '$insertPersonGroupMemberCOROUTINE$323', classMeta, CoroutineImpl); setMetadataFor($getNamesByUidAsyncCOROUTINE$324, '$getNamesByUidAsyncCOROUTINE$324', classMeta, CoroutineImpl); setMetadataFor($updateUsernameCOROUTINE$325, '$updateUsernameCOROUTINE$325', classMeta, CoroutineImpl); setMetadataFor($selectExistingUsernamesCOROUTINE$326, '$selectExistingUsernamesCOROUTINE$326', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$327, '$insertAsyncCOROUTINE$327', classMeta, CoroutineImpl); setMetadataFor(PersonDao_Repo, 'PersonDao_Repo', classMeta, PersonDao, [PersonDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(PersonGroupDao, 'PersonGroupDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$328, '$insertAsyncCOROUTINE$328', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_DoorWrapper, 'PersonGroupDao_DoorWrapper', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda, 'PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$updateAsync$slambda, 'PersonGroupDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$findByUidAsync$slambda, 'PersonGroupDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_JdbcImpl$findByUidLive$slambda, 'PersonGroupDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda, 'PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$329, '$insertAsyncCOROUTINE$329', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$330, '$updateAsyncCOROUTINE$330', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_JdbcImpl, 'PersonGroupDao_JdbcImpl', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupDao_Repo$updateAsync$slambda, 'PersonGroupDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonGroupDao_Repo$insertAsync$slambda, 'PersonGroupDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$331, '$findByUidAsyncCOROUTINE$331', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$332, '$updateAsyncCOROUTINE$332', classMeta, CoroutineImpl); setMetadataFor($findNameByGroupUidCOROUTINE$333, '$findNameByGroupUidCOROUTINE$333', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$334, '$insertAsyncCOROUTINE$334', classMeta, CoroutineImpl); setMetadataFor(PersonGroupDao_Repo, 'PersonGroupDao_Repo', classMeta, PersonGroupDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao, 'PersonGroupMemberDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 2, 4]); setMetadataFor($insertAsyncCOROUTINE$335, '$insertAsyncCOROUTINE$335', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_DoorWrapper, 'PersonGroupMemberDao_DoorWrapper', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda, 'PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda, 'PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda, 'PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda, 'PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda, 'PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$336, '$insertAsyncCOROUTINE$336', classMeta, CoroutineImpl); setMetadataFor($updateGroupMemberActiveCOROUTINE$337, '$updateGroupMemberActiveCOROUTINE$337', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_JdbcImpl, 'PersonGroupMemberDao_JdbcImpl', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonGroupMemberDao_Repo$moveGroupAsync$slambda, 'PersonGroupMemberDao_Repo$moveGroupAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda, 'PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonGroupMemberDao_Repo$insertAsync$slambda, 'PersonGroupMemberDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllGroupWherePersonIsInCOROUTINE$338, '$findAllGroupWherePersonIsInCOROUTINE$338', classMeta, CoroutineImpl); setMetadataFor($checkPersonBelongsToGroupCOROUTINE$339, '$checkPersonBelongsToGroupCOROUTINE$339', classMeta, CoroutineImpl); setMetadataFor($moveGroupAsyncCOROUTINE$340, '$moveGroupAsyncCOROUTINE$340', classMeta, CoroutineImpl); setMetadataFor($findByPersonUidAndGroupUidCOROUTINE$341, '$findByPersonUidAndGroupUidCOROUTINE$341', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$342, '$insertAsyncCOROUTINE$342', classMeta, CoroutineImpl); setMetadataFor(PersonGroupMemberDao_Repo, 'PersonGroupMemberDao_Repo', classMeta, PersonGroupMemberDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonParentJoinDao, 'PersonParentJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor($upsertAsyncCOROUTINE$343, '$upsertAsyncCOROUTINE$343', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_DoorWrapper, 'PersonParentJoinDao_DoorWrapper', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$updateAsync$slambda, 'PersonParentJoinDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda, 'PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda, 'PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda, 'PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda, 'PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$isParentOf$slambda, 'PersonParentJoinDao_JdbcImpl$isParentOf$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda, 'PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($upsertAsyncCOROUTINE$344, '$upsertAsyncCOROUTINE$344', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$345, '$updateAsyncCOROUTINE$345', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_JdbcImpl, 'PersonParentJoinDao_JdbcImpl', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonParentJoinDao_Repo$upsertAsync$slambda, 'PersonParentJoinDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonParentJoinDao_Repo$updateAsync$slambda, 'PersonParentJoinDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($upsertAsyncCOROUTINE$346, '$upsertAsyncCOROUTINE$346', classMeta, CoroutineImpl); setMetadataFor($findByUidWithMinorAsyncCOROUTINE$347, '$findByUidWithMinorAsyncCOROUTINE$347', classMeta, CoroutineImpl); setMetadataFor($findByUidWithMinorAsyncFromWebCOROUTINE$348, '$findByUidWithMinorAsyncFromWebCOROUTINE$348', classMeta, CoroutineImpl); setMetadataFor($findByMinorPersonUidCOROUTINE$349, '$findByMinorPersonUidCOROUTINE$349', classMeta, CoroutineImpl); setMetadataFor($findByMinorPersonUidWhereParentNotEnrolledInClazzCOROUTINE$350, '$findByMinorPersonUidWhereParentNotEnrolledInClazzCOROUTINE$350', classMeta, CoroutineImpl); setMetadataFor($isParentOfCOROUTINE$351, '$isParentOfCOROUTINE$351', classMeta, CoroutineImpl); setMetadataFor($isMinorApprovedCOROUTINE$352, '$isMinorApprovedCOROUTINE$352', classMeta, CoroutineImpl); setMetadataFor(PersonParentJoinDao_Repo, 'PersonParentJoinDao_Repo', classMeta, PersonParentJoinDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(PersonPictureDao, 'PersonPictureDao', classMeta, VOID, [BaseDao, ImageDao], VOID, VOID, VOID, [1, 2, 4]); setMetadataFor($upsertCOROUTINE$353, '$upsertCOROUTINE$353', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$354, '$insertAsyncCOROUTINE$354', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_DoorWrapper, 'PersonPictureDao_DoorWrapper', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$updateAsync$slambda, 'PersonPictureDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda, 'PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_JdbcImpl$updateLct$slambda, 'PersonPictureDao_JdbcImpl$updateLct$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$updateUri$slambda, 'PersonPictureDao_JdbcImpl$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda, 'PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$355, '$insertAsyncCOROUTINE$355', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$356, '$updateAsyncCOROUTINE$356', classMeta, CoroutineImpl); setMetadataFor($updateLctCOROUTINE$357, '$updateLctCOROUTINE$357', classMeta, CoroutineImpl); setMetadataFor($updateUriCOROUTINE$358, '$updateUriCOROUTINE$358', classMeta, CoroutineImpl); setMetadataFor($updateTransferJobItemEtagCOROUTINE$359, '$updateTransferJobItemEtagCOROUTINE$359', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_JdbcImpl, 'PersonPictureDao_JdbcImpl', classMeta, PersonPictureDao, VOID, VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(PersonPictureDao_Repo$upsert$slambda, 'PersonPictureDao_Repo$upsert$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$findByPersonUidLive$slambda, 'PersonPictureDao_Repo$findByPersonUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateAsync$slambda, 'PersonPictureDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateLct$slambda, 'PersonPictureDao_Repo$updateLct$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateUri$slambda, 'PersonPictureDao_Repo$updateUri$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda, 'PersonPictureDao_Repo$updateTransferJobItemEtag$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(PersonPictureDao_Repo$insertAsync$slambda, 'PersonPictureDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByPersonUidAsyncCOROUTINE$360, '$findByPersonUidAsyncCOROUTINE$360', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$361, '$insertAsyncCOROUTINE$361', classMeta, CoroutineImpl); setMetadataFor(PersonPictureDao_Repo, 'PersonPictureDao_Repo', classMeta, PersonPictureDao, [PersonPictureDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 4]); setMetadataFor(ReportDao, 'ReportDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($insertAsyncCOROUTINE$362, '$insertAsyncCOROUTINE$362', classMeta, CoroutineImpl); setMetadataFor(ReportDao_DoorWrapper, 'ReportDao_DoorWrapper', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda, 'ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda, 'ReportDao_JdbcImpl$findAllReports$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda, 'ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda, 'ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findByUidLive$slambda$slambda, 'ReportDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda, 'ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$_insertAdapterReport_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$updateAsync$slambda, 'ReportDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$deleteReportByUid$slambda, 'ReportDao_JdbcImpl$deleteReportByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findAllReports$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ReportDao_JdbcImpl$findAllActiveReport$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ReportDao_JdbcImpl$findByUid$slambda, 'ReportDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_JdbcImpl$findByUidLive$slambda, 'ReportDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ReportDao_JdbcImpl$findAllActiveReportLive$slambda, 'ReportDao_JdbcImpl$findAllActiveReportLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda, 'ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$363, '$insertAsyncCOROUTINE$363', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$364, '$updateAsyncCOROUTINE$364', classMeta, CoroutineImpl); setMetadataFor($deleteReportByUidCOROUTINE$365, '$deleteReportByUidCOROUTINE$365', classMeta, CoroutineImpl); setMetadataFor($toggleVisibilityReportItemsCOROUTINE$366, '$toggleVisibilityReportItemsCOROUTINE$366', classMeta, CoroutineImpl); setMetadataFor(ReportDao_JdbcImpl, 'ReportDao_JdbcImpl', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportDao_Repo$findAllReports$slambda, 'ReportDao_Repo$findAllReports$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportDao_Repo$updateAsync$slambda, 'ReportDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ReportDao_Repo$toggleVisibilityReportItems$slambda, 'ReportDao_Repo$toggleVisibilityReportItems$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ReportDao_Repo$insertAsync$slambda, 'ReportDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($deleteReportByUidCOROUTINE$367, '$deleteReportByUidCOROUTINE$367', classMeta, CoroutineImpl); setMetadataFor($findByUidCOROUTINE$368, '$findByUidCOROUTINE$368', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$369, '$insertAsyncCOROUTINE$369', classMeta, CoroutineImpl); setMetadataFor(ReportDao_Repo, 'ReportDao_Repo', classMeta, ReportDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ReportQueryResultDao, 'ReportQueryResultDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda, 'ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda, 'ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda, 'ReportQueryResultDao_JdbcImpl$isReportFresh$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($deleteByReportUidAndTimeZoneCOROUTINE$370, '$deleteByReportUidAndTimeZoneCOROUTINE$370', classMeta, CoroutineImpl); setMetadataFor(ReportQueryResultDao_JdbcImpl, 'ReportQueryResultDao_JdbcImpl', classMeta, ReportQueryResultDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(ScheduleDao, 'ScheduleDao', classMeta, VOID, [BaseDao], VOID, VOID, VOID, [1, 3]); setMetadataFor($upsertListAsyncCOROUTINE$371, '$upsertListAsyncCOROUTINE$371', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$372, '$insertAsyncCOROUTINE$372', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_DoorWrapper, 'ScheduleDao_DoorWrapper', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$updateAsync$slambda, 'ScheduleDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda, 'ScheduleDao_JdbcImpl$updateScheduleActivated$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$findByUidAsync$slambda, 'ScheduleDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda, 'ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$373, '$insertAsyncCOROUTINE$373', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$374, '$updateAsyncCOROUTINE$374', classMeta, CoroutineImpl); setMetadataFor($updateScheduleActivatedCOROUTINE$375, '$updateScheduleActivatedCOROUTINE$375', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_JdbcImpl, 'ScheduleDao_JdbcImpl', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScheduleDao_Repo$updateAsync$slambda, 'ScheduleDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_Repo$upsertListAsync$slambda, 'ScheduleDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_Repo$updateScheduleActivated$slambda, 'ScheduleDao_Repo$updateScheduleActivated$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ScheduleDao_Repo$insertAsync$slambda, 'ScheduleDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($updateAsyncCOROUTINE$376, '$updateAsyncCOROUTINE$376', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$377, '$findByUidAsyncCOROUTINE$377', classMeta, CoroutineImpl); setMetadataFor($findAllSchedulesByClazzUidAsyncCOROUTINE$378, '$findAllSchedulesByClazzUidAsyncCOROUTINE$378', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$379, '$insertAsyncCOROUTINE$379', classMeta, CoroutineImpl); setMetadataFor(ScheduleDao_Repo, 'ScheduleDao_Repo', classMeta, ScheduleDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(ScopedGrantDao, 'ScopedGrantDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$380, '$insertAsyncCOROUTINE$380', classMeta, CoroutineImpl); setMetadataFor($insertListAsyncCOROUTINE$381, '$insertListAsyncCOROUTINE$381', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_DoorWrapper, 'ScopedGrantDao_DoorWrapper', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$382, '$insertAsyncCOROUTINE$382', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_JdbcImpl, 'ScopedGrantDao_JdbcImpl', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ScopedGrantDao_Repo$insertAsync$slambda, 'ScopedGrantDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ScopedGrantDao_Repo$insertListAsync$slambda, 'ScopedGrantDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertAsyncCOROUTINE$383, '$insertAsyncCOROUTINE$383', classMeta, CoroutineImpl); setMetadataFor(ScopedGrantDao_Repo, 'ScopedGrantDao_Repo', classMeta, ScopedGrantDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao, 'SiteDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor($replaceAsyncCOROUTINE$384, '$replaceAsyncCOROUTINE$384', classMeta, CoroutineImpl); setMetadataFor(SiteDao_DoorWrapper, 'SiteDao_DoorWrapper', classMeta, SiteDao, VOID, VOID, VOID, VOID, [0, 1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$_insertAdapterSite_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$updateAsync$slambda, 'SiteDao_JdbcImpl$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsync$slambda, 'SiteDao_JdbcImpl$getSiteAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda, 'SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteDao_JdbcImpl$getSiteAsFlow$slambda, 'SiteDao_JdbcImpl$getSiteAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($replaceAsyncCOROUTINE$385, '$replaceAsyncCOROUTINE$385', classMeta, CoroutineImpl); setMetadataFor($updateAsyncCOROUTINE$386, '$updateAsyncCOROUTINE$386', classMeta, CoroutineImpl); setMetadataFor(SiteDao_JdbcImpl, 'SiteDao_JdbcImpl', classMeta, SiteDao, VOID, VOID, VOID, VOID, [1, 0]); setMetadataFor(SiteDao_Repo$getSiteAsFlow$slambda, 'SiteDao_Repo$getSiteAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteDao_Repo$replaceAsync$slambda, 'SiteDao_Repo$replaceAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteDao_Repo$updateAsync$slambda, 'SiteDao_Repo$updateAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getSiteAsyncCOROUTINE$387, '$getSiteAsyncCOROUTINE$387', classMeta, CoroutineImpl); setMetadataFor($getSiteAuthSaltAsyncCOROUTINE$388, '$getSiteAuthSaltAsyncCOROUTINE$388', classMeta, CoroutineImpl); setMetadataFor($replaceAsyncCOROUTINE$389, '$replaceAsyncCOROUTINE$389', classMeta, CoroutineImpl); setMetadataFor(SiteDao_Repo, 'SiteDao_Repo', classMeta, SiteDao, [SiteDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [0, 1]); setMetadataFor(SiteTermsDao, 'SiteTermsDao', classMeta, VOID, [OneToManyJoinDao], VOID, VOID, VOID, [1, 0, 3]); setMetadataFor($insertAsyncCOROUTINE$390, '$insertAsyncCOROUTINE$390', classMeta, CoroutineImpl); setMetadataFor($upsertListCOROUTINE$391, '$upsertListCOROUTINE$391', classMeta, CoroutineImpl); setMetadataFor($insertListAsyncCOROUTINE$392, '$insertListAsyncCOROUTINE$392', classMeta, CoroutineImpl); setMetadataFor(SiteTermsDao_DoorWrapper, 'SiteTermsDao_DoorWrapper', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$updateListAsync$slambda, 'SiteTermsDao_JdbcImpl$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findSiteTerms$slambda, 'SiteTermsDao_JdbcImpl$findSiteTerms$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findByUidAsync$slambda, 'SiteTermsDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda, 'SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllTerms$slambda, 'SiteTermsDao_JdbcImpl$findAllTerms$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda, 'SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda, 'SiteTermsDao_JdbcImpl$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda, 'SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda, 'SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertAsyncCOROUTINE$393, '$insertAsyncCOROUTINE$393', classMeta, CoroutineImpl); setMetadataFor($updateActiveByUidCOROUTINE$394, '$updateActiveByUidCOROUTINE$394', classMeta, CoroutineImpl); setMetadataFor(SiteTermsDao_JdbcImpl, 'SiteTermsDao_JdbcImpl', classMeta, SiteTermsDao, VOID, VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(SiteTermsDao_Repo$insertAsync$slambda, 'SiteTermsDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda, 'SiteTermsDao_Repo$findAllTermsAsListFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$upsertList$slambda, 'SiteTermsDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$updateActiveByUid$slambda, 'SiteTermsDao_Repo$updateActiveByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$insertListAsync$slambda, 'SiteTermsDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SiteTermsDao_Repo$updateListAsync$slambda, 'SiteTermsDao_Repo$updateListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findSiteTermsCOROUTINE$395, '$findSiteTermsCOROUTINE$395', classMeta, CoroutineImpl); setMetadataFor($insertAsyncCOROUTINE$396, '$insertAsyncCOROUTINE$396', classMeta, CoroutineImpl); setMetadataFor($findByUidAsyncCOROUTINE$397, '$findByUidAsyncCOROUTINE$397', classMeta, CoroutineImpl); setMetadataFor($findAllTermsCOROUTINE$398, '$findAllTermsCOROUTINE$398', classMeta, CoroutineImpl); setMetadataFor($findAllWithLanguageAsListCOROUTINE$399, '$findAllWithLanguageAsListCOROUTINE$399', classMeta, CoroutineImpl); setMetadataFor($findAvailableSiteTermLanguagesCOROUTINE$400, '$findAvailableSiteTermLanguagesCOROUTINE$400', classMeta, CoroutineImpl); setMetadataFor($findLatestByLanguageCOROUTINE$401, '$findLatestByLanguageCOROUTINE$401', classMeta, CoroutineImpl); setMetadataFor(SiteTermsDao_Repo, 'SiteTermsDao_Repo', classMeta, SiteTermsDao, [SiteTermsDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 0, 3]); setMetadataFor(StudentResultDao, 'StudentResultDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_DoorWrapper, 'StudentResultDao_DoorWrapper', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda, 'StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda, 'StudentResultDao_JdbcImpl$findUidBySourcedId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl$existsByUid$slambda, 'StudentResultDao_JdbcImpl$existsByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StudentResultDao_JdbcImpl, 'StudentResultDao_JdbcImpl', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StudentResultDao_Repo$insertListAsync$slambda, 'StudentResultDao_Repo$insertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StudentResultDao_Repo$upsertAsync$slambda, 'StudentResultDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByClazzAndStudentCOROUTINE$402, '$findByClazzAndStudentCOROUTINE$402', classMeta, CoroutineImpl); setMetadataFor($findUidBySourcedIdCOROUTINE$403, '$findUidBySourcedIdCOROUTINE$403', classMeta, CoroutineImpl); setMetadataFor($existsByUidCOROUTINE$404, '$existsByUidCOROUTINE$404', classMeta, CoroutineImpl); setMetadataFor(StudentResultDao_Repo, 'StudentResultDao_Repo', classMeta, StudentResultDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(SyncNodeDao, 'SyncNodeDao', classMeta, VOID, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda, 'SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SyncNodeDao_JdbcImpl, 'SyncNodeDao_JdbcImpl', classMeta, SyncNodeDao, VOID, VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao, 'SystemPermissionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor($upsertAsyncCOROUTINE$405, '$upsertAsyncCOROUTINE$405', classMeta, CoroutineImpl); setMetadataFor(SystemPermissionDao_DoorWrapper, 'SystemPermissionDao_DoorWrapper', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda, 'SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda, 'SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda, 'SystemPermissionDao_JdbcImpl$findByPersonUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda, 'SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_JdbcImpl, 'SystemPermissionDao_JdbcImpl', classMeta, SystemPermissionDao, VOID, VOID, VOID, VOID, [1, 2, 3]); setMetadataFor(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda, 'SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda, 'SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda, 'SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(SystemPermissionDao_Repo$upsertAsync$slambda, 'SystemPermissionDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllByPersonUidCOROUTINE$406, '$findAllByPersonUidCOROUTINE$406', classMeta, CoroutineImpl); setMetadataFor($findAllByPersonUidEntitiesCOROUTINE$407, '$findAllByPersonUidEntitiesCOROUTINE$407', classMeta, CoroutineImpl); setMetadataFor($findByPersonUidCOROUTINE$408, '$findByPersonUidCOROUTINE$408', classMeta, CoroutineImpl); setMetadataFor($personHasSystemPermissionCOROUTINE$409, '$personHasSystemPermissionCOROUTINE$409', classMeta, CoroutineImpl); setMetadataFor($personHasSystemPermissionPairCOROUTINE$410, '$personHasSystemPermissionPairCOROUTINE$410', classMeta, CoroutineImpl); setMetadataFor(SystemPermissionDao_Repo, 'SystemPermissionDao_Repo', classMeta, SystemPermissionDao, [SystemPermissionDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [2, 1, 3]); setMetadataFor(TransferJobDao, 'TransferJobDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda, 'TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findByUid$slambda, 'TransferJobDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda, 'TransferJobDao_JdbcImpl$findByUidAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(TransferJobDao_JdbcImpl$updateStatus$slambda, 'TransferJobDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$getJobStatus$slambda, 'TransferJobDao_JdbcImpl$getJobStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda, 'TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda, 'TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda, 'TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda, 'TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertCOROUTINE$411, '$insertCOROUTINE$411', classMeta, CoroutineImpl); setMetadataFor($updateStatusCOROUTINE$412, '$updateStatusCOROUTINE$412', classMeta, CoroutineImpl); setMetadataFor(TransferJobDao_JdbcImpl, 'TransferJobDao_JdbcImpl', classMeta, TransferJobDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobErrorDao, 'TransferJobErrorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobErrorDao_JdbcImpl$findByJobId$slambda, 'TransferJobErrorDao_JdbcImpl$findByJobId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda, 'TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($dismissErrorByJobIdCOROUTINE$413, '$dismissErrorByJobIdCOROUTINE$413', classMeta, CoroutineImpl); setMetadataFor(TransferJobErrorDao_JdbcImpl, 'TransferJobErrorDao_JdbcImpl', classMeta, TransferJobErrorDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobItemDao, 'TransferJobItemDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda, 'TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$findByJobUid$slambda, 'TransferJobItemDao_JdbcImpl$findByJobUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda, 'TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda, 'TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatus$slambda, 'TransferJobItemDao_JdbcImpl$updateStatus$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda, 'TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda, 'TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda, 'TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda, 'TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertCOROUTINE$414, '$insertCOROUTINE$414', classMeta, CoroutineImpl); setMetadataFor($updateTransferredProgressCOROUTINE$415, '$updateTransferredProgressCOROUTINE$415', classMeta, CoroutineImpl); setMetadataFor($updateStatusCOROUTINE$416, '$updateStatusCOROUTINE$416', classMeta, CoroutineImpl); setMetadataFor($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417, '$insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417', classMeta, CoroutineImpl); setMetadataFor($updateStatusIfNotCompleteForAllInJobCOROUTINE$418, '$updateStatusIfNotCompleteForAllInJobCOROUTINE$418', classMeta, CoroutineImpl); setMetadataFor(TransferJobItemDao_JdbcImpl, 'TransferJobItemDao_JdbcImpl', classMeta, TransferJobItemDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(UserSessionDao, 'UserSessionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor($insertSessionCOROUTINE$419, '$insertSessionCOROUTINE$419', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_DoorWrapper, 'UserSessionDao_DoorWrapper', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda, 'UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda, 'UserSessionDao_JdbcImpl$findSessionsByPerson$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda, 'UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda, 'UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$endSession$slambda, 'UserSessionDao_JdbcImpl$endSession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findByUidLive$slambda, 'UserSessionDao_JdbcImpl$findByUidLive$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_JdbcImpl$endOtherSessions$slambda, 'UserSessionDao_JdbcImpl$endOtherSessions$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda, 'UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda, 'UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda, 'UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($insertSessionCOROUTINE$420, '$insertSessionCOROUTINE$420', classMeta, CoroutineImpl); setMetadataFor($endSessionCOROUTINE$421, '$endSessionCOROUTINE$421', classMeta, CoroutineImpl); setMetadataFor($endOtherSessionsCOROUTINE$422, '$endOtherSessionsCOROUTINE$422', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_JdbcImpl, 'UserSessionDao_JdbcImpl', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(UserSessionDao_Repo$insertSession$slambda, 'UserSessionDao_Repo$insertSession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_Repo$endSession$slambda, 'UserSessionDao_Repo$endSession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(UserSessionDao_Repo$endOtherSessions$slambda, 'UserSessionDao_Repo$endOtherSessions$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($insertSessionCOROUTINE$423, '$insertSessionCOROUTINE$423', classMeta, CoroutineImpl); setMetadataFor($findSessionsByPersonCOROUTINE$424, '$findSessionsByPersonCOROUTINE$424', classMeta, CoroutineImpl); setMetadataFor($findAllLocalSessionsAsyncCOROUTINE$425, '$findAllLocalSessionsAsyncCOROUTINE$425', classMeta, CoroutineImpl); setMetadataFor($findLocalSessionByUsernameCOROUTINE$426, '$findLocalSessionByUsernameCOROUTINE$426', classMeta, CoroutineImpl); setMetadataFor($countAllLocalSessionsAsyncCOROUTINE$427, '$countAllLocalSessionsAsyncCOROUTINE$427', classMeta, CoroutineImpl); setMetadataFor($findActiveNodeIdsByPersonUidsCOROUTINE$428, '$findActiveNodeIdsByPersonUidsCOROUTINE$428', classMeta, CoroutineImpl); setMetadataFor($findActiveNodesIdsByGroupUidsCOROUTINE$429, '$findActiveNodesIdsByGroupUidsCOROUTINE$429', classMeta, CoroutineImpl); setMetadataFor($countActiveSessionsForUserAndNodeCOROUTINE$430, '$countActiveSessionsForUserAndNodeCOROUTINE$430', classMeta, CoroutineImpl); setMetadataFor(UserSessionDao_Repo, 'UserSessionDao_Repo', classMeta, UserSessionDao, VOID, VOID, VOID, VOID, [1, 0, 4, 5, 2]); setMetadataFor(ActivityEntityDao, 'ActivityEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_DoorWrapper, 'ActivityEntityDao_DoorWrapper', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda, 'ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda, 'ActivityEntityDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateIfMoreInfoChangedCOROUTINE$431, '$updateIfMoreInfoChangedCOROUTINE$431', classMeta, CoroutineImpl); setMetadataFor($updateIfNotYetDefinedCOROUTINE$432, '$updateIfNotYetDefinedCOROUTINE$432', classMeta, CoroutineImpl); setMetadataFor(ActivityEntityDao_JdbcImpl, 'ActivityEntityDao_JdbcImpl', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda, 'ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda, 'ActivityEntityDao_Repo$updateIfNotYetDefined$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$433, '$findByUidAsyncCOROUTINE$433', classMeta, CoroutineImpl); setMetadataFor(ActivityEntityDao_Repo, 'ActivityEntityDao_Repo', classMeta, ActivityEntityDao, VOID, VOID, VOID, VOID, [1, 3, 6]); setMetadataFor(ActivityExtensionDao, 'ActivityExtensionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_DoorWrapper, 'ActivityExtensionDao_DoorWrapper', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda, 'ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_JdbcImpl, 'ActivityExtensionDao_JdbcImpl', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityExtensionDao_Repo$upsertListAsync$slambda, 'ActivityExtensionDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllByActivityUidCOROUTINE$434, '$findAllByActivityUidCOROUTINE$434', classMeta, CoroutineImpl); setMetadataFor(ActivityExtensionDao_Repo, 'ActivityExtensionDao_Repo', classMeta, ActivityExtensionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao, 'ActivityInteractionDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_DoorWrapper, 'ActivityInteractionDao_DoorWrapper', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda, 'ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda, 'ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_JdbcImpl, 'ActivityInteractionDao_JdbcImpl', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda, 'ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435, '$findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435', classMeta, CoroutineImpl); setMetadataFor($findAllByActivityUidAsyncCOROUTINE$436, '$findAllByActivityUidAsyncCOROUTINE$436', classMeta, CoroutineImpl); setMetadataFor(ActivityInteractionDao_Repo, 'ActivityInteractionDao_Repo', classMeta, ActivityInteractionDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao, 'ActivityLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_DoorWrapper, 'ActivityLangMapEntryDao_DoorWrapper', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda, 'ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda, 'ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($upsertIfInteractionEntityExistsCOROUTINE$437, '$upsertIfInteractionEntityExistsCOROUTINE$437', classMeta, CoroutineImpl); setMetadataFor($updateIfChangedCOROUTINE$438, '$updateIfChangedCOROUTINE$438', classMeta, CoroutineImpl); setMetadataFor(ActivityLangMapEntryDao_JdbcImpl, 'ActivityLangMapEntryDao_JdbcImpl', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActivityLangMapEntryDao_Repo$upsertList$slambda, 'ActivityLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda, 'ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda, 'ActivityLangMapEntryDao_Repo$updateIfChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllByActivityUidCOROUTINE$439, '$findAllByActivityUidCOROUTINE$439', classMeta, CoroutineImpl); setMetadataFor(ActivityLangMapEntryDao_Repo, 'ActivityLangMapEntryDao_Repo', classMeta, ActivityLangMapEntryDao, VOID, VOID, VOID, VOID, [1, 7, 4]); setMetadataFor(ActorDao, 'ActorDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor($insertOrIgnoreListAsyncCOROUTINE$440, '$insertOrIgnoreListAsyncCOROUTINE$440', classMeta, CoroutineImpl); setMetadataFor($upsertListAsyncCOROUTINE$441, '$upsertListAsyncCOROUTINE$441', classMeta, CoroutineImpl); setMetadataFor(ActorDao_DoorWrapper, 'ActorDao_DoorWrapper', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$updateIfNameChanged$slambda, 'ActorDao_JdbcImpl$updateIfNameChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$findByUidAsync$slambda, 'ActorDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda, 'ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda, 'ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(ActorDao_JdbcImpl$findGroupMembers$slambda, 'ActorDao_JdbcImpl$findGroupMembers$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateIfNameChangedCOROUTINE$442, '$updateIfNameChangedCOROUTINE$442', classMeta, CoroutineImpl); setMetadataFor(ActorDao_JdbcImpl, 'ActorDao_JdbcImpl', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(ActorDao_Repo$insertOrIgnoreListAsync$slambda, 'ActorDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActorDao_Repo$upsertListAsync$slambda, 'ActorDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(ActorDao_Repo$updateIfNameChanged$slambda, 'ActorDao_Repo$updateIfNameChanged$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$443, '$findByUidAsyncCOROUTINE$443', classMeta, CoroutineImpl); setMetadataFor($findByUidAndPersonUidAsyncCOROUTINE$444, '$findByUidAndPersonUidAsyncCOROUTINE$444', classMeta, CoroutineImpl); setMetadataFor($findUidAndEtagByListAsyncCOROUTINE$445, '$findUidAndEtagByListAsyncCOROUTINE$445', classMeta, CoroutineImpl); setMetadataFor($findGroupMembersCOROUTINE$446, '$findGroupMembersCOROUTINE$446', classMeta, CoroutineImpl); setMetadataFor(ActorDao_Repo, 'ActorDao_Repo', classMeta, ActorDao, VOID, VOID, VOID, VOID, [1, 3, 2]); setMetadataFor(GroupMemberActorJoinDao, 'GroupMemberActorJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_DoorWrapper, 'GroupMemberActorJoinDao_DoorWrapper', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateLastModifiedTimeIfNeededAsyncCOROUTINE$447, '$updateLastModifiedTimeIfNeededAsyncCOROUTINE$447', classMeta, CoroutineImpl); setMetadataFor(GroupMemberActorJoinDao_JdbcImpl, 'GroupMemberActorJoinDao_JdbcImpl', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda, 'GroupMemberActorJoinDao_Repo$upsertListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda, 'GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(GroupMemberActorJoinDao_Repo, 'GroupMemberActorJoinDao_Repo', classMeta, GroupMemberActorJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StateDeleteCommandDao, 'StateDeleteCommandDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_DoorWrapper, 'StateDeleteCommandDao_DoorWrapper', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_JdbcImpl, 'StateDeleteCommandDao_JdbcImpl', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateDeleteCommandDao_Repo$insertAsync$slambda, 'StateDeleteCommandDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StateDeleteCommandDao_Repo, 'StateDeleteCommandDao_Repo', classMeta, StateDeleteCommandDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao, 'StateEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_DoorWrapper, 'StateEntityDao_DoorWrapper', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl$findByActorAndHash$slambda, 'StateEntityDao_JdbcImpl$findByActorAndHash$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda, 'StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl$getStateIds$slambda, 'StateEntityDao_JdbcImpl$getStateIds$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl$getH5PPreload$slambda, 'StateEntityDao_JdbcImpl$getH5PPreload$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StateEntityDao_JdbcImpl, 'StateEntityDao_JdbcImpl', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StateEntityDao_Repo$upsertAsync$slambda, 'StateEntityDao_Repo$upsertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByActorAndHashCOROUTINE$448, '$findByActorAndHashCOROUTINE$448', classMeta, CoroutineImpl); setMetadataFor($findByAgentAndActivityCOROUTINE$449, '$findByAgentAndActivityCOROUTINE$449', classMeta, CoroutineImpl); setMetadataFor($getStateIdsCOROUTINE$450, '$getStateIdsCOROUTINE$450', classMeta, CoroutineImpl); setMetadataFor($getH5PPreloadCOROUTINE$451, '$getH5PPreloadCOROUTINE$451', classMeta, CoroutineImpl); setMetadataFor(StateEntityDao_Repo, 'StateEntityDao_Repo', classMeta, StateEntityDao, VOID, VOID, VOID, VOID, [1, 4, 6, 5]); setMetadataFor(StatementContextActivityJoinDao, 'StatementContextActivityJoinDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_DoorWrapper, 'StatementContextActivityJoinDao_DoorWrapper', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda, 'StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementContextActivityJoinDao_JdbcImpl, 'StatementContextActivityJoinDao_JdbcImpl', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findAllByStatementIdCOROUTINE$452, '$findAllByStatementIdCOROUTINE$452', classMeta, CoroutineImpl); setMetadataFor(StatementContextActivityJoinDao_Repo, 'StatementContextActivityJoinDao_Repo', classMeta, StatementContextActivityJoinDao, VOID, VOID, VOID, VOID, [1, 3]); setMetadataFor(StatementDao, 'StatementDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_DoorWrapper, 'StatementDao_DoorWrapper', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_JdbcImpl$getOneStatement$slambda$slambda, 'StatementDao_JdbcImpl$getOneStatement$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda, 'StatementDao_JdbcImpl$getListResults$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getListResults$o$countRows$slambda, 'StatementDao_JdbcImpl$getListResults$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda, 'StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getOneStatement$slambda, 'StatementDao_JdbcImpl$getOneStatement$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_JdbcImpl$runReportQuery$slambda, 'StatementDao_JdbcImpl$runReportQuery$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getResults$slambda, 'StatementDao_JdbcImpl$getResults$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$getListResults$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$getStatements$slambda, 'StatementDao_JdbcImpl$getStatements$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findById$slambda, 'StatementDao_JdbcImpl$findById$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda, 'StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda, 'StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda, 'StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda, 'StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_JdbcImpl$findResumableRegistration$slambda, 'StatementDao_JdbcImpl$findResumableRegistration$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda, 'StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findPersonsWithAttempts$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda, 'StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda, 'StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findStatementsBySession$1, VOID, classMeta, DoorLimitOffsetPagingSource, VOID, VOID, VOID, VOID, [2, 0, 1]); setMetadataFor(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda, 'StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda, 'StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda, 'StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_JdbcImpl, 'StatementDao_JdbcImpl', classMeta, StatementDao, VOID, VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda, 'StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(StatementDao_Repo$findPersonsWithAttempts$slambda, 'StatementDao_Repo$findPersonsWithAttempts$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$findSessionsByPersonAndContent$slambda, 'StatementDao_Repo$findSessionsByPersonAndContent$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$findStatementsBySession$slambda, 'StatementDao_Repo$findStatementsBySession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementDao_Repo$getUniqueVerbsForSession$slambda, 'StatementDao_Repo$getUniqueVerbsForSession$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($runReportQueryCOROUTINE$453, '$runReportQueryCOROUTINE$453', classMeta, CoroutineImpl); setMetadataFor($getResultsCOROUTINE$454, '$getResultsCOROUTINE$454', classMeta, CoroutineImpl); setMetadataFor($getStatementsCOROUTINE$455, '$getStatementsCOROUTINE$455', classMeta, CoroutineImpl); setMetadataFor($findByIdCOROUTINE$456, '$findByIdCOROUTINE$456', classMeta, CoroutineImpl); setMetadataFor($findStatusStatementsByContentEntryUidCOROUTINE$457, '$findStatusStatementsByContentEntryUidCOROUTINE$457', classMeta, CoroutineImpl); setMetadataFor($findStatusStatementByParentContentEntryUidCOROUTINE$458, '$findStatusStatementByParentContentEntryUidCOROUTINE$458', classMeta, CoroutineImpl); setMetadataFor($findStatusStatementsForStudentByClazzUidCOROUTINE$459, '$findStatusStatementsForStudentByClazzUidCOROUTINE$459', classMeta, CoroutineImpl); setMetadataFor($findStatusForStudentsInClazzStatementsCOROUTINE$460, '$findStatusForStudentsInClazzStatementsCOROUTINE$460', classMeta, CoroutineImpl); setMetadataFor($findStatusForStudentsInClazzByUidListCOROUTINE$461, '$findStatusForStudentsInClazzByUidListCOROUTINE$461', classMeta, CoroutineImpl); setMetadataFor($findActorEntitiesForStudentInClazzByUidListCOROUTINE$462, '$findActorEntitiesForStudentInClazzByUidListCOROUTINE$462', classMeta, CoroutineImpl); setMetadataFor($findStatusForStudentsInClazzCOROUTINE$463, '$findStatusForStudentsInClazzCOROUTINE$463', classMeta, CoroutineImpl); setMetadataFor($findResumableRegistrationCOROUTINE$464, '$findResumableRegistrationCOROUTINE$464', classMeta, CoroutineImpl); setMetadataFor($findPersonsWithAttemptsStatementsCOROUTINE$465, '$findPersonsWithAttemptsStatementsCOROUTINE$465', classMeta, CoroutineImpl); setMetadataFor($findSessionsByPersonAndContentStatementsCOROUTINE$466, '$findSessionsByPersonAndContentStatementsCOROUTINE$466', classMeta, CoroutineImpl); setMetadataFor($findActivityEntryLangMapsForStatementsBySessionCOROUTINE$467, '$findActivityEntryLangMapsForStatementsBySessionCOROUTINE$467', classMeta, CoroutineImpl); setMetadataFor($scoreOrProgressDataExistsForContentCOROUTINE$468, '$scoreOrProgressDataExistsForContentCOROUTINE$468', classMeta, CoroutineImpl); setMetadataFor($findByUidWithActivityAsyncCOROUTINE$469, '$findByUidWithActivityAsyncCOROUTINE$469', classMeta, CoroutineImpl); setMetadataFor(StatementDao_Repo, 'StatementDao_Repo', classMeta, StatementDao, [StatementDao, RepositoryDaoWithFlowHelper], VOID, VOID, VOID, [1, 2, 3, 10]); setMetadataFor(StatementEntityJsonDao, 'StatementEntityJsonDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_DoorWrapper, 'StatementEntityJsonDao_DoorWrapper', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(StatementEntityJsonDao_JdbcImpl$getStatements$slambda, 'StatementEntityJsonDao_JdbcImpl$getStatements$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(StatementEntityJsonDao_JdbcImpl, 'StatementEntityJsonDao_JdbcImpl', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda, 'StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($getStatementsCOROUTINE$470, '$getStatementsCOROUTINE$470', classMeta, CoroutineImpl); setMetadataFor(StatementEntityJsonDao_Repo, 'StatementEntityJsonDao_Repo', classMeta, StatementEntityJsonDao, VOID, VOID, VOID, VOID, [1, 2]); setMetadataFor(VerbDao, 'VerbDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_DoorWrapper, 'VerbDao_DoorWrapper', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl$findByUid$slambda, 'VerbDao_JdbcImpl$findByUid$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl$findByVerbUrl$slambda, 'VerbDao_JdbcImpl$findByVerbUrl$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_JdbcImpl, 'VerbDao_JdbcImpl', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbDao_Repo$insertOrIgnoreAsync$slambda, 'VerbDao_Repo$insertOrIgnoreAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidCOROUTINE$471, '$findByUidCOROUTINE$471', classMeta, CoroutineImpl); setMetadataFor($findByVerbUrlCOROUTINE$472, '$findByVerbUrlCOROUTINE$472', classMeta, CoroutineImpl); setMetadataFor(VerbDao_Repo, 'VerbDao_Repo', classMeta, VerbDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao, 'VerbLangMapEntryDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_DoorWrapper, 'VerbLangMapEntryDao_DoorWrapper', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda, 'VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_JdbcImpl, 'VerbLangMapEntryDao_JdbcImpl', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(VerbLangMapEntryDao_Repo$upsertList$slambda, 'VerbLangMapEntryDao_Repo$upsertList$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByVerbUidAsyncCOROUTINE$473, '$findByVerbUidAsyncCOROUTINE$473', classMeta, CoroutineImpl); setMetadataFor(VerbLangMapEntryDao_Repo, 'VerbLangMapEntryDao_Repo', classMeta, VerbLangMapEntryDao, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao, 'XapiSessionEntityDao', classMeta, VOID, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor($insertAsyncCOROUTINE$474, '$insertAsyncCOROUTINE$474', classMeta, CoroutineImpl); setMetadataFor(XapiSessionEntityDao_DoorWrapper, 'XapiSessionEntityDao_DoorWrapper', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1, VOID, classMeta, EntityInsertionAdapter, VOID, VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda, 'XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda, 'XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [1]); setMetadataFor($updateLatestAsCompleteCOROUTINE$475, '$updateLatestAsCompleteCOROUTINE$475', classMeta, CoroutineImpl); setMetadataFor(XapiSessionEntityDao_JdbcImpl, 'XapiSessionEntityDao_JdbcImpl', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(XapiSessionEntityDao_Repo$insertAsync$slambda, 'XapiSessionEntityDao_Repo$insertAsync$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda, 'XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda', classMeta, CoroutineImpl, [CoroutineImpl], VOID, VOID, VOID, [0]); setMetadataFor($findByUidAsyncCOROUTINE$476, '$findByUidAsyncCOROUTINE$476', classMeta, CoroutineImpl); setMetadataFor($findMostRecentSessionByActorAndActivityCOROUTINE$477, '$findMostRecentSessionByActorAndActivityCOROUTINE$477', classMeta, CoroutineImpl); setMetadataFor(XapiSessionEntityDao_Repo, 'XapiSessionEntityDao_Repo', classMeta, XapiSessionEntityDao, VOID, VOID, VOID, VOID, [1, 3, 5]); setMetadataFor(PermissionFlags, 'PermissionFlags', objectMeta); setMetadataFor(ClazzAssignmentDaoCommon, 'ClazzAssignmentDaoCommon', objectMeta); setMetadataFor(ClazzDaoCommon, 'ClazzDaoCommon', objectMeta); setMetadataFor(ClazzEnrolmentDaoCommon, 'ClazzEnrolmentDaoCommon', objectMeta); setMetadataFor(ContentEntryDaoCommon, 'ContentEntryDaoCommon', objectMeta); setMetadataFor(CourseAssignmentMarkDaoCommon, 'CourseAssignmentMarkDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$478, '$deactivateByUidsCOROUTINE$478', classMeta, CoroutineImpl); setMetadataFor(CourseGroupSetDaoConstants, 'CourseGroupSetDaoConstants', objectMeta); setMetadataFor(LanguageDaoCommon, 'LanguageDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$479, '$deactivateByUidsCOROUTINE$479', classMeta, CoroutineImpl); setMetadataFor(PersonDaoCommon, 'PersonDaoCommon', objectMeta); setMetadataFor($deactivateByUidsCOROUTINE$480, '$deactivateByUidsCOROUTINE$480', classMeta, CoroutineImpl); setMetadataFor(ActorUidEtagAndLastMod, 'ActorUidEtagAndLastMod', classMeta, VOID, VOID, ActorUidEtagAndLastMod); setMetadataFor(Companion_0, 'Companion', objectMeta); setMetadataFor($serializer, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentPermissionAndActiveUserSubmitterUid, 'AssignmentPermissionAndActiveUserSubmitterUid', classMeta, VOID, VOID, AssignmentPermissionAndActiveUserSubmitterUid, VOID, {0: $serializer_getInstance}); setMetadataFor(Companion_1, 'Companion', objectMeta); setMetadataFor($serializer_0, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterUidAndName, 'AssignmentSubmitterUidAndName', classMeta, VOID, VOID, AssignmentSubmitterUidAndName, VOID, {0: $serializer_getInstance_0}); setMetadataFor(Companion_2, 'Companion', objectMeta); setMetadataFor($serializer_1, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(BlockStatus, 'BlockStatus', classMeta, VOID, VOID, BlockStatus, VOID, {0: $serializer_getInstance_1}); setMetadataFor(Companion_3, 'Companion', objectMeta); setMetadataFor($serializer_2, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAndDetailPermissions, 'ClazzAndDetailPermissions', classMeta, VOID, VOID, ClazzAndDetailPermissions, VOID, {0: $serializer_getInstance_2}); setMetadataFor(ClazzAndDisplayDetails, 'ClazzAndDisplayDetails', classMeta, VOID, VOID, ClazzAndDisplayDetails); setMetadataFor(Companion_4, 'Companion', objectMeta); setMetadataFor($serializer_3, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentAndBlock, 'ClazzAssignmentAndBlock', classMeta, VOID, VOID, ClazzAssignmentAndBlock, VOID, {0: $serializer_getInstance_3}); setMetadataFor(Companion_5, 'Companion', objectMeta); setMetadataFor($serializer_4, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentAndPerson, 'ClazzEnrolmentAndPerson', classMeta, VOID, VOID, ClazzEnrolmentAndPerson, VOID, {0: $serializer_getInstance_4}); setMetadataFor(Companion_6, 'Companion', objectMeta); setMetadataFor($serializer_5, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentAndPersonDetailDetails, 'ClazzEnrolmentAndPersonDetailDetails', classMeta, VOID, VOID, ClazzEnrolmentAndPersonDetailDetails, VOID, {0: $serializer_getInstance_5}); setMetadataFor(Companion_7, 'Companion', objectMeta); setMetadataFor($serializer_6, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzNameAndTerminology, 'ClazzNameAndTerminology', classMeta, VOID, VOID, ClazzNameAndTerminology, VOID, {0: $serializer_getInstance_6}); setMetadataFor(Companion_8, 'Companion', objectMeta); setMetadataFor($serializer_7, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CommentsAndName, 'CommentsAndName', classMeta, VOID, VOID, CommentsAndName, VOID, {0: $serializer_getInstance_7}); setMetadataFor(Companion_9, 'Companion', objectMeta); setMetadataFor($serializer_8, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndContentJob, 'ContentEntryAndContentJob', classMeta, VOID, VOID, ContentEntryAndContentJob, VOID, {0: $serializer_getInstance_8}); setMetadataFor(Companion_10, 'Companion', objectMeta); setMetadataFor($serializer_9, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndDetail, 'ContentEntryAndDetail', classMeta, VOID, VOID, ContentEntryAndDetail, VOID, {0: $serializer_getInstance_9}); setMetadataFor(Companion_11, 'Companion', objectMeta); setMetadataFor($serializer_10, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndLanguage, 'ContentEntryAndLanguage', classMeta, VOID, VOID, ContentEntryAndLanguage, VOID, {0: $serializer_getInstance_10}); setMetadataFor(ContentEntryAndListDetail, 'ContentEntryAndListDetail', classMeta, VOID, VOID, ContentEntryAndListDetail); setMetadataFor(Companion_12, 'Companion', objectMeta); setMetadataFor($serializer_11, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryAndPicture, 'ContentEntryAndPicture', classMeta, VOID, VOID, ContentEntryAndPicture, VOID, {0: $serializer_getInstance_11}); setMetadataFor(Companion_13, 'Companion', objectMeta); setMetadataFor($serializer_12, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryImportJobProgress, 'ContentEntryImportJobProgress', classMeta, VOID, VOID, ContentEntryImportJobProgress, VOID, {0: $serializer_getInstance_12}); setMetadataFor(Companion_14, 'Companion', objectMeta); setMetadataFor($serializer_13, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentMarkAndMarkerName, 'CourseAssignmentMarkAndMarkerName', classMeta, VOID, VOID, CourseAssignmentMarkAndMarkerName, VOID, {0: $serializer_getInstance_13}); setMetadataFor(Companion_15, 'Companion', objectMeta); setMetadataFor($serializer_14, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmissionFileAndTransferJob, 'CourseAssignmentSubmissionFileAndTransferJob', classMeta, VOID, VOID, CourseAssignmentSubmissionFileAndTransferJob, VOID, {0: $serializer_getInstance_14}); setMetadataFor(Companion_16, 'Companion', objectMeta); setMetadataFor($serializer_15, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndAssignment, 'CourseBlockAndAssignment', classMeta, VOID, VOID, CourseBlockAndAssignment, VOID, {0: $serializer_getInstance_15}); setMetadataFor(Companion_17, 'Companion', objectMeta); setMetadataFor($serializer_16, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndDbEntities, 'CourseBlockAndDbEntities', classMeta, VOID, VOID, CourseBlockAndDbEntities, VOID, {0: $serializer_getInstance_16}); setMetadataFor(Companion_18, 'Companion', objectMeta); setMetadataFor($serializer_17, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndDisplayDetails, 'CourseBlockAndDisplayDetails', classMeta, VOID, VOID, CourseBlockAndDisplayDetails, VOID, {0: $serializer_getInstance_17}); setMetadataFor(Companion_19, 'Companion', objectMeta); setMetadataFor($serializer_18, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndEditEntities, 'CourseBlockAndEditEntities', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_18}); setMetadataFor(Companion_20, 'Companion', objectMeta); setMetadataFor($serializer_19, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndGradebookDisplayDetails, 'CourseBlockAndGradebookDisplayDetails', classMeta, VOID, VOID, CourseBlockAndGradebookDisplayDetails, VOID, {0: $serializer_getInstance_19}); setMetadataFor(Companion_21, 'Companion', objectMeta); setMetadataFor($serializer_20, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockAndPicture, 'CourseBlockAndPicture', classMeta, VOID, VOID, CourseBlockAndPicture, VOID, {0: $serializer_getInstance_20}); setMetadataFor(Companion_22, 'Companion', objectMeta); setMetadataFor($serializer_21, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockUidAndClazzUid, 'CourseBlockUidAndClazzUid', classMeta, VOID, VOID, CourseBlockUidAndClazzUid, VOID, {0: $serializer_getInstance_21}); setMetadataFor(Companion_23, 'Companion', objectMeta); setMetadataFor($serializer_22, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMemberAndPerson, 'CourseGroupMemberAndPerson', classMeta, VOID, VOID, CourseGroupMemberAndPerson, VOID, {0: $serializer_getInstance_22}); setMetadataFor(Companion_24, 'Companion', objectMeta); setMetadataFor($serializer_23, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseNameAndPersonName, 'CourseNameAndPersonName', classMeta, VOID, VOID, CourseNameAndPersonName, VOID, {0: $serializer_getInstance_23}); setMetadataFor(Companion_25, 'Companion', objectMeta); setMetadataFor($serializer_24, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CoursePermissionAndEnrolment, 'CoursePermissionAndEnrolment', classMeta, VOID, VOID, CoursePermissionAndEnrolment, VOID, {0: $serializer_getInstance_24}); setMetadataFor(CoursePermissionAndListDetail, 'CoursePermissionAndListDetail', classMeta, VOID, VOID, CoursePermissionAndListDetail); setMetadataFor(Companion_26, 'Companion', objectMeta); setMetadataFor($serializer_25, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPostAndPosterNames, 'DiscussionPostAndPosterNames', classMeta, VOID, VOID, DiscussionPostAndPosterNames, VOID, {0: $serializer_getInstance_25}); setMetadataFor(Companion_27, 'Companion', objectMeta); setMetadataFor($serializer_26, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EditAndViewPermission, 'EditAndViewPermission', classMeta, VOID, VOID, EditAndViewPermission, VOID, {0: $serializer_getInstance_26}); setMetadataFor(Companion_28, 'Companion', objectMeta); setMetadataFor($serializer_27, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EnrolmentRequestAndCoursePic, 'EnrolmentRequestAndCoursePic', classMeta, VOID, VOID, EnrolmentRequestAndCoursePic, VOID, {0: $serializer_getInstance_27}); setMetadataFor(EnrolmentRequestAndPersonDetails, 'EnrolmentRequestAndPersonDetails', classMeta, VOID, VOID, EnrolmentRequestAndPersonDetails); setMetadataFor(Companion_29, 'Companion', objectMeta); setMetadataFor($serializer_28, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(MessageAndOtherPerson, 'MessageAndOtherPerson', classMeta, VOID, VOID, MessageAndOtherPerson, VOID, {0: $serializer_getInstance_28}); setMetadataFor(Companion_30, 'Companion', objectMeta); setMetadataFor($serializer_29, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OfflineItemAndState, 'OfflineItemAndState', classMeta, VOID, VOID, OfflineItemAndState, VOID, {0: $serializer_getInstance_29}); setMetadataFor(Companion_31, 'Companion', objectMeta); setMetadataFor($serializer_30, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PermissionPair, 'PermissionPair', classMeta, VOID, VOID, PermissionPair, VOID, {0: $serializer_getInstance_30}); setMetadataFor(Companion_32, 'Companion', objectMeta); setMetadataFor($serializer_31, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PermissionTriple, 'PermissionTriple', classMeta, VOID, VOID, PermissionTriple, VOID, {0: $serializer_getInstance_31}); setMetadataFor(Companion_33, 'Companion', objectMeta); setMetadataFor($serializer_32, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndClazzLogAttendanceRecord, 'PersonAndClazzLogAttendanceRecord', classMeta, VOID, VOID, PersonAndClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_32}); setMetadataFor(Companion_34, 'Companion', objectMeta); setMetadataFor($serializer_33, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndClazzMemberListDetails, 'PersonAndClazzMemberListDetails', classMeta, VOID, VOID, PersonAndClazzMemberListDetails, VOID, {0: $serializer_getInstance_33}); setMetadataFor(PersonAndListDisplayDetails, 'PersonAndListDisplayDetails', classMeta, VOID, VOID, PersonAndListDisplayDetails); setMetadataFor(Companion_35, 'Companion', objectMeta); setMetadataFor($serializer_34, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndPicture, 'PersonAndPicture', classMeta, VOID, VOID, PersonAndPicture, VOID, {0: $serializer_getInstance_34}); setMetadataFor(Companion_36, 'Companion', objectMeta); setMetadataFor($serializer_35, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndPictureAndNumAttempts, 'PersonAndPictureAndNumAttempts', classMeta, VOID, VOID, PersonAndPictureAndNumAttempts, VOID, {0: $serializer_getInstance_35}); setMetadataFor(AttemptsPersonListConst, 'AttemptsPersonListConst', objectMeta); setMetadataFor(Companion_37, 'Companion', objectMeta); setMetadataFor($serializer_36, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonNames, 'PersonNames', classMeta, VOID, VOID, PersonNames, VOID, {0: $serializer_getInstance_36}); setMetadataFor(SiteTermsAndLangName, 'SiteTermsAndLangName', classMeta); setMetadataFor(Companion_38, 'Companion', objectMeta); setMetadataFor($serializer_37, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementReportRow, 'StatementReportRow', classMeta, VOID, VOID, StatementReportRow, VOID, {0: $serializer_getInstance_37}); setMetadataFor(Companion_39, 'Companion', objectMeta); setMetadataFor($serializer_38, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StudentAndBlockStatuses, 'StudentAndBlockStatuses', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_38}); setMetadataFor(StudentResultAndCourseBlockSourcedId, 'StudentResultAndCourseBlockSourcedId', classMeta, VOID, VOID, StudentResultAndCourseBlockSourcedId); setMetadataFor(Companion_40, 'Companion', objectMeta); setMetadataFor($serializer_39, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SubmissionAndFiles, 'SubmissionAndFiles', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_39}); setMetadataFor(Companion_41, 'Companion', objectMeta); setMetadataFor($serializer_40, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobAndTotals, 'TransferJobAndTotals', classMeta, VOID, VOID, TransferJobAndTotals, VOID, {0: $serializer_getInstance_40}); setMetadataFor(Companion_42, 'Companion', objectMeta); setMetadataFor(TransferJobItemStatus, 'TransferJobItemStatus', classMeta, Enum); setMetadataFor(Companion_43, 'Companion', objectMeta); setMetadataFor($serializer_41, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SessionTimeAndProgressInfo, 'SessionTimeAndProgressInfo', classMeta, VOID, VOID, SessionTimeAndProgressInfo, VOID, {0: $serializer_getInstance_41}); setMetadataFor(SessionTimeAndProgressInfoConst, 'SessionTimeAndProgressInfoConst', objectMeta); setMetadataFor(StateIdAndLastModified, 'StateIdAndLastModified', classMeta, VOID, VOID, StateIdAndLastModified); setMetadataFor(Companion_44, 'Companion', objectMeta); setMetadataFor($serializer_42, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementAndActivity, 'StatementAndActivity', classMeta, VOID, VOID, StatementAndActivity, VOID, {0: $serializer_getInstance_42}); setMetadataFor(Companion_45, 'Companion', objectMeta); setMetadataFor($serializer_43, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityAndRelated, 'StatementEntityAndRelated', classMeta, VOID, VOID, StatementEntityAndRelated, VOID, {0: $serializer_getInstance_43}); setMetadataFor(Companion_46, 'Companion', objectMeta); setMetadataFor($serializer_44, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityAndVerb, 'StatementEntityAndVerb', classMeta, VOID, VOID, StatementEntityAndVerb, VOID, {0: $serializer_getInstance_44}); setMetadataFor(StatementConst, 'StatementConst', objectMeta); setMetadataFor(Companion_47, 'Companion', objectMeta); setMetadataFor($serializer_45, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbEntityAndName, 'VerbEntityAndName', classMeta, VOID, VOID, VerbEntityAndName, VOID, {0: $serializer_getInstance_45}); setMetadataFor(Companion_48, 'Companion', objectMeta); setMetadataFor($serializer_46, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentProgressSummary, 'AssignmentProgressSummary', classMeta, VOID, VOID, AssignmentProgressSummary, VOID, {0: $serializer_getInstance_46}); setMetadataFor(Companion_49, 'Companion', objectMeta); setMetadataFor($serializer_47, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterAndAllocations, 'AssignmentSubmitterAndAllocations', classMeta, VOID, VOID, AssignmentSubmitterAndAllocations, VOID, {0: $serializer_getInstance_47}); setMetadataFor(Companion_50, 'Companion', objectMeta); setMetadataFor($serializer_48, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AssignmentSubmitterSummary, 'AssignmentSubmitterSummary', classMeta, VOID, VOID, AssignmentSubmitterSummary, VOID, {0: $serializer_getInstance_48}); setMetadataFor(Companion_51, 'Companion', objectMeta); setMetadataFor($serializer_49, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(AverageCourseAssignmentMark, 'AverageCourseAssignmentMark', classMeta, VOID, VOID, AverageCourseAssignmentMark, VOID, {0: $serializer_getInstance_49}); setMetadataFor(Companion_52, 'Companion', objectMeta); setMetadataFor(CacheLockJoin, 'CacheLockJoin', classMeta, VOID, VOID, CacheLockJoin); setMetadataFor(Companion_53, 'Companion', objectMeta); setMetadataFor($serializer_50, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Clazz, 'Clazz', classMeta, VOID, VOID, Clazz, VOID, {0: $serializer_getInstance_50}); setMetadataFor(Companion_54, 'Companion', objectMeta); setMetadataFor($serializer_51, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignment, 'ClazzAssignment', classMeta, VOID, VOID, ClazzAssignment, VOID, {0: $serializer_getInstance_51}); setMetadataFor(Companion_55, 'Companion', objectMeta); setMetadataFor($serializer_52, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzAssignmentCourseBlockAndSubmitterUid, 'ClazzAssignmentCourseBlockAndSubmitterUid', classMeta, VOID, VOID, ClazzAssignmentCourseBlockAndSubmitterUid, VOID, {0: $serializer_getInstance_52}); setMetadataFor(Companion_56, 'Companion', objectMeta); setMetadataFor($serializer_53, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolment, 'ClazzEnrolment', classMeta, VOID, VOID, ClazzEnrolment, VOID, {0: $serializer_getInstance_53}); setMetadataFor(Companion_57, 'Companion', objectMeta); setMetadataFor($serializer_54, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentWithClazz, 'ClazzEnrolmentWithClazz', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithClazz, VOID, {0: $serializer_getInstance_54}); setMetadataFor(Companion_58, 'Companion', objectMeta); setMetadataFor($serializer_55, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentWithLeavingReason, 'ClazzEnrolmentWithLeavingReason', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithLeavingReason, VOID, {0: $serializer_getInstance_55}); setMetadataFor(Companion_59, 'Companion', objectMeta); setMetadataFor($serializer_56, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzEnrolmentWithPerson, 'ClazzEnrolmentWithPerson', classMeta, ClazzEnrolment, VOID, ClazzEnrolmentWithPerson, VOID, {0: $serializer_getInstance_56}); setMetadataFor(Companion_60, 'Companion', objectMeta); setMetadataFor($serializer_57, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzLog, 'ClazzLog', classMeta, VOID, VOID, ClazzLog, VOID, {0: $serializer_getInstance_57}); setMetadataFor(Companion_61, 'Companion', objectMeta); setMetadataFor($serializer_58, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzLogAttendanceRecord, 'ClazzLogAttendanceRecord', classMeta, VOID, VOID, ClazzLogAttendanceRecord, VOID, {0: $serializer_getInstance_58}); setMetadataFor(Companion_62, 'Companion', objectMeta); setMetadataFor($serializer_59, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzLogAttendanceRecordWithPerson, 'ClazzLogAttendanceRecordWithPerson', classMeta, ClazzLogAttendanceRecord, VOID, ClazzLogAttendanceRecordWithPerson, VOID, {0: $serializer_getInstance_59}); setMetadataFor(Companion_63, 'Companion', objectMeta); setMetadataFor($serializer_60, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzWithDisplayDetails, 'ClazzWithDisplayDetails', classMeta, Clazz, VOID, ClazzWithDisplayDetails, VOID, {0: $serializer_getInstance_60}); setMetadataFor(Companion_64, 'Companion', objectMeta); setMetadataFor($serializer_61, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzWithHolidayCalendarAndAndTerminology, 'ClazzWithHolidayCalendarAndAndTerminology', classMeta, Clazz, VOID, ClazzWithHolidayCalendarAndAndTerminology, VOID, {0: $serializer_getInstance_61}); setMetadataFor(Companion_65, 'Companion', objectMeta); setMetadataFor($serializer_62, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ClazzWithListDisplayDetails, 'ClazzWithListDisplayDetails', classMeta, Clazz, VOID, ClazzWithListDisplayDetails, VOID, {0: $serializer_getInstance_62}); setMetadataFor(Companion_66, 'Companion', objectMeta); setMetadataFor($serializer_63, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Comments, 'Comments', classMeta, VOID, VOID, Comments, VOID, {0: $serializer_getInstance_63}); setMetadataFor(Companion_67, 'Companion', objectMeta); setMetadataFor($serializer_64, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentCategory, 'ContentCategory', classMeta, VOID, VOID, ContentCategory, VOID, {0: $serializer_getInstance_64}); setMetadataFor(Companion_68, 'Companion', objectMeta); setMetadataFor($serializer_65, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentCategorySchema, 'ContentCategorySchema', classMeta, VOID, VOID, ContentCategorySchema, VOID, {0: $serializer_getInstance_65}); setMetadataFor(Companion_69, 'Companion', objectMeta); setMetadataFor($serializer_66, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntry, 'ContentEntry', classMeta, VOID, VOID, ContentEntry, VOID, {0: $serializer_getInstance_66}); setMetadataFor(ContentEntryButtonModel, 'ContentEntryButtonModel', classMeta, VOID, VOID, ContentEntryButtonModel); setMetadataFor(Companion_70, 'Companion', objectMeta); setMetadataFor($serializer_67, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryContentCategoryJoin, 'ContentEntryContentCategoryJoin', classMeta, VOID, VOID, ContentEntryContentCategoryJoin, VOID, {0: $serializer_getInstance_67}); setMetadataFor(Companion_71, 'Companion', objectMeta); setMetadataFor($serializer_68, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryImportJob, 'ContentEntryImportJob', classMeta, VOID, VOID, ContentEntryImportJob, VOID, {0: $serializer_getInstance_68}); setMetadataFor(Companion_72, 'Companion', objectMeta); setMetadataFor($serializer_69, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryParentChildJoin, 'ContentEntryParentChildJoin', classMeta, VOID, VOID, ContentEntryParentChildJoin, VOID, {0: $serializer_getInstance_69}); setMetadataFor(Companion_73, 'Companion', objectMeta); setMetadataFor($serializer_70, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryPicture, 'ContentEntryPicture', classMeta, VOID, VOID, ContentEntryPicture, VOID, {0: $serializer_getInstance_70}); setMetadataFor(Companion_74, 'Companion', objectMeta); setMetadataFor($serializer_71, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryPicture2, 'ContentEntryPicture2', classMeta, VOID, VOID, ContentEntryPicture2, VOID, {0: $serializer_getInstance_71}); setMetadataFor(Companion_75, 'Companion', objectMeta); setMetadataFor($serializer_72, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryRelatedEntryJoin, 'ContentEntryRelatedEntryJoin', classMeta, VOID, VOID, ContentEntryRelatedEntryJoin, VOID, {0: $serializer_getInstance_72}); setMetadataFor(Companion_76, 'Companion', objectMeta); setMetadataFor($serializer_73, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryRelatedEntryJoinWithLangName, 'ContentEntryRelatedEntryJoinWithLangName', classMeta, VOID, VOID, ContentEntryRelatedEntryJoinWithLangName, VOID, {0: $serializer_getInstance_73}); setMetadataFor(Companion_77, 'Companion', objectMeta); setMetadataFor($serializer_74, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryRelatedEntryJoinWithLanguage, 'ContentEntryRelatedEntryJoinWithLanguage', classMeta, ContentEntryRelatedEntryJoin, VOID, ContentEntryRelatedEntryJoinWithLanguage, VOID, {0: $serializer_getInstance_74}); setMetadataFor(Companion_78, 'Companion', objectMeta); setMetadataFor($serializer_75, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryStatementScoreProgress, 'ContentEntryStatementScoreProgress', classMeta, VOID, VOID, ContentEntryStatementScoreProgress, VOID, {0: $serializer_getInstance_75}); setMetadataFor(Companion_79, 'Companion', objectMeta); setMetadataFor($serializer_76, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryVersion, 'ContentEntryVersion', classMeta, VOID, VOID, ContentEntryVersion, VOID, {0: $serializer_getInstance_76}); setMetadataFor(Companion_80, 'Companion', objectMeta); setMetadataFor($serializer_77, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentEntryWithLanguage, 'ContentEntryWithLanguage', classMeta, ContentEntry, VOID, ContentEntryWithLanguage, VOID, {0: $serializer_getInstance_77}); setMetadataFor(Companion_81, 'Companion', objectMeta); setMetadataFor($serializer_78, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ContentJob, 'ContentJob', classMeta, VOID, VOID, ContentJob, VOID, {0: $serializer_getInstance_78}); setMetadataFor(Companion_82, 'Companion', objectMeta); setMetadataFor($serializer_79, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentMark, 'CourseAssignmentMark', classMeta, VOID, VOID, CourseAssignmentMark, VOID, {0: $serializer_getInstance_79}); setMetadataFor(CourseAssignmentMarkWithPersonMarker, 'CourseAssignmentMarkWithPersonMarker', classMeta, CourseAssignmentMark, VOID, CourseAssignmentMarkWithPersonMarker); setMetadataFor(Companion_83, 'Companion', objectMeta); setMetadataFor($serializer_80, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmission, 'CourseAssignmentSubmission', classMeta, VOID, VOID, CourseAssignmentSubmission, VOID, {0: $serializer_getInstance_80}); setMetadataFor(Companion_84, 'Companion', objectMeta); setMetadataFor($serializer_81, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseAssignmentSubmissionFile, 'CourseAssignmentSubmissionFile', classMeta, VOID, VOID, CourseAssignmentSubmissionFile, VOID, {0: $serializer_getInstance_81}); setMetadataFor(Companion_85, 'Companion', objectMeta); setMetadataFor($serializer_82, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlock, 'CourseBlock', classMeta, VOID, VOID, CourseBlock, VOID, {0: $serializer_getInstance_82}); setMetadataFor(Companion_86, 'Companion', objectMeta); setMetadataFor($serializer_83, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseBlockPicture, 'CourseBlockPicture', classMeta, VOID, VOID, CourseBlockPicture, VOID, {0: $serializer_getInstance_83}); setMetadataFor(Companion_87, 'Companion', objectMeta); setMetadataFor($serializer_84, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMember, 'CourseGroupMember', classMeta, VOID, VOID, CourseGroupMember, VOID, {0: $serializer_getInstance_84}); setMetadataFor(Companion_88, 'Companion', objectMeta); setMetadataFor($serializer_85, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupMemberAndName, 'CourseGroupMemberAndName', classMeta, VOID, VOID, CourseGroupMemberAndName, VOID, {0: $serializer_getInstance_85}); setMetadataFor(Companion_89, 'Companion', objectMeta); setMetadataFor($serializer_86, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseGroupSet, 'CourseGroupSet', classMeta, VOID, VOID, CourseGroupSet, VOID, {0: $serializer_getInstance_86}); setMetadataFor(Companion_90, 'Companion', objectMeta); setMetadataFor($serializer_87, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CoursePermission, 'CoursePermission', classMeta, VOID, VOID, CoursePermission, VOID, {0: $serializer_getInstance_87}); setMetadataFor(Companion_91, 'Companion', objectMeta); setMetadataFor($serializer_88, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CoursePicture, 'CoursePicture', classMeta, VOID, VOID, CoursePicture, VOID, {0: $serializer_getInstance_88}); setMetadataFor(Companion_92, 'Companion', objectMeta); setMetadataFor($serializer_89, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(CourseTerminology, 'CourseTerminology', classMeta, VOID, VOID, CourseTerminology, VOID, {0: $serializer_getInstance_89}); setMetadataFor(Companion_93, 'Companion', objectMeta); setMetadataFor($serializer_90, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DeletedItem, 'DeletedItem', classMeta, VOID, VOID, DeletedItem, VOID, {0: $serializer_getInstance_90}); setMetadataFor(Companion_94, 'Companion', objectMeta); setMetadataFor($serializer_91, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPost, 'DiscussionPost', classMeta, VOID, VOID, DiscussionPost, VOID, {0: $serializer_getInstance_91}); setMetadataFor(Companion_95, 'Companion', objectMeta); setMetadataFor($serializer_92, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(DiscussionPostWithDetails, 'DiscussionPostWithDetails', classMeta, DiscussionPost, VOID, DiscussionPostWithDetails, VOID, {0: $serializer_getInstance_92}); setMetadataFor(Companion_96, 'Companion', objectMeta); setMetadataFor($serializer_93, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(EnrolmentRequest, 'EnrolmentRequest', classMeta, VOID, VOID, EnrolmentRequest, VOID, {0: $serializer_getInstance_93}); setMetadataFor(ErrorReport, 'ErrorReport', classMeta, VOID, VOID, ErrorReport); setMetadataFor(Companion_97, 'Companion', objectMeta); setMetadataFor($serializer_94, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ExternalAppPermission, 'ExternalAppPermission', classMeta, VOID, VOID, ExternalAppPermission, VOID, {0: $serializer_getInstance_94}); setMetadataFor(Companion_98, 'Companion', objectMeta); setMetadataFor($serializer_95, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Holiday, 'Holiday', classMeta, VOID, VOID, Holiday, VOID, {0: $serializer_getInstance_95}); setMetadataFor(Companion_99, 'Companion', objectMeta); setMetadataFor($serializer_96, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(HolidayCalendar, 'HolidayCalendar', classMeta, VOID, VOID, HolidayCalendar, VOID, {0: $serializer_getInstance_96}); setMetadataFor(Companion_100, 'Companion', objectMeta); setMetadataFor($serializer_97, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(HolidayCalendarWithNumEntries, 'HolidayCalendarWithNumEntries', classMeta, HolidayCalendar, VOID, HolidayCalendarWithNumEntries, VOID, {0: $serializer_getInstance_97}); setMetadataFor(Companion_101, 'Companion', objectMeta); setMetadataFor($serializer_98, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Language, 'Language', classMeta, VOID, VOID, Language, VOID, {0: $serializer_getInstance_98}); setMetadataFor(Companion_102, 'Companion', objectMeta); setMetadataFor($serializer_99, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(LanguageVariant, 'LanguageVariant', classMeta, VOID, VOID, LanguageVariant, VOID, {0: $serializer_getInstance_99}); setMetadataFor(Companion_103, 'Companion', objectMeta); setMetadataFor($serializer_100, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(LeavingReason, 'LeavingReason', classMeta, VOID, VOID, LeavingReason, VOID, {0: $serializer_getInstance_100}); setMetadataFor(Companion_104, 'Companion', objectMeta); setMetadataFor($serializer_101, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Message, 'Message', classMeta, VOID, VOID, Message, VOID, {0: $serializer_getInstance_101}); setMetadataFor(Companion_105, 'Companion', objectMeta); setMetadataFor($serializer_102, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(OfflineItem, 'OfflineItem', classMeta, VOID, VOID, OfflineItem, VOID, {0: $serializer_getInstance_102}); setMetadataFor(ParentEnrolmentRequired, 'ParentEnrolmentRequired', classMeta, VOID, VOID, ParentEnrolmentRequired); setMetadataFor(Companion_106, 'Companion', objectMeta); setMetadataFor($serializer_103, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PeerReviewerAllocation, 'PeerReviewerAllocation', classMeta, VOID, VOID, PeerReviewerAllocation, VOID, {0: $serializer_getInstance_103}); setMetadataFor(Companion_107, 'Companion', objectMeta); setMetadataFor($serializer_104, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Person, 'Person', classMeta, VOID, VOID, Person, VOID, {0: $serializer_getInstance_104}); setMetadataFor(Companion_108, 'Companion', objectMeta); setMetadataFor($serializer_105, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAndDisplayDetail, 'PersonAndDisplayDetail', classMeta, VOID, VOID, PersonAndDisplayDetail, VOID, {0: $serializer_getInstance_105}); setMetadataFor(Companion_109, 'Companion', objectMeta); setMetadataFor($serializer_106, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonAuth, 'PersonAuth', classMeta, VOID, VOID, PersonAuth, VOID, {0: $serializer_getInstance_106}); setMetadataFor(Companion_110, 'Companion', objectMeta); setMetadataFor(PersonAuth2, 'PersonAuth2', classMeta, VOID, VOID, PersonAuth2); setMetadataFor(Companion_111, 'Companion', objectMeta); setMetadataFor($serializer_107, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonGroup, 'PersonGroup', classMeta, VOID, VOID, PersonGroup, VOID, {0: $serializer_getInstance_107}); setMetadataFor(Companion_112, 'Companion', objectMeta); setMetadataFor($serializer_108, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonGroupMember, 'PersonGroupMember', classMeta, VOID, VOID, PersonGroupMember, VOID, {0: $serializer_getInstance_108}); setMetadataFor(Companion_113, 'Companion', objectMeta); setMetadataFor($serializer_109, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonParentJoin, 'PersonParentJoin', classMeta, VOID, VOID, PersonParentJoin, VOID, {0: $serializer_getInstance_109}); setMetadataFor(Companion_114, 'Companion', objectMeta); setMetadataFor($serializer_110, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonParentJoinAndMinorPerson, 'PersonParentJoinAndMinorPerson', classMeta, VOID, VOID, PersonParentJoinAndMinorPerson, VOID, {0: $serializer_getInstance_110}); setMetadataFor(Companion_115, 'Companion', objectMeta); setMetadataFor($serializer_111, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(PersonPicture, 'PersonPicture', classMeta, VOID, VOID, PersonPicture, VOID, {0: $serializer_getInstance_111}); setMetadataFor(PersonUidAndPasswordHash, 'PersonUidAndPasswordHash', classMeta, VOID, VOID, PersonUidAndPasswordHash); setMetadataFor(Companion_116, 'Companion', objectMeta); setMetadataFor($serializer_112, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Report, 'Report', classMeta, VOID, VOID, Report, VOID, {0: $serializer_getInstance_112}); setMetadataFor(Companion_117, 'Companion', objectMeta); setMetadataFor($serializer_113, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ReportQueryResult, 'ReportQueryResult', classMeta, VOID, VOID, ReportQueryResult, VOID, {0: $serializer_getInstance_113}); setMetadataFor(Companion_118, 'Companion', objectMeta); setMetadataFor($serializer_114, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Schedule, 'Schedule', classMeta, VOID, VOID, Schedule, VOID, {0: $serializer_getInstance_114}); setMetadataFor(Companion_119, 'Companion', objectMeta); setMetadataFor($serializer_115, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ScopedGrant, 'ScopedGrant', classMeta, VOID, VOID, ScopedGrant, VOID, {0: $serializer_getInstance_115}); setMetadataFor(Companion_120, 'Companion', objectMeta); setMetadataFor($serializer_116, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ScopedGrantWithName, 'ScopedGrantWithName', classMeta, ScopedGrant, VOID, ScopedGrantWithName, VOID, {0: $serializer_getInstance_116}); setMetadataFor(Companion_121, 'Companion', objectMeta); setMetadataFor($serializer_117, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(Site, 'Site', classMeta, VOID, VOID, Site, VOID, {0: $serializer_getInstance_117}); setMetadataFor(Companion_122, 'Companion', objectMeta); setMetadataFor($serializer_118, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SiteTerms, 'SiteTerms', classMeta, VOID, VOID, SiteTerms, VOID, {0: $serializer_getInstance_118}); setMetadataFor(Companion_123, 'Companion', objectMeta); setMetadataFor($serializer_119, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SiteTermsWithLanguage, 'SiteTermsWithLanguage', classMeta, SiteTerms, VOID, SiteTermsWithLanguage, VOID, {0: $serializer_getInstance_119}); setMetadataFor(Companion_124, 'Companion', objectMeta); setMetadataFor($serializer_120, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityAndDisplayDetails, 'StatementEntityAndDisplayDetails', classMeta, VOID, VOID, StatementEntityAndDisplayDetails, VOID, {0: $serializer_getInstance_120}); setMetadataFor(Companion_125, 'Companion', objectMeta); setMetadataFor($serializer_121, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementReportData, 'StatementReportData', classMeta, VOID, VOID, StatementReportData, VOID, {0: $serializer_getInstance_121}); setMetadataFor(Companion_126, 'Companion', objectMeta); setMetadataFor($serializer_122, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StudentResult, 'StudentResult', classMeta, VOID, VOID, StudentResult, VOID, {0: $serializer_getInstance_122}); setMetadataFor(Companion_127, 'Companion', objectMeta); setMetadataFor($serializer_123, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(SystemPermission, 'SystemPermission', classMeta, VOID, VOID, SystemPermission, VOID, {0: $serializer_getInstance_123}); setMetadataFor(Companion_128, 'Companion', objectMeta); setMetadataFor($serializer_124, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJob, 'TransferJob', classMeta, VOID, VOID, TransferJob, VOID, {0: $serializer_getInstance_124}); setMetadataFor(Companion_129, 'Companion', objectMeta); setMetadataFor($serializer_125, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobError, 'TransferJobError', classMeta, VOID, VOID, TransferJobError, VOID, {0: $serializer_getInstance_125}); setMetadataFor(Companion_130, 'Companion', objectMeta); setMetadataFor($serializer_126, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(TransferJobItem, 'TransferJobItem', classMeta, VOID, VOID, TransferJobItem, VOID, {0: $serializer_getInstance_126}); setMetadataFor(Companion_131, 'Companion', objectMeta); setMetadataFor($serializer_127, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UidAndLabel, 'UidAndLabel', classMeta, VOID, VOID, UidAndLabel, VOID, {0: $serializer_getInstance_127}); setMetadataFor(Companion_132, 'Companion', objectMeta); setMetadataFor($serializer_128, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UmAccount, 'UmAccount', classMeta, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_128}); setMetadataFor(Companion_133, 'Companion', objectMeta); setMetadataFor($serializer_129, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(UserSession, 'UserSession', classMeta, VOID, VOID, UserSession, VOID, {0: $serializer_getInstance_129}); setMetadataFor(UserSessionAndPerson, 'UserSessionAndPerson', classMeta, VOID, VOID, UserSessionAndPerson); setMetadataFor(Companion_134, 'Companion', objectMeta); setMetadataFor($serializer_130, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityEntity, 'ActivityEntity', classMeta, VOID, VOID, ActivityEntity, VOID, {0: $serializer_getInstance_130}); setMetadataFor(Companion_135, 'Companion', objectMeta); setMetadataFor(ActivityExtensionEntity, 'ActivityExtensionEntity', classMeta, VOID, VOID, ActivityExtensionEntity); setMetadataFor(Companion_136, 'Companion', objectMeta); setMetadataFor($serializer_131, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityInteractionEntity, 'ActivityInteractionEntity', classMeta, VOID, VOID, ActivityInteractionEntity, VOID, {0: $serializer_getInstance_131}); setMetadataFor(Companion_137, 'Companion', objectMeta); setMetadataFor($serializer_132, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActivityLangMapEntry, 'ActivityLangMapEntry', classMeta, VOID, VOID, ActivityLangMapEntry, VOID, {0: $serializer_getInstance_132}); setMetadataFor(Companion_138, 'Companion', objectMeta); setMetadataFor($serializer_133, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(ActorEntity, 'ActorEntity', classMeta, VOID, VOID, ActorEntity, VOID, {0: $serializer_getInstance_133}); setMetadataFor(Companion_139, 'Companion', objectMeta); setMetadataFor($serializer_134, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(GroupMemberActorJoin, 'GroupMemberActorJoin', classMeta, VOID, VOID, GroupMemberActorJoin, VOID, {0: $serializer_getInstance_134}); setMetadataFor(Companion_140, 'Companion', objectMeta); setMetadataFor($serializer_135, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StateDeleteCommand, 'StateDeleteCommand', classMeta, VOID, VOID, StateDeleteCommand, VOID, {0: $serializer_getInstance_135}); setMetadataFor(Companion_141, 'Companion', objectMeta); setMetadataFor($serializer_136, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StateEntity, 'StateEntity', classMeta, VOID, VOID, StateEntity, VOID, {0: $serializer_getInstance_136}); setMetadataFor(Companion_142, 'Companion', objectMeta); setMetadataFor(StatementContextActivityJoin, 'StatementContextActivityJoin', classMeta, VOID, VOID, StatementContextActivityJoin); setMetadataFor(Companion_143, 'Companion', objectMeta); setMetadataFor($serializer_137, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntity, 'StatementEntity', classMeta, VOID, VOID, StatementEntity, VOID, {0: $serializer_getInstance_137}); setMetadataFor(Companion_144, 'Companion', objectMeta); setMetadataFor($serializer_138, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(StatementEntityJson, 'StatementEntityJson', classMeta, VOID, VOID, StatementEntityJson, VOID, {0: $serializer_getInstance_138}); setMetadataFor(Companion_145, 'Companion', objectMeta); setMetadataFor($serializer_139, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbEntity, 'VerbEntity', classMeta, VOID, VOID, VerbEntity, VOID, {0: $serializer_getInstance_139}); setMetadataFor(Companion_146, 'Companion', objectMeta); setMetadataFor($serializer_140, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(VerbLangMapEntry, 'VerbLangMapEntry', classMeta, VOID, VOID, VerbLangMapEntry, VOID, {0: $serializer_getInstance_140}); setMetadataFor(XapiEntityObjectTypeFlags, 'XapiEntityObjectTypeFlags', objectMeta); setMetadataFor(Companion_147, 'Companion', objectMeta); setMetadataFor($serializer_141, '$serializer', objectMeta, VOID, [GeneratedSerializer]); setMetadataFor(XapiSessionEntity, 'XapiSessionEntity', classMeta, VOID, VOID, XapiSessionEntity, VOID, {0: $serializer_getInstance_141}); //endregion function UmAppDatabase() { RoomDatabase.call(this); } function UmAppDatabaseJsImplementations() { UmAppDatabaseJsImplementations_instance = this; DoorJsImplClasses.call(this); this.dbKClass_1 = getKClass(UmAppDatabase); this.dbImplKClass_1 = getKClass(UmAppDatabase_JdbcImpl); this.replicateWrapperImplClass_1 = getKClass(UmAppDatabase_DoorWrapper); this.repositoryImplClass_1 = getKClass(UmAppDatabase_Repo); this.metadata_1 = new UmAppDatabase_DoorMetadata(); } protoOf(UmAppDatabaseJsImplementations).get_dbKClass_7eayj0_k$ = function () { return this.dbKClass_1; }; protoOf(UmAppDatabaseJsImplementations).get_dbImplKClass_9ooj90_k$ = function () { return this.dbImplKClass_1; }; protoOf(UmAppDatabaseJsImplementations).get_replicateWrapperImplClass_h5k6md_k$ = function () { return this.replicateWrapperImplClass_1; }; protoOf(UmAppDatabaseJsImplementations).get_repositoryImplClass_s9eqw5_k$ = function () { return this.repositoryImplClass_1; }; protoOf(UmAppDatabaseJsImplementations).get_metadata_vs95vc_k$ = function () { return this.metadata_1; }; var UmAppDatabaseJsImplementations_instance; function UmAppDatabaseJsImplementations_getInstance() { if (UmAppDatabaseJsImplementations_instance == null) new UmAppDatabaseJsImplementations(); return UmAppDatabaseJsImplementations_instance; } function UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda() { var tmp = listOf('clazzLogUid'); var tmp_0 = listOf_0([new ReplicationFieldMetaData('clazzLogClazzUid', -5, false), new ReplicationFieldMetaData('logDate', -5, false), new ReplicationFieldMetaData('timeRecorded', -5, false), new ReplicationFieldMetaData('clazzLogDone', 16, false), new ReplicationFieldMetaData('cancellationNote', -1, true), new ReplicationFieldMetaData('clazzLogCancelled', 16, false), new ReplicationFieldMetaData('clazzLogNumPresent', 4, false), new ReplicationFieldMetaData('clazzLogNumAbsent', 4, false), new ReplicationFieldMetaData('clazzLogNumPartial', 4, false), new ReplicationFieldMetaData('clazzLogScheduleUid', -5, false), new ReplicationFieldMetaData('clazzLogStatusFlag', 4, false), new ReplicationFieldMetaData('clazzLogMSQN', -5, false), new ReplicationFieldMetaData('clazzLogLCSN', -5, false), new ReplicationFieldMetaData('clazzLogLCB', 4, false), new ReplicationFieldMetaData('clazzLogLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogUid', -5, false)]); var tmp_1 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_2 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_3 = [Event_INSERT_getInstance()]; var tmp_4 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_5 = ['REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$8 = ['INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES( CAST(NEW.clazzLogUid AS BIGINT), CAST(NEW.clazzLogClazzUid AS BIGINT), CAST(NEW.logDate AS BIGINT), CAST(NEW.timeRecorded AS BIGINT), NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, CAST(NEW.clazzLogScheduleUid AS BIGINT), NEW.clazzLogStatusFlag, CAST(NEW.clazzLogMSQN AS BIGINT), CAST(NEW.clazzLogLCSN AS BIGINT), NEW.clazzLogLCB, CAST(NEW.clazzLogLastChangedTime AS BIGINT)) ON CONFLICT(clazzLogUid) DO UPDATE SET clazzLogClazzUid = NEW.clazzLogClazzUid, logDate = NEW.logDate, timeRecorded = NEW.timeRecorded, clazzLogDone = NEW.clazzLogDone, cancellationNote = NEW.cancellationNote, clazzLogCancelled = NEW.clazzLogCancelled, clazzLogNumPresent = NEW.clazzLogNumPresent, clazzLogNumAbsent = NEW.clazzLogNumAbsent, clazzLogNumPartial = NEW.clazzLogNumPartial, clazzLogScheduleUid = NEW.clazzLogScheduleUid, clazzLogStatusFlag = NEW.clazzLogStatusFlag, clazzLogMSQN = NEW.clazzLogMSQN, clazzLogLCSN = NEW.clazzLogLCSN, clazzLogLCB = NEW.clazzLogLCB, clazzLogLastChangedTime = NEW.clazzLogLastChangedTime ']; var tmp_6 = to(14, new ReplicationEntityMetaData(14, 'ClazzLog', 'ClazzLog_ReceiveView', tmp, 'clazzLogLastChangedTime', tmp_0, 1000, tmp_1, listOf(new Trigger('clazzlog_remote_insert', tmp_2, tmp_3, tmp_4, tmp_5, tmp$ret$8, 'SELECT \n CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n FROM ClazzLog ClazzLog_Existing\n WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLogLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLog_Existing.clazzLogLastChangedTime\n FROM ClazzLog ClazzLog_Existing\n WHERE ClazzLog_Existing.clazzLogUid = NEW.clazzLogUid), 0)\n ')))); var tmp_7 = listOf('clazzLogAttendanceRecordUid'); var tmp_8 = listOf_0([new ReplicationFieldMetaData('clazzLogAttendanceRecordClazzLogUid', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordPersonUid', -5, false), new ReplicationFieldMetaData('attendanceStatus', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordLastChangedTime', -5, false), new ReplicationFieldMetaData('clazzLogAttendanceRecordUid', -5, false)]); var tmp_9 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_10 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_11 = [Event_INSERT_getInstance()]; var tmp_12 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_13 = ['REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$17 = ['INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES( CAST(NEW.clazzLogAttendanceRecordUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordClazzLogUid AS BIGINT), CAST(NEW.clazzLogAttendanceRecordPersonUid AS BIGINT), NEW.attendanceStatus, CAST(NEW.clazzLogAttendanceRecordMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLogAttendanceRecordLocalChangeSeqNum AS BIGINT), NEW.clazzLogAttendanceRecordLastChangedBy, CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT)) ON CONFLICT(clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = NEW.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = NEW.clazzLogAttendanceRecordPersonUid, attendanceStatus = NEW.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = NEW.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = NEW.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = NEW.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = NEW.clazzLogAttendanceRecordLastChangedTime ']; var tmp_14 = to(15, new ReplicationEntityMetaData(15, 'ClazzLogAttendanceRecord', 'ClazzLogAttendanceRecord_ReceiveView', tmp_7, 'clazzLogAttendanceRecordLastChangedTime', tmp_8, 1000, tmp_9, listOf(new Trigger('clazzlogattendancerecord_remote_insert', tmp_10, tmp_11, tmp_12, tmp_13, tmp$ret$17, 'SELECT \n CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLogAttendanceRecordLastChangedTime AS BIGINT) >\n COALESCE((SELECT ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordLastChangedTime\n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecord_Existing\n WHERE ClazzLogAttendanceRecord_Existing.clazzLogAttendanceRecordUid = NEW.clazzLogAttendanceRecordUid), 0)\n ')))); var tmp_15 = listOf('scheduleUid'); var tmp_16 = listOf_0([new ReplicationFieldMetaData('sceduleStartTime', -5, false), new ReplicationFieldMetaData('scheduleEndTime', -5, false), new ReplicationFieldMetaData('scheduleDay', 4, false), new ReplicationFieldMetaData('scheduleMonth', 4, false), new ReplicationFieldMetaData('scheduleFrequency', 4, false), new ReplicationFieldMetaData('umCalendarUid', -5, false), new ReplicationFieldMetaData('scheduleClazzUid', -5, false), new ReplicationFieldMetaData('scheduleMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('scheduleLastChangedBy', 4, false), new ReplicationFieldMetaData('scheduleLastChangedTime', -5, false), new ReplicationFieldMetaData('scheduleActive', 16, false), new ReplicationFieldMetaData('scheduleUid', -5, false)]); var tmp_17 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_18 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_19 = [Event_INSERT_getInstance()]; var tmp_20 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_21 = ['REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$26 = ['INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES( CAST(NEW.scheduleUid AS BIGINT), CAST(NEW.sceduleStartTime AS BIGINT), CAST(NEW.scheduleEndTime AS BIGINT), NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, CAST(NEW.umCalendarUid AS BIGINT), CAST(NEW.scheduleClazzUid AS BIGINT), CAST(NEW.scheduleMasterChangeSeqNum AS BIGINT), CAST(NEW.scheduleLocalChangeSeqNum AS BIGINT), NEW.scheduleLastChangedBy, CAST(NEW.scheduleLastChangedTime AS BIGINT), NEW.scheduleActive) ON CONFLICT(scheduleUid) DO UPDATE SET sceduleStartTime = NEW.sceduleStartTime, scheduleEndTime = NEW.scheduleEndTime, scheduleDay = NEW.scheduleDay, scheduleMonth = NEW.scheduleMonth, scheduleFrequency = NEW.scheduleFrequency, umCalendarUid = NEW.umCalendarUid, scheduleClazzUid = NEW.scheduleClazzUid, scheduleMasterChangeSeqNum = NEW.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = NEW.scheduleLocalChangeSeqNum, scheduleLastChangedBy = NEW.scheduleLastChangedBy, scheduleLastChangedTime = NEW.scheduleLastChangedTime, scheduleActive = NEW.scheduleActive ']; var tmp_22 = to(21, new ReplicationEntityMetaData(21, 'Schedule', 'Schedule_ReceiveView', tmp_15, 'scheduleLastChangedTime', tmp_16, 1000, tmp_17, listOf(new Trigger('schedule_remote_insert', tmp_18, tmp_19, tmp_20, tmp_21, tmp$ret$26, 'SELECT \n CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n FROM Schedule Schedule_Existing\n WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n ', 'SELECT \n CAST(NEW.scheduleLastChangedTime AS BIGINT) >\n COALESCE((SELECT Schedule_Existing.scheduleLastChangedTime\n FROM Schedule Schedule_Existing\n WHERE Schedule_Existing.scheduleUid = NEW.scheduleUid), 0)\n ')))); var tmp_23 = listOf('umCalendarUid'); var tmp_24 = listOf_0([new ReplicationFieldMetaData('umCalendarName', -1, true), new ReplicationFieldMetaData('umCalendarCategory', 4, false), new ReplicationFieldMetaData('umCalendarActive', 16, false), new ReplicationFieldMetaData('umCalendarMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('umCalendarLastChangedBy', 4, false), new ReplicationFieldMetaData('umCalendarLct', -5, false), new ReplicationFieldMetaData('umCalendarUid', -5, false)]); var tmp_25 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_26 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_27 = [Event_INSERT_getInstance()]; var tmp_28 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_29 = ['REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$35 = ['INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES( CAST(NEW.umCalendarUid AS BIGINT), NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, CAST(NEW.umCalendarMasterChangeSeqNum AS BIGINT), CAST(NEW.umCalendarLocalChangeSeqNum AS BIGINT), NEW.umCalendarLastChangedBy, CAST(NEW.umCalendarLct AS BIGINT)) ON CONFLICT(umCalendarUid) DO UPDATE SET umCalendarName = NEW.umCalendarName, umCalendarCategory = NEW.umCalendarCategory, umCalendarActive = NEW.umCalendarActive, umCalendarMasterChangeSeqNum = NEW.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = NEW.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = NEW.umCalendarLastChangedBy, umCalendarLct = NEW.umCalendarLct ']; var tmp_30 = to(28, new ReplicationEntityMetaData(28, 'HolidayCalendar', 'HolidayCalendar_ReceiveView', tmp_23, 'umCalendarLct', tmp_24, 1000, tmp_25, listOf(new Trigger('holidaycalendar_remote_insert', tmp_26, tmp_27, tmp_28, tmp_29, tmp$ret$35, 'SELECT \n CAST(NEW.umCalendarLct AS BIGINT) >\n COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n FROM HolidayCalendar HolidayCalendar_Existing\n WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n ', 'SELECT \n CAST(NEW.umCalendarLct AS BIGINT) >\n COALESCE((SELECT HolidayCalendar_Existing.umCalendarLct\n FROM HolidayCalendar HolidayCalendar_Existing\n WHERE HolidayCalendar_Existing.umCalendarUid = NEW.umCalendarUid), 0)\n ')))); var tmp_31 = listOf('holUid'); var tmp_32 = listOf_0([new ReplicationFieldMetaData('holMasterCsn', -5, false), new ReplicationFieldMetaData('holLocalCsn', -5, false), new ReplicationFieldMetaData('holLastModBy', 4, false), new ReplicationFieldMetaData('holLct', -5, false), new ReplicationFieldMetaData('holActive', 16, false), new ReplicationFieldMetaData('holHolidayCalendarUid', -5, false), new ReplicationFieldMetaData('holStartTime', -5, false), new ReplicationFieldMetaData('holEndTime', -5, false), new ReplicationFieldMetaData('holName', -1, true), new ReplicationFieldMetaData('holUid', -5, false)]); var tmp_33 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_34 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_35 = [Event_INSERT_getInstance()]; var tmp_36 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_37 = ['REPLACE INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$44 = ['INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES( CAST(NEW.holUid AS BIGINT), CAST(NEW.holMasterCsn AS BIGINT), CAST(NEW.holLocalCsn AS BIGINT), NEW.holLastModBy, CAST(NEW.holLct AS BIGINT), NEW.holActive, CAST(NEW.holHolidayCalendarUid AS BIGINT), CAST(NEW.holStartTime AS BIGINT), CAST(NEW.holEndTime AS BIGINT), NEW.holName) ON CONFLICT(holUid) DO UPDATE SET holMasterCsn = NEW.holMasterCsn, holLocalCsn = NEW.holLocalCsn, holLastModBy = NEW.holLastModBy, holLct = NEW.holLct, holActive = NEW.holActive, holHolidayCalendarUid = NEW.holHolidayCalendarUid, holStartTime = NEW.holStartTime, holEndTime = NEW.holEndTime, holName = NEW.holName ']; var tmp_38 = to(99, new ReplicationEntityMetaData(99, 'Holiday', 'Holiday_ReceiveView', tmp_31, 'holLct', tmp_32, 1000, tmp_33, listOf(new Trigger('holiday_remote_insert', tmp_34, tmp_35, tmp_36, tmp_37, tmp$ret$44, 'SELECT \n CAST(NEW.holLct AS BIGINT) >\n COALESCE((SELECT Holiday_Existing.holLct\n FROM Holiday Holiday_Existing\n WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n ', 'SELECT \n CAST(NEW.holLct AS BIGINT) >\n COALESCE((SELECT Holiday_Existing.holLct\n FROM Holiday Holiday_Existing\n WHERE Holiday_Existing.holUid = NEW.holUid), 0)\n ')))); var tmp_39 = listOf('personUid'); var tmp_40 = listOf_0([new ReplicationFieldMetaData('username', -1, true), new ReplicationFieldMetaData('firstNames', -1, true), new ReplicationFieldMetaData('lastName', -1, true), new ReplicationFieldMetaData('emailAddr', -1, true), new ReplicationFieldMetaData('phoneNum', -1, true), new ReplicationFieldMetaData('gender', 4, false), new ReplicationFieldMetaData('active', 16, false), new ReplicationFieldMetaData('dateOfBirth', -5, false), new ReplicationFieldMetaData('personAddress', -1, true), new ReplicationFieldMetaData('personOrgId', -1, true), new ReplicationFieldMetaData('personGroupUid', -5, false), new ReplicationFieldMetaData('personLct', -5, false), new ReplicationFieldMetaData('personCountry', -1, true), new ReplicationFieldMetaData('personType', 4, false), new ReplicationFieldMetaData('personMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('personLastChangedBy', 4, false), new ReplicationFieldMetaData('admin', 16, false), new ReplicationFieldMetaData('personNotes', -1, true), new ReplicationFieldMetaData('fatherName', -1, true), new ReplicationFieldMetaData('fatherNumber', -1, true), new ReplicationFieldMetaData('motherName', -1, true), new ReplicationFieldMetaData('motherNum', -1, true), new ReplicationFieldMetaData('personUid', -5, false)]); var tmp_41 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_42 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_43 = [Event_INSERT_getInstance()]; var tmp_44 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_45 = ['REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$53 = ['INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES( CAST(NEW.personUid AS BIGINT), NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, CAST(NEW.dateOfBirth AS BIGINT), NEW.personAddress, NEW.personOrgId, CAST(NEW.personGroupUid AS BIGINT), CAST(NEW.personLct AS BIGINT), NEW.personCountry, NEW.personType, CAST(NEW.personMasterChangeSeqNum AS BIGINT), CAST(NEW.personLocalChangeSeqNum AS BIGINT), NEW.personLastChangedBy, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum) ON CONFLICT(personUid) DO UPDATE SET username = NEW.username, firstNames = NEW.firstNames, lastName = NEW.lastName, emailAddr = NEW.emailAddr, phoneNum = NEW.phoneNum, gender = NEW.gender, active = NEW.active, dateOfBirth = NEW.dateOfBirth, personAddress = NEW.personAddress, personOrgId = NEW.personOrgId, personGroupUid = NEW.personGroupUid, personLct = NEW.personLct, personCountry = NEW.personCountry, personType = NEW.personType, personMasterChangeSeqNum = NEW.personMasterChangeSeqNum, personLocalChangeSeqNum = NEW.personLocalChangeSeqNum, personLastChangedBy = NEW.personLastChangedBy, admin = NEW.admin, personNotes = NEW.personNotes, fatherName = NEW.fatherName, fatherNumber = NEW.fatherNumber, motherName = NEW.motherName, motherNum = NEW.motherNum ']; var tmp_46 = to(9, new ReplicationEntityMetaData(9, 'Person', 'Person_ReceiveView', tmp_39, 'personLct', tmp_40, 1000, tmp_41, listOf(new Trigger('person_remote_insert', tmp_42, tmp_43, tmp_44, tmp_45, tmp$ret$53, '\n SELECT \n ((NEW.username IS NULL\n OR (SELECT NOT EXISTS(\n SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)) \n OR NEW.personUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)))\n AND CAST(NEW.personLct AS BIGINT) > \n (SELECT COALESCE(\n (SELECT Person.personLct\n FROM Person\n WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0)) \n \n ', '\n SELECT \n ((NEW.username IS NULL\n OR (SELECT NOT EXISTS(\n SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)) \n OR NEW.personUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = NEW.username)))\n AND CAST(NEW.personLct AS BIGINT) > \n (SELECT COALESCE(\n (SELECT Person.personLct\n FROM Person\n WHERE Person.personUid = CAST(NEW.personUid AS BIGINT)), 0)) \n \n ')))); var tmp_47 = listOf('clazzUid'); var tmp_48 = listOf_0([new ReplicationFieldMetaData('clazzName', -1, true), new ReplicationFieldMetaData('clazzDesc', -1, true), new ReplicationFieldMetaData('attendanceAverage', 6, false), new ReplicationFieldMetaData('clazzHolidayUMCalendarUid', -5, false), new ReplicationFieldMetaData('clazzScheuleUMCalendarUid', -5, false), new ReplicationFieldMetaData('isClazzActive', 16, false), new ReplicationFieldMetaData('clazzLocationUid', -5, false), new ReplicationFieldMetaData('clazzStartTime', -5, false), new ReplicationFieldMetaData('clazzEndTime', -5, false), new ReplicationFieldMetaData('clazzFeatures', -5, false), new ReplicationFieldMetaData('clazzSchoolUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentPolicy', 4, false), new ReplicationFieldMetaData('clazzTerminologyUid', -5, false), new ReplicationFieldMetaData('clazzMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzLct', -5, false), new ReplicationFieldMetaData('clazzTimeZone', -1, true), new ReplicationFieldMetaData('clazzStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzTeachersPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzPendingStudentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzParentsPersonGroupUid', -5, false), new ReplicationFieldMetaData('clazzCode', -1, true), new ReplicationFieldMetaData('clazzOwnerPersonUid', -5, false), new ReplicationFieldMetaData('clazzUid', -5, false)]); var tmp_49 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_50 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_51 = [Event_INSERT_getInstance()]; var tmp_52 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_53 = ['REPLACE INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$62 = ['INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES( CAST(NEW.clazzUid AS BIGINT), NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, CAST(NEW.clazzHolidayUMCalendarUid AS BIGINT), CAST(NEW.clazzScheuleUMCalendarUid AS BIGINT), NEW.isClazzActive, CAST(NEW.clazzLocationUid AS BIGINT), CAST(NEW.clazzStartTime AS BIGINT), CAST(NEW.clazzEndTime AS BIGINT), CAST(NEW.clazzFeatures AS BIGINT), CAST(NEW.clazzSchoolUid AS BIGINT), NEW.clazzEnrolmentPolicy, CAST(NEW.clazzTerminologyUid AS BIGINT), CAST(NEW.clazzMasterChangeSeqNum AS BIGINT), CAST(NEW.clazzLocalChangeSeqNum AS BIGINT), NEW.clazzLastChangedBy, CAST(NEW.clazzLct AS BIGINT), NEW.clazzTimeZone, CAST(NEW.clazzStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzTeachersPersonGroupUid AS BIGINT), CAST(NEW.clazzPendingStudentsPersonGroupUid AS BIGINT), CAST(NEW.clazzParentsPersonGroupUid AS BIGINT), NEW.clazzCode, CAST(NEW.clazzOwnerPersonUid AS BIGINT)) ON CONFLICT(clazzUid) DO UPDATE SET clazzName = NEW.clazzName, clazzDesc = NEW.clazzDesc, attendanceAverage = NEW.attendanceAverage, clazzHolidayUMCalendarUid = NEW.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = NEW.clazzScheuleUMCalendarUid, isClazzActive = NEW.isClazzActive, clazzLocationUid = NEW.clazzLocationUid, clazzStartTime = NEW.clazzStartTime, clazzEndTime = NEW.clazzEndTime, clazzFeatures = NEW.clazzFeatures, clazzSchoolUid = NEW.clazzSchoolUid, clazzEnrolmentPolicy = NEW.clazzEnrolmentPolicy, clazzTerminologyUid = NEW.clazzTerminologyUid, clazzMasterChangeSeqNum = NEW.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = NEW.clazzLocalChangeSeqNum, clazzLastChangedBy = NEW.clazzLastChangedBy, clazzLct = NEW.clazzLct, clazzTimeZone = NEW.clazzTimeZone, clazzStudentsPersonGroupUid = NEW.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = NEW.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = NEW.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = NEW.clazzParentsPersonGroupUid, clazzCode = NEW.clazzCode, clazzOwnerPersonUid = NEW.clazzOwnerPersonUid ']; var tmp_54 = to(6, new ReplicationEntityMetaData(6, 'Clazz', 'Clazz_ReceiveView', tmp_47, 'clazzLct', tmp_48, 1000, tmp_49, listOf(new Trigger('clazz_remote_insert', tmp_50, tmp_51, tmp_52, tmp_53, tmp$ret$62, 'SELECT \n CAST(NEW.clazzLct AS BIGINT) >\n COALESCE((SELECT Clazz_Existing.clazzLct\n FROM Clazz Clazz_Existing\n WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n ', 'SELECT \n CAST(NEW.clazzLct AS BIGINT) >\n COALESCE((SELECT Clazz_Existing.clazzLct\n FROM Clazz Clazz_Existing\n WHERE Clazz_Existing.clazzUid = NEW.clazzUid), 0)\n ')))); var tmp_55 = listOf('clazzEnrolmentUid'); var tmp_56 = listOf_0([new ReplicationFieldMetaData('clazzEnrolmentPersonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentClazzUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateJoined', -5, false), new ReplicationFieldMetaData('clazzEnrolmentDateLeft', -5, false), new ReplicationFieldMetaData('clazzEnrolmentRole', 4, false), new ReplicationFieldMetaData('clazzEnrolmentAttendancePercentage', 6, false), new ReplicationFieldMetaData('clazzEnrolmentActive', 16, false), new ReplicationFieldMetaData('clazzEnrolmentLeavingReasonUid', -5, false), new ReplicationFieldMetaData('clazzEnrolmentOutcome', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('clazzEnrolmentLastChangedBy', 4, false), new ReplicationFieldMetaData('clazzEnrolmentLct', -5, false), new ReplicationFieldMetaData('clazzEnrolmentUid', -5, false)]); var tmp_57 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_58 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_59 = [Event_INSERT_getInstance()]; var tmp_60 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_61 = ['REPLACE INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$71 = ['INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES( CAST(NEW.clazzEnrolmentUid AS BIGINT), CAST(NEW.clazzEnrolmentPersonUid AS BIGINT), CAST(NEW.clazzEnrolmentClazzUid AS BIGINT), CAST(NEW.clazzEnrolmentDateJoined AS BIGINT), CAST(NEW.clazzEnrolmentDateLeft AS BIGINT), NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, CAST(NEW.clazzEnrolmentLeavingReasonUid AS BIGINT), NEW.clazzEnrolmentOutcome, CAST(NEW.clazzEnrolmentLocalChangeSeqNum AS BIGINT), CAST(NEW.clazzEnrolmentMasterChangeSeqNum AS BIGINT), NEW.clazzEnrolmentLastChangedBy, CAST(NEW.clazzEnrolmentLct AS BIGINT)) ON CONFLICT(clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = NEW.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = NEW.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = NEW.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = NEW.clazzEnrolmentDateLeft, clazzEnrolmentRole = NEW.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = NEW.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = NEW.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = NEW.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = NEW.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = NEW.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = NEW.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = NEW.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = NEW.clazzEnrolmentLct ']; var tmp_62 = to(65, new ReplicationEntityMetaData(65, 'ClazzEnrolment', 'ClazzEnrolment_ReceiveView', tmp_55, 'clazzEnrolmentLct', tmp_56, 1000, tmp_57, listOf(new Trigger('clazzenrolment_remote_insert', tmp_58, tmp_59, tmp_60, tmp_61, tmp$ret$71, 'SELECT \n CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n FROM ClazzEnrolment ClazzEnrolment_Existing\n WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n ', 'SELECT \n CAST(NEW.clazzEnrolmentLct AS BIGINT) >\n COALESCE((SELECT ClazzEnrolment_Existing.clazzEnrolmentLct\n FROM ClazzEnrolment ClazzEnrolment_Existing\n WHERE ClazzEnrolment_Existing.clazzEnrolmentUid = NEW.clazzEnrolmentUid), 0)\n ')))); var tmp_63 = listOf('leavingReasonUid'); var tmp_64 = listOf_0([new ReplicationFieldMetaData('leavingReasonTitle', -1, true), new ReplicationFieldMetaData('leavingReasonMCSN', -5, false), new ReplicationFieldMetaData('leavingReasonCSN', -5, false), new ReplicationFieldMetaData('leavingReasonLCB', 4, false), new ReplicationFieldMetaData('leavingReasonLct', -5, false), new ReplicationFieldMetaData('leavingReasonUid', -5, false)]); var tmp_65 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_66 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_67 = [Event_INSERT_getInstance()]; var tmp_68 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_69 = ['REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$80 = ['INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES( CAST(NEW.leavingReasonUid AS BIGINT), NEW.leavingReasonTitle, CAST(NEW.leavingReasonMCSN AS BIGINT), CAST(NEW.leavingReasonCSN AS BIGINT), NEW.leavingReasonLCB, CAST(NEW.leavingReasonLct AS BIGINT)) ON CONFLICT(leavingReasonUid) DO UPDATE SET leavingReasonTitle = NEW.leavingReasonTitle, leavingReasonMCSN = NEW.leavingReasonMCSN, leavingReasonCSN = NEW.leavingReasonCSN, leavingReasonLCB = NEW.leavingReasonLCB, leavingReasonLct = NEW.leavingReasonLct ']; var tmp_70 = to(410, new ReplicationEntityMetaData(410, 'LeavingReason', 'LeavingReason_ReceiveView', tmp_63, 'leavingReasonLct', tmp_64, 1000, tmp_65, listOf(new Trigger('leavingreason_remote_insert', tmp_66, tmp_67, tmp_68, tmp_69, tmp$ret$80, 'SELECT \n CAST(NEW.leavingReasonLct AS BIGINT) >\n COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n FROM LeavingReason LeavingReason_Existing\n WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n ', 'SELECT \n CAST(NEW.leavingReasonLct AS BIGINT) >\n COALESCE((SELECT LeavingReason_Existing.leavingReasonLct\n FROM LeavingReason LeavingReason_Existing\n WHERE LeavingReason_Existing.leavingReasonUid = NEW.leavingReasonUid), 0)\n ')))); var tmp_71 = listOf('contentEntryUid'); var tmp_72 = listOf_0([new ReplicationFieldMetaData('title', -1, true), new ReplicationFieldMetaData('description', -1, true), new ReplicationFieldMetaData('entryId', -1, true), new ReplicationFieldMetaData('author', -1, true), new ReplicationFieldMetaData('publisher', -1, true), new ReplicationFieldMetaData('licenseType', 4, false), new ReplicationFieldMetaData('licenseName', -1, true), new ReplicationFieldMetaData('licenseUrl', -1, true), new ReplicationFieldMetaData('sourceUrl', -1, true), new ReplicationFieldMetaData('thumbnailUrl', -1, true), new ReplicationFieldMetaData('lastModified', -5, false), new ReplicationFieldMetaData('primaryLanguageUid', -5, false), new ReplicationFieldMetaData('languageVariantUid', -5, false), new ReplicationFieldMetaData('contentFlags', 4, false), new ReplicationFieldMetaData('leaf', 16, false), new ReplicationFieldMetaData('publik', 16, false), new ReplicationFieldMetaData('ceInactive', 16, false), new ReplicationFieldMetaData('completionCriteria', 4, false), new ReplicationFieldMetaData('minScore', 4, false), new ReplicationFieldMetaData('contentTypeFlag', 4, false), new ReplicationFieldMetaData('contentOwner', -5, false), new ReplicationFieldMetaData('contentOwnerType', 4, false), new ReplicationFieldMetaData('contentEntryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentEntryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentEntryLct', -5, false), new ReplicationFieldMetaData('contentEntryUid', -5, false)]); var tmp_73 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_74 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_75 = [Event_INSERT_getInstance()]; var tmp_76 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_77 = ['REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$89 = ['INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES( CAST(NEW.contentEntryUid AS BIGINT), NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, CAST(NEW.lastModified AS BIGINT), CAST(NEW.primaryLanguageUid AS BIGINT), CAST(NEW.languageVariantUid AS BIGINT), NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, CAST(NEW.contentOwner AS BIGINT), NEW.contentOwnerType, CAST(NEW.contentEntryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentEntryMasterChangeSeqNum AS BIGINT), NEW.contentEntryLastChangedBy, CAST(NEW.contentEntryLct AS BIGINT)) ON CONFLICT(contentEntryUid) DO UPDATE SET title = NEW.title, description = NEW.description, entryId = NEW.entryId, author = NEW.author, publisher = NEW.publisher, licenseType = NEW.licenseType, licenseName = NEW.licenseName, licenseUrl = NEW.licenseUrl, sourceUrl = NEW.sourceUrl, thumbnailUrl = NEW.thumbnailUrl, lastModified = NEW.lastModified, primaryLanguageUid = NEW.primaryLanguageUid, languageVariantUid = NEW.languageVariantUid, contentFlags = NEW.contentFlags, leaf = NEW.leaf, publik = NEW.publik, ceInactive = NEW.ceInactive, completionCriteria = NEW.completionCriteria, minScore = NEW.minScore, contentTypeFlag = NEW.contentTypeFlag, contentOwner = NEW.contentOwner, contentOwnerType = NEW.contentOwnerType, contentEntryLocalChangeSeqNum = NEW.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = NEW.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = NEW.contentEntryLastChangedBy, contentEntryLct = NEW.contentEntryLct ']; var tmp_78 = to(42, new ReplicationEntityMetaData(42, 'ContentEntry', 'ContentEntry_ReceiveView', tmp_71, 'contentEntryLct', tmp_72, 1000, tmp_73, listOf(new Trigger('contententry_remote_insert', tmp_74, tmp_75, tmp_76, tmp_77, tmp$ret$89, 'SELECT \n CAST(NEW.contentEntryLct AS BIGINT) >\n COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n FROM ContentEntry ContentEntry_Existing\n WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n ', 'SELECT \n CAST(NEW.contentEntryLct AS BIGINT) >\n COALESCE((SELECT ContentEntry_Existing.contentEntryLct\n FROM ContentEntry ContentEntry_Existing\n WHERE ContentEntry_Existing.contentEntryUid = NEW.contentEntryUid), 0)\n ')))); var tmp_79 = listOf('ceccjUid'); var tmp_80 = listOf_0([new ReplicationFieldMetaData('ceccjContentEntryUid', -5, false), new ReplicationFieldMetaData('ceccjContentCategoryUid', -5, false), new ReplicationFieldMetaData('ceccjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('ceccjLastChangedBy', 4, false), new ReplicationFieldMetaData('ceccjLct', -5, false), new ReplicationFieldMetaData('ceccjUid', -5, false)]); var tmp_81 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_82 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_83 = [Event_INSERT_getInstance()]; var tmp_84 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_85 = ['REPLACE INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$98 = ['INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES( CAST(NEW.ceccjUid AS BIGINT), CAST(NEW.ceccjContentEntryUid AS BIGINT), CAST(NEW.ceccjContentCategoryUid AS BIGINT), CAST(NEW.ceccjLocalChangeSeqNum AS BIGINT), CAST(NEW.ceccjMasterChangeSeqNum AS BIGINT), NEW.ceccjLastChangedBy, CAST(NEW.ceccjLct AS BIGINT)) ON CONFLICT(ceccjUid) DO UPDATE SET ceccjContentEntryUid = NEW.ceccjContentEntryUid, ceccjContentCategoryUid = NEW.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = NEW.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = NEW.ceccjMasterChangeSeqNum, ceccjLastChangedBy = NEW.ceccjLastChangedBy, ceccjLct = NEW.ceccjLct ']; var tmp_86 = to(3, new ReplicationEntityMetaData(3, 'ContentEntryContentCategoryJoin', 'ContentEntryContentCategoryJoin_ReceiveView', tmp_79, 'ceccjLct', tmp_80, 1000, tmp_81, listOf(new Trigger('contententrycontentcategoryjoin_remote_insert', tmp_82, tmp_83, tmp_84, tmp_85, tmp$ret$98, 'SELECT \n CAST(NEW.ceccjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n ', 'SELECT \n CAST(NEW.ceccjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryContentCategoryJoin_Existing.ceccjLct\n FROM ContentEntryContentCategoryJoin ContentEntryContentCategoryJoin_Existing\n WHERE ContentEntryContentCategoryJoin_Existing.ceccjUid = NEW.ceccjUid), 0)\n ')))); var tmp_87 = listOf('cepcjUid'); var tmp_88 = listOf_0([new ReplicationFieldMetaData('cepcjLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cepcjLastChangedBy', 4, false), new ReplicationFieldMetaData('cepcjLct', -5, false), new ReplicationFieldMetaData('cepcjDeleted', 16, false), new ReplicationFieldMetaData('cepcjParentContentEntryUid', -5, false), new ReplicationFieldMetaData('cepcjChildContentEntryUid', -5, false), new ReplicationFieldMetaData('childIndex', 4, false), new ReplicationFieldMetaData('cepcjUid', -5, false)]); var tmp_89 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_90 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_91 = [Event_INSERT_getInstance()]; var tmp_92 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_93 = ['REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$107 = ['INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES( CAST(NEW.cepcjUid AS BIGINT), CAST(NEW.cepcjLocalChangeSeqNum AS BIGINT), CAST(NEW.cepcjMasterChangeSeqNum AS BIGINT), NEW.cepcjLastChangedBy, CAST(NEW.cepcjLct AS BIGINT), NEW.cepcjDeleted, CAST(NEW.cepcjParentContentEntryUid AS BIGINT), CAST(NEW.cepcjChildContentEntryUid AS BIGINT), NEW.childIndex) ON CONFLICT(cepcjUid) DO UPDATE SET cepcjLocalChangeSeqNum = NEW.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = NEW.cepcjMasterChangeSeqNum, cepcjLastChangedBy = NEW.cepcjLastChangedBy, cepcjLct = NEW.cepcjLct, cepcjDeleted = NEW.cepcjDeleted, cepcjParentContentEntryUid = NEW.cepcjParentContentEntryUid, cepcjChildContentEntryUid = NEW.cepcjChildContentEntryUid, childIndex = NEW.childIndex ']; var tmp_94 = to(7, new ReplicationEntityMetaData(7, 'ContentEntryParentChildJoin', 'ContentEntryParentChildJoin_ReceiveView', tmp_87, 'cepcjLct', tmp_88, 1000, tmp_89, listOf(new Trigger('contententryparentchildjoin_remote_insert', tmp_90, tmp_91, tmp_92, tmp_93, tmp$ret$107, 'SELECT \n CAST(NEW.cepcjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n ', 'SELECT \n CAST(NEW.cepcjLct AS BIGINT) >\n COALESCE((SELECT ContentEntryParentChildJoin_Existing.cepcjLct\n FROM ContentEntryParentChildJoin ContentEntryParentChildJoin_Existing\n WHERE ContentEntryParentChildJoin_Existing.cepcjUid = NEW.cepcjUid), 0)\n ')))); var tmp_95 = listOf('cerejUid'); var tmp_96 = listOf_0([new ReplicationFieldMetaData('cerejContentEntryUid', -5, false), new ReplicationFieldMetaData('cerejRelatedEntryUid', -5, false), new ReplicationFieldMetaData('cerejLastChangedBy', 4, false), new ReplicationFieldMetaData('relType', 4, false), new ReplicationFieldMetaData('comment', -1, true), new ReplicationFieldMetaData('cerejRelLanguageUid', -5, false), new ReplicationFieldMetaData('cerejLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('cerejLct', -5, false), new ReplicationFieldMetaData('cerejUid', -5, false)]); var tmp_97 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_98 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_99 = [Event_INSERT_getInstance()]; var tmp_100 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_101 = ['REPLACE INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$116 = ['INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES( CAST(NEW.cerejUid AS BIGINT), CAST(NEW.cerejContentEntryUid AS BIGINT), CAST(NEW.cerejRelatedEntryUid AS BIGINT), NEW.cerejLastChangedBy, NEW.relType, NEW.comment, CAST(NEW.cerejRelLanguageUid AS BIGINT), CAST(NEW.cerejLocalChangeSeqNum AS BIGINT), CAST(NEW.cerejMasterChangeSeqNum AS BIGINT), CAST(NEW.cerejLct AS BIGINT)) ON CONFLICT(cerejUid) DO UPDATE SET cerejContentEntryUid = NEW.cerejContentEntryUid, cerejRelatedEntryUid = NEW.cerejRelatedEntryUid, cerejLastChangedBy = NEW.cerejLastChangedBy, relType = NEW.relType, comment = NEW.comment, cerejRelLanguageUid = NEW.cerejRelLanguageUid, cerejLocalChangeSeqNum = NEW.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = NEW.cerejMasterChangeSeqNum, cerejLct = NEW.cerejLct ']; var tmp_102 = to(8, new ReplicationEntityMetaData(8, 'ContentEntryRelatedEntryJoin', 'ContentEntryRelatedEntryJoin_ReceiveView', tmp_95, 'cerejLct', tmp_96, 1000, tmp_97, listOf(new Trigger('contententryrelatedentryjoin_remote_insert', tmp_98, tmp_99, tmp_100, tmp_101, tmp$ret$116, 'SELECT \n CAST(NEW.cerejLct AS BIGINT) >\n COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n ', 'SELECT \n CAST(NEW.cerejLct AS BIGINT) >\n COALESCE((SELECT ContentEntryRelatedEntryJoin_Existing.cerejLct\n FROM ContentEntryRelatedEntryJoin ContentEntryRelatedEntryJoin_Existing\n WHERE ContentEntryRelatedEntryJoin_Existing.cerejUid = NEW.cerejUid), 0)\n ')))); var tmp_103 = listOf('contentCategorySchemaUid'); var tmp_104 = listOf_0([new ReplicationFieldMetaData('schemaName', -1, true), new ReplicationFieldMetaData('schemaUrl', -1, true), new ReplicationFieldMetaData('contentCategorySchemaLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategorySchemaLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategorySchemaLct', -5, false), new ReplicationFieldMetaData('contentCategorySchemaUid', -5, false)]); var tmp_105 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_106 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_107 = [Event_INSERT_getInstance()]; var tmp_108 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_109 = ['REPLACE INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$125 = ['INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES( CAST(NEW.contentCategorySchemaUid AS BIGINT), NEW.schemaName, NEW.schemaUrl, CAST(NEW.contentCategorySchemaLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategorySchemaMasterChangeSeqNum AS BIGINT), NEW.contentCategorySchemaLastChangedBy, CAST(NEW.contentCategorySchemaLct AS BIGINT)) ON CONFLICT(contentCategorySchemaUid) DO UPDATE SET schemaName = NEW.schemaName, schemaUrl = NEW.schemaUrl, contentCategorySchemaLocalChangeSeqNum = NEW.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = NEW.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = NEW.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = NEW.contentCategorySchemaLct ']; var tmp_110 = to(2, new ReplicationEntityMetaData(2, 'ContentCategorySchema', 'ContentCategorySchema_ReceiveView', tmp_103, 'contentCategorySchemaLct', tmp_104, 1000, tmp_105, listOf(new Trigger('contentcategoryschema_remote_insert', tmp_106, tmp_107, tmp_108, tmp_109, tmp$ret$125, 'SELECT \n CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n FROM ContentCategorySchema ContentCategorySchema_Existing\n WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n ', 'SELECT \n CAST(NEW.contentCategorySchemaLct AS BIGINT) >\n COALESCE((SELECT ContentCategorySchema_Existing.contentCategorySchemaLct\n FROM ContentCategorySchema ContentCategorySchema_Existing\n WHERE ContentCategorySchema_Existing.contentCategorySchemaUid = NEW.contentCategorySchemaUid), 0)\n ')))); var tmp_111 = listOf('contentCategoryUid'); var tmp_112 = listOf_0([new ReplicationFieldMetaData('ctnCatContentCategorySchemaUid', -5, false), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('contentCategoryLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('contentCategoryLastChangedBy', 4, false), new ReplicationFieldMetaData('contentCategoryLct', -5, false), new ReplicationFieldMetaData('contentCategoryUid', -5, false)]); var tmp_113 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_114 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_115 = [Event_INSERT_getInstance()]; var tmp_116 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_117 = ['REPLACE INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$134 = ['INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES( CAST(NEW.contentCategoryUid AS BIGINT), CAST(NEW.ctnCatContentCategorySchemaUid AS BIGINT), NEW.name, CAST(NEW.contentCategoryLocalChangeSeqNum AS BIGINT), CAST(NEW.contentCategoryMasterChangeSeqNum AS BIGINT), NEW.contentCategoryLastChangedBy, CAST(NEW.contentCategoryLct AS BIGINT)) ON CONFLICT(contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = NEW.ctnCatContentCategorySchemaUid, name = NEW.name, contentCategoryLocalChangeSeqNum = NEW.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = NEW.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = NEW.contentCategoryLastChangedBy, contentCategoryLct = NEW.contentCategoryLct ']; var tmp_118 = to(1, new ReplicationEntityMetaData(1, 'ContentCategory', 'ContentCategory_ReceiveView', tmp_111, 'contentCategoryLct', tmp_112, 1000, tmp_113, listOf(new Trigger('contentcategory_remote_insert', tmp_114, tmp_115, tmp_116, tmp_117, tmp$ret$134, 'SELECT \n CAST(NEW.contentCategoryLct AS BIGINT) >\n COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n FROM ContentCategory ContentCategory_Existing\n WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n ', 'SELECT \n CAST(NEW.contentCategoryLct AS BIGINT) >\n COALESCE((SELECT ContentCategory_Existing.contentCategoryLct\n FROM ContentCategory ContentCategory_Existing\n WHERE ContentCategory_Existing.contentCategoryUid = NEW.contentCategoryUid), 0)\n ')))); var tmp_119 = listOf('langUid'); var tmp_120 = listOf_0([new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('iso_639_1_standard', -1, true), new ReplicationFieldMetaData('iso_639_2_standard', -1, true), new ReplicationFieldMetaData('iso_639_3_standard', -1, true), new ReplicationFieldMetaData('Language_Type', -1, true), new ReplicationFieldMetaData('languageActive', 16, false), new ReplicationFieldMetaData('langLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langLastChangedBy', 4, false), new ReplicationFieldMetaData('langLct', -5, false), new ReplicationFieldMetaData('langUid', -5, false)]); var tmp_121 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_122 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_123 = [Event_INSERT_getInstance()]; var tmp_124 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_125 = ['REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$143 = ['INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES( CAST(NEW.langUid AS BIGINT), NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, CAST(NEW.langLocalChangeSeqNum AS BIGINT), CAST(NEW.langMasterChangeSeqNum AS BIGINT), NEW.langLastChangedBy, CAST(NEW.langLct AS BIGINT)) ON CONFLICT(langUid) DO UPDATE SET name = NEW.name, iso_639_1_standard = NEW.iso_639_1_standard, iso_639_2_standard = NEW.iso_639_2_standard, iso_639_3_standard = NEW.iso_639_3_standard, Language_Type = NEW.Language_Type, languageActive = NEW.languageActive, langLocalChangeSeqNum = NEW.langLocalChangeSeqNum, langMasterChangeSeqNum = NEW.langMasterChangeSeqNum, langLastChangedBy = NEW.langLastChangedBy, langLct = NEW.langLct ']; var tmp_126 = to(13, new ReplicationEntityMetaData(13, 'Language', 'Language_ReceiveView', tmp_119, 'langLct', tmp_120, 1000, tmp_121, listOf(new Trigger('language_remote_insert', tmp_122, tmp_123, tmp_124, tmp_125, tmp$ret$143, 'SELECT \n CAST(NEW.langLct AS BIGINT) >\n COALESCE((SELECT Language_Existing.langLct\n FROM Language Language_Existing\n WHERE Language_Existing.langUid = NEW.langUid), 0)\n ', 'SELECT \n CAST(NEW.langLct AS BIGINT) >\n COALESCE((SELECT Language_Existing.langLct\n FROM Language Language_Existing\n WHERE Language_Existing.langUid = NEW.langUid), 0)\n ')))); var tmp_127 = listOf('langVariantUid'); var tmp_128 = listOf_0([new ReplicationFieldMetaData('langUid', -5, false), new ReplicationFieldMetaData('countryCode', -1, true), new ReplicationFieldMetaData('name', -1, true), new ReplicationFieldMetaData('langVariantLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('langVariantLastChangedBy', 4, false), new ReplicationFieldMetaData('langVariantLct', -5, false), new ReplicationFieldMetaData('langVariantUid', -5, false)]); var tmp_129 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_130 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_131 = [Event_INSERT_getInstance()]; var tmp_132 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_133 = ['REPLACE INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$152 = ['INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES( CAST(NEW.langVariantUid AS BIGINT), CAST(NEW.langUid AS BIGINT), NEW.countryCode, NEW.name, CAST(NEW.langVariantLocalChangeSeqNum AS BIGINT), CAST(NEW.langVariantMasterChangeSeqNum AS BIGINT), NEW.langVariantLastChangedBy, CAST(NEW.langVariantLct AS BIGINT)) ON CONFLICT(langVariantUid) DO UPDATE SET langUid = NEW.langUid, countryCode = NEW.countryCode, name = NEW.name, langVariantLocalChangeSeqNum = NEW.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = NEW.langVariantMasterChangeSeqNum, langVariantLastChangedBy = NEW.langVariantLastChangedBy, langVariantLct = NEW.langVariantLct ']; var tmp_134 = to(10, new ReplicationEntityMetaData(10, 'LanguageVariant', 'LanguageVariant_ReceiveView', tmp_127, 'langVariantLct', tmp_128, 1000, tmp_129, listOf(new Trigger('languagevariant_remote_insert', tmp_130, tmp_131, tmp_132, tmp_133, tmp$ret$152, 'SELECT \n CAST(NEW.langVariantLct AS BIGINT) >\n COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n FROM LanguageVariant LanguageVariant_Existing\n WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n ', 'SELECT \n CAST(NEW.langVariantLct AS BIGINT) >\n COALESCE((SELECT LanguageVariant_Existing.langVariantLct\n FROM LanguageVariant LanguageVariant_Existing\n WHERE LanguageVariant_Existing.langVariantUid = NEW.langVariantUid), 0)\n ')))); var tmp_135 = listOf('groupUid'); var tmp_136 = listOf_0([new ReplicationFieldMetaData('groupMasterCsn', -5, false), new ReplicationFieldMetaData('groupLocalCsn', -5, false), new ReplicationFieldMetaData('groupLastChangedBy', 4, false), new ReplicationFieldMetaData('groupLct', -5, false), new ReplicationFieldMetaData('groupName', -1, true), new ReplicationFieldMetaData('groupActive', 16, false), new ReplicationFieldMetaData('personGroupFlag', 4, false), new ReplicationFieldMetaData('groupUid', -5, false)]); var tmp_137 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_138 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_139 = [Event_INSERT_getInstance()]; var tmp_140 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_141 = ['REPLACE INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$161 = ['INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES( CAST(NEW.groupUid AS BIGINT), CAST(NEW.groupMasterCsn AS BIGINT), CAST(NEW.groupLocalCsn AS BIGINT), NEW.groupLastChangedBy, CAST(NEW.groupLct AS BIGINT), NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ON CONFLICT(groupUid) DO UPDATE SET groupMasterCsn = NEW.groupMasterCsn, groupLocalCsn = NEW.groupLocalCsn, groupLastChangedBy = NEW.groupLastChangedBy, groupLct = NEW.groupLct, groupName = NEW.groupName, groupActive = NEW.groupActive, personGroupFlag = NEW.personGroupFlag ']; var tmp_142 = to(43, new ReplicationEntityMetaData(43, 'PersonGroup', 'PersonGroup_ReceiveView', tmp_135, 'groupLct', tmp_136, 1000, tmp_137, listOf(new Trigger('persongroup_remote_insert', tmp_138, tmp_139, tmp_140, tmp_141, tmp$ret$161, 'SELECT \n CAST(NEW.groupLct AS BIGINT) >\n COALESCE((SELECT PersonGroup_Existing.groupLct\n FROM PersonGroup PersonGroup_Existing\n WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n ', 'SELECT \n CAST(NEW.groupLct AS BIGINT) >\n COALESCE((SELECT PersonGroup_Existing.groupLct\n FROM PersonGroup PersonGroup_Existing\n WHERE PersonGroup_Existing.groupUid = NEW.groupUid), 0)\n ')))); var tmp_143 = listOf('groupMemberUid'); var tmp_144 = listOf_0([new ReplicationFieldMetaData('groupMemberActive', 16, false), new ReplicationFieldMetaData('groupMemberPersonUid', -5, false), new ReplicationFieldMetaData('groupMemberGroupUid', -5, false), new ReplicationFieldMetaData('groupMemberMasterCsn', -5, false), new ReplicationFieldMetaData('groupMemberLocalCsn', -5, false), new ReplicationFieldMetaData('groupMemberLastChangedBy', 4, false), new ReplicationFieldMetaData('groupMemberLct', -5, false), new ReplicationFieldMetaData('groupMemberUid', -5, false)]); var tmp_145 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_146 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_147 = [Event_INSERT_getInstance()]; var tmp_148 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_149 = ['REPLACE INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$170 = ['INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES( CAST(NEW.groupMemberUid AS BIGINT), NEW.groupMemberActive, CAST(NEW.groupMemberPersonUid AS BIGINT), CAST(NEW.groupMemberGroupUid AS BIGINT), CAST(NEW.groupMemberMasterCsn AS BIGINT), CAST(NEW.groupMemberLocalCsn AS BIGINT), NEW.groupMemberLastChangedBy, CAST(NEW.groupMemberLct AS BIGINT)) ON CONFLICT(groupMemberUid) DO UPDATE SET groupMemberActive = NEW.groupMemberActive, groupMemberPersonUid = NEW.groupMemberPersonUid, groupMemberGroupUid = NEW.groupMemberGroupUid, groupMemberMasterCsn = NEW.groupMemberMasterCsn, groupMemberLocalCsn = NEW.groupMemberLocalCsn, groupMemberLastChangedBy = NEW.groupMemberLastChangedBy, groupMemberLct = NEW.groupMemberLct ']; var tmp_150 = to(44, new ReplicationEntityMetaData(44, 'PersonGroupMember', 'PersonGroupMember_ReceiveView', tmp_143, 'groupMemberLct', tmp_144, 1000, tmp_145, listOf(new Trigger('persongroupmember_remote_insert', tmp_146, tmp_147, tmp_148, tmp_149, tmp$ret$170, 'SELECT \n CAST(NEW.groupMemberLct AS BIGINT) >\n COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n FROM PersonGroupMember PersonGroupMember_Existing\n WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n ', 'SELECT \n CAST(NEW.groupMemberLct AS BIGINT) >\n COALESCE((SELECT PersonGroupMember_Existing.groupMemberLct\n FROM PersonGroupMember PersonGroupMember_Existing\n WHERE PersonGroupMember_Existing.groupMemberUid = NEW.groupMemberUid), 0)\n ')))); var tmp_151 = listOf('personPictureUid'); var tmp_152 = listOf_0([new ReplicationFieldMetaData('personPictureLct', -5, false), new ReplicationFieldMetaData('personPictureUri', -1, true), new ReplicationFieldMetaData('personPictureThumbnailUri', -1, true), new ReplicationFieldMetaData('fileSize', 4, false), new ReplicationFieldMetaData('personPictureActive', 16, false), new ReplicationFieldMetaData('personPictureUid', -5, false)]); var tmp_153 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_154 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_155 = [Event_INSERT_getInstance()]; var tmp_156 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_157 = ['REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$179 = ['INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES( CAST(NEW.personPictureUid AS BIGINT), CAST(NEW.personPictureLct AS BIGINT), NEW.personPictureUri, NEW.personPictureThumbnailUri, NEW.fileSize, NEW.personPictureActive) ON CONFLICT(personPictureUid) DO UPDATE SET personPictureLct = NEW.personPictureLct, personPictureUri = NEW.personPictureUri, personPictureThumbnailUri = NEW.personPictureThumbnailUri, fileSize = NEW.fileSize, personPictureActive = NEW.personPictureActive ']; var tmp_158 = to(50, new ReplicationEntityMetaData(50, 'PersonPicture', 'PersonPicture_ReceiveView', tmp_151, 'personPictureLct', tmp_152, 1000, tmp_153, listOf(new Trigger('personpicture_remote_insert', tmp_154, tmp_155, tmp_156, tmp_157, tmp$ret$179, 'SELECT \n CAST(NEW.personPictureLct AS BIGINT) >\n COALESCE((SELECT PersonPicture_Existing.personPictureLct\n FROM PersonPicture PersonPicture_Existing\n WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n ', 'SELECT \n CAST(NEW.personPictureLct AS BIGINT) >\n COALESCE((SELECT PersonPicture_Existing.personPictureLct\n FROM PersonPicture PersonPicture_Existing\n WHERE PersonPicture_Existing.personPictureUid = NEW.personPictureUid), 0)\n ')))); var tmp_159 = listOf('verbUid'); var tmp_160 = listOf_0([new ReplicationFieldMetaData('verbUid', -5, false), new ReplicationFieldMetaData('verbUrlId', -1, true), new ReplicationFieldMetaData('verbDeleted', 16, false), new ReplicationFieldMetaData('verbLct', -5, false)]); var tmp_161 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_162 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_163 = [Event_INSERT_getInstance()]; var tmp_164 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_165 = ['REPLACE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$188 = ['INSERT INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES( CAST(NEW.verbUid AS BIGINT), NEW.verbUrlId, NEW.verbDeleted, CAST(NEW.verbLct AS BIGINT)) ON CONFLICT(verbUid) DO UPDATE SET verbUrlId = NEW.verbUrlId, verbDeleted = NEW.verbDeleted, verbLct = NEW.verbLct ']; var tmp_166 = to(62, new ReplicationEntityMetaData(62, 'VerbEntity', 'VerbEntity_ReceiveView', tmp_159, 'verbLct', tmp_160, 1000, tmp_161, listOf(new Trigger('verbentity_remote_insert', tmp_162, tmp_163, tmp_164, tmp_165, tmp$ret$188, 'SELECT \n CAST(NEW.verbLct AS BIGINT) >\n COALESCE((SELECT VerbEntity_Existing.verbLct\n FROM VerbEntity VerbEntity_Existing\n WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n ', 'SELECT \n CAST(NEW.verbLct AS BIGINT) >\n COALESCE((SELECT VerbEntity_Existing.verbLct\n FROM VerbEntity VerbEntity_Existing\n WHERE VerbEntity_Existing.verbUid = NEW.verbUid), 0)\n ')))); var tmp_167 = listOf('actUid'); var tmp_168 = listOf_0([new ReplicationFieldMetaData('actUid', -5, false), new ReplicationFieldMetaData('actIdIri', -1, true), new ReplicationFieldMetaData('actType', -1, true), new ReplicationFieldMetaData('actMoreInfo', -1, true), new ReplicationFieldMetaData('actInteractionType', 4, false), new ReplicationFieldMetaData('actCorrectResponsePatterns', -1, true), new ReplicationFieldMetaData('actLct', -5, false)]); var tmp_169 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_170 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_171 = [Event_INSERT_getInstance()]; var tmp_172 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_173 = ['REPLACE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$197 = ['INSERT INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES( CAST(NEW.actUid AS BIGINT), NEW.actIdIri, NEW.actType, NEW.actMoreInfo, NEW.actInteractionType, NEW.actCorrectResponsePatterns, CAST(NEW.actLct AS BIGINT)) ON CONFLICT(actUid) DO UPDATE SET actIdIri = NEW.actIdIri, actType = NEW.actType, actMoreInfo = NEW.actMoreInfo, actInteractionType = NEW.actInteractionType, actCorrectResponsePatterns = NEW.actCorrectResponsePatterns, actLct = NEW.actLct ']; var tmp_174 = to(64, new ReplicationEntityMetaData(64, 'ActivityEntity', 'ActivityEntity_ReceiveView', tmp_167, 'actLct', tmp_168, 1000, tmp_169, listOf(new Trigger('activityentity_remote_insert', tmp_170, tmp_171, tmp_172, tmp_173, tmp$ret$197, 'SELECT \n CAST(NEW.actLct AS BIGINT) >\n COALESCE((SELECT ActivityEntity_Existing.actLct\n FROM ActivityEntity ActivityEntity_Existing\n WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n ', 'SELECT \n CAST(NEW.actLct AS BIGINT) >\n COALESCE((SELECT ActivityEntity_Existing.actLct\n FROM ActivityEntity ActivityEntity_Existing\n WHERE ActivityEntity_Existing.actUid = NEW.actUid), 0)\n ')))); var tmp_175 = listOf_0(['statementIdHi', 'statementIdLo']); var tmp_176 = listOf_0([new ReplicationFieldMetaData('statementIdHi', -5, false), new ReplicationFieldMetaData('statementIdLo', -5, false), new ReplicationFieldMetaData('statementActorPersonUid', -5, false), new ReplicationFieldMetaData('statementVerbUid', -5, false), new ReplicationFieldMetaData('statementObjectType', 4, false), new ReplicationFieldMetaData('statementObjectUid1', -5, false), new ReplicationFieldMetaData('statementObjectUid2', -5, false), new ReplicationFieldMetaData('statementActorUid', -5, false), new ReplicationFieldMetaData('authorityActorUid', -5, false), new ReplicationFieldMetaData('teamUid', -5, false), new ReplicationFieldMetaData('resultCompletion', 16, true), new ReplicationFieldMetaData('resultSuccess', 16, true), new ReplicationFieldMetaData('resultScoreScaled', 6, true), new ReplicationFieldMetaData('resultScoreRaw', 6, true), new ReplicationFieldMetaData('resultScoreMin', 6, true), new ReplicationFieldMetaData('resultScoreMax', 6, true), new ReplicationFieldMetaData('resultDuration', -5, true), new ReplicationFieldMetaData('resultResponse', -1, true), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('stored', -5, false), new ReplicationFieldMetaData('contextRegistrationHi', -5, false), new ReplicationFieldMetaData('contextRegistrationLo', -5, false), new ReplicationFieldMetaData('contextRegistrationHash', -5, false), new ReplicationFieldMetaData('contextPlatform', -1, true), new ReplicationFieldMetaData('contextStatementRefIdHi', -5, false), new ReplicationFieldMetaData('contextStatementRefIdLo', -5, false), new ReplicationFieldMetaData('contextInstructorActorUid', -5, false), new ReplicationFieldMetaData('statementLct', -5, false), new ReplicationFieldMetaData('extensionProgress', 4, true), new ReplicationFieldMetaData('completionOrProgress', 16, false), new ReplicationFieldMetaData('statementContentEntryUid', -5, false), new ReplicationFieldMetaData('statementLearnerGroupUid', -5, false), new ReplicationFieldMetaData('statementClazzUid', -5, false), new ReplicationFieldMetaData('statementCbUid', -5, false), new ReplicationFieldMetaData('statementDoorNode', -5, false), new ReplicationFieldMetaData('isSubStatement', 16, false)]); var tmp_177 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_178 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_179 = [Event_INSERT_getInstance()]; var tmp_180 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_181 = ['REPLACE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), CAST(NEW.contextRegistrationHash AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$206 = ['INSERT INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES( CAST(NEW.statementIdHi AS BIGINT), CAST(NEW.statementIdLo AS BIGINT), CAST(NEW.statementActorPersonUid AS BIGINT), CAST(NEW.statementVerbUid AS BIGINT), NEW.statementObjectType, CAST(NEW.statementObjectUid1 AS BIGINT), CAST(NEW.statementObjectUid2 AS BIGINT), CAST(NEW.statementActorUid AS BIGINT), CAST(NEW.authorityActorUid AS BIGINT), CAST(NEW.teamUid AS BIGINT), NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, CAST(NEW.timestamp AS BIGINT), CAST(NEW.stored AS BIGINT), CAST(NEW.contextRegistrationHi AS BIGINT), CAST(NEW.contextRegistrationLo AS BIGINT), CAST(NEW.contextRegistrationHash AS BIGINT), NEW.contextPlatform, CAST(NEW.contextStatementRefIdHi AS BIGINT), CAST(NEW.contextStatementRefIdLo AS BIGINT), CAST(NEW.contextInstructorActorUid AS BIGINT), CAST(NEW.statementLct AS BIGINT), NEW.extensionProgress, NEW.completionOrProgress, CAST(NEW.statementContentEntryUid AS BIGINT), CAST(NEW.statementLearnerGroupUid AS BIGINT), CAST(NEW.statementClazzUid AS BIGINT), CAST(NEW.statementCbUid AS BIGINT), CAST(NEW.statementDoorNode AS BIGINT), NEW.isSubStatement) ON CONFLICT(statementIdHi, statementIdLo) DO UPDATE SET statementActorPersonUid = NEW.statementActorPersonUid, statementVerbUid = NEW.statementVerbUid, statementObjectType = NEW.statementObjectType, statementObjectUid1 = NEW.statementObjectUid1, statementObjectUid2 = NEW.statementObjectUid2, statementActorUid = NEW.statementActorUid, authorityActorUid = NEW.authorityActorUid, teamUid = NEW.teamUid, resultCompletion = NEW.resultCompletion, resultSuccess = NEW.resultSuccess, resultScoreScaled = NEW.resultScoreScaled, resultScoreRaw = NEW.resultScoreRaw, resultScoreMin = NEW.resultScoreMin, resultScoreMax = NEW.resultScoreMax, resultDuration = NEW.resultDuration, resultResponse = NEW.resultResponse, timestamp = NEW.timestamp, stored = NEW.stored, contextRegistrationHi = NEW.contextRegistrationHi, contextRegistrationLo = NEW.contextRegistrationLo, contextRegistrationHash = NEW.contextRegistrationHash, contextPlatform = NEW.contextPlatform, contextStatementRefIdHi = NEW.contextStatementRefIdHi, contextStatementRefIdLo = NEW.contextStatementRefIdLo, contextInstructorActorUid = NEW.contextInstructorActorUid, statementLct = NEW.statementLct, extensionProgress = NEW.extensionProgress, completionOrProgress = NEW.completionOrProgress, statementContentEntryUid = NEW.statementContentEntryUid, statementLearnerGroupUid = NEW.statementLearnerGroupUid, statementClazzUid = NEW.statementClazzUid, statementCbUid = NEW.statementCbUid, statementDoorNode = NEW.statementDoorNode, isSubStatement = NEW.isSubStatement ']; var tmp_182 = to(60, new ReplicationEntityMetaData(60, 'StatementEntity', 'StatementEntity_ReceiveView', tmp_175, 'statementLct', tmp_176, 1000, tmp_177, listOf(new Trigger('statemententity_remote_insert', tmp_178, tmp_179, tmp_180, tmp_181, tmp$ret$206, 'SELECT \n CAST(NEW.statementLct AS BIGINT) >\n COALESCE((SELECT StatementEntity_Existing.statementLct\n FROM StatementEntity StatementEntity_Existing\n WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n ', 'SELECT \n CAST(NEW.statementLct AS BIGINT) >\n COALESCE((SELECT StatementEntity_Existing.statementLct\n FROM StatementEntity StatementEntity_Existing\n WHERE StatementEntity_Existing.statementIdHi = NEW.statementIdHi AND StatementEntity_Existing.statementIdLo = NEW.statementIdLo), 0)\n ')))); var tmp_183 = listOf('actorUid'); var tmp_184 = listOf_0([new ReplicationFieldMetaData('actorPersonUid', -5, false), new ReplicationFieldMetaData('actorName', -1, true), new ReplicationFieldMetaData('actorMbox', -1, true), new ReplicationFieldMetaData('actorMbox_sha1sum', -1, true), new ReplicationFieldMetaData('actorOpenid', -1, true), new ReplicationFieldMetaData('actorAccountName', -1, true), new ReplicationFieldMetaData('actorAccountHomePage', -1, true), new ReplicationFieldMetaData('actorEtag', -5, false), new ReplicationFieldMetaData('actorLct', -5, false), new ReplicationFieldMetaData('actorObjectType', 4, false), new ReplicationFieldMetaData('actorUid', -5, false)]); var tmp_185 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_186 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_187 = [Event_INSERT_getInstance()]; var tmp_188 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_189 = ['REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$215 = ['INSERT INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES( CAST(NEW.actorUid AS BIGINT), CAST(NEW.actorPersonUid AS BIGINT), NEW.actorName, NEW.actorMbox, NEW.actorMbox_sha1sum, NEW.actorOpenid, NEW.actorAccountName, NEW.actorAccountHomePage, CAST(NEW.actorEtag AS BIGINT), CAST(NEW.actorLct AS BIGINT), NEW.actorObjectType) ON CONFLICT(actorUid) DO UPDATE SET actorPersonUid = NEW.actorPersonUid, actorName = NEW.actorName, actorMbox = NEW.actorMbox, actorMbox_sha1sum = NEW.actorMbox_sha1sum, actorOpenid = NEW.actorOpenid, actorAccountName = NEW.actorAccountName, actorAccountHomePage = NEW.actorAccountHomePage, actorEtag = NEW.actorEtag, actorLct = NEW.actorLct, actorObjectType = NEW.actorObjectType ']; var tmp_190 = to(68, new ReplicationEntityMetaData(68, 'ActorEntity', 'ActorEntity_ReceiveView', tmp_183, 'actorEtag', tmp_184, 1000, tmp_185, listOf(new Trigger('agententity_remote_insert', tmp_186, tmp_187, tmp_188, tmp_189, tmp$ret$215, 'SELECT \n CAST(NEW.actorLct AS BIGINT) >\n COALESCE((SELECT ActorEntity_Existing.actorLct\n FROM ActorEntity ActorEntity_Existing\n WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n ', 'SELECT \n CAST(NEW.actorLct AS BIGINT) >\n COALESCE((SELECT ActorEntity_Existing.actorLct\n FROM ActorEntity ActorEntity_Existing\n WHERE ActorEntity_Existing.actorUid = NEW.actorUid), 0)\n ')))); var tmp_191 = listOf('commentsUid'); var tmp_192 = listOf_0([new ReplicationFieldMetaData('commentsText', -1, true), new ReplicationFieldMetaData('commentsEntityUid', -5, false), new ReplicationFieldMetaData('commentsStatus', 4, false), new ReplicationFieldMetaData('commentsFromPersonUid', -5, false), new ReplicationFieldMetaData('commentsForSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFromSubmitterUid', -5, false), new ReplicationFieldMetaData('commentsFlagged', 16, false), new ReplicationFieldMetaData('commentsDeleted', 16, false), new ReplicationFieldMetaData('commentsDateTimeAdded', -5, false), new ReplicationFieldMetaData('commentsLct', -5, false), new ReplicationFieldMetaData('commentsUid', -5, false)]); var tmp_193 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_194 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_195 = [Event_INSERT_getInstance()]; var tmp_196 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_197 = ['REPLACE INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$224 = ['INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES( CAST(NEW.commentsUid AS BIGINT), NEW.commentsText, CAST(NEW.commentsEntityUid AS BIGINT), NEW.commentsStatus, CAST(NEW.commentsFromPersonUid AS BIGINT), CAST(NEW.commentsForSubmitterUid AS BIGINT), CAST(NEW.commentsFromSubmitterUid AS BIGINT), NEW.commentsFlagged, NEW.commentsDeleted, CAST(NEW.commentsDateTimeAdded AS BIGINT), CAST(NEW.commentsLct AS BIGINT)) ON CONFLICT(commentsUid) DO UPDATE SET commentsText = NEW.commentsText, commentsEntityUid = NEW.commentsEntityUid, commentsStatus = NEW.commentsStatus, commentsFromPersonUid = NEW.commentsFromPersonUid, commentsForSubmitterUid = NEW.commentsForSubmitterUid, commentsFromSubmitterUid = NEW.commentsFromSubmitterUid, commentsFlagged = NEW.commentsFlagged, commentsDeleted = NEW.commentsDeleted, commentsDateTimeAdded = NEW.commentsDateTimeAdded, commentsLct = NEW.commentsLct ']; var tmp_198 = to(208, new ReplicationEntityMetaData(208, 'Comments', 'Comments_ReceiveView', tmp_191, 'commentsLct', tmp_192, 1000, tmp_193, listOf(new Trigger('comments_remote_insert', tmp_194, tmp_195, tmp_196, tmp_197, tmp$ret$224, 'SELECT \n CAST(NEW.commentsLct AS BIGINT) >\n COALESCE((SELECT Comments_Existing.commentsLct\n FROM Comments Comments_Existing\n WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n ', 'SELECT \n CAST(NEW.commentsLct AS BIGINT) >\n COALESCE((SELECT Comments_Existing.commentsLct\n FROM Comments Comments_Existing\n WHERE Comments_Existing.commentsUid = NEW.commentsUid), 0)\n ')))); var tmp_199 = listOf('reportUid'); var tmp_200 = listOf_0([new ReplicationFieldMetaData('reportTitle', -1, true), new ReplicationFieldMetaData('reportOptions', -1, true), new ReplicationFieldMetaData('reportIsTemplate', 16, false), new ReplicationFieldMetaData('reportLastModTime', -5, false), new ReplicationFieldMetaData('reportOwnerPersonUid', -5, false), new ReplicationFieldMetaData('reportUid', -5, false)]); var tmp_201 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_202 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_203 = [Event_INSERT_getInstance()]; var tmp_204 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_205 = ['REPLACE INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES( CAST(NEW.reportUid AS BIGINT), NEW.reportTitle, NEW.reportOptions, NEW.reportIsTemplate, CAST(NEW.reportLastModTime AS BIGINT), CAST(NEW.reportOwnerPersonUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$233 = ['INSERT INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES( CAST(NEW.reportUid AS BIGINT), NEW.reportTitle, NEW.reportOptions, NEW.reportIsTemplate, CAST(NEW.reportLastModTime AS BIGINT), CAST(NEW.reportOwnerPersonUid AS BIGINT)) ON CONFLICT(reportUid) DO UPDATE SET reportTitle = NEW.reportTitle, reportOptions = NEW.reportOptions, reportIsTemplate = NEW.reportIsTemplate, reportLastModTime = NEW.reportLastModTime, reportOwnerPersonUid = NEW.reportOwnerPersonUid ']; var tmp_206 = to(101, new ReplicationEntityMetaData(101, 'Report', 'Report_ReceiveView', tmp_199, 'reportUid', tmp_200, 1000, tmp_201, listOf(new Trigger('report_remote_insert', tmp_202, tmp_203, tmp_204, tmp_205, tmp$ret$233, 'SELECT \n CAST(NEW.reportLastModTime AS BIGINT) >\n COALESCE((SELECT Report_Existing.reportLastModTime\n FROM Report Report_Existing\n WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n ', 'SELECT \n CAST(NEW.reportLastModTime AS BIGINT) >\n COALESCE((SELECT Report_Existing.reportLastModTime\n FROM Report Report_Existing\n WHERE Report_Existing.reportUid = NEW.reportUid), 0)\n ')))); var tmp_207 = listOf('siteUid'); var tmp_208 = listOf_0([new ReplicationFieldMetaData('sitePcsn', -5, false), new ReplicationFieldMetaData('siteLcsn', -5, false), new ReplicationFieldMetaData('siteLcb', 4, false), new ReplicationFieldMetaData('siteLct', -5, false), new ReplicationFieldMetaData('siteName', -1, true), new ReplicationFieldMetaData('guestLogin', 16, false), new ReplicationFieldMetaData('registrationAllowed', 16, false), new ReplicationFieldMetaData('authSalt', -1, true), new ReplicationFieldMetaData('siteUid', -5, false)]); var tmp_209 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_210 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_211 = [Event_INSERT_getInstance()]; var tmp_212 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_213 = ['REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$242 = ['INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES( CAST(NEW.siteUid AS BIGINT), CAST(NEW.sitePcsn AS BIGINT), CAST(NEW.siteLcsn AS BIGINT), NEW.siteLcb, CAST(NEW.siteLct AS BIGINT), NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ON CONFLICT(siteUid) DO UPDATE SET sitePcsn = NEW.sitePcsn, siteLcsn = NEW.siteLcsn, siteLcb = NEW.siteLcb, siteLct = NEW.siteLct, siteName = NEW.siteName, guestLogin = NEW.guestLogin, registrationAllowed = NEW.registrationAllowed, authSalt = NEW.authSalt ']; var tmp_214 = to(189, new ReplicationEntityMetaData(189, 'Site', 'Site_ReceiveView', tmp_207, 'siteLct', tmp_208, 1000, tmp_209, listOf(new Trigger('site_remote_insert', tmp_210, tmp_211, tmp_212, tmp_213, tmp$ret$242, '\n SELECT ((SELECT COUNT(*) \n FROM Site) = 0\n OR NEW.authSalt = \n (SELECT Site.authSalt\n FROM Site\n LIMIT 1))\n AND (SELECT \n CAST(NEW.siteLct AS BIGINT) >\n COALESCE((SELECT Site_Existing.siteLct\n FROM Site Site_Existing\n WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n ) \n ', '\n SELECT ((SELECT COUNT(*) \n FROM Site) = 0\n OR NEW.authSalt = \n (SELECT Site.authSalt\n FROM Site\n LIMIT 1))\n AND (SELECT \n CAST(NEW.siteLct AS BIGINT) >\n COALESCE((SELECT Site_Existing.siteLct\n FROM Site Site_Existing\n WHERE Site_Existing.siteUid = NEW.siteUid), 0)\n ) \n ')))); var tmp_215 = listOf('sTermsUid'); var tmp_216 = listOf_0([new ReplicationFieldMetaData('termsHtml', -1, true), new ReplicationFieldMetaData('sTermsLang', -1, true), new ReplicationFieldMetaData('sTermsLangUid', -5, false), new ReplicationFieldMetaData('sTermsActive', 16, false), new ReplicationFieldMetaData('sTermsLastChangedBy', 4, false), new ReplicationFieldMetaData('sTermsPrimaryCsn', -5, false), new ReplicationFieldMetaData('sTermsLocalCsn', -5, false), new ReplicationFieldMetaData('sTermsLct', -5, false), new ReplicationFieldMetaData('sTermsUid', -5, false)]); var tmp_217 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_218 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_219 = [Event_INSERT_getInstance()]; var tmp_220 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_221 = ['REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$251 = ['INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES( CAST(NEW.sTermsUid AS BIGINT), NEW.termsHtml, NEW.sTermsLang, CAST(NEW.sTermsLangUid AS BIGINT), NEW.sTermsActive, NEW.sTermsLastChangedBy, CAST(NEW.sTermsPrimaryCsn AS BIGINT), CAST(NEW.sTermsLocalCsn AS BIGINT), CAST(NEW.sTermsLct AS BIGINT)) ON CONFLICT(sTermsUid) DO UPDATE SET termsHtml = NEW.termsHtml, sTermsLang = NEW.sTermsLang, sTermsLangUid = NEW.sTermsLangUid, sTermsActive = NEW.sTermsActive, sTermsLastChangedBy = NEW.sTermsLastChangedBy, sTermsPrimaryCsn = NEW.sTermsPrimaryCsn, sTermsLocalCsn = NEW.sTermsLocalCsn, sTermsLct = NEW.sTermsLct ']; var tmp_222 = to(272, new ReplicationEntityMetaData(272, 'SiteTerms', 'SiteTerms_ReceiveView', tmp_215, 'sTermsLct', tmp_216, 1000, tmp_217, listOf(new Trigger('siteterms_remote_insert', tmp_218, tmp_219, tmp_220, tmp_221, tmp$ret$251, 'SELECT \n CAST(NEW.sTermsLct AS BIGINT) >\n COALESCE((SELECT SiteTerms_Existing.sTermsLct\n FROM SiteTerms SiteTerms_Existing\n WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n ', 'SELECT \n CAST(NEW.sTermsLct AS BIGINT) >\n COALESCE((SELECT SiteTerms_Existing.sTermsLct\n FROM SiteTerms SiteTerms_Existing\n WHERE SiteTerms_Existing.sTermsUid = NEW.sTermsUid), 0)\n ')))); var tmp_223 = listOf('ppjUid'); var tmp_224 = listOf_0([new ReplicationFieldMetaData('ppjPcsn', -5, false), new ReplicationFieldMetaData('ppjLcsn', -5, false), new ReplicationFieldMetaData('ppjLcb', 4, false), new ReplicationFieldMetaData('ppjLct', -5, false), new ReplicationFieldMetaData('ppjParentPersonUid', -5, false), new ReplicationFieldMetaData('ppjMinorPersonUid', -5, false), new ReplicationFieldMetaData('ppjRelationship', 4, false), new ReplicationFieldMetaData('ppjEmail', -1, true), new ReplicationFieldMetaData('ppjPhone', -1, true), new ReplicationFieldMetaData('ppjInactive', 16, false), new ReplicationFieldMetaData('ppjStatus', 4, false), new ReplicationFieldMetaData('ppjApprovalTiemstamp', -5, false), new ReplicationFieldMetaData('ppjApprovalIpAddr', -1, true), new ReplicationFieldMetaData('ppjUid', -5, false)]); var tmp_225 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_226 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_227 = [Event_INSERT_getInstance()]; var tmp_228 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_229 = ['REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$260 = ['INSERT INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES( CAST(NEW.ppjUid AS BIGINT), CAST(NEW.ppjPcsn AS BIGINT), CAST(NEW.ppjLcsn AS BIGINT), NEW.ppjLcb, CAST(NEW.ppjLct AS BIGINT), CAST(NEW.ppjParentPersonUid AS BIGINT), CAST(NEW.ppjMinorPersonUid AS BIGINT), NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, CAST(NEW.ppjApprovalTiemstamp AS BIGINT), NEW.ppjApprovalIpAddr) ON CONFLICT(ppjUid) DO UPDATE SET ppjPcsn = NEW.ppjPcsn, ppjLcsn = NEW.ppjLcsn, ppjLcb = NEW.ppjLcb, ppjLct = NEW.ppjLct, ppjParentPersonUid = NEW.ppjParentPersonUid, ppjMinorPersonUid = NEW.ppjMinorPersonUid, ppjRelationship = NEW.ppjRelationship, ppjEmail = NEW.ppjEmail, ppjPhone = NEW.ppjPhone, ppjInactive = NEW.ppjInactive, ppjStatus = NEW.ppjStatus, ppjApprovalTiemstamp = NEW.ppjApprovalTiemstamp, ppjApprovalIpAddr = NEW.ppjApprovalIpAddr ']; var tmp_230 = to(512, new ReplicationEntityMetaData(512, 'PersonParentJoin', 'PersonParentJoin_ReceiveView', tmp_223, 'ppjLct', tmp_224, 1000, tmp_225, listOf(new Trigger('personparentjoin_remote_insert', tmp_226, tmp_227, tmp_228, tmp_229, tmp$ret$260, 'SELECT \n CAST(NEW.ppjLct AS BIGINT) >\n COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n FROM PersonParentJoin PersonParentJoin_Existing\n WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n ', 'SELECT \n CAST(NEW.ppjLct AS BIGINT) >\n COALESCE((SELECT PersonParentJoin_Existing.ppjLct\n FROM PersonParentJoin PersonParentJoin_Existing\n WHERE PersonParentJoin_Existing.ppjUid = NEW.ppjUid), 0)\n ')))); var tmp_231 = listOf('sgUid'); var tmp_232 = listOf_0([new ReplicationFieldMetaData('sgPcsn', -5, false), new ReplicationFieldMetaData('sgLcsn', -5, false), new ReplicationFieldMetaData('sgLcb', 4, false), new ReplicationFieldMetaData('sgLct', -5, false), new ReplicationFieldMetaData('sgTableId', 4, false), new ReplicationFieldMetaData('sgEntityUid', -5, false), new ReplicationFieldMetaData('sgPermissions', -5, false), new ReplicationFieldMetaData('sgGroupUid', -5, false), new ReplicationFieldMetaData('sgIndex', 4, false), new ReplicationFieldMetaData('sgFlags', 4, false), new ReplicationFieldMetaData('sgUid', -5, false)]); var tmp_233 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_234 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_235 = [Event_INSERT_getInstance()]; var tmp_236 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_237 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$269 = ['UPDATE ScopedGrant SET sgLct = 0 WHERE sgUid = 0']; var tmp_238 = to(48, new ReplicationEntityMetaData(48, 'ScopedGrant', 'ScopedGrant_ReceiveView', tmp_231, 'sgLct', tmp_232, 1000, tmp_233, listOf(new Trigger('sg_remote_insert', tmp_234, tmp_235, tmp_236, tmp_237, tmp$ret$269, 'SELECT \n CAST(NEW.sgLct AS BIGINT) >\n COALESCE((SELECT ScopedGrant_Existing.sgLct\n FROM ScopedGrant ScopedGrant_Existing\n WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n ', 'SELECT \n CAST(NEW.sgLct AS BIGINT) >\n COALESCE((SELECT ScopedGrant_Existing.sgLct\n FROM ScopedGrant ScopedGrant_Existing\n WHERE ScopedGrant_Existing.sgUid = NEW.sgUid), 0)\n ')))); var tmp_239 = listOf('errUid'); var tmp_240 = listOf_0([new ReplicationFieldMetaData('errPcsn', -5, false), new ReplicationFieldMetaData('errLcsn', -5, false), new ReplicationFieldMetaData('errLcb', 4, false), new ReplicationFieldMetaData('errLct', -5, false), new ReplicationFieldMetaData('severity', 4, false), new ReplicationFieldMetaData('timestamp', -5, false), new ReplicationFieldMetaData('presenterUri', -1, true), new ReplicationFieldMetaData('appVersion', -1, true), new ReplicationFieldMetaData('versionCode', 4, false), new ReplicationFieldMetaData('errorCode', 4, false), new ReplicationFieldMetaData('operatingSys', -1, true), new ReplicationFieldMetaData('osVersion', -1, true), new ReplicationFieldMetaData('stackTrace', -1, true), new ReplicationFieldMetaData('message', -1, true), new ReplicationFieldMetaData('errUid', -5, false)]); var tmp_241 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_242 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_243 = [Event_INSERT_getInstance()]; var tmp_244 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_245 = ['REPLACE INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$278 = ['INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES( CAST(NEW.errUid AS BIGINT), CAST(NEW.errPcsn AS BIGINT), CAST(NEW.errLcsn AS BIGINT), NEW.errLcb, CAST(NEW.errLct AS BIGINT), NEW.severity, CAST(NEW.timestamp AS BIGINT), NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ON CONFLICT(errUid) DO UPDATE SET errPcsn = NEW.errPcsn, errLcsn = NEW.errLcsn, errLcb = NEW.errLcb, errLct = NEW.errLct, severity = NEW.severity, timestamp = NEW.timestamp, presenterUri = NEW.presenterUri, appVersion = NEW.appVersion, versionCode = NEW.versionCode, errorCode = NEW.errorCode, operatingSys = NEW.operatingSys, osVersion = NEW.osVersion, stackTrace = NEW.stackTrace, message = NEW.message ']; var tmp_246 = to(419, new ReplicationEntityMetaData(419, 'ErrorReport', 'ErrorReport_ReceiveView', tmp_239, 'errLct', tmp_240, 1000, tmp_241, listOf(new Trigger('errorreport_remote_insert', tmp_242, tmp_243, tmp_244, tmp_245, tmp$ret$278, 'SELECT \n CAST(NEW.errLct AS BIGINT) >\n COALESCE((SELECT ErrorReport_Existing.errLct\n FROM ErrorReport ErrorReport_Existing\n WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n ', 'SELECT \n CAST(NEW.errLct AS BIGINT) >\n COALESCE((SELECT ErrorReport_Existing.errLct\n FROM ErrorReport ErrorReport_Existing\n WHERE ErrorReport_Existing.errUid = NEW.errUid), 0)\n ')))); var tmp_247 = listOf('caUid'); var tmp_248 = listOf_0([new ReplicationFieldMetaData('caTitle', -1, true), new ReplicationFieldMetaData('caDescription', -1, true), new ReplicationFieldMetaData('caGroupUid', -5, false), new ReplicationFieldMetaData('caActive', 16, false), new ReplicationFieldMetaData('caClassCommentEnabled', 16, false), new ReplicationFieldMetaData('caPrivateCommentsEnabled', 16, false), new ReplicationFieldMetaData('caCompletionCriteria', 4, false), new ReplicationFieldMetaData('caRequireFileSubmission', 16, false), new ReplicationFieldMetaData('caFileType', 4, false), new ReplicationFieldMetaData('caSizeLimit', 4, false), new ReplicationFieldMetaData('caNumberOfFiles', 4, false), new ReplicationFieldMetaData('caSubmissionPolicy', 4, false), new ReplicationFieldMetaData('caMarkingType', 4, false), new ReplicationFieldMetaData('caRequireTextSubmission', 16, false), new ReplicationFieldMetaData('caTextLimitType', 4, false), new ReplicationFieldMetaData('caTextLimit', 4, false), new ReplicationFieldMetaData('caXObjectUid', -5, false), new ReplicationFieldMetaData('caClazzUid', -5, false), new ReplicationFieldMetaData('caPeerReviewerCount', 4, false), new ReplicationFieldMetaData('caLocalChangeSeqNum', -5, false), new ReplicationFieldMetaData('caMasterChangeSeqNum', -5, false), new ReplicationFieldMetaData('caLastChangedBy', 4, false), new ReplicationFieldMetaData('caLct', -5, false), new ReplicationFieldMetaData('caUid', -5, false)]); var tmp_249 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_250 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_251 = [Event_INSERT_getInstance()]; var tmp_252 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_253 = ['REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$287 = ['INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES( CAST(NEW.caUid AS BIGINT), NEW.caTitle, NEW.caDescription, CAST(NEW.caGroupUid AS BIGINT), NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caCompletionCriteria, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType, NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, CAST(NEW.caXObjectUid AS BIGINT), CAST(NEW.caClazzUid AS BIGINT), NEW.caPeerReviewerCount, CAST(NEW.caLocalChangeSeqNum AS BIGINT), CAST(NEW.caMasterChangeSeqNum AS BIGINT), NEW.caLastChangedBy, CAST(NEW.caLct AS BIGINT)) ON CONFLICT(caUid) DO UPDATE SET caTitle = NEW.caTitle, caDescription = NEW.caDescription, caGroupUid = NEW.caGroupUid, caActive = NEW.caActive, caClassCommentEnabled = NEW.caClassCommentEnabled, caPrivateCommentsEnabled = NEW.caPrivateCommentsEnabled, caCompletionCriteria = NEW.caCompletionCriteria, caRequireFileSubmission = NEW.caRequireFileSubmission, caFileType = NEW.caFileType, caSizeLimit = NEW.caSizeLimit, caNumberOfFiles = NEW.caNumberOfFiles, caSubmissionPolicy = NEW.caSubmissionPolicy, caMarkingType = NEW.caMarkingType, caRequireTextSubmission = NEW.caRequireTextSubmission, caTextLimitType = NEW.caTextLimitType, caTextLimit = NEW.caTextLimit, caXObjectUid = NEW.caXObjectUid, caClazzUid = NEW.caClazzUid, caPeerReviewerCount = NEW.caPeerReviewerCount, caLocalChangeSeqNum = NEW.caLocalChangeSeqNum, caMasterChangeSeqNum = NEW.caMasterChangeSeqNum, caLastChangedBy = NEW.caLastChangedBy, caLct = NEW.caLct ']; var tmp_254 = to(520, new ReplicationEntityMetaData(520, 'ClazzAssignment', 'ClazzAssignment_ReceiveView', tmp_247, 'caLct', tmp_248, 1000, tmp_249, listOf(new Trigger('clazzassignment_remote_insert', tmp_250, tmp_251, tmp_252, tmp_253, tmp$ret$287, 'SELECT \n CAST(NEW.caLct AS BIGINT) >\n COALESCE((SELECT ClazzAssignment_Existing.caLct\n FROM ClazzAssignment ClazzAssignment_Existing\n WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n ', 'SELECT \n CAST(NEW.caLct AS BIGINT) >\n COALESCE((SELECT ClazzAssignment_Existing.caLct\n FROM ClazzAssignment ClazzAssignment_Existing\n WHERE ClazzAssignment_Existing.caUid = NEW.caUid), 0)\n ')))); var tmp_255 = listOf('casUid'); var tmp_256 = listOf_0([new ReplicationFieldMetaData('casAssignmentUid', -5, false), new ReplicationFieldMetaData('casSubmitterUid', -5, false), new ReplicationFieldMetaData('casSubmitterPersonUid', -5, false), new ReplicationFieldMetaData('casText', -1, true), new ReplicationFieldMetaData('casType', 4, false), new ReplicationFieldMetaData('casTimestamp', -5, false), new ReplicationFieldMetaData('casClazzUid', -5, false), new ReplicationFieldMetaData('casUid', -5, false)]); var tmp_257 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_258 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_259 = [Event_INSERT_getInstance()]; var tmp_260 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_261 = ['REPLACE INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$296 = ['INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES( CAST(NEW.casUid AS BIGINT), CAST(NEW.casAssignmentUid AS BIGINT), CAST(NEW.casSubmitterUid AS BIGINT), CAST(NEW.casSubmitterPersonUid AS BIGINT), NEW.casText, NEW.casType, CAST(NEW.casTimestamp AS BIGINT), CAST(NEW.casClazzUid AS BIGINT)) ON CONFLICT(casUid) DO UPDATE SET casAssignmentUid = NEW.casAssignmentUid, casSubmitterUid = NEW.casSubmitterUid, casSubmitterPersonUid = NEW.casSubmitterPersonUid, casText = NEW.casText, casType = NEW.casType, casTimestamp = NEW.casTimestamp, casClazzUid = NEW.casClazzUid ']; var tmp_262 = to(522, new ReplicationEntityMetaData(522, 'CourseAssignmentSubmission', 'CourseAssignmentSubmission_ReceiveView', tmp_255, 'casTimestamp', tmp_256, 1000, tmp_257, listOf(new Trigger('courseassignmentsubmission_remote_insert', tmp_258, tmp_259, tmp_260, tmp_261, tmp$ret$296, 'SELECT \n CAST(NEW.casTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n ', 'SELECT \n CAST(NEW.casTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmission_Existing.casTimestamp\n FROM CourseAssignmentSubmission CourseAssignmentSubmission_Existing\n WHERE CourseAssignmentSubmission_Existing.casUid = NEW.casUid), 0)\n ')))); var tmp_263 = listOf('casaUid'); var tmp_264 = listOf_0([new ReplicationFieldMetaData('casaSubmissionUid', -5, false), new ReplicationFieldMetaData('casaSubmitterUid', -5, false), new ReplicationFieldMetaData('casaCaUid', -5, false), new ReplicationFieldMetaData('casaClazzUid', -5, false), new ReplicationFieldMetaData('casaMimeType', -1, true), new ReplicationFieldMetaData('casaFileName', -1, true), new ReplicationFieldMetaData('casaUri', -1, true), new ReplicationFieldMetaData('casaSize', 4, false), new ReplicationFieldMetaData('casaTimestamp', -5, false), new ReplicationFieldMetaData('casaDeleted', 16, false), new ReplicationFieldMetaData('casaUid', -5, false)]); var tmp_265 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_266 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_267 = [Event_INSERT_getInstance()]; var tmp_268 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_269 = ['REPLACE INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$305 = ['INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES( CAST(NEW.casaUid AS BIGINT), CAST(NEW.casaSubmissionUid AS BIGINT), CAST(NEW.casaSubmitterUid AS BIGINT), CAST(NEW.casaCaUid AS BIGINT), CAST(NEW.casaClazzUid AS BIGINT), NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaSize, CAST(NEW.casaTimestamp AS BIGINT), NEW.casaDeleted) ON CONFLICT(casaUid) DO UPDATE SET casaSubmissionUid = NEW.casaSubmissionUid, casaSubmitterUid = NEW.casaSubmitterUid, casaCaUid = NEW.casaCaUid, casaClazzUid = NEW.casaClazzUid, casaMimeType = NEW.casaMimeType, casaFileName = NEW.casaFileName, casaUri = NEW.casaUri, casaSize = NEW.casaSize, casaTimestamp = NEW.casaTimestamp, casaDeleted = NEW.casaDeleted ']; var tmp_270 = to(90, new ReplicationEntityMetaData(90, 'CourseAssignmentSubmissionFile', 'CourseAssignmentSubmissionFile_ReceiveView', tmp_263, 'casaTimestamp', tmp_264, 1000, tmp_265, listOf(new Trigger('courseassignmentsubmissionattachment_remote_insert', tmp_266, tmp_267, tmp_268, tmp_269, tmp$ret$305, 'SELECT \n CAST(NEW.casaTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n ', 'SELECT \n CAST(NEW.casaTimestamp AS BIGINT) >\n COALESCE((SELECT CourseAssignmentSubmissionFile_Existing.casaTimestamp\n FROM CourseAssignmentSubmissionFile CourseAssignmentSubmissionFile_Existing\n WHERE CourseAssignmentSubmissionFile_Existing.casaUid = NEW.casaUid), 0)\n ')))); var tmp_271 = listOf('camUid'); var tmp_272 = listOf_0([new ReplicationFieldMetaData('camAssignmentUid', -5, false), new ReplicationFieldMetaData('camSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('camMarkerPersonUid', -5, false), new ReplicationFieldMetaData('camMarkerComment', -1, true), new ReplicationFieldMetaData('camMark', 6, false), new ReplicationFieldMetaData('camMaxMark', 6, false), new ReplicationFieldMetaData('camPenalty', 6, false), new ReplicationFieldMetaData('camLct', -5, false), new ReplicationFieldMetaData('camClazzUid', -5, false), new ReplicationFieldMetaData('camUid', -5, false)]); var tmp_273 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_274 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_275 = [Event_INSERT_getInstance()]; var tmp_276 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_277 = ['REPLACE INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$314 = ['INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES( CAST(NEW.camUid AS BIGINT), CAST(NEW.camAssignmentUid AS BIGINT), CAST(NEW.camSubmitterUid AS BIGINT), CAST(NEW.camMarkerSubmitterUid AS BIGINT), CAST(NEW.camMarkerPersonUid AS BIGINT), NEW.camMarkerComment, NEW.camMark, NEW.camMaxMark, NEW.camPenalty, CAST(NEW.camLct AS BIGINT), CAST(NEW.camClazzUid AS BIGINT)) ON CONFLICT(camUid) DO UPDATE SET camAssignmentUid = NEW.camAssignmentUid, camSubmitterUid = NEW.camSubmitterUid, camMarkerSubmitterUid = NEW.camMarkerSubmitterUid, camMarkerPersonUid = NEW.camMarkerPersonUid, camMarkerComment = NEW.camMarkerComment, camMark = NEW.camMark, camMaxMark = NEW.camMaxMark, camPenalty = NEW.camPenalty, camLct = NEW.camLct, camClazzUid = NEW.camClazzUid ']; var tmp_278 = to(523, new ReplicationEntityMetaData(523, 'CourseAssignmentMark', 'CourseAssignmentMark_ReceiveView', tmp_271, 'camLct', tmp_272, 1000, tmp_273, listOf(new Trigger('courseassignmentmark_remote_insert', tmp_274, tmp_275, tmp_276, tmp_277, tmp$ret$314, 'SELECT \n CAST(NEW.camLct AS BIGINT) >\n COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n FROM CourseAssignmentMark CourseAssignmentMark_Existing\n WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n ', 'SELECT \n CAST(NEW.camLct AS BIGINT) >\n COALESCE((SELECT CourseAssignmentMark_Existing.camLct\n FROM CourseAssignmentMark CourseAssignmentMark_Existing\n WHERE CourseAssignmentMark_Existing.camUid = NEW.camUid), 0)\n ')))); var tmp_279 = listOf('praUid'); var tmp_280 = listOf_0([new ReplicationFieldMetaData('praMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praToMarkerSubmitterUid', -5, false), new ReplicationFieldMetaData('praAssignmentUid', -5, false), new ReplicationFieldMetaData('praActive', 16, false), new ReplicationFieldMetaData('praLct', -5, false), new ReplicationFieldMetaData('praUid', -5, false)]); var tmp_281 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_282 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_283 = [Event_INSERT_getInstance()]; var tmp_284 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_285 = ['REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$323 = ['INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES( CAST(NEW.praUid AS BIGINT), CAST(NEW.praMarkerSubmitterUid AS BIGINT), CAST(NEW.praToMarkerSubmitterUid AS BIGINT), CAST(NEW.praAssignmentUid AS BIGINT), NEW.praActive, CAST(NEW.praLct AS BIGINT)) ON CONFLICT(praUid) DO UPDATE SET praMarkerSubmitterUid = NEW.praMarkerSubmitterUid, praToMarkerSubmitterUid = NEW.praToMarkerSubmitterUid, praAssignmentUid = NEW.praAssignmentUid, praActive = NEW.praActive, praLct = NEW.praLct ']; var tmp_286 = to(140, new ReplicationEntityMetaData(140, 'PeerReviewerAllocation', 'PeerReviewerAllocation_ReceiveView', tmp_279, 'praLct', tmp_280, 1000, tmp_281, listOf(new Trigger('peerreviewerallocation_remote_insert', tmp_282, tmp_283, tmp_284, tmp_285, tmp$ret$323, 'SELECT \n CAST(NEW.praLct AS BIGINT) >\n COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n ', 'SELECT \n CAST(NEW.praLct AS BIGINT) >\n COALESCE((SELECT PeerReviewerAllocation_Existing.praLct\n FROM PeerReviewerAllocation PeerReviewerAllocation_Existing\n WHERE PeerReviewerAllocation_Existing.praUid = NEW.praUid), 0)\n ')))); var tmp_287 = listOf('pauthUid'); var tmp_288 = listOf_0([new ReplicationFieldMetaData('pauthUid', -5, false), new ReplicationFieldMetaData('pauthMechanism', -1, true), new ReplicationFieldMetaData('pauthAuth', -1, true), new ReplicationFieldMetaData('pauthLcsn', -5, false), new ReplicationFieldMetaData('pauthPcsn', -5, false), new ReplicationFieldMetaData('pauthLcb', -5, false), new ReplicationFieldMetaData('pauthLct', -5, false)]); var tmp_289 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_290 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_291 = [Event_INSERT_getInstance()]; var tmp_292 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_293 = ['REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$332 = ['INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES( CAST(NEW.pauthUid AS BIGINT), NEW.pauthMechanism, NEW.pauthAuth, CAST(NEW.pauthLcsn AS BIGINT), CAST(NEW.pauthPcsn AS BIGINT), CAST(NEW.pauthLcb AS BIGINT), CAST(NEW.pauthLct AS BIGINT)) ON CONFLICT(pauthUid) DO UPDATE SET pauthMechanism = NEW.pauthMechanism, pauthAuth = NEW.pauthAuth, pauthLcsn = NEW.pauthLcsn, pauthPcsn = NEW.pauthPcsn, pauthLcb = NEW.pauthLcb, pauthLct = NEW.pauthLct ']; var tmp_294 = to(678, new ReplicationEntityMetaData(678, 'PersonAuth2', 'PersonAuth2_ReceiveView', tmp_287, 'pauthLct', tmp_288, 1000, tmp_289, listOf(new Trigger('personauth2_remote_insert', tmp_290, tmp_291, tmp_292, tmp_293, tmp$ret$332, 'SELECT \n CAST(NEW.pauthLct AS BIGINT) >\n COALESCE((SELECT PersonAuth2_Existing.pauthLct\n FROM PersonAuth2 PersonAuth2_Existing\n WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n ', 'SELECT \n CAST(NEW.pauthLct AS BIGINT) >\n COALESCE((SELECT PersonAuth2_Existing.pauthLct\n FROM PersonAuth2 PersonAuth2_Existing\n WHERE PersonAuth2_Existing.pauthUid = NEW.pauthUid), 0)\n ')))); var tmp_295 = listOf('usUid'); var tmp_296 = listOf_0([new ReplicationFieldMetaData('usPcsn', -5, false), new ReplicationFieldMetaData('usLcsn', -5, false), new ReplicationFieldMetaData('usLcb', -5, false), new ReplicationFieldMetaData('usLct', -5, false), new ReplicationFieldMetaData('usPersonUid', -5, false), new ReplicationFieldMetaData('usClientNodeId', -5, false), new ReplicationFieldMetaData('usStartTime', -5, false), new ReplicationFieldMetaData('usEndTime', -5, false), new ReplicationFieldMetaData('usStatus', 4, false), new ReplicationFieldMetaData('usReason', 4, false), new ReplicationFieldMetaData('usAuth', -1, true), new ReplicationFieldMetaData('usSessionType', 4, false), new ReplicationFieldMetaData('usUid', -5, false)]); var tmp_297 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_298 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_299 = [Event_INSERT_getInstance()]; var tmp_300 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_301 = ['REPLACE INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$341 = ['INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES( CAST(NEW.usUid AS BIGINT), CAST(NEW.usPcsn AS BIGINT), CAST(NEW.usLcsn AS BIGINT), CAST(NEW.usLcb AS BIGINT), CAST(NEW.usLct AS BIGINT), CAST(NEW.usPersonUid AS BIGINT), CAST(NEW.usClientNodeId AS BIGINT), CAST(NEW.usStartTime AS BIGINT), CAST(NEW.usEndTime AS BIGINT), NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) ON CONFLICT(usUid) DO UPDATE SET usPcsn = NEW.usPcsn, usLcsn = NEW.usLcsn, usLcb = NEW.usLcb, usLct = NEW.usLct, usPersonUid = NEW.usPersonUid, usClientNodeId = NEW.usClientNodeId, usStartTime = NEW.usStartTime, usEndTime = NEW.usEndTime, usStatus = NEW.usStatus, usReason = NEW.usReason, usAuth = NEW.usAuth, usSessionType = NEW.usSessionType ']; var tmp_302 = to(679, new ReplicationEntityMetaData(679, 'UserSession', 'UserSession_ReceiveView', tmp_295, 'usLct', tmp_296, 1000, tmp_297, listOf(new Trigger('usersession_remote_insert', tmp_298, tmp_299, tmp_300, tmp_301, tmp$ret$341, 'SELECT \n CAST(NEW.usLct AS BIGINT) >\n COALESCE((SELECT UserSession_Existing.usLct\n FROM UserSession UserSession_Existing\n WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n ', 'SELECT \n CAST(NEW.usLct AS BIGINT) >\n COALESCE((SELECT UserSession_Existing.usLct\n FROM UserSession UserSession_Existing\n WHERE UserSession_Existing.usUid = NEW.usUid), 0)\n ')))); var tmp_303 = listOf('cjUid'); var tmp_304 = listOf_0([new ReplicationFieldMetaData('toUri', -1, true), new ReplicationFieldMetaData('cjProgress', -5, false), new ReplicationFieldMetaData('cjTotal', -5, false), new ReplicationFieldMetaData('cjNotificationTitle', -1, true), new ReplicationFieldMetaData('cjIsMeteredAllowed', 16, false), new ReplicationFieldMetaData('params', -1, true), new ReplicationFieldMetaData('cjLct', -5, false), new ReplicationFieldMetaData('cjUid', -5, false)]); var tmp_305 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_306 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_307 = [Event_INSERT_getInstance()]; var tmp_308 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_309 = ['REPLACE INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$350 = ['INSERT INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) VALUES( CAST(NEW.cjUid AS BIGINT), NEW.toUri, CAST(NEW.cjProgress AS BIGINT), CAST(NEW.cjTotal AS BIGINT), NEW.cjNotificationTitle, NEW.cjIsMeteredAllowed, NEW.params, CAST(NEW.cjLct AS BIGINT)) ON CONFLICT(cjUid) DO UPDATE SET toUri = NEW.toUri, cjProgress = NEW.cjProgress, cjTotal = NEW.cjTotal, cjNotificationTitle = NEW.cjNotificationTitle, cjIsMeteredAllowed = NEW.cjIsMeteredAllowed, params = NEW.params, cjLct = NEW.cjLct ']; var tmp_310 = to(702, new ReplicationEntityMetaData(702, 'ContentJob', 'ContentJob_ReceiveView', tmp_303, 'cjLct', tmp_304, 1000, tmp_305, listOf(new Trigger('contentjob_remote_insert', tmp_306, tmp_307, tmp_308, tmp_309, tmp$ret$350, 'SELECT \n CAST(NEW.cjLct AS BIGINT) >\n COALESCE((SELECT ContentJob_Existing.cjLct\n FROM ContentJob ContentJob_Existing\n WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n ', 'SELECT \n CAST(NEW.cjLct AS BIGINT) >\n COALESCE((SELECT ContentJob_Existing.cjLct\n FROM ContentJob ContentJob_Existing\n WHERE ContentJob_Existing.cjUid = NEW.cjUid), 0)\n ')))); var tmp_311 = listOf('cbUid'); var tmp_312 = listOf_0([new ReplicationFieldMetaData('cbType', 4, false), new ReplicationFieldMetaData('cbIndentLevel', 4, false), new ReplicationFieldMetaData('cbModuleParentBlockUid', -5, false), new ReplicationFieldMetaData('cbTitle', -1, true), new ReplicationFieldMetaData('cbDescription', -1, true), new ReplicationFieldMetaData('cbCompletionCriteria', 4, false), new ReplicationFieldMetaData('cbHideUntilDate', -5, false), new ReplicationFieldMetaData('cbDeadlineDate', -5, false), new ReplicationFieldMetaData('cbLateSubmissionPenalty', 4, false), new ReplicationFieldMetaData('cbGracePeriodDate', -5, false), new ReplicationFieldMetaData('cbMaxPoints', 6, true), new ReplicationFieldMetaData('cbMinPoints', 6, true), new ReplicationFieldMetaData('cbIndex', 4, false), new ReplicationFieldMetaData('cbClazzUid', -5, false), new ReplicationFieldMetaData('cbClazzSourcedId', -1, true), new ReplicationFieldMetaData('cbActive', 16, false), new ReplicationFieldMetaData('cbHidden', 16, false), new ReplicationFieldMetaData('cbEntityUid', -5, false), new ReplicationFieldMetaData('cbLct', -5, false), new ReplicationFieldMetaData('cbSourcedId', -1, true), new ReplicationFieldMetaData('cbMetadata', -1, true), new ReplicationFieldMetaData('cbCreatedByAppId', -1, true), new ReplicationFieldMetaData('cbUid', -5, false)]); var tmp_313 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_314 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_315 = [Event_INSERT_getInstance()]; var tmp_316 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_317 = ['REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$359 = ['INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES( CAST(NEW.cbUid AS BIGINT), NEW.cbType, NEW.cbIndentLevel, CAST(NEW.cbModuleParentBlockUid AS BIGINT), NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, CAST(NEW.cbHideUntilDate AS BIGINT), CAST(NEW.cbDeadlineDate AS BIGINT), NEW.cbLateSubmissionPenalty, CAST(NEW.cbGracePeriodDate AS BIGINT), NEW.cbMaxPoints, NEW.cbMinPoints, NEW.cbIndex, CAST(NEW.cbClazzUid AS BIGINT), NEW.cbClazzSourcedId, NEW.cbActive, NEW.cbHidden, CAST(NEW.cbEntityUid AS BIGINT), CAST(NEW.cbLct AS BIGINT), NEW.cbSourcedId, NEW.cbMetadata, NEW.cbCreatedByAppId) ON CONFLICT(cbUid) DO UPDATE SET cbType = NEW.cbType, cbIndentLevel = NEW.cbIndentLevel, cbModuleParentBlockUid = NEW.cbModuleParentBlockUid, cbTitle = NEW.cbTitle, cbDescription = NEW.cbDescription, cbCompletionCriteria = NEW.cbCompletionCriteria, cbHideUntilDate = NEW.cbHideUntilDate, cbDeadlineDate = NEW.cbDeadlineDate, cbLateSubmissionPenalty = NEW.cbLateSubmissionPenalty, cbGracePeriodDate = NEW.cbGracePeriodDate, cbMaxPoints = NEW.cbMaxPoints, cbMinPoints = NEW.cbMinPoints, cbIndex = NEW.cbIndex, cbClazzUid = NEW.cbClazzUid, cbClazzSourcedId = NEW.cbClazzSourcedId, cbActive = NEW.cbActive, cbHidden = NEW.cbHidden, cbEntityUid = NEW.cbEntityUid, cbLct = NEW.cbLct, cbSourcedId = NEW.cbSourcedId, cbMetadata = NEW.cbMetadata, cbCreatedByAppId = NEW.cbCreatedByAppId ']; var tmp_318 = to(124, new ReplicationEntityMetaData(124, 'CourseBlock', 'CourseBlock_ReceiveView', tmp_311, 'cbLct', tmp_312, 1000, tmp_313, listOf(new Trigger('courseblock_remote_insert', tmp_314, tmp_315, tmp_316, tmp_317, tmp$ret$359, 'SELECT \n CAST(NEW.cbLct AS BIGINT) >\n COALESCE((SELECT CourseBlock_Existing.cbLct\n FROM CourseBlock CourseBlock_Existing\n WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n ', 'SELECT \n CAST(NEW.cbLct AS BIGINT) >\n COALESCE((SELECT CourseBlock_Existing.cbLct\n FROM CourseBlock CourseBlock_Existing\n WHERE CourseBlock_Existing.cbUid = NEW.cbUid), 0)\n ')))); var tmp_319 = listOf('ctUid'); var tmp_320 = listOf_0([new ReplicationFieldMetaData('ctTitle', -1, true), new ReplicationFieldMetaData('ctTerminology', -1, true), new ReplicationFieldMetaData('ctLct', -5, false), new ReplicationFieldMetaData('ctUid', -5, false)]); var tmp_321 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_322 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_323 = [Event_INSERT_getInstance()]; var tmp_324 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_325 = ['REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$368 = ['INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES( CAST(NEW.ctUid AS BIGINT), NEW.ctTitle, NEW.ctTerminology, CAST(NEW.ctLct AS BIGINT)) ON CONFLICT(ctUid) DO UPDATE SET ctTitle = NEW.ctTitle, ctTerminology = NEW.ctTerminology, ctLct = NEW.ctLct ']; var tmp_326 = to(450, new ReplicationEntityMetaData(450, 'CourseTerminology', 'CourseTerminology_ReceiveView', tmp_319, 'ctLct', tmp_320, 1000, tmp_321, listOf(new Trigger('courseterminology_remote_insert', tmp_322, tmp_323, tmp_324, tmp_325, tmp$ret$368, 'SELECT \n CAST(NEW.ctLct AS BIGINT) >\n COALESCE((SELECT CourseTerminology_Existing.ctLct\n FROM CourseTerminology CourseTerminology_Existing\n WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n ', 'SELECT \n CAST(NEW.ctLct AS BIGINT) >\n COALESCE((SELECT CourseTerminology_Existing.ctLct\n FROM CourseTerminology CourseTerminology_Existing\n WHERE CourseTerminology_Existing.ctUid = NEW.ctUid), 0)\n ')))); var tmp_327 = listOf('cgsUid'); var tmp_328 = listOf_0([new ReplicationFieldMetaData('cgsName', -1, true), new ReplicationFieldMetaData('cgsTotalGroups', 4, false), new ReplicationFieldMetaData('cgsActive', 16, false), new ReplicationFieldMetaData('cgsClazzUid', -5, false), new ReplicationFieldMetaData('cgsLct', -5, false), new ReplicationFieldMetaData('cgsUid', -5, false)]); var tmp_329 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_330 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_331 = [Event_INSERT_getInstance()]; var tmp_332 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_333 = ['REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$377 = ['INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES( CAST(NEW.cgsUid AS BIGINT), NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, CAST(NEW.cgsClazzUid AS BIGINT), CAST(NEW.cgsLct AS BIGINT)) ON CONFLICT(cgsUid) DO UPDATE SET cgsName = NEW.cgsName, cgsTotalGroups = NEW.cgsTotalGroups, cgsActive = NEW.cgsActive, cgsClazzUid = NEW.cgsClazzUid, cgsLct = NEW.cgsLct ']; var tmp_334 = to(242, new ReplicationEntityMetaData(242, 'CourseGroupSet', 'CourseGroupSet_ReceiveView', tmp_327, 'cgsLct', tmp_328, 1000, tmp_329, listOf(new Trigger('coursegroupset_remote_insert', tmp_330, tmp_331, tmp_332, tmp_333, tmp$ret$377, 'SELECT \n CAST(NEW.cgsLct AS BIGINT) >\n COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n FROM CourseGroupSet CourseGroupSet_Existing\n WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n ', 'SELECT \n CAST(NEW.cgsLct AS BIGINT) >\n COALESCE((SELECT CourseGroupSet_Existing.cgsLct\n FROM CourseGroupSet CourseGroupSet_Existing\n WHERE CourseGroupSet_Existing.cgsUid = NEW.cgsUid), 0)\n ')))); var tmp_335 = listOf('cgmUid'); var tmp_336 = listOf_0([new ReplicationFieldMetaData('cgmSetUid', -5, false), new ReplicationFieldMetaData('cgmGroupNumber', 4, false), new ReplicationFieldMetaData('cgmPersonUid', -5, false), new ReplicationFieldMetaData('cgmLct', -5, false), new ReplicationFieldMetaData('cgmUid', -5, false)]); var tmp_337 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_338 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_339 = [Event_INSERT_getInstance()]; var tmp_340 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_341 = ['REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$386 = ['INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES( CAST(NEW.cgmUid AS BIGINT), CAST(NEW.cgmSetUid AS BIGINT), NEW.cgmGroupNumber, CAST(NEW.cgmPersonUid AS BIGINT), CAST(NEW.cgmLct AS BIGINT)) ON CONFLICT(cgmUid) DO UPDATE SET cgmSetUid = NEW.cgmSetUid, cgmGroupNumber = NEW.cgmGroupNumber, cgmPersonUid = NEW.cgmPersonUid, cgmLct = NEW.cgmLct ']; var tmp_342 = to(243, new ReplicationEntityMetaData(243, 'CourseGroupMember', 'CourseGroupMember_ReceiveView', tmp_335, 'cgmLct', tmp_336, 1000, tmp_337, listOf(new Trigger('coursegroupmember_remote_insert', tmp_338, tmp_339, tmp_340, tmp_341, tmp$ret$386, 'SELECT \n CAST(NEW.cgmLct AS BIGINT) >\n COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n FROM CourseGroupMember CourseGroupMember_Existing\n WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n ', 'SELECT \n CAST(NEW.cgmLct AS BIGINT) >\n COALESCE((SELECT CourseGroupMember_Existing.cgmLct\n FROM CourseGroupMember CourseGroupMember_Existing\n WHERE CourseGroupMember_Existing.cgmUid = NEW.cgmUid), 0)\n ')))); var tmp_343 = listOf('cepUid'); var tmp_344 = listOf_0([new ReplicationFieldMetaData('cepContentEntryUid', -5, false), new ReplicationFieldMetaData('cepUri', -1, true), new ReplicationFieldMetaData('cepMd5', -1, true), new ReplicationFieldMetaData('cepFileSize', 4, false), new ReplicationFieldMetaData('cepTimestamp', -5, false), new ReplicationFieldMetaData('cepMimeType', -1, true), new ReplicationFieldMetaData('cepActive', 16, false), new ReplicationFieldMetaData('cepUid', -5, false)]); var tmp_345 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_346 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_347 = [Event_INSERT_getInstance()]; var tmp_348 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_349 = ['REPLACE INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$395 = ['INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepContentEntryUid AS BIGINT), NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, CAST(NEW.cepTimestamp AS BIGINT), NEW.cepMimeType, NEW.cepActive) ON CONFLICT(cepUid) DO UPDATE SET cepContentEntryUid = NEW.cepContentEntryUid, cepUri = NEW.cepUri, cepMd5 = NEW.cepMd5, cepFileSize = NEW.cepFileSize, cepTimestamp = NEW.cepTimestamp, cepMimeType = NEW.cepMimeType, cepActive = NEW.cepActive ']; var tmp_350 = to(138, new ReplicationEntityMetaData(138, 'ContentEntryPicture', 'ContentEntryPicture_ReceiveView', tmp_343, 'cepTimestamp', tmp_344, 1000, tmp_345, listOf(new Trigger('ceppicture_remote_insert', tmp_346, tmp_347, tmp_348, tmp_349, tmp$ret$395, 'SELECT \n CAST(NEW.cepTimestamp AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n FROM ContentEntryPicture ContentEntryPicture_Existing\n WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n ', 'SELECT \n CAST(NEW.cepTimestamp AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture_Existing.cepTimestamp\n FROM ContentEntryPicture ContentEntryPicture_Existing\n WHERE ContentEntryPicture_Existing.cepUid = NEW.cepUid), 0)\n ')))); var tmp_351 = listOf_0(['aieActivityUid', 'aieHash']); var tmp_352 = listOf_0([new ReplicationFieldMetaData('aieActivityUid', -5, false), new ReplicationFieldMetaData('aieHash', -5, false), new ReplicationFieldMetaData('aieProp', 4, false), new ReplicationFieldMetaData('aieId', -1, true), new ReplicationFieldMetaData('aieLastMod', -5, false), new ReplicationFieldMetaData('aieIsDeleted', 16, false)]); var tmp_353 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_354 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_355 = [Event_INSERT_getInstance()]; var tmp_356 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_357 = ['REPLACE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$404 = ['INSERT INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES( CAST(NEW.aieActivityUid AS BIGINT), CAST(NEW.aieHash AS BIGINT), NEW.aieProp, NEW.aieId, CAST(NEW.aieLastMod AS BIGINT), NEW.aieIsDeleted) ON CONFLICT(aieActivityUid, aieHash) DO UPDATE SET aieProp = NEW.aieProp, aieId = NEW.aieId, aieLastMod = NEW.aieLastMod, aieIsDeleted = NEW.aieIsDeleted ']; var tmp_358 = to(6401, new ReplicationEntityMetaData(6401, 'ActivityInteractionEntity', 'ActivityInteractionEntity_ReceiveView', tmp_351, 'aieLastMod', tmp_352, 1000, tmp_353, listOf(new Trigger('activityinteractionentity_remote_insert', tmp_354, tmp_355, tmp_356, tmp_357, tmp$ret$404, 'SELECT \n CAST(NEW.aieLastMod AS BIGINT) >\n COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n ', 'SELECT \n CAST(NEW.aieLastMod AS BIGINT) >\n COALESCE((SELECT ActivityInteractionEntity_Existing.aieLastMod\n FROM ActivityInteractionEntity ActivityInteractionEntity_Existing\n WHERE ActivityInteractionEntity_Existing.aieActivityUid = NEW.aieActivityUid AND ActivityInteractionEntity_Existing.aieHash = NEW.aieHash), 0)\n ')))); var tmp_359 = listOf('coursePictureUid'); var tmp_360 = listOf_0([new ReplicationFieldMetaData('coursePictureLct', -5, false), new ReplicationFieldMetaData('coursePictureUri', -1, true), new ReplicationFieldMetaData('coursePictureThumbnailUri', -1, true), new ReplicationFieldMetaData('coursePictureActive', 16, false), new ReplicationFieldMetaData('coursePictureUid', -5, false)]); var tmp_361 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_362 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_363 = [Event_INSERT_getInstance()]; var tmp_364 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_365 = ['REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$413 = ['INSERT INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES( CAST(NEW.coursePictureUid AS BIGINT), CAST(NEW.coursePictureLct AS BIGINT), NEW.coursePictureUri, NEW.coursePictureThumbnailUri, NEW.coursePictureActive) ON CONFLICT(coursePictureUid) DO UPDATE SET coursePictureLct = NEW.coursePictureLct, coursePictureUri = NEW.coursePictureUri, coursePictureThumbnailUri = NEW.coursePictureThumbnailUri, coursePictureActive = NEW.coursePictureActive ']; var tmp_366 = to(125, new ReplicationEntityMetaData(125, 'CoursePicture', 'CoursePicture_ReceiveView', tmp_359, 'coursePictureLct', tmp_360, 1000, tmp_361, listOf(new Trigger('coursepicture_remote_insert', tmp_362, tmp_363, tmp_364, tmp_365, tmp$ret$413, 'SELECT \n CAST(NEW.coursePictureLct AS BIGINT) >\n COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n FROM CoursePicture CoursePicture_Existing\n WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n ', 'SELECT \n CAST(NEW.coursePictureLct AS BIGINT) >\n COALESCE((SELECT CoursePicture_Existing.coursePictureLct\n FROM CoursePicture CoursePicture_Existing\n WHERE CoursePicture_Existing.coursePictureUid = NEW.coursePictureUid), 0)\n ')))); var tmp_367 = listOf('discussionPostUid'); var tmp_368 = listOf_0([new ReplicationFieldMetaData('discussionPostReplyToPostUid', -5, false), new ReplicationFieldMetaData('discussionPostTitle', -1, true), new ReplicationFieldMetaData('discussionPostMessage', -1, true), new ReplicationFieldMetaData('discussionPostStartDate', -5, false), new ReplicationFieldMetaData('discussionPostCourseBlockUid', -5, false), new ReplicationFieldMetaData('dpDeleted', 16, false), new ReplicationFieldMetaData('discussionPostStartedPersonUid', -5, false), new ReplicationFieldMetaData('discussionPostClazzUid', -5, false), new ReplicationFieldMetaData('discussionPostLct', -5, false), new ReplicationFieldMetaData('discussionPostVisible', 16, false), new ReplicationFieldMetaData('discussionPostArchive', 16, false), new ReplicationFieldMetaData('discussionPostUid', -5, false)]); var tmp_369 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_370 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_371 = [Event_INSERT_getInstance()]; var tmp_372 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_373 = ['REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$422 = ['INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES( CAST(NEW.discussionPostUid AS BIGINT), CAST(NEW.discussionPostReplyToPostUid AS BIGINT), NEW.discussionPostTitle, NEW.discussionPostMessage, CAST(NEW.discussionPostStartDate AS BIGINT), CAST(NEW.discussionPostCourseBlockUid AS BIGINT), NEW.dpDeleted, CAST(NEW.discussionPostStartedPersonUid AS BIGINT), CAST(NEW.discussionPostClazzUid AS BIGINT), CAST(NEW.discussionPostLct AS BIGINT), NEW.discussionPostVisible, NEW.discussionPostArchive) ON CONFLICT(discussionPostUid) DO UPDATE SET discussionPostReplyToPostUid = NEW.discussionPostReplyToPostUid, discussionPostTitle = NEW.discussionPostTitle, discussionPostMessage = NEW.discussionPostMessage, discussionPostStartDate = NEW.discussionPostStartDate, discussionPostCourseBlockUid = NEW.discussionPostCourseBlockUid, dpDeleted = NEW.dpDeleted, discussionPostStartedPersonUid = NEW.discussionPostStartedPersonUid, discussionPostClazzUid = NEW.discussionPostClazzUid, discussionPostLct = NEW.discussionPostLct, discussionPostVisible = NEW.discussionPostVisible, discussionPostArchive = NEW.discussionPostArchive ']; var tmp_374 = to(132, new ReplicationEntityMetaData(132, 'DiscussionPost', 'DiscussionPost_ReceiveView', tmp_367, 'discussionPostLct', tmp_368, 1000, tmp_369, listOf(new Trigger('discussionpost_remote_insert', tmp_370, tmp_371, tmp_372, tmp_373, tmp$ret$422, 'SELECT \n CAST(NEW.discussionPostLct AS BIGINT) >\n COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n FROM DiscussionPost DiscussionPost_Existing\n WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n ', 'SELECT \n CAST(NEW.discussionPostLct AS BIGINT) >\n COALESCE((SELECT DiscussionPost_Existing.discussionPostLct\n FROM DiscussionPost DiscussionPost_Existing\n WHERE DiscussionPost_Existing.discussionPostUid = NEW.discussionPostUid), 0)\n ')))); var tmp_375 = listOf('messageUid'); var tmp_376 = listOf_0([new ReplicationFieldMetaData('messageSenderPersonUid', -5, false), new ReplicationFieldMetaData('messageToPersonUid', -5, false), new ReplicationFieldMetaData('messageText', -1, true), new ReplicationFieldMetaData('messageTimestamp', -5, false), new ReplicationFieldMetaData('messageLct', -5, false), new ReplicationFieldMetaData('messageUid', -5, false)]); var tmp_377 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_378 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_379 = [Event_INSERT_getInstance()]; var tmp_380 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_381 = ['REPLACE INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$431 = ['INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES( CAST(NEW.messageUid AS BIGINT), CAST(NEW.messageSenderPersonUid AS BIGINT), CAST(NEW.messageToPersonUid AS BIGINT), NEW.messageText, CAST(NEW.messageTimestamp AS BIGINT), CAST(NEW.messageLct AS BIGINT)) ON CONFLICT(messageUid) DO UPDATE SET messageSenderPersonUid = NEW.messageSenderPersonUid, messageToPersonUid = NEW.messageToPersonUid, messageText = NEW.messageText, messageTimestamp = NEW.messageTimestamp, messageLct = NEW.messageLct ']; var tmp_382 = to(126, new ReplicationEntityMetaData(126, 'Message', 'Message_ReceiveView', tmp_375, 'messageLct', tmp_376, 1000, tmp_377, listOf(new Trigger('message_remote_insert', tmp_378, tmp_379, tmp_380, tmp_381, tmp$ret$431, 'SELECT \n CAST(NEW.messageLct AS BIGINT) >\n COALESCE((SELECT Message_Existing.messageLct\n FROM Message Message_Existing\n WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n ', 'SELECT \n CAST(NEW.messageLct AS BIGINT) >\n COALESCE((SELECT Message_Existing.messageLct\n FROM Message Message_Existing\n WHERE Message_Existing.messageUid = NEW.messageUid), 0)\n ')))); var tmp_383 = listOf('srUid'); var tmp_384 = listOf_0([new ReplicationFieldMetaData('srUid', -5, false), new ReplicationFieldMetaData('srSourcedId', -1, true), new ReplicationFieldMetaData('srCourseBlockUid', -5, false), new ReplicationFieldMetaData('srLineItemSourcedId', -1, true), new ReplicationFieldMetaData('srLineItemHref', -1, true), new ReplicationFieldMetaData('srClazzUid', -5, false), new ReplicationFieldMetaData('srAssignmentUid', -5, false), new ReplicationFieldMetaData('srStatus', 4, false), new ReplicationFieldMetaData('srMetaData', -1, true), new ReplicationFieldMetaData('srStudentPersonUid', -5, false), new ReplicationFieldMetaData('srStudentPersonSourcedId', -1, true), new ReplicationFieldMetaData('srStudentGroupId', 4, false), new ReplicationFieldMetaData('srMarkerPersonUid', -5, false), new ReplicationFieldMetaData('srMarkerGroupId', 4, false), new ReplicationFieldMetaData('srScoreStatus', 4, false), new ReplicationFieldMetaData('srScore', 6, false), new ReplicationFieldMetaData('srScoreDate', -5, false), new ReplicationFieldMetaData('srLastModified', -5, false), new ReplicationFieldMetaData('srComment', -1, true), new ReplicationFieldMetaData('srAppId', -1, true), new ReplicationFieldMetaData('srDeleted', 16, false)]); var tmp_385 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_386 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_387 = [Event_INSERT_getInstance()]; var tmp_388 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_389 = ['REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$440 = ['INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES( CAST(NEW.srUid AS BIGINT), NEW.srSourcedId, CAST(NEW.srCourseBlockUid AS BIGINT), NEW.srLineItemSourcedId, NEW.srLineItemHref, CAST(NEW.srClazzUid AS BIGINT), CAST(NEW.srAssignmentUid AS BIGINT), NEW.srStatus, NEW.srMetaData, CAST(NEW.srStudentPersonUid AS BIGINT), NEW.srStudentPersonSourcedId, NEW.srStudentGroupId, CAST(NEW.srMarkerPersonUid AS BIGINT), NEW.srMarkerGroupId, NEW.srScoreStatus, NEW.srScore, CAST(NEW.srScoreDate AS BIGINT), CAST(NEW.srLastModified AS BIGINT), NEW.srComment, NEW.srAppId, NEW.srDeleted) ON CONFLICT(srUid) DO UPDATE SET srSourcedId = NEW.srSourcedId, srCourseBlockUid = NEW.srCourseBlockUid, srLineItemSourcedId = NEW.srLineItemSourcedId, srLineItemHref = NEW.srLineItemHref, srClazzUid = NEW.srClazzUid, srAssignmentUid = NEW.srAssignmentUid, srStatus = NEW.srStatus, srMetaData = NEW.srMetaData, srStudentPersonUid = NEW.srStudentPersonUid, srStudentPersonSourcedId = NEW.srStudentPersonSourcedId, srStudentGroupId = NEW.srStudentGroupId, srMarkerPersonUid = NEW.srMarkerPersonUid, srMarkerGroupId = NEW.srMarkerGroupId, srScoreStatus = NEW.srScoreStatus, srScore = NEW.srScore, srScoreDate = NEW.srScoreDate, srLastModified = NEW.srLastModified, srComment = NEW.srComment, srAppId = NEW.srAppId, srDeleted = NEW.srDeleted ']; var tmp_390 = to(471, new ReplicationEntityMetaData(471, 'StudentResult', 'StudentResult_ReceiveView', tmp_383, 'srLastModified', tmp_384, 1000, tmp_385, listOf(new Trigger('studentresult_remote_insert', tmp_386, tmp_387, tmp_388, tmp_389, tmp$ret$440, 'SELECT \n CAST(NEW.srLastModified AS BIGINT) >\n COALESCE((SELECT StudentResult_Existing.srLastModified\n FROM StudentResult StudentResult_Existing\n WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n ', 'SELECT \n CAST(NEW.srLastModified AS BIGINT) >\n COALESCE((SELECT StudentResult_Existing.srLastModified\n FROM StudentResult StudentResult_Existing\n WHERE StudentResult_Existing.srUid = NEW.srUid), 0)\n ')))); var tmp_391 = listOf('cevUid'); var tmp_392 = listOf_0([new ReplicationFieldMetaData('cevContentEntryUid', -5, false), new ReplicationFieldMetaData('cevOpenUri', -1, true), new ReplicationFieldMetaData('cevContentType', -1, true), new ReplicationFieldMetaData('cevManifestUrl', -1, true), new ReplicationFieldMetaData('cevSize', -5, false), new ReplicationFieldMetaData('cevInActive', 16, false), new ReplicationFieldMetaData('cevLastModified', -5, false), new ReplicationFieldMetaData('cevLct', -5, false), new ReplicationFieldMetaData('cevStorageSize', -5, false), new ReplicationFieldMetaData('cevOriginalSize', -5, false), new ReplicationFieldMetaData('cevUid', -5, false)]); var tmp_393 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_394 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_395 = [Event_INSERT_getInstance()]; var tmp_396 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_397 = ['REPLACE INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$449 = ['INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES( CAST(NEW.cevUid AS BIGINT), CAST(NEW.cevContentEntryUid AS BIGINT), NEW.cevOpenUri, NEW.cevContentType, NEW.cevManifestUrl, CAST(NEW.cevSize AS BIGINT), NEW.cevInActive, CAST(NEW.cevLastModified AS BIGINT), CAST(NEW.cevLct AS BIGINT), CAST(NEW.cevStorageSize AS BIGINT), CAST(NEW.cevOriginalSize AS BIGINT)) ON CONFLICT(cevUid) DO UPDATE SET cevContentEntryUid = NEW.cevContentEntryUid, cevOpenUri = NEW.cevOpenUri, cevContentType = NEW.cevContentType, cevManifestUrl = NEW.cevManifestUrl, cevSize = NEW.cevSize, cevInActive = NEW.cevInActive, cevLastModified = NEW.cevLastModified, cevLct = NEW.cevLct, cevStorageSize = NEW.cevStorageSize, cevOriginalSize = NEW.cevOriginalSize ']; var tmp_398 = new Trigger('content_entry_version_remote_ins', tmp_394, tmp_395, tmp_396, tmp_397, tmp$ret$449, 'SELECT \n CAST(NEW.cevLct AS BIGINT) >\n COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n FROM ContentEntryVersion ContentEntryVersion_Existing\n WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n ', 'SELECT \n CAST(NEW.cevLct AS BIGINT) >\n COALESCE((SELECT ContentEntryVersion_Existing.cevLct\n FROM ContentEntryVersion ContentEntryVersion_Existing\n WHERE ContentEntryVersion_Existing.cevUid = NEW.cevUid), 0)\n '); var tmp_399 = Order_AFTER_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_400 = [Event_INSERT_getInstance()]; var tmp_401 = On_ENTITY_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_402 = ['\n INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n VALUES ((SELECT COALESCE((\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n ), 0)),\n 738, NEW.cevUid, 2)\n ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$458 = ['\n INSERT INTO OfflineItemPendingTransferJob(oiptjOiUid, oiptjTableId, oiptjEntityUid, oiptjType)\n VALUES ((SELECT COALESCE((\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n ), 0)),\n 738, NEW.cevUid, 2)\n ']; var tmp_403 = to(738, new ReplicationEntityMetaData(738, 'ContentEntryVersion', 'ContentEntryVersion_ReceiveView', tmp_391, 'cevLct', tmp_392, 1000, tmp_393, listOf_0([tmp_398, new Trigger('content_entry_version_offline_item', tmp_399, tmp_400, tmp_401, tmp_402, tmp$ret$458, '\n SELECT EXISTS(\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n )\n AND NOT EXISTS\n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid = NEW.cevUid)\n ', '\n SELECT EXISTS(\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n )\n AND NOT EXISTS\n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid = NEW.cevUid)\n ')]))); var tmp_404 = listOf('oiUid'); var tmp_405 = listOf_0([new ReplicationFieldMetaData('oiNodeId', -5, false), new ReplicationFieldMetaData('oiClazzUid', -5, false), new ReplicationFieldMetaData('oiCourseBlockUid', -5, false), new ReplicationFieldMetaData('oiContentEntryUid', -5, false), new ReplicationFieldMetaData('oiActive', 16, false), new ReplicationFieldMetaData('oiLct', -5, false), new ReplicationFieldMetaData('oiUid', -5, false)]); var tmp_406 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_407 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_408 = [Event_INSERT_getInstance()]; var tmp_409 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_410 = ['REPLACE INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$467 = ['INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES( CAST(NEW.oiUid AS BIGINT), CAST(NEW.oiNodeId AS BIGINT), CAST(NEW.oiClazzUid AS BIGINT), CAST(NEW.oiCourseBlockUid AS BIGINT), CAST(NEW.oiContentEntryUid AS BIGINT), NEW.oiActive, CAST(NEW.oiLct AS BIGINT)) ON CONFLICT(oiUid) DO UPDATE SET oiNodeId = NEW.oiNodeId, oiClazzUid = NEW.oiClazzUid, oiCourseBlockUid = NEW.oiCourseBlockUid, oiContentEntryUid = NEW.oiContentEntryUid, oiActive = NEW.oiActive, oiLct = NEW.oiLct ']; var tmp_411 = to(971, new ReplicationEntityMetaData(971, 'OfflineItem', 'OfflineItem_ReceiveView', tmp_404, 'oiLct', tmp_405, 1000, tmp_406, listOf(new Trigger('offline_item_remote_ins', tmp_407, tmp_408, tmp_409, tmp_410, tmp$ret$467, 'SELECT \n CAST(NEW.oiLct AS BIGINT) >\n COALESCE((SELECT OfflineItem_Existing.oiLct\n FROM OfflineItem OfflineItem_Existing\n WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n ', 'SELECT \n CAST(NEW.oiLct AS BIGINT) >\n COALESCE((SELECT OfflineItem_Existing.oiLct\n FROM OfflineItem OfflineItem_Existing\n WHERE OfflineItem_Existing.oiUid = NEW.oiUid), 0)\n ')))); var tmp_412 = listOf('delItemUid'); var tmp_413 = listOf_0([new ReplicationFieldMetaData('delItemName', -1, true), new ReplicationFieldMetaData('delItemIconUri', -1, true), new ReplicationFieldMetaData('delItemLastModTime', -5, false), new ReplicationFieldMetaData('delItemTimeDeleted', -5, false), new ReplicationFieldMetaData('delItemEntityTable', 4, false), new ReplicationFieldMetaData('delItemEntityUid', -5, false), new ReplicationFieldMetaData('delItemDeletedByPersonUid', -5, false), new ReplicationFieldMetaData('delItemStatus', 4, false), new ReplicationFieldMetaData('delItemIsFolder', 16, false), new ReplicationFieldMetaData('delItemUid', -5, false)]); var tmp_414 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_415 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_416 = [Event_INSERT_getInstance()]; var tmp_417 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_418 = ['REPLACE INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$476 = ['INSERT INTO DeletedItem (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) VALUES( CAST(NEW.delItemUid AS BIGINT), NEW.delItemName, NEW.delItemIconUri, CAST(NEW.delItemLastModTime AS BIGINT), CAST(NEW.delItemTimeDeleted AS BIGINT), NEW.delItemEntityTable, CAST(NEW.delItemEntityUid AS BIGINT), CAST(NEW.delItemDeletedByPersonUid AS BIGINT), NEW.delItemStatus, NEW.delItemIsFolder) ON CONFLICT(delItemUid) DO UPDATE SET delItemName = NEW.delItemName, delItemIconUri = NEW.delItemIconUri, delItemLastModTime = NEW.delItemLastModTime, delItemTimeDeleted = NEW.delItemTimeDeleted, delItemEntityTable = NEW.delItemEntityTable, delItemEntityUid = NEW.delItemEntityUid, delItemDeletedByPersonUid = NEW.delItemDeletedByPersonUid, delItemStatus = NEW.delItemStatus, delItemIsFolder = NEW.delItemIsFolder ']; var tmp_419 = to(999, new ReplicationEntityMetaData(999, 'DeletedItem', 'DeletedItem_ReceiveView', tmp_412, 'delItemLastModTime', tmp_413, 1000, tmp_414, listOf(new Trigger('deleteditem_remote_insert', tmp_415, tmp_416, tmp_417, tmp_418, tmp$ret$476, 'SELECT \n CAST(NEW.delItemLastModTime AS BIGINT) >\n COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n FROM DeletedItem DeletedItem_Existing\n WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n ', 'SELECT \n CAST(NEW.delItemLastModTime AS BIGINT) >\n COALESCE((SELECT DeletedItem_Existing.delItemLastModTime\n FROM DeletedItem DeletedItem_Existing\n WHERE DeletedItem_Existing.delItemUid = NEW.delItemUid), 0)\n ')))); var tmp_420 = listOf('erUid'); var tmp_421 = listOf_0([new ReplicationFieldMetaData('erClazzUid', -5, false), new ReplicationFieldMetaData('erClazzName', -1, true), new ReplicationFieldMetaData('erPersonUid', -5, false), new ReplicationFieldMetaData('erPersonFullname', -1, true), new ReplicationFieldMetaData('erPersonPictureUri', -1, true), new ReplicationFieldMetaData('erPersonUsername', -1, true), new ReplicationFieldMetaData('erRole', 4, false), new ReplicationFieldMetaData('erRequestTime', -5, false), new ReplicationFieldMetaData('erStatus', 4, false), new ReplicationFieldMetaData('erStatusSetByPersonUid', -5, false), new ReplicationFieldMetaData('erDeleted', 16, false), new ReplicationFieldMetaData('erStatusSetAuth', -1, true), new ReplicationFieldMetaData('erLastModified', -5, false), new ReplicationFieldMetaData('erUid', -5, false)]); var tmp_422 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_423 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_424 = [Event_INSERT_getInstance()]; var tmp_425 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_426 = ['REPLACE INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$485 = ['INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES( CAST(NEW.erUid AS BIGINT), CAST(NEW.erClazzUid AS BIGINT), NEW.erClazzName, CAST(NEW.erPersonUid AS BIGINT), NEW.erPersonFullname, NEW.erPersonPictureUri, NEW.erPersonUsername, NEW.erRole, CAST(NEW.erRequestTime AS BIGINT), NEW.erStatus, CAST(NEW.erStatusSetByPersonUid AS BIGINT), NEW.erDeleted, NEW.erStatusSetAuth, CAST(NEW.erLastModified AS BIGINT)) ON CONFLICT(erUid) DO UPDATE SET erClazzUid = NEW.erClazzUid, erClazzName = NEW.erClazzName, erPersonUid = NEW.erPersonUid, erPersonFullname = NEW.erPersonFullname, erPersonPictureUri = NEW.erPersonPictureUri, erPersonUsername = NEW.erPersonUsername, erRole = NEW.erRole, erRequestTime = NEW.erRequestTime, erStatus = NEW.erStatus, erStatusSetByPersonUid = NEW.erStatusSetByPersonUid, erDeleted = NEW.erDeleted, erStatusSetAuth = NEW.erStatusSetAuth, erLastModified = NEW.erLastModified ']; var tmp_427 = to(10070, new ReplicationEntityMetaData(10070, 'EnrolmentRequest', 'EnrolmentRequest_ReceiveView', tmp_420, 'erLastModified', tmp_421, 1000, tmp_422, listOf(new Trigger('enrolmentrequest_remote_insert', tmp_423, tmp_424, tmp_425, tmp_426, tmp$ret$485, 'SELECT \n CAST(NEW.erLastModified AS BIGINT) >\n COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n FROM EnrolmentRequest EnrolmentRequest_Existing\n WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n ', 'SELECT \n CAST(NEW.erLastModified AS BIGINT) >\n COALESCE((SELECT EnrolmentRequest_Existing.erLastModified\n FROM EnrolmentRequest EnrolmentRequest_Existing\n WHERE EnrolmentRequest_Existing.erUid = NEW.erUid), 0)\n ')))); var tmp_428 = listOf('cpUid'); var tmp_429 = listOf_0([new ReplicationFieldMetaData('cpLastModified', -5, false), new ReplicationFieldMetaData('cpClazzUid', -5, false), new ReplicationFieldMetaData('cpToEnrolmentRole', 4, false), new ReplicationFieldMetaData('cpToPersonUid', -5, false), new ReplicationFieldMetaData('cpToGroupUid', -5, false), new ReplicationFieldMetaData('cpPermissionsFlag', -5, false), new ReplicationFieldMetaData('cpIsDeleted', 16, false), new ReplicationFieldMetaData('cpUid', -5, false)]); var tmp_430 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_431 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_432 = [Event_INSERT_getInstance()]; var tmp_433 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_434 = ['REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$494 = ['INSERT INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES( CAST(NEW.cpUid AS BIGINT), CAST(NEW.cpLastModified AS BIGINT), CAST(NEW.cpClazzUid AS BIGINT), NEW.cpToEnrolmentRole, CAST(NEW.cpToPersonUid AS BIGINT), CAST(NEW.cpToGroupUid AS BIGINT), CAST(NEW.cpPermissionsFlag AS BIGINT), NEW.cpIsDeleted) ON CONFLICT(cpUid) DO UPDATE SET cpLastModified = NEW.cpLastModified, cpClazzUid = NEW.cpClazzUid, cpToEnrolmentRole = NEW.cpToEnrolmentRole, cpToPersonUid = NEW.cpToPersonUid, cpToGroupUid = NEW.cpToGroupUid, cpPermissionsFlag = NEW.cpPermissionsFlag, cpIsDeleted = NEW.cpIsDeleted ']; var tmp_435 = to(10012, new ReplicationEntityMetaData(10012, 'CoursePermission', 'CoursePermission_ReceiveView', tmp_428, 'cpLastModified', tmp_429, 1000, tmp_430, listOf(new Trigger('coursepermission_remote_insert', tmp_431, tmp_432, tmp_433, tmp_434, tmp$ret$494, 'SELECT \n CAST(NEW.cpLastModified AS BIGINT) >\n COALESCE((SELECT CoursePermission_Existing.cpLastModified\n FROM CoursePermission CoursePermission_Existing\n WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n ', 'SELECT \n CAST(NEW.cpLastModified AS BIGINT) >\n COALESCE((SELECT CoursePermission_Existing.cpLastModified\n FROM CoursePermission CoursePermission_Existing\n WHERE CoursePermission_Existing.cpUid = NEW.cpUid), 0)\n ')))); var tmp_436 = listOf('spUid'); var tmp_437 = listOf_0([new ReplicationFieldMetaData('spToPersonUid', -5, false), new ReplicationFieldMetaData('spToGroupUid', -5, false), new ReplicationFieldMetaData('spPermissionsFlag', -5, false), new ReplicationFieldMetaData('spLastModified', -5, false), new ReplicationFieldMetaData('spIsDeleted', 16, false), new ReplicationFieldMetaData('spUid', -5, false)]); var tmp_438 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_439 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_440 = [Event_INSERT_getInstance()]; var tmp_441 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_442 = ['REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$503 = ['INSERT INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES( CAST(NEW.spUid AS BIGINT), CAST(NEW.spToPersonUid AS BIGINT), CAST(NEW.spToGroupUid AS BIGINT), CAST(NEW.spPermissionsFlag AS BIGINT), CAST(NEW.spLastModified AS BIGINT), NEW.spIsDeleted) ON CONFLICT(spUid) DO UPDATE SET spToPersonUid = NEW.spToPersonUid, spToGroupUid = NEW.spToGroupUid, spPermissionsFlag = NEW.spPermissionsFlag, spLastModified = NEW.spLastModified, spIsDeleted = NEW.spIsDeleted ']; var tmp_443 = to(10011, new ReplicationEntityMetaData(10011, 'SystemPermission', 'SystemPermission_ReceiveView', tmp_436, 'spLastModified', tmp_437, 1000, tmp_438, listOf(new Trigger('systempermission_remote_insert', tmp_439, tmp_440, tmp_441, tmp_442, tmp$ret$503, 'SELECT \n CAST(NEW.spLastModified AS BIGINT) >\n COALESCE((SELECT SystemPermission_Existing.spLastModified\n FROM SystemPermission SystemPermission_Existing\n WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n ', 'SELECT \n CAST(NEW.spLastModified AS BIGINT) >\n COALESCE((SELECT SystemPermission_Existing.spLastModified\n FROM SystemPermission SystemPermission_Existing\n WHERE SystemPermission_Existing.spUid = NEW.spUid), 0)\n ')))); var tmp_444 = listOf('cbpUid'); var tmp_445 = listOf_0([new ReplicationFieldMetaData('cbpUid', -5, false), new ReplicationFieldMetaData('cbpLct', -5, false), new ReplicationFieldMetaData('cbpPictureUri', -1, true), new ReplicationFieldMetaData('cbpThumbnailUri', -1, true)]); var tmp_446 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_447 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_448 = [Event_INSERT_getInstance()]; var tmp_449 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_450 = ['REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$512 = ['INSERT INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES( CAST(NEW.cbpUid AS BIGINT), CAST(NEW.cbpLct AS BIGINT), NEW.cbpPictureUri, NEW.cbpThumbnailUri) ON CONFLICT(cbpUid) DO UPDATE SET cbpLct = NEW.cbpLct, cbpPictureUri = NEW.cbpPictureUri, cbpThumbnailUri = NEW.cbpThumbnailUri ']; var tmp_451 = to(6677, new ReplicationEntityMetaData(6677, 'CourseBlockPicture', 'CourseBlockPicture_ReceiveView', tmp_444, 'cbpLct', tmp_445, 1000, tmp_446, listOf(new Trigger('courseblockpicture_remote_insert', tmp_447, tmp_448, tmp_449, tmp_450, tmp$ret$512, 'SELECT \n CAST(NEW.cbpLct AS BIGINT) >\n COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n FROM CourseBlockPicture CourseBlockPicture_Existing\n WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n ', 'SELECT \n CAST(NEW.cbpLct AS BIGINT) >\n COALESCE((SELECT CourseBlockPicture_Existing.cbpLct\n FROM CourseBlockPicture CourseBlockPicture_Existing\n WHERE CourseBlockPicture_Existing.cbpUid = NEW.cbpUid), 0)\n ')))); var tmp_452 = listOf('cepUid'); var tmp_453 = listOf_0([new ReplicationFieldMetaData('cepUid', -5, false), new ReplicationFieldMetaData('cepLct', -5, false), new ReplicationFieldMetaData('cepPictureUri', -1, true), new ReplicationFieldMetaData('cepThumbnailUri', -1, true)]); var tmp_454 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_455 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_456 = [Event_INSERT_getInstance()]; var tmp_457 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_458 = ['REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$521 = ['INSERT INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES( CAST(NEW.cepUid AS BIGINT), CAST(NEW.cepLct AS BIGINT), NEW.cepPictureUri, NEW.cepThumbnailUri) ON CONFLICT(cepUid) DO UPDATE SET cepLct = NEW.cepLct, cepPictureUri = NEW.cepPictureUri, cepThumbnailUri = NEW.cepThumbnailUri ']; var tmp_459 = to(6678, new ReplicationEntityMetaData(6678, 'ContentEntryPicture2', 'ContentEntryPicture2_ReceiveView', tmp_452, 'cepLct', tmp_453, 1000, tmp_454, listOf(new Trigger('contententrypicture2_remote_insert', tmp_455, tmp_456, tmp_457, tmp_458, tmp$ret$521, 'SELECT \n CAST(NEW.cepLct AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n ', 'SELECT \n CAST(NEW.cepLct AS BIGINT) >\n COALESCE((SELECT ContentEntryPicture2_Existing.cepLct\n FROM ContentEntryPicture2 ContentEntryPicture2_Existing\n WHERE ContentEntryPicture2_Existing.cepUid = NEW.cepUid), 0)\n ')))); var tmp_460 = listOf_0(['vlmeVerbUid', 'vlmeLangHash']); var tmp_461 = listOf_0([new ReplicationFieldMetaData('vlmeVerbUid', -5, false), new ReplicationFieldMetaData('vlmeLangHash', -5, false), new ReplicationFieldMetaData('vlmeLangCode', -1, true), new ReplicationFieldMetaData('vlmeEntryString', -1, true), new ReplicationFieldMetaData('vlmeLastModified', -5, false)]); var tmp_462 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_463 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_464 = [Event_INSERT_getInstance()]; var tmp_465 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_466 = ['REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$530 = ['INSERT INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES( CAST(NEW.vlmeVerbUid AS BIGINT), CAST(NEW.vlmeLangHash AS BIGINT), NEW.vlmeLangCode, NEW.vlmeEntryString, CAST(NEW.vlmeLastModified AS BIGINT)) ON CONFLICT(vlmeVerbUid, vlmeLangHash) DO UPDATE SET vlmeLangCode = NEW.vlmeLangCode, vlmeEntryString = NEW.vlmeEntryString, vlmeLastModified = NEW.vlmeLastModified ']; var tmp_467 = to(620, new ReplicationEntityMetaData(620, 'VerbLangMapEntry', 'VerbLangMapEntry_ReceiveView', tmp_460, 'vlmeLastModified', tmp_461, 1000, tmp_462, listOf(new Trigger('verblangmapentry_remote_insert', tmp_463, tmp_464, tmp_465, tmp_466, tmp$ret$530, 'SELECT \n CAST(NEW.vlmeLastModified AS BIGINT) >\n COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n FROM VerbLangMapEntry VerbLangMapEntry_Existing\n WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n ', 'SELECT \n CAST(NEW.vlmeLastModified AS BIGINT) >\n COALESCE((SELECT VerbLangMapEntry_Existing.vlmeLastModified\n FROM VerbLangMapEntry VerbLangMapEntry_Existing\n WHERE VerbLangMapEntry_Existing.vlmeVerbUid = NEW.vlmeVerbUid AND VerbLangMapEntry_Existing.vlmeLangHash = NEW.vlmeLangHash), 0)\n ')))); var tmp_468 = listOf_0(['gmajGroupActorUid', 'gmajMemberActorUid']); var tmp_469 = listOf_0([new ReplicationFieldMetaData('gmajGroupActorUid', -5, false), new ReplicationFieldMetaData('gmajMemberActorUid', -5, false), new ReplicationFieldMetaData('gmajLastMod', -5, false)]); var tmp_470 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_471 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_472 = [Event_INSERT_getInstance()]; var tmp_473 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_474 = ['REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$539 = ['INSERT INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES( CAST(NEW.gmajGroupActorUid AS BIGINT), CAST(NEW.gmajMemberActorUid AS BIGINT), CAST(NEW.gmajLastMod AS BIGINT)) ON CONFLICT(gmajGroupActorUid, gmajMemberActorUid) DO UPDATE SET gmajLastMod = NEW.gmajLastMod ']; var tmp_475 = to(4232, new ReplicationEntityMetaData(4232, 'GroupMemberActorJoin', 'GroupMemberActorJoin_ReceiveView', tmp_468, 'gmajLastMod', tmp_469, 1000, tmp_470, listOf(new Trigger('groupmemberactorjoin_remote_insert', tmp_471, tmp_472, tmp_473, tmp_474, tmp$ret$539, 'SELECT \n CAST(NEW.gmajLastMod AS BIGINT) >\n COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n ', 'SELECT \n CAST(NEW.gmajLastMod AS BIGINT) >\n COALESCE((SELECT GroupMemberActorJoin_Existing.gmajLastMod\n FROM GroupMemberActorJoin GroupMemberActorJoin_Existing\n WHERE GroupMemberActorJoin_Existing.gmajGroupActorUid = NEW.gmajGroupActorUid AND GroupMemberActorJoin_Existing.gmajMemberActorUid = NEW.gmajMemberActorUid), 0)\n ')))); var tmp_476 = listOf_0(['almeActivityUid', 'almeHash']); var tmp_477 = listOf_0([new ReplicationFieldMetaData('almeActivityUid', -5, false), new ReplicationFieldMetaData('almeHash', -5, false), new ReplicationFieldMetaData('almeLangCode', -1, true), new ReplicationFieldMetaData('almePropName', -1, true), new ReplicationFieldMetaData('almeValue', -1, true), new ReplicationFieldMetaData('almeAieHash', -5, false), new ReplicationFieldMetaData('almeLastMod', -5, false)]); var tmp_478 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_479 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_480 = [Event_INSERT_getInstance()]; var tmp_481 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_482 = ['REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$548 = ['INSERT INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES( CAST(NEW.almeActivityUid AS BIGINT), CAST(NEW.almeHash AS BIGINT), NEW.almeLangCode, NEW.almePropName, NEW.almeValue, CAST(NEW.almeAieHash AS BIGINT), CAST(NEW.almeLastMod AS BIGINT)) ON CONFLICT(almeActivityUid, almeHash) DO UPDATE SET almeLangCode = NEW.almeLangCode, almePropName = NEW.almePropName, almeValue = NEW.almeValue, almeAieHash = NEW.almeAieHash, almeLastMod = NEW.almeLastMod ']; var tmp_483 = to(6442, new ReplicationEntityMetaData(6442, 'ActivityLangMapEntry', 'ActivityLangMapEntry_ReceiveView', tmp_476, 'almeLastMod', tmp_477, 1000, tmp_478, listOf(new Trigger('activitylangmapentry_remote_insert', tmp_479, tmp_480, tmp_481, tmp_482, tmp$ret$548, 'SELECT \n CAST(NEW.almeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n ', 'SELECT \n CAST(NEW.almeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityLangMapEntry_Existing.almeLastMod\n FROM ActivityLangMapEntry ActivityLangMapEntry_Existing\n WHERE ActivityLangMapEntry_Existing.almeActivityUid = NEW.almeActivityUid AND ActivityLangMapEntry_Existing.almeHash = NEW.almeHash), 0)\n ')))); var tmp_484 = listOf_0(['aeeActivityUid', 'aeeKeyHash']); var tmp_485 = listOf_0([new ReplicationFieldMetaData('aeeActivityUid', -5, false), new ReplicationFieldMetaData('aeeKeyHash', -5, false), new ReplicationFieldMetaData('aeeKey', -1, true), new ReplicationFieldMetaData('aeeJson', -1, true), new ReplicationFieldMetaData('aeeLastMod', -5, false), new ReplicationFieldMetaData('aeeIsDeleted', 16, false)]); var tmp_486 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_487 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_488 = [Event_INSERT_getInstance()]; var tmp_489 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_490 = ['REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$557 = ['INSERT INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES( CAST(NEW.aeeActivityUid AS BIGINT), CAST(NEW.aeeKeyHash AS BIGINT), NEW.aeeKey, NEW.aeeJson, CAST(NEW.aeeLastMod AS BIGINT), NEW.aeeIsDeleted) ON CONFLICT(aeeActivityUid, aeeKeyHash) DO UPDATE SET aeeKey = NEW.aeeKey, aeeJson = NEW.aeeJson, aeeLastMod = NEW.aeeLastMod, aeeIsDeleted = NEW.aeeIsDeleted ']; var tmp_491 = to(6405, new ReplicationEntityMetaData(6405, 'ActivityExtensionEntity', 'ActivityExtensionEntity_ReceiveView', tmp_484, 'aeeLastMod', tmp_485, 1000, tmp_486, listOf(new Trigger('activityextensionentity_remote_insert', tmp_487, tmp_488, tmp_489, tmp_490, tmp$ret$557, 'SELECT \n CAST(NEW.aeeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n ', 'SELECT \n CAST(NEW.aeeLastMod AS BIGINT) >\n COALESCE((SELECT ActivityExtensionEntity_Existing.aeeLastMod\n FROM ActivityExtensionEntity ActivityExtensionEntity_Existing\n WHERE ActivityExtensionEntity_Existing.aeeActivityUid = NEW.aeeActivityUid AND ActivityExtensionEntity_Existing.aeeKeyHash = NEW.aeeKeyHash), 0)\n ')))); var tmp_492 = listOf_0(['scajFromStatementIdHi', 'scajFromStatementIdLo', 'scajToHash']); var tmp_493 = listOf_0([new ReplicationFieldMetaData('scajFromStatementIdHi', -5, false), new ReplicationFieldMetaData('scajFromStatementIdLo', -5, false), new ReplicationFieldMetaData('scajToHash', -5, false), new ReplicationFieldMetaData('scajContextType', 4, false), new ReplicationFieldMetaData('scajToActivityUid', -5, false), new ReplicationFieldMetaData('scajToActivityId', -1, true), new ReplicationFieldMetaData('scajEtag', -5, false)]); var tmp_494 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_495 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_496 = [Event_INSERT_getInstance()]; var tmp_497 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_498 = ['REPLACE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT)) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$566 = ['INSERT INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES( CAST(NEW.scajFromStatementIdHi AS BIGINT), CAST(NEW.scajFromStatementIdLo AS BIGINT), CAST(NEW.scajToHash AS BIGINT), NEW.scajContextType, CAST(NEW.scajToActivityUid AS BIGINT), NEW.scajToActivityId, CAST(NEW.scajEtag AS BIGINT)) ON CONFLICT(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) DO UPDATE SET scajContextType = NEW.scajContextType, scajToActivityUid = NEW.scajToActivityUid, scajToActivityId = NEW.scajToActivityId, scajEtag = NEW.scajEtag ']; var tmp_499 = to(44044, new ReplicationEntityMetaData(44044, 'StatementContextActivityJoin', 'StatementContextActivityJoin_ReceiveView', tmp_492, 'scajEtag', tmp_493, 1000, tmp_494, listOf(new Trigger('statementcontextactivityjoin_remoteinsert', tmp_495, tmp_496, tmp_497, tmp_498, tmp$ret$566, 'SELECT \n CAST(NEW.scajEtag AS BIGINT) != \n COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n ', 'SELECT \n CAST(NEW.scajEtag AS BIGINT) != \n COALESCE((SELECT StatementContextActivityJoin_Existing.scajEtag\n FROM StatementContextActivityJoin StatementContextActivityJoin_Existing\n WHERE StatementContextActivityJoin_Existing.scajFromStatementIdHi = NEW.scajFromStatementIdHi AND StatementContextActivityJoin_Existing.scajFromStatementIdLo = NEW.scajFromStatementIdLo AND StatementContextActivityJoin_Existing.scajToHash = NEW.scajToHash), 0)\n ')))); var tmp_500 = listOf('xseUid'); var tmp_501 = listOf_0([new ReplicationFieldMetaData('xseLastMod', -5, false), new ReplicationFieldMetaData('xseRegistrationHi', -5, false), new ReplicationFieldMetaData('xseRegistrationLo', -5, false), new ReplicationFieldMetaData('xseUsUid', -5, false), new ReplicationFieldMetaData('xseAccountPersonUid', -5, false), new ReplicationFieldMetaData('xseActorUid', -5, false), new ReplicationFieldMetaData('xseAccountUsername', -1, false), new ReplicationFieldMetaData('xseClazzUid', -5, false), new ReplicationFieldMetaData('xseCbUid', -5, false), new ReplicationFieldMetaData('xseContentEntryUid', -5, false), new ReplicationFieldMetaData('xseContentEntryVersionUid', -5, false), new ReplicationFieldMetaData('xseRootActivityId', -1, false), new ReplicationFieldMetaData('xseRootActivityUid', -5, false), new ReplicationFieldMetaData('xseStartTime', -5, false), new ReplicationFieldMetaData('xseExpireTime', -5, false), new ReplicationFieldMetaData('xseAuth', -1, true), new ReplicationFieldMetaData('xseCompleted', 16, false), new ReplicationFieldMetaData('knownActorUidToPersonUids', -1, false), new ReplicationFieldMetaData('xseUid', -5, false)]); var tmp_502 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_503 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_504 = [Event_INSERT_getInstance()]; var tmp_505 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_506 = ['REPLACE INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$575 = ['INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES( CAST(NEW.xseUid AS BIGINT), CAST(NEW.xseLastMod AS BIGINT), CAST(NEW.xseRegistrationHi AS BIGINT), CAST(NEW.xseRegistrationLo AS BIGINT), CAST(NEW.xseUsUid AS BIGINT), CAST(NEW.xseAccountPersonUid AS BIGINT), CAST(NEW.xseActorUid AS BIGINT), NEW.xseAccountUsername, CAST(NEW.xseClazzUid AS BIGINT), CAST(NEW.xseCbUid AS BIGINT), CAST(NEW.xseContentEntryUid AS BIGINT), CAST(NEW.xseContentEntryVersionUid AS BIGINT), NEW.xseRootActivityId, CAST(NEW.xseRootActivityUid AS BIGINT), CAST(NEW.xseStartTime AS BIGINT), CAST(NEW.xseExpireTime AS BIGINT), NEW.xseAuth, NEW.xseCompleted, NEW.knownActorUidToPersonUids) ON CONFLICT(xseUid) DO UPDATE SET xseLastMod = NEW.xseLastMod, xseRegistrationHi = NEW.xseRegistrationHi, xseRegistrationLo = NEW.xseRegistrationLo, xseUsUid = NEW.xseUsUid, xseAccountPersonUid = NEW.xseAccountPersonUid, xseActorUid = NEW.xseActorUid, xseAccountUsername = NEW.xseAccountUsername, xseClazzUid = NEW.xseClazzUid, xseCbUid = NEW.xseCbUid, xseContentEntryUid = NEW.xseContentEntryUid, xseContentEntryVersionUid = NEW.xseContentEntryVersionUid, xseRootActivityId = NEW.xseRootActivityId, xseRootActivityUid = NEW.xseRootActivityUid, xseStartTime = NEW.xseStartTime, xseExpireTime = NEW.xseExpireTime, xseAuth = NEW.xseAuth, xseCompleted = NEW.xseCompleted, knownActorUidToPersonUids = NEW.knownActorUidToPersonUids ']; var tmp_507 = to(400122, new ReplicationEntityMetaData(400122, 'XapiSessionEntity', 'XapiSessionEntity_ReceiveView', tmp_500, 'xseLastMod', tmp_501, 1000, tmp_502, listOf(new Trigger('xapisessionentity_remote_insert', tmp_503, tmp_504, tmp_505, tmp_506, tmp$ret$575, 'SELECT \n CAST(NEW.xseLastMod AS BIGINT) >\n COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n FROM XapiSessionEntity XapiSessionEntity_Existing\n WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n ', 'SELECT \n CAST(NEW.xseLastMod AS BIGINT) >\n COALESCE((SELECT XapiSessionEntity_Existing.xseLastMod\n FROM XapiSessionEntity XapiSessionEntity_Existing\n WHERE XapiSessionEntity_Existing.xseUid = NEW.xseUid), 0)\n ')))); var tmp_508 = listOf_0(['stmtJsonIdHi', 'stmtJsonIdLo']); var tmp_509 = listOf_0([new ReplicationFieldMetaData('stmtJsonIdHi', -5, false), new ReplicationFieldMetaData('stmtJsonIdLo', -5, false), new ReplicationFieldMetaData('stmtEtag', -5, false), new ReplicationFieldMetaData('fullStatement', -1, true)]); var tmp_510 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_511 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_512 = [Event_INSERT_getInstance()]; var tmp_513 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_514 = ['REPLACE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$584 = ['INSERT INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES( CAST(NEW.stmtJsonIdHi AS BIGINT), CAST(NEW.stmtJsonIdLo AS BIGINT), CAST(NEW.stmtEtag AS BIGINT), NEW.fullStatement) ON CONFLICT(stmtJsonIdHi, stmtJsonIdLo) DO UPDATE SET stmtEtag = NEW.stmtEtag, fullStatement = NEW.fullStatement ']; var tmp_515 = to(602, new ReplicationEntityMetaData(602, 'StatementEntityJson', 'StatementEntityJson_ReceiveView', tmp_508, 'stmtEtag', tmp_509, 1000, tmp_510, listOf(new Trigger('statemententityjson_remote_insert', tmp_511, tmp_512, tmp_513, tmp_514, tmp$ret$584, 'SELECT \n CAST(NEW.stmtEtag AS BIGINT) != \n COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n FROM StatementEntityJson StatementEntityJson_Existing\n WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n ', 'SELECT \n CAST(NEW.stmtEtag AS BIGINT) != \n COALESCE((SELECT StatementEntityJson_Existing.stmtEtag\n FROM StatementEntityJson StatementEntityJson_Existing\n WHERE StatementEntityJson_Existing.stmtJsonIdHi = NEW.stmtJsonIdHi AND StatementEntityJson_Existing.stmtJsonIdLo = NEW.stmtJsonIdLo), 0)\n ')))); var tmp_516 = listOf_0(['seActorUid', 'seHash']); var tmp_517 = listOf_0([new ReplicationFieldMetaData('seActorUid', -5, false), new ReplicationFieldMetaData('seHash', -5, false), new ReplicationFieldMetaData('seActivityUid', -5, false), new ReplicationFieldMetaData('seStateId', -1, false), new ReplicationFieldMetaData('seLastMod', -5, false), new ReplicationFieldMetaData('seTimeStored', -5, false), new ReplicationFieldMetaData('seContentType', -1, false), new ReplicationFieldMetaData('seCompressed', 4, false), new ReplicationFieldMetaData('seContent', -1, false), new ReplicationFieldMetaData('seDeleted', 16, false), new ReplicationFieldMetaData('seRegistrationHi', -5, true), new ReplicationFieldMetaData('seRegistrationLo', -5, true), new ReplicationFieldMetaData('seH5PPreloaded', 16, false), new ReplicationFieldMetaData('seH5PSubContentId', -1, true)]); var tmp_518 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_519 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_520 = [Event_INSERT_getInstance()]; var tmp_521 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_522 = ['REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$593 = ['INSERT INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES( CAST(NEW.seActorUid AS BIGINT), CAST(NEW.seHash AS BIGINT), CAST(NEW.seActivityUid AS BIGINT), NEW.seStateId, CAST(NEW.seLastMod AS BIGINT), CAST(NEW.seTimeStored AS BIGINT), NEW.seContentType, NEW.seCompressed, NEW.seContent, NEW.seDeleted, NEW.seRegistrationHi, NEW.seRegistrationLo, NEW.seH5PPreloaded, NEW.seH5PSubContentId) ON CONFLICT(seActorUid, seHash) DO UPDATE SET seActivityUid = NEW.seActivityUid, seStateId = NEW.seStateId, seLastMod = NEW.seLastMod, seTimeStored = NEW.seTimeStored, seContentType = NEW.seContentType, seCompressed = NEW.seCompressed, seContent = NEW.seContent, seDeleted = NEW.seDeleted, seRegistrationHi = NEW.seRegistrationHi, seRegistrationLo = NEW.seRegistrationLo, seH5PPreloaded = NEW.seH5PPreloaded, seH5PSubContentId = NEW.seH5PSubContentId ']; var tmp_523 = to(3289, new ReplicationEntityMetaData(3289, 'StateEntity', 'StateEntity_ReceiveView', tmp_516, 'seLastMod', tmp_517, 1000, tmp_518, listOf(new Trigger('stateentity_remote_insert', tmp_519, tmp_520, tmp_521, tmp_522, tmp$ret$593, 'SELECT \n CAST(NEW.seLastMod AS BIGINT) >\n COALESCE((SELECT StateEntity_Existing.seLastMod\n FROM StateEntity StateEntity_Existing\n WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n ', 'SELECT \n CAST(NEW.seLastMod AS BIGINT) >\n COALESCE((SELECT StateEntity_Existing.seLastMod\n FROM StateEntity StateEntity_Existing\n WHERE StateEntity_Existing.seActorUid = NEW.seActorUid AND StateEntity_Existing.seHash = NEW.seHash), 0)\n ')))); var tmp_524 = listOf_0(['sdcActorUid', 'sdcHash']); var tmp_525 = listOf_0([new ReplicationFieldMetaData('sdcActorUid', -5, false), new ReplicationFieldMetaData('sdcHash', -5, false), new ReplicationFieldMetaData('sdcActivityUid', -5, false), new ReplicationFieldMetaData('sdcStateId', -1, true), new ReplicationFieldMetaData('sdcLastMod', -5, false), new ReplicationFieldMetaData('sdcRegistrationHi', -5, true), new ReplicationFieldMetaData('sdcRegistrationLo', -5, true)]); var tmp_526 = RemoteInsertStrategy_INSERT_INTO_RECEIVE_VIEW_getInstance(); var tmp_527 = Order_INSTEAD_OF_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_528 = [Event_INSERT_getInstance()]; var tmp_529 = On_RECEIVEVIEW_getInstance(); // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp_530 = ['REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo) ']; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$602 = ['INSERT INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES( CAST(NEW.sdcActorUid AS BIGINT), CAST(NEW.sdcHash AS BIGINT), CAST(NEW.sdcActivityUid AS BIGINT), NEW.sdcStateId, CAST(NEW.sdcLastMod AS BIGINT), NEW.sdcRegistrationHi, NEW.sdcRegistrationLo) ON CONFLICT(sdcActorUid, sdcHash) DO UPDATE SET sdcActivityUid = NEW.sdcActivityUid, sdcStateId = NEW.sdcStateId, sdcLastMod = NEW.sdcLastMod, sdcRegistrationHi = NEW.sdcRegistrationHi, sdcRegistrationLo = NEW.sdcRegistrationLo ']; return mapOf([tmp_6, tmp_14, tmp_22, tmp_30, tmp_38, tmp_46, tmp_54, tmp_62, tmp_70, tmp_78, tmp_86, tmp_94, tmp_102, tmp_110, tmp_118, tmp_126, tmp_134, tmp_142, tmp_150, tmp_158, tmp_166, tmp_174, tmp_182, tmp_190, tmp_198, tmp_206, tmp_214, tmp_222, tmp_230, tmp_238, tmp_246, tmp_254, tmp_262, tmp_270, tmp_278, tmp_286, tmp_294, tmp_302, tmp_310, tmp_318, tmp_326, tmp_334, tmp_342, tmp_350, tmp_358, tmp_366, tmp_374, tmp_382, tmp_390, tmp_403, tmp_411, tmp_419, tmp_427, tmp_435, tmp_443, tmp_451, tmp_459, tmp_467, tmp_475, tmp_483, tmp_491, tmp_499, tmp_507, tmp_515, tmp_523, to(121422, new ReplicationEntityMetaData(121422, 'StateDeleteCommand', 'StateDeleteCommand_ReceiveView', tmp_524, 'sdcLastMod', tmp_525, 1000, tmp_526, listOf(new Trigger('statedeletecommand_remote_insert', tmp_527, tmp_528, tmp_529, tmp_530, tmp$ret$602, 'SELECT \n CAST(NEW.sdcLastMod AS BIGINT) >\n COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n FROM StateDeleteCommand StateDeleteCommand_Existing\n WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n ', 'SELECT \n CAST(NEW.sdcLastMod AS BIGINT) >\n COALESCE((SELECT StateDeleteCommand_Existing.sdcLastMod\n FROM StateDeleteCommand StateDeleteCommand_Existing\n WHERE StateDeleteCommand_Existing.sdcActorUid = NEW.sdcActorUid AND StateDeleteCommand_Existing.sdcHash = NEW.sdcHash), 0)\n '))))]); } function UmAppDatabase_DoorMetadata() { DoorDatabaseMetadata.call(this); this.allTables_1 = listOf_0(['ClazzLog', 'ClazzLogAttendanceRecord', 'Schedule', 'HolidayCalendar', 'Holiday', 'Person', 'Clazz', 'ClazzEnrolment', 'LeavingReason', 'ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryParentChildJoin', 'ContentEntryRelatedEntryJoin', 'ContentCategorySchema', 'ContentCategory', 'Language', 'LanguageVariant', 'PersonAuth', 'PersonGroup', 'PersonGroupMember', 'PersonPicture', 'VerbEntity', 'ActivityEntity', 'StatementEntity', 'ActorEntity', 'SyncNode', 'Comments', 'Report', 'Site', 'SiteTerms', 'PersonParentJoin', 'ScopedGrant', 'ErrorReport', 'ClazzAssignment', 'CourseAssignmentSubmission', 'CourseAssignmentSubmissionFile', 'CourseAssignmentMark', 'PeerReviewerAllocation', 'PersonAuth2', 'UserSession', 'ContentJob', 'ContentEntryImportJob', 'CourseBlock', 'CourseTerminology', 'CourseGroupSet', 'CourseGroupMember', 'ContentEntryPicture', 'ActivityInteractionEntity', 'CoursePicture', 'DiscussionPost', 'ExternalAppPermission', 'Message', 'StudentResult', 'ContentEntryVersion', 'TransferJob', 'TransferJobItem', 'CacheLockJoin', 'OfflineItem', 'OfflineItemPendingTransferJob', 'DeletedItem', 'EnrolmentRequest', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture', 'ContentEntryPicture2', 'TransferJobError', 'VerbLangMapEntry', 'GroupMemberActorJoin', 'ActivityLangMapEntry', 'ActivityExtensionEntity', 'StatementContextActivityJoin', 'XapiSessionEntity', 'StatementEntityJson', 'StateEntity', 'StateDeleteCommand', 'OutgoingReplication', 'ReplicationOperation', 'PendingRepositorySession', 'DoorNode', 'ReportQueryResult']); var tmp = this; var tmp_0 = LazyThreadSafetyMode_NONE_getInstance(); tmp.replicateEntities$delegate_1 = lazy(tmp_0, UmAppDatabase_DoorMetadata$replicateEntities$delegate$lambda); } protoOf(UmAppDatabase_DoorMetadata).get_dbClass_ov3elt_k$ = function () { return getKClass(UmAppDatabase); }; protoOf(UmAppDatabase_DoorMetadata).get_hasReadOnlyWrapper_jur8o0_k$ = function () { return true; }; protoOf(UmAppDatabase_DoorMetadata).get_version_72w4j3_k$ = function () { return 207; }; protoOf(UmAppDatabase_DoorMetadata).get_allTables_1jy9x9_k$ = function () { return this.allTables_1; }; protoOf(UmAppDatabase_DoorMetadata).get_replicateEntities_2w1n4x_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this.replicateEntities$delegate_1; replicateEntities$factory(); return this_0.get_value_j01efc_k$(); }; function replicateEntities$factory() { return getPropertyCallableRef('replicateEntities', 1, KProperty1, function (receiver) { return receiver.get_replicateEntities_2w1n4x_k$(); }, null); } function _get__db__e63s44($this) { return $this._db_1; } function _get_messageCallback__4o7go5($this) { return $this.messageCallback_1; } function UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_DoorWrapper(this$0._db_1, this$0._db_1.personDao_e3y77h_k$()); }; } function UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_DoorWrapper(this$0._db_1, this$0._db_1.clazzDao_bk7qje_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_DoorWrapper(this$0._db_1, this$0._db_1.courseBlockDao_msn3sw_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_DoorWrapper(this$0._db_1, this$0._db_1.courseTerminologyDao_p353oa_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_DoorWrapper(this$0._db_1, this$0._db_1.courseGroupSetDao_romfis_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_DoorWrapper(this$0._db_1, this$0._db_1.courseGroupMemberDao_da0s0k_k$()); }; } function UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_DoorWrapper(this$0._db_1, this$0._db_1.clazzEnrolmentDao_8oyet6_k$()); }; } function UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_DoorWrapper(this$0._db_1, this$0._db_1.leavingReasonDao_9i0tra_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryDao_5ggc49_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryContentCategoryJoinDao_ehgkae_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryParentChildJoinDao_7l71wv_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryRelatedEntryJoinDao_i6y8co_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_DoorWrapper(this$0._db_1, this$0._db_1.contentCategorySchemaDao_92g6ue_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_DoorWrapper(this$0._db_1, this$0._db_1.contentCategoryDao_ww12m3_k$()); }; } function UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_DoorWrapper(this$0._db_1, this$0._db_1.languageDao_jg31ly_k$()); }; } function UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_DoorWrapper(this$0._db_1, this$0._db_1.languageVariantDao_8ex0aj_k$()); }; } function UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_DoorWrapper(this$0._db_1, this$0._db_1.personGroupDao_lgohk_k$()); }; } function UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_DoorWrapper(this$0._db_1, this$0._db_1.personGroupMemberDao_v4nqlu_k$()); }; } function UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_DoorWrapper(this$0._db_1, this$0._db_1.personPictureDao_jnjrvt_k$()); }; } function UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_DoorWrapper(this$0._db_1, this$0._db_1.verbDao_5t0jxv_k$()); }; } function UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_DoorWrapper(this$0._db_1, this$0._db_1.activityEntityDao_xla99c_k$()); }; } function UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_DoorWrapper(this$0._db_1, this$0._db_1.reportDao_5udmpu_k$()); }; } function UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_DoorWrapper(this$0._db_1, this$0._db_1.statementDao_8y5avx_k$()); }; } function UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_DoorWrapper(this$0._db_1, this$0._db_1.actorDao_rapokj_k$()); }; } function UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_DoorWrapper(this$0._db_1, this$0._db_1.clazzLogAttendanceRecordDao_6kuhbg_k$()); }; } function UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_DoorWrapper(this$0._db_1, this$0._db_1.clazzLogDao_4jisyu_k$()); }; } function UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_DoorWrapper(this$0._db_1, this$0._db_1.scheduleDao_2wsqkb_k$()); }; } function UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_DoorWrapper(this$0._db_1, this$0._db_1.holidayCalendarDao_ugpa84_k$()); }; } function UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_DoorWrapper(this$0._db_1, this$0._db_1.holidayDao_ijvs9y_k$()); }; } function UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_DoorWrapper(this$0._db_1, this$0._db_1.clazzAssignmentDao_ta4cfn_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_DoorWrapper(this$0._db_1, this$0._db_1.courseAssignmentSubmissionDao_y3yq7y_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_DoorWrapper(this$0._db_1, this$0._db_1.courseAssignmentSubmissionFileDao_spskde_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_DoorWrapper(this$0._db_1, this$0._db_1.courseAssignmentMarkDao_6irrq5_k$()); }; } function UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_DoorWrapper(this$0._db_1, this$0._db_1.commentsDao_ysx4hq_k$()); }; } function UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_DoorWrapper(this$0._db_1, this$0._db_1.siteDao_yq9qyz_k$()); }; } function UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_DoorWrapper(this$0._db_1, this$0._db_1.siteTermsDao_wa3vn6_k$()); }; } function UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.personParentJoinDao_gvpro7_k$()); }; } function UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_DoorWrapper(this$0._db_1, this$0._db_1.scopedGrantDao_yq1jei_k$()); }; } function UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_DoorWrapper(this$0._db_1, this$0._db_1.errorReportDao_xwpcpi_k$()); }; } function UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_DoorWrapper(this$0._db_1, this$0._db_1.personAuth2Dao_ep6mu5_k$()); }; } function UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_DoorWrapper(this$0._db_1, this$0._db_1.userSessionDao_v2hqyh_k$()); }; } function UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_DoorWrapper(this$0._db_1, this$0._db_1.coursePictureDao_4rldqp_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryPictureDao_8lym7n_k$()); }; } function UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_DoorWrapper(this$0._db_1, this$0._db_1.messageDao_rymlth_k$()); }; } function UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_DoorWrapper(this$0._db_1, this$0._db_1.peerReviewerAllocationDao_5g43p1_k$()); }; } function UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_DoorWrapper(this$0._db_1, this$0._db_1.discussionPostDao_z4okmu_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryVersionDao_66n0fn_k$()); }; } function UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_DoorWrapper(this$0._db_1, this$0._db_1.offlineItemDao_rdbxlw_k$()); }; } function UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_DoorWrapper(this$0._db_1, this$0._db_1.enrolmentRequestDao_hchxfd_k$()); }; } function UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_DoorWrapper(this$0._db_1, this$0._db_1.coursePermissionDao_t5l7mw_k$()); }; } function UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_DoorWrapper(this$0._db_1, this$0._db_1.systemPermissionDao_fl20r8_k$()); }; } function UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_DoorWrapper(this$0._db_1, this$0._db_1.courseBlockPictureDao_hf3pty_k$()); }; } function UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_DoorWrapper(this$0._db_1, this$0._db_1.contentEntryPicture2Dao_h7azt1_k$()); }; } function UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_DoorWrapper(this$0._db_1, this$0._db_1.studentResultDao_dmms6y_k$()); }; } function UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_DoorWrapper(this$0._db_1, this$0._db_1.verbLangMapEntryDao_egt3yn_k$()); }; } function UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.groupMemberActorJoinDao_sbul1w_k$()); }; } function UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_DoorWrapper(this$0._db_1, this$0._db_1.activityLangMapEntryDao_1efc67_k$()); }; } function UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_DoorWrapper(this$0._db_1, this$0._db_1.activityInteractionDao_ya39jj_k$()); }; } function UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_DoorWrapper(this$0._db_1, this$0._db_1.activityExtensionDao_w9zywu_k$()); }; } function UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_DoorWrapper(this$0._db_1, this$0._db_1.statementContextActivityJoinDao_w1mheh_k$()); }; } function UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_DoorWrapper(this$0._db_1, this$0._db_1.xapiSessionEntityDao_h5sw3p_k$()); }; } function UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_DoorWrapper(this$0._db_1, this$0._db_1.statementEntityJsonDao_us6vig_k$()); }; } function UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_DoorWrapper(this$0._db_1, this$0._db_1.stateEntityDao_ssmjmq_k$()); }; } function UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_DoorWrapper(this$0._db_1, this$0._db_1.stateDeleteCommandDao_55kv0j_k$()); }; } function UmAppDatabase_DoorWrapper(_db, nodeId, messageCallback, logger, dbName) { UmAppDatabase.call(this); this._db_1 = _db; this.nodeId_1 = nodeId; this.messageCallback_1 = messageCallback; var tmp = this; tmp._PersonDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonDao$delegate$lambda(this)); var tmp_0 = this; tmp_0._ClazzDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzDao$delegate$lambda(this)); var tmp_1 = this; tmp_1._CourseBlockDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockDao$delegate$lambda(this)); var tmp_2 = this; tmp_2._CourseTerminologyDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseTerminologyDao$delegate$lambda(this)); var tmp_3 = this; tmp_3._CourseGroupSetDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupSetDao$delegate$lambda(this)); var tmp_4 = this; tmp_4._CourseGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_5 = this; tmp_5._ClazzEnrolmentDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_6 = this; tmp_6._LeavingReasonDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_LeavingReasonDao$delegate$lambda(this)); var tmp_7 = this; tmp_7._ContentEntryDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryDao$delegate$lambda(this)); var tmp_8 = this; tmp_8._ContentEntryContentCategoryJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_9 = this; tmp_9._ContentEntryParentChildJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_10 = this; tmp_10._ContentEntryRelatedEntryJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_11 = this; tmp_11._ContentCategorySchemaDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_12 = this; tmp_12._ContentCategoryDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentCategoryDao$delegate$lambda(this)); var tmp_13 = this; tmp_13._LanguageDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageDao$delegate$lambda(this)); var tmp_14 = this; tmp_14._LanguageVariantDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_LanguageVariantDao$delegate$lambda(this)); var tmp_15 = this; tmp_15._PersonGroupDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupDao$delegate$lambda(this)); var tmp_16 = this; tmp_16._PersonGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_17 = this; tmp_17._PersonPictureDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonPictureDao$delegate$lambda(this)); var tmp_18 = this; tmp_18._VerbDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbDao$delegate$lambda(this)); var tmp_19 = this; tmp_19._ActivityEntityDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityEntityDao$delegate$lambda(this)); var tmp_20 = this; tmp_20._ReportDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ReportDao$delegate$lambda(this)); var tmp_21 = this; tmp_21._StatementDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementDao$delegate$lambda(this)); var tmp_22 = this; tmp_22._ActorDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActorDao$delegate$lambda(this)); var tmp_23 = this; tmp_23._ClazzLogAttendanceRecordDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_24 = this; tmp_24._ClazzLogDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzLogDao$delegate$lambda(this)); var tmp_25 = this; tmp_25._ScheduleDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScheduleDao$delegate$lambda(this)); var tmp_26 = this; tmp_26._HolidayCalendarDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayCalendarDao$delegate$lambda(this)); var tmp_27 = this; tmp_27._HolidayDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_HolidayDao$delegate$lambda(this)); var tmp_28 = this; tmp_28._ClazzAssignmentDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_29 = this; tmp_29._CourseAssignmentSubmissionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_30 = this; tmp_30._CourseAssignmentSubmissionFileDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_31 = this; tmp_31._CourseAssignmentMarkDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_32 = this; tmp_32._CommentsDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CommentsDao$delegate$lambda(this)); var tmp_33 = this; tmp_33._SiteDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteDao$delegate$lambda(this)); var tmp_34 = this; tmp_34._SiteTermsDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_SiteTermsDao$delegate$lambda(this)); var tmp_35 = this; tmp_35._PersonParentJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonParentJoinDao$delegate$lambda(this)); var tmp_36 = this; tmp_36._ScopedGrantDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ScopedGrantDao$delegate$lambda(this)); var tmp_37 = this; tmp_37._ErrorReportDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ErrorReportDao$delegate$lambda(this)); var tmp_38 = this; tmp_38._PersonAuth2Dao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PersonAuth2Dao$delegate$lambda(this)); var tmp_39 = this; tmp_39._UserSessionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_UserSessionDao$delegate$lambda(this)); var tmp_40 = this; tmp_40._CoursePictureDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePictureDao$delegate$lambda(this)); var tmp_41 = this; tmp_41._ContentEntryPictureDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_42 = this; tmp_42._MessageDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_MessageDao$delegate$lambda(this)); var tmp_43 = this; tmp_43._PeerReviewerAllocationDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_44 = this; tmp_44._DiscussionPostDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_DiscussionPostDao$delegate$lambda(this)); var tmp_45 = this; tmp_45._ContentEntryVersionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46._OfflineItemDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_OfflineItemDao$delegate$lambda(this)); var tmp_47 = this; tmp_47._EnrolmentRequestDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_48 = this; tmp_48._CoursePermissionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CoursePermissionDao$delegate$lambda(this)); var tmp_49 = this; tmp_49._SystemPermissionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_SystemPermissionDao$delegate$lambda(this)); var tmp_50 = this; tmp_50._CourseBlockPictureDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_51 = this; tmp_51._ContentEntryPicture2Dao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_52 = this; tmp_52._StudentResultDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StudentResultDao$delegate$lambda(this)); var tmp_53 = this; tmp_53._VerbLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_54 = this; tmp_54._GroupMemberActorJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_55 = this; tmp_55._ActivityLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_56 = this; tmp_56._ActivityInteractionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityInteractionDao$delegate$lambda(this)); var tmp_57 = this; tmp_57._ActivityExtensionDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_ActivityExtensionDao$delegate$lambda(this)); var tmp_58 = this; tmp_58._StatementContextActivityJoinDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_59 = this; tmp_59._XapiSessionEntityDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_60 = this; tmp_60._StatementEntityJsonDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_61 = this; tmp_61._StateEntityDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateEntityDao$delegate$lambda(this)); var tmp_62 = this; tmp_62._StateDeleteCommandDao$delegate_1 = lazy_0(UmAppDatabase_DoorWrapper$_StateDeleteCommandDao$delegate$lambda(this)); this.nodeEventManager_1 = new NodeEventManagerJs(this._db_1, this.messageCallback_1, logger, dbName); } protoOf(UmAppDatabase_DoorWrapper).get_nodeId_h7ho7a_k$ = function () { return this.nodeId_1; }; protoOf(UmAppDatabase_DoorWrapper).get_dbVersion_jd6ndd_k$ = function () { return 207; }; protoOf(UmAppDatabase_DoorWrapper).get_dbName_c9i0qa_k$ = function () { return 'DoorWrapper for [' + toString(this._db_1) + ']'; }; protoOf(UmAppDatabase_DoorWrapper).get__PersonDao_2gcixz_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonDao$delegate_1; _PersonDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ClazzDao_mn47hs_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzDao$delegate_1; _ClazzDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseBlockDao_owibti_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseBlockDao$delegate_1; _CourseBlockDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseTerminologyDao_fubtf4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseTerminologyDao$delegate_1; _CourseTerminologyDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseGroupSetDao_qj0q2q_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseGroupSetDao$delegate_1; _CourseGroupSetDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseGroupMemberDao_417hre_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseGroupMemberDao$delegate_1; _CourseGroupMemberDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ClazzEnrolmentDao_84ihkg_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzEnrolmentDao$delegate_1; _ClazzEnrolmentDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__LeavingReasonDao_dydsts_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LeavingReasonDao$delegate_1; _LeavingReasonDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryDao_7j8d31_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryDao$delegate_1; _ContentEntryDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryContentCategoryJoinDao_pvh8bk_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryContentCategoryJoinDao$delegate_1; _ContentEntryContentCategoryJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryParentChildJoinDao_bi0wfv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryParentChildJoinDao$delegate_1; _ContentEntryParentChildJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryRelatedEntryJoinDao$delegate_1; _ContentEntryRelatedEntryJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentCategorySchemaDao_k8roi8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentCategorySchemaDao$delegate_1; _ContentCategorySchemaDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentCategoryDao_dzbhgv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentCategoryDao$delegate_1; _ContentCategoryDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__LanguageDao_2e4ww4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LanguageDao$delegate_1; _LanguageDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__LanguageVariantDao_fquhln_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LanguageVariantDao$delegate_1; _LanguageVariantDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PersonGroupDao_nxfaua_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonGroupDao$delegate_1; _PersonGroupDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PersonGroupMemberDao_unn144_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonGroupMemberDao$delegate_1; _PersonGroupMemberDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PersonPictureDao_rx5ni9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonPictureDao$delegate_1; _PersonPictureDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__VerbDao_uhx09v_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._VerbDao$delegate_1; _VerbDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ActivityEntityDao_kmcwc6_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityEntityDao$delegate_1; _ActivityEntityDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ReportDao_hhzazc_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ReportDao$delegate_1; _ReportDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StatementDao_ssowvt_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementDao$delegate_1; _StatementDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ActorDao_g7t7m5_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActorDao$delegate_1; _ActorDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ClazzLogAttendanceRecordDao_1v165m_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzLogAttendanceRecordDao$delegate_1; _ClazzLogAttendanceRecordDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ClazzLogDao_qdqrgw_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzLogDao$delegate_1; _ClazzLogDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ScheduleDao_or0p2d_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ScheduleDao$delegate_1; _ScheduleDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__HolidayCalendarDao_6axsby_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._HolidayCalendarDao$delegate_1; _HolidayCalendarDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__HolidayDao_opzekw_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._HolidayDao$delegate_1; _HolidayDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ClazzAssignmentDao_54cujh_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzAssignmentDao$delegate_1; _ClazzAssignmentDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseAssignmentSubmissionDao_jqvd48_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentSubmissionDao$delegate_1; _CourseAssignmentSubmissionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseAssignmentSubmissionFileDao_7q6gp8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentSubmissionFileDao$delegate_1; _CourseAssignmentSubmissionFileDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseAssignmentMarkDao_j1kho9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentMarkDao$delegate_1; _CourseAssignmentMarkDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CommentsDao_edyyzc_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CommentsDao$delegate_1; _CommentsDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__SiteDao_1knt8r_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SiteDao$delegate_1; _SiteDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__SiteTermsDao_105yk8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SiteTermsDao$delegate_1; _SiteTermsDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PersonParentJoinDao_lru39v_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonParentJoinDao$delegate_1; _PersonParentJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ScopedGrantDao_cz3w7w_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ScopedGrantDao$delegate_1; _ScopedGrantDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ErrorReportDao_akqqcs_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ErrorReportDao$delegate_1; _ErrorReportDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PersonAuth2Dao_8mrzil_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonAuth2Dao$delegate_1; _PersonAuth2Dao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__UserSessionDao_gmnonx_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._UserSessionDao$delegate_1; _UserSessionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CoursePictureDao_iot8ud_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CoursePictureDao$delegate_1; _CoursePictureDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryPictureDao_e0mhzx_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryPictureDao$delegate_1; _ContentEntryPictureDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__MessageDao_y4q84f_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._MessageDao$delegate_1; _MessageDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__PeerReviewerAllocationDao_39jynp_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PeerReviewerAllocationDao$delegate_1; _PeerReviewerAllocationDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__DiscussionPostDao_ib7o98_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._DiscussionPostDao$delegate_1; _DiscussionPostDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryVersionDao_rz4nd_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryVersionDao$delegate_1; _ContentEntryVersionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__OfflineItemDao_kbti0i_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._OfflineItemDao$delegate_1; _OfflineItemDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__EnrolmentRequestDao_lb1xip_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._EnrolmentRequestDao$delegate_1; _EnrolmentRequestDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CoursePermissionDao_37yze6_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CoursePermissionDao$delegate_1; _CoursePermissionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__SystemPermissionDao_gsi69u_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SystemPermissionDao$delegate_1; _SystemPermissionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__CourseBlockPictureDao_eyc3u8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseBlockPictureDao$delegate_1; _CourseBlockPictureDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ContentEntryPicture2Dao_8d19ld_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryPicture2Dao$delegate_1; _ContentEntryPicture2Dao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StudentResultDao_xy2n74_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StudentResultDao$delegate_1; _StudentResultDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__VerbLangMapEntryDao_hwr32f_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._VerbLangMapEntryDao$delegate_1; _VerbLangMapEntryDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__GroupMemberActorJoinDao_h4x7iu_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._GroupMemberActorJoinDao$delegate_1; _GroupMemberActorJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ActivityLangMapEntryDao_o5wx87_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityLangMapEntryDao$delegate_1; _ActivityLangMapEntryDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ActivityInteractionDao_svfdr9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityInteractionDao$delegate_1; _ActivityInteractionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__ActivityExtensionDao_tiast4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityExtensionDao$delegate_1; _ActivityExtensionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StatementContextActivityJoinDao_8ioc8z_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementContextActivityJoinDao$delegate_1; _StatementContextActivityJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__XapiSessionEntityDao_qem6cv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._XapiSessionEntityDao$delegate_1; _XapiSessionEntityDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StatementEntityJsonDao_yu9aoe_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementEntityJsonDao$delegate_1; _StatementEntityJsonDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StateEntityDao_iwivzo_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StateEntityDao$delegate_1; _StateEntityDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get__StateDeleteCommandDao_2ot90t_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StateDeleteCommandDao$delegate_1; _StateDeleteCommandDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).get_realDatabase_fu4k1q_k$ = function () { return this._db_1; }; protoOf(UmAppDatabase_DoorWrapper).get_nodeEventManager_3ccda_k$ = function () { return this.nodeEventManager_1; }; protoOf(UmAppDatabase_DoorWrapper).get_invalidationTracker_tp0k9d_k$ = function () { return this._db_1.get_invalidationTracker_tp0k9d_k$(); }; protoOf(UmAppDatabase_DoorWrapper).createAllTables_v6vepi_k$ = function () { return this._db_1.createAllTables_v6vepi_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personDao_e3y77h_k$ = function () { return this.get__PersonDao_2gcixz_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clazzDao_bk7qje_k$ = function () { return this.get__ClazzDao_mn47hs_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseBlockDao_msn3sw_k$ = function () { return this.get__CourseBlockDao_owibti_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseTerminologyDao_p353oa_k$ = function () { return this.get__CourseTerminologyDao_fubtf4_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseGroupSetDao_romfis_k$ = function () { return this.get__CourseGroupSetDao_qj0q2q_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseGroupMemberDao_da0s0k_k$ = function () { return this.get__CourseGroupMemberDao_417hre_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clazzEnrolmentDao_8oyet6_k$ = function () { return this.get__ClazzEnrolmentDao_84ihkg_k$(); }; protoOf(UmAppDatabase_DoorWrapper).leavingReasonDao_9i0tra_k$ = function () { return this.get__LeavingReasonDao_dydsts_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryDao_5ggc49_k$ = function () { return this.get__ContentEntryDao_7j8d31_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryContentCategoryJoinDao_ehgkae_k$ = function () { return this.get__ContentEntryContentCategoryJoinDao_pvh8bk_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryParentChildJoinDao_7l71wv_k$ = function () { return this.get__ContentEntryParentChildJoinDao_bi0wfv_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryRelatedEntryJoinDao_i6y8co_k$ = function () { return this.get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentCategorySchemaDao_92g6ue_k$ = function () { return this.get__ContentCategorySchemaDao_k8roi8_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentCategoryDao_ww12m3_k$ = function () { return this.get__ContentCategoryDao_dzbhgv_k$(); }; protoOf(UmAppDatabase_DoorWrapper).languageDao_jg31ly_k$ = function () { return this.get__LanguageDao_2e4ww4_k$(); }; protoOf(UmAppDatabase_DoorWrapper).languageVariantDao_8ex0aj_k$ = function () { return this.get__LanguageVariantDao_fquhln_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personAuthDao_tb983v_k$ = function () { return this._db_1.personAuthDao_tb983v_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personGroupDao_lgohk_k$ = function () { return this.get__PersonGroupDao_nxfaua_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personGroupMemberDao_v4nqlu_k$ = function () { return this.get__PersonGroupMemberDao_unn144_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personPictureDao_jnjrvt_k$ = function () { return this.get__PersonPictureDao_rx5ni9_k$(); }; protoOf(UmAppDatabase_DoorWrapper).verbDao_5t0jxv_k$ = function () { return this.get__VerbDao_uhx09v_k$(); }; protoOf(UmAppDatabase_DoorWrapper).activityEntityDao_xla99c_k$ = function () { return this.get__ActivityEntityDao_kmcwc6_k$(); }; protoOf(UmAppDatabase_DoorWrapper).reportDao_5udmpu_k$ = function () { return this.get__ReportDao_hhzazc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).statementDao_8y5avx_k$ = function () { return this.get__StatementDao_ssowvt_k$(); }; protoOf(UmAppDatabase_DoorWrapper).actorDao_rapokj_k$ = function () { return this.get__ActorDao_g7t7m5_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clazzLogAttendanceRecordDao_6kuhbg_k$ = function () { return this.get__ClazzLogAttendanceRecordDao_1v165m_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clazzLogDao_4jisyu_k$ = function () { return this.get__ClazzLogDao_qdqrgw_k$(); }; protoOf(UmAppDatabase_DoorWrapper).scheduleDao_2wsqkb_k$ = function () { return this.get__ScheduleDao_or0p2d_k$(); }; protoOf(UmAppDatabase_DoorWrapper).holidayCalendarDao_ugpa84_k$ = function () { return this.get__HolidayCalendarDao_6axsby_k$(); }; protoOf(UmAppDatabase_DoorWrapper).holidayDao_ijvs9y_k$ = function () { return this.get__HolidayDao_opzekw_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clazzAssignmentDao_ta4cfn_k$ = function () { return this.get__ClazzAssignmentDao_54cujh_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseAssignmentSubmissionDao_y3yq7y_k$ = function () { return this.get__CourseAssignmentSubmissionDao_jqvd48_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseAssignmentSubmissionFileDao_spskde_k$ = function () { return this.get__CourseAssignmentSubmissionFileDao_7q6gp8_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseAssignmentMarkDao_6irrq5_k$ = function () { return this.get__CourseAssignmentMarkDao_j1kho9_k$(); }; protoOf(UmAppDatabase_DoorWrapper).commentsDao_ysx4hq_k$ = function () { return this.get__CommentsDao_edyyzc_k$(); }; protoOf(UmAppDatabase_DoorWrapper).syncNodeDao_7tik2d_k$ = function () { return this._db_1.syncNodeDao_7tik2d_k$(); }; protoOf(UmAppDatabase_DoorWrapper).siteDao_yq9qyz_k$ = function () { return this.get__SiteDao_1knt8r_k$(); }; protoOf(UmAppDatabase_DoorWrapper).siteTermsDao_wa3vn6_k$ = function () { return this.get__SiteTermsDao_105yk8_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personParentJoinDao_gvpro7_k$ = function () { return this.get__PersonParentJoinDao_lru39v_k$(); }; protoOf(UmAppDatabase_DoorWrapper).scopedGrantDao_yq1jei_k$ = function () { return this.get__ScopedGrantDao_cz3w7w_k$(); }; protoOf(UmAppDatabase_DoorWrapper).errorReportDao_xwpcpi_k$ = function () { return this.get__ErrorReportDao_akqqcs_k$(); }; protoOf(UmAppDatabase_DoorWrapper).personAuth2Dao_ep6mu5_k$ = function () { return this.get__PersonAuth2Dao_8mrzil_k$(); }; protoOf(UmAppDatabase_DoorWrapper).userSessionDao_v2hqyh_k$ = function () { return this.get__UserSessionDao_gmnonx_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryImportJobDao_bjpy9f_k$ = function () { return this._db_1.contentEntryImportJobDao_bjpy9f_k$(); }; protoOf(UmAppDatabase_DoorWrapper).coursePictureDao_4rldqp_k$ = function () { return this.get__CoursePictureDao_iot8ud_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryPictureDao_8lym7n_k$ = function () { return this.get__ContentEntryPictureDao_e0mhzx_k$(); }; protoOf(UmAppDatabase_DoorWrapper).messageDao_rymlth_k$ = function () { return this.get__MessageDao_y4q84f_k$(); }; protoOf(UmAppDatabase_DoorWrapper).peerReviewerAllocationDao_5g43p1_k$ = function () { return this.get__PeerReviewerAllocationDao_39jynp_k$(); }; protoOf(UmAppDatabase_DoorWrapper).discussionPostDao_z4okmu_k$ = function () { return this.get__DiscussionPostDao_ib7o98_k$(); }; protoOf(UmAppDatabase_DoorWrapper).externalAppPermissionDao_tiffyl_k$ = function () { return this._db_1.externalAppPermissionDao_tiffyl_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryVersionDao_66n0fn_k$ = function () { return this.get__ContentEntryVersionDao_rz4nd_k$(); }; protoOf(UmAppDatabase_DoorWrapper).outgoingReplicationDao_snyh82_k$ = function () { return this._db_1.outgoingReplicationDao_snyh82_k$(); }; protoOf(UmAppDatabase_DoorWrapper).transferJobDao_mx6734_k$ = function () { return this._db_1.transferJobDao_mx6734_k$(); }; protoOf(UmAppDatabase_DoorWrapper).transferJobItemDao_wbvozx_k$ = function () { return this._db_1.transferJobItemDao_wbvozx_k$(); }; protoOf(UmAppDatabase_DoorWrapper).cacheLockJoinDao_yxjk3f_k$ = function () { return this._db_1.cacheLockJoinDao_yxjk3f_k$(); }; protoOf(UmAppDatabase_DoorWrapper).offlineItemDao_rdbxlw_k$ = function () { return this.get__OfflineItemDao_kbti0i_k$(); }; protoOf(UmAppDatabase_DoorWrapper).deletedItemDao_2gyh22_k$ = function () { return this._db_1.deletedItemDao_2gyh22_k$(); }; protoOf(UmAppDatabase_DoorWrapper).enrolmentRequestDao_hchxfd_k$ = function () { return this.get__EnrolmentRequestDao_lb1xip_k$(); }; protoOf(UmAppDatabase_DoorWrapper).coursePermissionDao_t5l7mw_k$ = function () { return this.get__CoursePermissionDao_37yze6_k$(); }; protoOf(UmAppDatabase_DoorWrapper).systemPermissionDao_fl20r8_k$ = function () { return this.get__SystemPermissionDao_gsi69u_k$(); }; protoOf(UmAppDatabase_DoorWrapper).courseBlockPictureDao_hf3pty_k$ = function () { return this.get__CourseBlockPictureDao_eyc3u8_k$(); }; protoOf(UmAppDatabase_DoorWrapper).contentEntryPicture2Dao_h7azt1_k$ = function () { return this.get__ContentEntryPicture2Dao_8d19ld_k$(); }; protoOf(UmAppDatabase_DoorWrapper).transferJobErrorDao_bf4uho_k$ = function () { return this._db_1.transferJobErrorDao_bf4uho_k$(); }; protoOf(UmAppDatabase_DoorWrapper).studentResultDao_dmms6y_k$ = function () { return this.get__StudentResultDao_xy2n74_k$(); }; protoOf(UmAppDatabase_DoorWrapper).verbLangMapEntryDao_egt3yn_k$ = function () { return this.get__VerbLangMapEntryDao_hwr32f_k$(); }; protoOf(UmAppDatabase_DoorWrapper).groupMemberActorJoinDao_sbul1w_k$ = function () { return this.get__GroupMemberActorJoinDao_h4x7iu_k$(); }; protoOf(UmAppDatabase_DoorWrapper).activityLangMapEntryDao_1efc67_k$ = function () { return this.get__ActivityLangMapEntryDao_o5wx87_k$(); }; protoOf(UmAppDatabase_DoorWrapper).activityInteractionDao_ya39jj_k$ = function () { return this.get__ActivityInteractionDao_svfdr9_k$(); }; protoOf(UmAppDatabase_DoorWrapper).activityExtensionDao_w9zywu_k$ = function () { return this.get__ActivityExtensionDao_tiast4_k$(); }; protoOf(UmAppDatabase_DoorWrapper).statementContextActivityJoinDao_w1mheh_k$ = function () { return this.get__StatementContextActivityJoinDao_8ioc8z_k$(); }; protoOf(UmAppDatabase_DoorWrapper).xapiSessionEntityDao_h5sw3p_k$ = function () { return this.get__XapiSessionEntityDao_qem6cv_k$(); }; protoOf(UmAppDatabase_DoorWrapper).statementEntityJsonDao_us6vig_k$ = function () { return this.get__StatementEntityJsonDao_yu9aoe_k$(); }; protoOf(UmAppDatabase_DoorWrapper).stateEntityDao_ssmjmq_k$ = function () { return this.get__StateEntityDao_iwivzo_k$(); }; protoOf(UmAppDatabase_DoorWrapper).stateDeleteCommandDao_55kv0j_k$ = function () { return this.get__StateDeleteCommandDao_2ot90t_k$(); }; protoOf(UmAppDatabase_DoorWrapper).reportRunResultRowDao_6jkhck_k$ = function () { return this._db_1.reportRunResultRowDao_6jkhck_k$(); }; protoOf(UmAppDatabase_DoorWrapper).clearAllTablesAsync_ql6wfg_k$ = function ($completion) { return this._db_1.clearAllTablesAsync_ql6wfg_k$($completion); }; protoOf(UmAppDatabase_DoorWrapper).clearAllTables_arwceh_k$ = function () { this._db_1.clearAllTables_arwceh_k$(); }; protoOf(UmAppDatabase_DoorWrapper).runInTransaction_4l5j4b_k$ = function (runnable) { this._db_1.runInTransaction_4l5j4b_k$(runnable); }; protoOf(UmAppDatabase_DoorWrapper).getDaoByClass_at45d0_k$ = function (daoClass) { var tmp; if (daoClass.equals(getKClass(PersonDao))) { var tmp_0 = this.personDao_e3y77h_k$(); tmp = !(tmp_0 == null) ? tmp_0 : THROW_CCE(); } else if (daoClass.equals(getKClass(ClazzDao))) { var tmp_1 = this.clazzDao_bk7qje_k$(); tmp = !(tmp_1 == null) ? tmp_1 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseBlockDao))) { var tmp_2 = this.courseBlockDao_msn3sw_k$(); tmp = !(tmp_2 == null) ? tmp_2 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseTerminologyDao))) { var tmp_3 = this.courseTerminologyDao_p353oa_k$(); tmp = !(tmp_3 == null) ? tmp_3 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseGroupSetDao))) { var tmp_4 = this.courseGroupSetDao_romfis_k$(); tmp = !(tmp_4 == null) ? tmp_4 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseGroupMemberDao))) { var tmp_5 = this.courseGroupMemberDao_da0s0k_k$(); tmp = !(tmp_5 == null) ? tmp_5 : THROW_CCE(); } else if (daoClass.equals(getKClass(ClazzEnrolmentDao))) { var tmp_6 = this.clazzEnrolmentDao_8oyet6_k$(); tmp = !(tmp_6 == null) ? tmp_6 : THROW_CCE(); } else if (daoClass.equals(getKClass(LeavingReasonDao))) { var tmp_7 = this.leavingReasonDao_9i0tra_k$(); tmp = !(tmp_7 == null) ? tmp_7 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryDao))) { var tmp_8 = this.contentEntryDao_5ggc49_k$(); tmp = !(tmp_8 == null) ? tmp_8 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryContentCategoryJoinDao))) { var tmp_9 = this.contentEntryContentCategoryJoinDao_ehgkae_k$(); tmp = !(tmp_9 == null) ? tmp_9 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryParentChildJoinDao))) { var tmp_10 = this.contentEntryParentChildJoinDao_7l71wv_k$(); tmp = !(tmp_10 == null) ? tmp_10 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryRelatedEntryJoinDao))) { var tmp_11 = this.contentEntryRelatedEntryJoinDao_i6y8co_k$(); tmp = !(tmp_11 == null) ? tmp_11 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentCategorySchemaDao))) { var tmp_12 = this.contentCategorySchemaDao_92g6ue_k$(); tmp = !(tmp_12 == null) ? tmp_12 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentCategoryDao))) { var tmp_13 = this.contentCategoryDao_ww12m3_k$(); tmp = !(tmp_13 == null) ? tmp_13 : THROW_CCE(); } else if (daoClass.equals(getKClass(LanguageDao))) { var tmp_14 = this.languageDao_jg31ly_k$(); tmp = !(tmp_14 == null) ? tmp_14 : THROW_CCE(); } else if (daoClass.equals(getKClass(LanguageVariantDao))) { var tmp_15 = this.languageVariantDao_8ex0aj_k$(); tmp = !(tmp_15 == null) ? tmp_15 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonAuthDao))) { var tmp_16 = this.personAuthDao_tb983v_k$(); tmp = !(tmp_16 == null) ? tmp_16 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonGroupDao))) { var tmp_17 = this.personGroupDao_lgohk_k$(); tmp = !(tmp_17 == null) ? tmp_17 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonGroupMemberDao))) { var tmp_18 = this.personGroupMemberDao_v4nqlu_k$(); tmp = !(tmp_18 == null) ? tmp_18 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonPictureDao))) { var tmp_19 = this.personPictureDao_jnjrvt_k$(); tmp = !(tmp_19 == null) ? tmp_19 : THROW_CCE(); } else if (daoClass.equals(getKClass(VerbDao))) { var tmp_20 = this.verbDao_5t0jxv_k$(); tmp = !(tmp_20 == null) ? tmp_20 : THROW_CCE(); } else if (daoClass.equals(getKClass(ActivityEntityDao))) { var tmp_21 = this.activityEntityDao_xla99c_k$(); tmp = !(tmp_21 == null) ? tmp_21 : THROW_CCE(); } else if (daoClass.equals(getKClass(ReportDao))) { var tmp_22 = this.reportDao_5udmpu_k$(); tmp = !(tmp_22 == null) ? tmp_22 : THROW_CCE(); } else if (daoClass.equals(getKClass(StatementDao))) { var tmp_23 = this.statementDao_8y5avx_k$(); tmp = !(tmp_23 == null) ? tmp_23 : THROW_CCE(); } else if (daoClass.equals(getKClass(ActorDao))) { var tmp_24 = this.actorDao_rapokj_k$(); tmp = !(tmp_24 == null) ? tmp_24 : THROW_CCE(); } else if (daoClass.equals(getKClass(ClazzLogAttendanceRecordDao))) { var tmp_25 = this.clazzLogAttendanceRecordDao_6kuhbg_k$(); tmp = !(tmp_25 == null) ? tmp_25 : THROW_CCE(); } else if (daoClass.equals(getKClass(ClazzLogDao))) { var tmp_26 = this.clazzLogDao_4jisyu_k$(); tmp = !(tmp_26 == null) ? tmp_26 : THROW_CCE(); } else if (daoClass.equals(getKClass(ScheduleDao))) { var tmp_27 = this.scheduleDao_2wsqkb_k$(); tmp = !(tmp_27 == null) ? tmp_27 : THROW_CCE(); } else if (daoClass.equals(getKClass(HolidayCalendarDao))) { var tmp_28 = this.holidayCalendarDao_ugpa84_k$(); tmp = !(tmp_28 == null) ? tmp_28 : THROW_CCE(); } else if (daoClass.equals(getKClass(HolidayDao))) { var tmp_29 = this.holidayDao_ijvs9y_k$(); tmp = !(tmp_29 == null) ? tmp_29 : THROW_CCE(); } else if (daoClass.equals(getKClass(ClazzAssignmentDao))) { var tmp_30 = this.clazzAssignmentDao_ta4cfn_k$(); tmp = !(tmp_30 == null) ? tmp_30 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseAssignmentSubmissionDao))) { var tmp_31 = this.courseAssignmentSubmissionDao_y3yq7y_k$(); tmp = !(tmp_31 == null) ? tmp_31 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseAssignmentSubmissionFileDao))) { var tmp_32 = this.courseAssignmentSubmissionFileDao_spskde_k$(); tmp = !(tmp_32 == null) ? tmp_32 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseAssignmentMarkDao))) { var tmp_33 = this.courseAssignmentMarkDao_6irrq5_k$(); tmp = !(tmp_33 == null) ? tmp_33 : THROW_CCE(); } else if (daoClass.equals(getKClass(CommentsDao))) { var tmp_34 = this.commentsDao_ysx4hq_k$(); tmp = !(tmp_34 == null) ? tmp_34 : THROW_CCE(); } else if (daoClass.equals(getKClass(SyncNodeDao))) { var tmp_35 = this.syncNodeDao_7tik2d_k$(); tmp = !(tmp_35 == null) ? tmp_35 : THROW_CCE(); } else if (daoClass.equals(getKClass(SiteDao))) { var tmp_36 = this.siteDao_yq9qyz_k$(); tmp = !(tmp_36 == null) ? tmp_36 : THROW_CCE(); } else if (daoClass.equals(getKClass(SiteTermsDao))) { var tmp_37 = this.siteTermsDao_wa3vn6_k$(); tmp = !(tmp_37 == null) ? tmp_37 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonParentJoinDao))) { var tmp_38 = this.personParentJoinDao_gvpro7_k$(); tmp = !(tmp_38 == null) ? tmp_38 : THROW_CCE(); } else if (daoClass.equals(getKClass(ScopedGrantDao))) { var tmp_39 = this.scopedGrantDao_yq1jei_k$(); tmp = !(tmp_39 == null) ? tmp_39 : THROW_CCE(); } else if (daoClass.equals(getKClass(ErrorReportDao))) { var tmp_40 = this.errorReportDao_xwpcpi_k$(); tmp = !(tmp_40 == null) ? tmp_40 : THROW_CCE(); } else if (daoClass.equals(getKClass(PersonAuth2Dao))) { var tmp_41 = this.personAuth2Dao_ep6mu5_k$(); tmp = !(tmp_41 == null) ? tmp_41 : THROW_CCE(); } else if (daoClass.equals(getKClass(UserSessionDao))) { var tmp_42 = this.userSessionDao_v2hqyh_k$(); tmp = !(tmp_42 == null) ? tmp_42 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryImportJobDao))) { var tmp_43 = this.contentEntryImportJobDao_bjpy9f_k$(); tmp = !(tmp_43 == null) ? tmp_43 : THROW_CCE(); } else if (daoClass.equals(getKClass(CoursePictureDao))) { var tmp_44 = this.coursePictureDao_4rldqp_k$(); tmp = !(tmp_44 == null) ? tmp_44 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryPictureDao))) { var tmp_45 = this.contentEntryPictureDao_8lym7n_k$(); tmp = !(tmp_45 == null) ? tmp_45 : THROW_CCE(); } else if (daoClass.equals(getKClass(MessageDao))) { var tmp_46 = this.messageDao_rymlth_k$(); tmp = !(tmp_46 == null) ? tmp_46 : THROW_CCE(); } else if (daoClass.equals(getKClass(PeerReviewerAllocationDao))) { var tmp_47 = this.peerReviewerAllocationDao_5g43p1_k$(); tmp = !(tmp_47 == null) ? tmp_47 : THROW_CCE(); } else if (daoClass.equals(getKClass(DiscussionPostDao))) { var tmp_48 = this.discussionPostDao_z4okmu_k$(); tmp = !(tmp_48 == null) ? tmp_48 : THROW_CCE(); } else if (daoClass.equals(getKClass(ExternalAppPermissionDao))) { var tmp_49 = this.externalAppPermissionDao_tiffyl_k$(); tmp = !(tmp_49 == null) ? tmp_49 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryVersionDao))) { var tmp_50 = this.contentEntryVersionDao_66n0fn_k$(); tmp = !(tmp_50 == null) ? tmp_50 : THROW_CCE(); } else if (daoClass.equals(getKClass(OutgoingReplicationDao))) { var tmp_51 = this.outgoingReplicationDao_snyh82_k$(); tmp = !(tmp_51 == null) ? tmp_51 : THROW_CCE(); } else if (daoClass.equals(getKClass(TransferJobDao))) { var tmp_52 = this.transferJobDao_mx6734_k$(); tmp = !(tmp_52 == null) ? tmp_52 : THROW_CCE(); } else if (daoClass.equals(getKClass(TransferJobItemDao))) { var tmp_53 = this.transferJobItemDao_wbvozx_k$(); tmp = !(tmp_53 == null) ? tmp_53 : THROW_CCE(); } else if (daoClass.equals(getKClass(CacheLockJoinDao))) { var tmp_54 = this.cacheLockJoinDao_yxjk3f_k$(); tmp = !(tmp_54 == null) ? tmp_54 : THROW_CCE(); } else if (daoClass.equals(getKClass(OfflineItemDao))) { var tmp_55 = this.offlineItemDao_rdbxlw_k$(); tmp = !(tmp_55 == null) ? tmp_55 : THROW_CCE(); } else if (daoClass.equals(getKClass(DeletedItemDao))) { var tmp_56 = this.deletedItemDao_2gyh22_k$(); tmp = !(tmp_56 == null) ? tmp_56 : THROW_CCE(); } else if (daoClass.equals(getKClass(EnrolmentRequestDao))) { var tmp_57 = this.enrolmentRequestDao_hchxfd_k$(); tmp = !(tmp_57 == null) ? tmp_57 : THROW_CCE(); } else if (daoClass.equals(getKClass(CoursePermissionDao))) { var tmp_58 = this.coursePermissionDao_t5l7mw_k$(); tmp = !(tmp_58 == null) ? tmp_58 : THROW_CCE(); } else if (daoClass.equals(getKClass(SystemPermissionDao))) { var tmp_59 = this.systemPermissionDao_fl20r8_k$(); tmp = !(tmp_59 == null) ? tmp_59 : THROW_CCE(); } else if (daoClass.equals(getKClass(CourseBlockPictureDao))) { var tmp_60 = this.courseBlockPictureDao_hf3pty_k$(); tmp = !(tmp_60 == null) ? tmp_60 : THROW_CCE(); } else if (daoClass.equals(getKClass(ContentEntryPicture2Dao))) { var tmp_61 = this.contentEntryPicture2Dao_h7azt1_k$(); tmp = !(tmp_61 == null) ? tmp_61 : THROW_CCE(); } else if (daoClass.equals(getKClass(TransferJobErrorDao))) { var tmp_62 = this.transferJobErrorDao_bf4uho_k$(); tmp = !(tmp_62 == null) ? tmp_62 : THROW_CCE(); } else if (daoClass.equals(getKClass(StudentResultDao))) { var tmp_63 = this.studentResultDao_dmms6y_k$(); tmp = !(tmp_63 == null) ? tmp_63 : THROW_CCE(); } else if (daoClass.equals(getKClass(VerbLangMapEntryDao))) { var tmp_64 = this.verbLangMapEntryDao_egt3yn_k$(); tmp = !(tmp_64 == null) ? tmp_64 : THROW_CCE(); } else if (daoClass.equals(getKClass(GroupMemberActorJoinDao))) { var tmp_65 = this.groupMemberActorJoinDao_sbul1w_k$(); tmp = !(tmp_65 == null) ? tmp_65 : THROW_CCE(); } else if (daoClass.equals(getKClass(ActivityLangMapEntryDao))) { var tmp_66 = this.activityLangMapEntryDao_1efc67_k$(); tmp = !(tmp_66 == null) ? tmp_66 : THROW_CCE(); } else if (daoClass.equals(getKClass(ActivityInteractionDao))) { var tmp_67 = this.activityInteractionDao_ya39jj_k$(); tmp = !(tmp_67 == null) ? tmp_67 : THROW_CCE(); } else if (daoClass.equals(getKClass(ActivityExtensionDao))) { var tmp_68 = this.activityExtensionDao_w9zywu_k$(); tmp = !(tmp_68 == null) ? tmp_68 : THROW_CCE(); } else if (daoClass.equals(getKClass(StatementContextActivityJoinDao))) { var tmp_69 = this.statementContextActivityJoinDao_w1mheh_k$(); tmp = !(tmp_69 == null) ? tmp_69 : THROW_CCE(); } else if (daoClass.equals(getKClass(XapiSessionEntityDao))) { var tmp_70 = this.xapiSessionEntityDao_h5sw3p_k$(); tmp = !(tmp_70 == null) ? tmp_70 : THROW_CCE(); } else if (daoClass.equals(getKClass(StatementEntityJsonDao))) { var tmp_71 = this.statementEntityJsonDao_us6vig_k$(); tmp = !(tmp_71 == null) ? tmp_71 : THROW_CCE(); } else if (daoClass.equals(getKClass(StateEntityDao))) { var tmp_72 = this.stateEntityDao_ssmjmq_k$(); tmp = !(tmp_72 == null) ? tmp_72 : THROW_CCE(); } else if (daoClass.equals(getKClass(StateDeleteCommandDao))) { var tmp_73 = this.stateDeleteCommandDao_55kv0j_k$(); tmp = !(tmp_73 == null) ? tmp_73 : THROW_CCE(); } else if (daoClass.equals(getKClass(ReportQueryResultDao))) { var tmp_74 = this.reportRunResultRowDao_6jkhck_k$(); tmp = !(tmp_74 == null) ? tmp_74 : THROW_CCE(); } else { throw IllegalArgumentException_init_$Create$('No such DAO on this DB'); } return tmp; }; protoOf(UmAppDatabase_DoorWrapper).close_yn9xrc_k$ = function () { this._db_1.close_yn9xrc_k$(); }; function _PersonDao$factory() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return receiver.get__PersonDao_2gcixz_k$(); }, null); } function _ClazzDao$factory() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzDao_mn47hs_k$(); }, null); } function _CourseBlockDao$factory() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return receiver.get__CourseBlockDao_owibti_k$(); }, null); } function _CourseTerminologyDao$factory() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return receiver.get__CourseTerminologyDao_fubtf4_k$(); }, null); } function _CourseGroupSetDao$factory() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return receiver.get__CourseGroupSetDao_qj0q2q_k$(); }, null); } function _CourseGroupMemberDao$factory() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.get__CourseGroupMemberDao_417hre_k$(); }, null); } function _ClazzEnrolmentDao$factory() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzEnrolmentDao_84ihkg_k$(); }, null); } function _LeavingReasonDao$factory() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return receiver.get__LeavingReasonDao_dydsts_k$(); }, null); } function _ContentEntryDao$factory() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryDao_7j8d31_k$(); }, null); } function _ContentEntryContentCategoryJoinDao$factory() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryContentCategoryJoinDao_pvh8bk_k$(); }, null); } function _ContentEntryParentChildJoinDao$factory() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryParentChildJoinDao_bi0wfv_k$(); }, null); } function _ContentEntryRelatedEntryJoinDao$factory() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$(); }, null); } function _ContentCategorySchemaDao$factory() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return receiver.get__ContentCategorySchemaDao_k8roi8_k$(); }, null); } function _ContentCategoryDao$factory() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return receiver.get__ContentCategoryDao_dzbhgv_k$(); }, null); } function _LanguageDao$factory() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return receiver.get__LanguageDao_2e4ww4_k$(); }, null); } function _LanguageVariantDao$factory() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return receiver.get__LanguageVariantDao_fquhln_k$(); }, null); } function _PersonGroupDao$factory() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return receiver.get__PersonGroupDao_nxfaua_k$(); }, null); } function _PersonGroupMemberDao$factory() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.get__PersonGroupMemberDao_unn144_k$(); }, null); } function _PersonPictureDao$factory() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return receiver.get__PersonPictureDao_rx5ni9_k$(); }, null); } function _VerbDao$factory() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return receiver.get__VerbDao_uhx09v_k$(); }, null); } function _ActivityEntityDao$factory() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityEntityDao_kmcwc6_k$(); }, null); } function _ReportDao$factory() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return receiver.get__ReportDao_hhzazc_k$(); }, null); } function _StatementDao$factory() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return receiver.get__StatementDao_ssowvt_k$(); }, null); } function _ActorDao$factory() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return receiver.get__ActorDao_g7t7m5_k$(); }, null); } function _ClazzLogAttendanceRecordDao$factory() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzLogAttendanceRecordDao_1v165m_k$(); }, null); } function _ClazzLogDao$factory() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzLogDao_qdqrgw_k$(); }, null); } function _ScheduleDao$factory() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return receiver.get__ScheduleDao_or0p2d_k$(); }, null); } function _HolidayCalendarDao$factory() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return receiver.get__HolidayCalendarDao_6axsby_k$(); }, null); } function _HolidayDao$factory() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return receiver.get__HolidayDao_opzekw_k$(); }, null); } function _ClazzAssignmentDao$factory() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzAssignmentDao_54cujh_k$(); }, null); } function _CourseAssignmentSubmissionDao$factory() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentSubmissionDao_jqvd48_k$(); }, null); } function _CourseAssignmentSubmissionFileDao$factory() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentSubmissionFileDao_7q6gp8_k$(); }, null); } function _CourseAssignmentMarkDao$factory() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentMarkDao_j1kho9_k$(); }, null); } function _CommentsDao$factory() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return receiver.get__CommentsDao_edyyzc_k$(); }, null); } function _SiteDao$factory() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return receiver.get__SiteDao_1knt8r_k$(); }, null); } function _SiteTermsDao$factory() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return receiver.get__SiteTermsDao_105yk8_k$(); }, null); } function _PersonParentJoinDao$factory() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return receiver.get__PersonParentJoinDao_lru39v_k$(); }, null); } function _ScopedGrantDao$factory() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return receiver.get__ScopedGrantDao_cz3w7w_k$(); }, null); } function _ErrorReportDao$factory() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return receiver.get__ErrorReportDao_akqqcs_k$(); }, null); } function _PersonAuth2Dao$factory() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return receiver.get__PersonAuth2Dao_8mrzil_k$(); }, null); } function _UserSessionDao$factory() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return receiver.get__UserSessionDao_gmnonx_k$(); }, null); } function _CoursePictureDao$factory() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return receiver.get__CoursePictureDao_iot8ud_k$(); }, null); } function _ContentEntryPictureDao$factory() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryPictureDao_e0mhzx_k$(); }, null); } function _MessageDao$factory() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return receiver.get__MessageDao_y4q84f_k$(); }, null); } function _PeerReviewerAllocationDao$factory() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return receiver.get__PeerReviewerAllocationDao_39jynp_k$(); }, null); } function _DiscussionPostDao$factory() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return receiver.get__DiscussionPostDao_ib7o98_k$(); }, null); } function _ContentEntryVersionDao$factory() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryVersionDao_rz4nd_k$(); }, null); } function _OfflineItemDao$factory() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return receiver.get__OfflineItemDao_kbti0i_k$(); }, null); } function _EnrolmentRequestDao$factory() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return receiver.get__EnrolmentRequestDao_lb1xip_k$(); }, null); } function _CoursePermissionDao$factory() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return receiver.get__CoursePermissionDao_37yze6_k$(); }, null); } function _SystemPermissionDao$factory() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return receiver.get__SystemPermissionDao_gsi69u_k$(); }, null); } function _CourseBlockPictureDao$factory() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return receiver.get__CourseBlockPictureDao_eyc3u8_k$(); }, null); } function _ContentEntryPicture2Dao$factory() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryPicture2Dao_8d19ld_k$(); }, null); } function _StudentResultDao$factory() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return receiver.get__StudentResultDao_xy2n74_k$(); }, null); } function _VerbLangMapEntryDao$factory() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.get__VerbLangMapEntryDao_hwr32f_k$(); }, null); } function _GroupMemberActorJoinDao$factory() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return receiver.get__GroupMemberActorJoinDao_h4x7iu_k$(); }, null); } function _ActivityLangMapEntryDao$factory() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityLangMapEntryDao_o5wx87_k$(); }, null); } function _ActivityInteractionDao$factory() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityInteractionDao_svfdr9_k$(); }, null); } function _ActivityExtensionDao$factory() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityExtensionDao_tiast4_k$(); }, null); } function _StatementContextActivityJoinDao$factory() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return receiver.get__StatementContextActivityJoinDao_8ioc8z_k$(); }, null); } function _XapiSessionEntityDao$factory() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return receiver.get__XapiSessionEntityDao_qem6cv_k$(); }, null); } function _StatementEntityJsonDao$factory() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return receiver.get__StatementEntityJsonDao_yu9aoe_k$(); }, null); } function _StateEntityDao$factory() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return receiver.get__StateEntityDao_iwivzo_k$(); }, null); } function _StateDeleteCommandDao$factory() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return receiver.get__StateDeleteCommandDao_2ot90t_k$(); }, null); } function UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this$0) { return function () { var tmp; if (equals(this$0, get_rootDatabase(this$0))) { var nodeIdAuthCache = new NodeIdAuthCache(this$0); tmp = nodeIdAuthCache; } else { tmp = get_nodeIdAuthCache(get_rootDatabase(this$0)); } return tmp; }; } function UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda() { return new DoorPrimaryKeyManager(doorDatabaseMetadata(getKClass(UmAppDatabase)).get_replicateEntities_2w1n4x_k$().get_keys_wop4xp_k$()); } function UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this$0) { return function () { return new PersonAuthDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this$0) { return function () { return new SyncNodeDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this$0) { return function () { return new ContentEntryImportJobDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this$0) { return function () { return new ExternalAppPermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this$0) { return function () { return new OutgoingReplicationDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this$0) { return function () { return new TransferJobDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this$0) { return function () { return new TransferJobItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this$0) { return function () { return new CacheLockJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this$0) { return function () { return new DeletedItemDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this$0) { return function () { return new TransferJobErrorDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl$_ReportQueryResultDao$delegate$lambda(this$0) { return function () { return new ReportQueryResultDao_JdbcImpl(this$0); }; } function UmAppDatabase_JdbcImpl(doorJdbcSourceDatabase, dataSource, dbUrl, dbName, jdbcQueryTimeout, jdbcDbType, logger) { UmAppDatabase.call(this); this.doorJdbcSourceDatabase_1 = doorJdbcSourceDatabase; this.dataSource_1 = dataSource; this.dbName_1 = dbName; this.jdbcQueryTimeout_1 = jdbcQueryTimeout; var tmp = this; var tmp_0 = doorDatabaseMetadata(getKClassFromExpression(this)).get_allTables_1jy9x9_k$(); // Inline function 'kotlin.collections.toTypedArray' call var this_0 = doorDatabaseMetadata(getKClassFromExpression(this)).get_allTables_1jy9x9_k$(); var tmp$ret$0 = copyToArray(this_0); tmp.jdbcImplHelper_1 = new RoomDatabaseJdbcImplHelper(this.dataSource_1, this, dbUrl, this.dbName_1, logger, tmp_0, new InvalidationTracker(tmp$ret$0.slice()), jdbcDbType); var tmp_1 = this; tmp_1.realNodeIdAuthCache$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$realNodeIdAuthCache$delegate$lambda(this)); var tmp_2 = this; tmp_2.realPrimaryKeyManager$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$realPrimaryKeyManager$delegate$lambda); var tmp_3 = this; tmp_3._PersonDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonDao$delegate$lambda(this)); var tmp_4 = this; tmp_4._ClazzDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzDao$delegate$lambda(this)); var tmp_5 = this; tmp_5._CourseBlockDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockDao$delegate$lambda(this)); var tmp_6 = this; tmp_6._CourseTerminologyDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseTerminologyDao$delegate$lambda(this)); var tmp_7 = this; tmp_7._CourseGroupSetDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupSetDao$delegate$lambda(this)); var tmp_8 = this; tmp_8._CourseGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_9 = this; tmp_9._ClazzEnrolmentDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_10 = this; tmp_10._LeavingReasonDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_LeavingReasonDao$delegate$lambda(this)); var tmp_11 = this; tmp_11._ContentEntryDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryDao$delegate$lambda(this)); var tmp_12 = this; tmp_12._ContentEntryContentCategoryJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_13 = this; tmp_13._ContentEntryParentChildJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_14 = this; tmp_14._ContentEntryRelatedEntryJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_15 = this; tmp_15._ContentCategorySchemaDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_16 = this; tmp_16._ContentCategoryDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentCategoryDao$delegate$lambda(this)); var tmp_17 = this; tmp_17._LanguageDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageDao$delegate$lambda(this)); var tmp_18 = this; tmp_18._LanguageVariantDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_LanguageVariantDao$delegate$lambda(this)); var tmp_19 = this; tmp_19._PersonAuthDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuthDao$delegate$lambda(this)); var tmp_20 = this; tmp_20._PersonGroupDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupDao$delegate$lambda(this)); var tmp_21 = this; tmp_21._PersonGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_22 = this; tmp_22._PersonPictureDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonPictureDao$delegate$lambda(this)); var tmp_23 = this; tmp_23._VerbDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbDao$delegate$lambda(this)); var tmp_24 = this; tmp_24._ActivityEntityDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityEntityDao$delegate$lambda(this)); var tmp_25 = this; tmp_25._ReportDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportDao$delegate$lambda(this)); var tmp_26 = this; tmp_26._StatementDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementDao$delegate$lambda(this)); var tmp_27 = this; tmp_27._ActorDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActorDao$delegate$lambda(this)); var tmp_28 = this; tmp_28._ClazzLogAttendanceRecordDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_29 = this; tmp_29._ClazzLogDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzLogDao$delegate$lambda(this)); var tmp_30 = this; tmp_30._ScheduleDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScheduleDao$delegate$lambda(this)); var tmp_31 = this; tmp_31._HolidayCalendarDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayCalendarDao$delegate$lambda(this)); var tmp_32 = this; tmp_32._HolidayDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_HolidayDao$delegate$lambda(this)); var tmp_33 = this; tmp_33._ClazzAssignmentDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_34 = this; tmp_34._CourseAssignmentSubmissionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_35 = this; tmp_35._CourseAssignmentSubmissionFileDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_36 = this; tmp_36._CourseAssignmentMarkDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_37 = this; tmp_37._CommentsDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CommentsDao$delegate$lambda(this)); var tmp_38 = this; tmp_38._SyncNodeDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_SyncNodeDao$delegate$lambda(this)); var tmp_39 = this; tmp_39._SiteDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteDao$delegate$lambda(this)); var tmp_40 = this; tmp_40._SiteTermsDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_SiteTermsDao$delegate$lambda(this)); var tmp_41 = this; tmp_41._PersonParentJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonParentJoinDao$delegate$lambda(this)); var tmp_42 = this; tmp_42._ScopedGrantDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ScopedGrantDao$delegate$lambda(this)); var tmp_43 = this; tmp_43._ErrorReportDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ErrorReportDao$delegate$lambda(this)); var tmp_44 = this; tmp_44._PersonAuth2Dao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PersonAuth2Dao$delegate$lambda(this)); var tmp_45 = this; tmp_45._UserSessionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_UserSessionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46._ContentEntryImportJobDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryImportJobDao$delegate$lambda(this)); var tmp_47 = this; tmp_47._CoursePictureDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePictureDao$delegate$lambda(this)); var tmp_48 = this; tmp_48._ContentEntryPictureDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_49 = this; tmp_49._MessageDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_MessageDao$delegate$lambda(this)); var tmp_50 = this; tmp_50._PeerReviewerAllocationDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_51 = this; tmp_51._DiscussionPostDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_DiscussionPostDao$delegate$lambda(this)); var tmp_52 = this; tmp_52._ExternalAppPermissionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ExternalAppPermissionDao$delegate$lambda(this)); var tmp_53 = this; tmp_53._ContentEntryVersionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_54 = this; tmp_54._OutgoingReplicationDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_OutgoingReplicationDao$delegate$lambda(this)); var tmp_55 = this; tmp_55._TransferJobDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobDao$delegate$lambda(this)); var tmp_56 = this; tmp_56._TransferJobItemDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobItemDao$delegate$lambda(this)); var tmp_57 = this; tmp_57._CacheLockJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CacheLockJoinDao$delegate$lambda(this)); var tmp_58 = this; tmp_58._OfflineItemDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_OfflineItemDao$delegate$lambda(this)); var tmp_59 = this; tmp_59._DeletedItemDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_DeletedItemDao$delegate$lambda(this)); var tmp_60 = this; tmp_60._EnrolmentRequestDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_61 = this; tmp_61._CoursePermissionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CoursePermissionDao$delegate$lambda(this)); var tmp_62 = this; tmp_62._SystemPermissionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_SystemPermissionDao$delegate$lambda(this)); var tmp_63 = this; tmp_63._CourseBlockPictureDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_64 = this; tmp_64._ContentEntryPicture2Dao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_65 = this; tmp_65._TransferJobErrorDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_TransferJobErrorDao$delegate$lambda(this)); var tmp_66 = this; tmp_66._StudentResultDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StudentResultDao$delegate$lambda(this)); var tmp_67 = this; tmp_67._VerbLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_68 = this; tmp_68._GroupMemberActorJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_69 = this; tmp_69._ActivityLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_70 = this; tmp_70._ActivityInteractionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityInteractionDao$delegate$lambda(this)); var tmp_71 = this; tmp_71._ActivityExtensionDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ActivityExtensionDao$delegate$lambda(this)); var tmp_72 = this; tmp_72._StatementContextActivityJoinDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_73 = this; tmp_73._XapiSessionEntityDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_74 = this; tmp_74._StatementEntityJsonDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_75 = this; tmp_75._StateEntityDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateEntityDao$delegate$lambda(this)); var tmp_76 = this; tmp_76._StateDeleteCommandDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_StateDeleteCommandDao$delegate$lambda(this)); var tmp_77 = this; tmp_77._ReportQueryResultDao$delegate_1 = lazy_0(UmAppDatabase_JdbcImpl$_ReportQueryResultDao$delegate$lambda(this)); } protoOf(UmAppDatabase_JdbcImpl).get_doorJdbcSourceDatabase_3uwys8_k$ = function () { return this.doorJdbcSourceDatabase_1; }; protoOf(UmAppDatabase_JdbcImpl).get_dataSource_vce0e_k$ = function () { return this.dataSource_1; }; protoOf(UmAppDatabase_JdbcImpl).get_dbName_c9i0qa_k$ = function () { return this.dbName_1; }; protoOf(UmAppDatabase_JdbcImpl).get_jdbcQueryTimeout_rk5wkj_k$ = function () { return this.jdbcQueryTimeout_1; }; protoOf(UmAppDatabase_JdbcImpl).get_dbVersion_jd6ndd_k$ = function () { return 207; }; protoOf(UmAppDatabase_JdbcImpl).get_jdbcImplHelper_iauze6_k$ = function () { return this.jdbcImplHelper_1; }; protoOf(UmAppDatabase_JdbcImpl).get_realNodeIdAuthCache_ojie7e_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this.realNodeIdAuthCache$delegate_1; realNodeIdAuthCache$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get_realPrimaryKeyManager_s5zvav_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this.realPrimaryKeyManager$delegate_1; realPrimaryKeyManager$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get_invalidationTracker_tp0k9d_k$ = function () { return this.jdbcImplHelper_1.get_invalidationTracker_tp0k9d_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonDao_2gcixz_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonDao$delegate_1; _PersonDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ClazzDao_mn47hs_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzDao$delegate_1; _ClazzDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseBlockDao_owibti_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseBlockDao$delegate_1; _CourseBlockDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseTerminologyDao_fubtf4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseTerminologyDao$delegate_1; _CourseTerminologyDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseGroupSetDao_qj0q2q_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseGroupSetDao$delegate_1; _CourseGroupSetDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseGroupMemberDao_417hre_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseGroupMemberDao$delegate_1; _CourseGroupMemberDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ClazzEnrolmentDao_84ihkg_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzEnrolmentDao$delegate_1; _ClazzEnrolmentDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__LeavingReasonDao_dydsts_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LeavingReasonDao$delegate_1; _LeavingReasonDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryDao_7j8d31_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryDao$delegate_1; _ContentEntryDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryContentCategoryJoinDao_pvh8bk_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryContentCategoryJoinDao$delegate_1; _ContentEntryContentCategoryJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryParentChildJoinDao_bi0wfv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryParentChildJoinDao$delegate_1; _ContentEntryParentChildJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryRelatedEntryJoinDao$delegate_1; _ContentEntryRelatedEntryJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentCategorySchemaDao_k8roi8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentCategorySchemaDao$delegate_1; _ContentCategorySchemaDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentCategoryDao_dzbhgv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentCategoryDao$delegate_1; _ContentCategoryDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__LanguageDao_2e4ww4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LanguageDao$delegate_1; _LanguageDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__LanguageVariantDao_fquhln_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._LanguageVariantDao$delegate_1; _LanguageVariantDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonAuthDao_4ayl5r_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonAuthDao$delegate_1; _PersonAuthDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonGroupDao_nxfaua_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonGroupDao$delegate_1; _PersonGroupDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonGroupMemberDao_unn144_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonGroupMemberDao$delegate_1; _PersonGroupMemberDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonPictureDao_rx5ni9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonPictureDao$delegate_1; _PersonPictureDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__VerbDao_uhx09v_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._VerbDao$delegate_1; _VerbDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ActivityEntityDao_kmcwc6_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityEntityDao$delegate_1; _ActivityEntityDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ReportDao_hhzazc_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ReportDao$delegate_1; _ReportDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StatementDao_ssowvt_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementDao$delegate_1; _StatementDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ActorDao_g7t7m5_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActorDao$delegate_1; _ActorDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ClazzLogAttendanceRecordDao_1v165m_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzLogAttendanceRecordDao$delegate_1; _ClazzLogAttendanceRecordDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ClazzLogDao_qdqrgw_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzLogDao$delegate_1; _ClazzLogDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ScheduleDao_or0p2d_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ScheduleDao$delegate_1; _ScheduleDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__HolidayCalendarDao_6axsby_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._HolidayCalendarDao$delegate_1; _HolidayCalendarDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__HolidayDao_opzekw_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._HolidayDao$delegate_1; _HolidayDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ClazzAssignmentDao_54cujh_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ClazzAssignmentDao$delegate_1; _ClazzAssignmentDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseAssignmentSubmissionDao_jqvd48_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentSubmissionDao$delegate_1; _CourseAssignmentSubmissionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseAssignmentSubmissionFileDao_7q6gp8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentSubmissionFileDao$delegate_1; _CourseAssignmentSubmissionFileDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseAssignmentMarkDao_j1kho9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseAssignmentMarkDao$delegate_1; _CourseAssignmentMarkDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CommentsDao_edyyzc_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CommentsDao$delegate_1; _CommentsDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__SyncNodeDao_tnqikf_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SyncNodeDao$delegate_1; _SyncNodeDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__SiteDao_1knt8r_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SiteDao$delegate_1; _SiteDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__SiteTermsDao_105yk8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SiteTermsDao$delegate_1; _SiteTermsDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonParentJoinDao_lru39v_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonParentJoinDao$delegate_1; _PersonParentJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ScopedGrantDao_cz3w7w_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ScopedGrantDao$delegate_1; _ScopedGrantDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ErrorReportDao_akqqcs_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ErrorReportDao$delegate_1; _ErrorReportDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PersonAuth2Dao_8mrzil_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PersonAuth2Dao$delegate_1; _PersonAuth2Dao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__UserSessionDao_gmnonx_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._UserSessionDao$delegate_1; _UserSessionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryImportJobDao_degll_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryImportJobDao$delegate_1; _ContentEntryImportJobDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CoursePictureDao_iot8ud_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CoursePictureDao$delegate_1; _CoursePictureDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryPictureDao_e0mhzx_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryPictureDao$delegate_1; _ContentEntryPictureDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__MessageDao_y4q84f_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._MessageDao$delegate_1; _MessageDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__PeerReviewerAllocationDao_39jynp_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._PeerReviewerAllocationDao$delegate_1; _PeerReviewerAllocationDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__DiscussionPostDao_ib7o98_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._DiscussionPostDao$delegate_1; _DiscussionPostDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ExternalAppPermissionDao_ic3yar_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ExternalAppPermissionDao$delegate_1; _ExternalAppPermissionDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryVersionDao_rz4nd_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryVersionDao$delegate_1; _ContentEntryVersionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__OutgoingReplicationDao_n9alfs_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._OutgoingReplicationDao$delegate_1; _OutgoingReplicationDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__TransferJobDao_esf9m_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._TransferJobDao$delegate_1; _TransferJobDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__TransferJobItemDao_ejgv31_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._TransferJobItemDao$delegate_1; _TransferJobItemDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CacheLockJoinDao_cn5van_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CacheLockJoinDao$delegate_1; _CacheLockJoinDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__OfflineItemDao_kbti0i_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._OfflineItemDao$delegate_1; _OfflineItemDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__DeletedItemDao_psx3es_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._DeletedItemDao$delegate_1; _DeletedItemDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__EnrolmentRequestDao_lb1xip_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._EnrolmentRequestDao$delegate_1; _EnrolmentRequestDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CoursePermissionDao_37yze6_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CoursePermissionDao$delegate_1; _CoursePermissionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__SystemPermissionDao_gsi69u_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._SystemPermissionDao$delegate_1; _SystemPermissionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__CourseBlockPictureDao_eyc3u8_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._CourseBlockPictureDao$delegate_1; _CourseBlockPictureDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ContentEntryPicture2Dao_8d19ld_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ContentEntryPicture2Dao$delegate_1; _ContentEntryPicture2Dao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__TransferJobErrorDao_kyfcje_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._TransferJobErrorDao$delegate_1; _TransferJobErrorDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StudentResultDao_xy2n74_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StudentResultDao$delegate_1; _StudentResultDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__VerbLangMapEntryDao_hwr32f_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._VerbLangMapEntryDao$delegate_1; _VerbLangMapEntryDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__GroupMemberActorJoinDao_h4x7iu_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._GroupMemberActorJoinDao$delegate_1; _GroupMemberActorJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ActivityLangMapEntryDao_o5wx87_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityLangMapEntryDao$delegate_1; _ActivityLangMapEntryDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ActivityInteractionDao_svfdr9_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityInteractionDao$delegate_1; _ActivityInteractionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ActivityExtensionDao_tiast4_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ActivityExtensionDao$delegate_1; _ActivityExtensionDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StatementContextActivityJoinDao_8ioc8z_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementContextActivityJoinDao$delegate_1; _StatementContextActivityJoinDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__XapiSessionEntityDao_qem6cv_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._XapiSessionEntityDao$delegate_1; _XapiSessionEntityDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StatementEntityJsonDao_yu9aoe_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StatementEntityJsonDao$delegate_1; _StatementEntityJsonDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StateEntityDao_iwivzo_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StateEntityDao$delegate_1; _StateEntityDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__StateDeleteCommandDao_2ot90t_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._StateDeleteCommandDao$delegate_1; _StateDeleteCommandDao$factory_0(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).get__ReportQueryResultDao_r1qjyh_k$ = function () { // Inline function 'kotlin.getValue' call var this_0 = this._ReportQueryResultDao$delegate_1; _ReportQueryResultDao$factory(); return this_0.get_value_j01efc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).createAllTables_v6vepi_k$ = function () { var _stmtList = mutableLinkedListOf([]); var tmp0_subject = this.jdbcImplHelper_1.get_dbType_c9mcip_k$(); if (tmp0_subject === 1) { // Inline function 'kotlin.collections.plusAssign' call var element = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))'; _stmtList.add_utx5q5_k$(element); // Inline function 'kotlin.collections.plusAssign' call var element_0 = "INSERT INTO _doorwayinfo VALUES (207, '')"; _stmtList.add_utx5q5_k$(element_0); // Inline function 'kotlin.collections.plusAssign' call var element_1 = 'CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid INTEGER NOT NULL , logDate INTEGER NOT NULL , timeRecorded INTEGER NOT NULL , clazzLogDone INTEGER NOT NULL , cancellationNote TEXT , clazzLogCancelled INTEGER NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid INTEGER NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN INTEGER NOT NULL , clazzLogLCSN INTEGER NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime INTEGER NOT NULL , clazzLogUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_1); // Inline function 'kotlin.collections.plusAssign' call var element_2 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid INTEGER NOT NULL , clazzLogAttendanceRecordPersonUid INTEGER NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime INTEGER NOT NULL , clazzLogAttendanceRecordUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_2); // Inline function 'kotlin.collections.plusAssign' call var element_3 = 'CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime INTEGER NOT NULL , scheduleEndTime INTEGER NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid INTEGER NOT NULL , scheduleClazzUid INTEGER NOT NULL , scheduleMasterChangeSeqNum INTEGER NOT NULL , scheduleLocalChangeSeqNum INTEGER NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime INTEGER NOT NULL , scheduleActive INTEGER NOT NULL , scheduleUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_3); // Inline function 'kotlin.collections.plusAssign' call var element_4 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive INTEGER NOT NULL , umCalendarMasterChangeSeqNum INTEGER NOT NULL , umCalendarLocalChangeSeqNum INTEGER NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct INTEGER NOT NULL , umCalendarUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_4); // Inline function 'kotlin.collections.plusAssign' call var element_5 = 'CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn INTEGER NOT NULL , holLocalCsn INTEGER NOT NULL , holLastModBy INTEGER NOT NULL , holLct INTEGER NOT NULL , holActive INTEGER NOT NULL , holHolidayCalendarUid INTEGER NOT NULL , holStartTime INTEGER NOT NULL , holEndTime INTEGER NOT NULL , holName TEXT , holUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_5); // Inline function 'kotlin.collections.plusAssign' call var element_6 = 'CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active INTEGER NOT NULL , dateOfBirth INTEGER NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid INTEGER NOT NULL , personLct INTEGER NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personMasterChangeSeqNum INTEGER NOT NULL , personLocalChangeSeqNum INTEGER NOT NULL , personLastChangedBy INTEGER NOT NULL , admin INTEGER NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , personUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_6); // Inline function 'kotlin.collections.plusAssign' call var element_7 = 'CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage REAl NOT NULL , clazzHolidayUMCalendarUid INTEGER NOT NULL , clazzScheuleUMCalendarUid INTEGER NOT NULL , isClazzActive INTEGER NOT NULL , clazzLocationUid INTEGER NOT NULL , clazzStartTime INTEGER NOT NULL , clazzEndTime INTEGER NOT NULL , clazzFeatures INTEGER NOT NULL , clazzSchoolUid INTEGER NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid INTEGER NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum INTEGER NOT NULL , clazzLocalChangeSeqNum INTEGER NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct INTEGER NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid INTEGER NOT NULL , clazzTeachersPersonGroupUid INTEGER NOT NULL , clazzPendingStudentsPersonGroupUid INTEGER NOT NULL , clazzParentsPersonGroupUid INTEGER NOT NULL , clazzCode TEXT , clazzOwnerPersonUid INTEGER NOT NULL DEFAULT 0 , clazzUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_7); // Inline function 'kotlin.collections.plusAssign' call var element_8 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid INTEGER NOT NULL , clazzEnrolmentClazzUid INTEGER NOT NULL , clazzEnrolmentDateJoined INTEGER NOT NULL , clazzEnrolmentDateLeft INTEGER NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage REAl NOT NULL , clazzEnrolmentActive INTEGER NOT NULL , clazzEnrolmentLeavingReasonUid INTEGER NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum INTEGER NOT NULL , clazzEnrolmentMasterChangeSeqNum INTEGER NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct INTEGER NOT NULL , clazzEnrolmentUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_8); // Inline function 'kotlin.collections.plusAssign' call var element_9 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)'; _stmtList.add_utx5q5_k$(element_9); // Inline function 'kotlin.collections.plusAssign' call var element_10 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)'; _stmtList.add_utx5q5_k$(element_10); // Inline function 'kotlin.collections.plusAssign' call var element_11 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)'; _stmtList.add_utx5q5_k$(element_11); // Inline function 'kotlin.collections.plusAssign' call var element_12 = 'CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN INTEGER NOT NULL , leavingReasonCSN INTEGER NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct INTEGER NOT NULL , leavingReasonUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_12); // Inline function 'kotlin.collections.plusAssign' call var element_13 = 'CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified INTEGER NOT NULL , primaryLanguageUid INTEGER NOT NULL , languageVariantUid INTEGER NOT NULL , contentFlags INTEGER NOT NULL , leaf INTEGER NOT NULL , publik INTEGER NOT NULL , ceInactive INTEGER NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner INTEGER NOT NULL , contentOwnerType INTEGER NOT NULL DEFAULT 1 , contentEntryLocalChangeSeqNum INTEGER NOT NULL , contentEntryMasterChangeSeqNum INTEGER NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct INTEGER NOT NULL , contentEntryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_13); // Inline function 'kotlin.collections.plusAssign' call var element_14 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid INTEGER NOT NULL , ceccjContentCategoryUid INTEGER NOT NULL , ceccjLocalChangeSeqNum INTEGER NOT NULL , ceccjMasterChangeSeqNum INTEGER NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct INTEGER NOT NULL , ceccjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_14); // Inline function 'kotlin.collections.plusAssign' call var element_15 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum INTEGER NOT NULL , cepcjMasterChangeSeqNum INTEGER NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct INTEGER NOT NULL , cepcjDeleted INTEGER NOT NULL DEFAULT 0 , cepcjParentContentEntryUid INTEGER NOT NULL , cepcjChildContentEntryUid INTEGER NOT NULL , childIndex INTEGER NOT NULL , cepcjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_15); // Inline function 'kotlin.collections.plusAssign' call var element_16 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)'; _stmtList.add_utx5q5_k$(element_16); // Inline function 'kotlin.collections.plusAssign' call var element_17 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid INTEGER NOT NULL , cerejRelatedEntryUid INTEGER NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid INTEGER NOT NULL , cerejLocalChangeSeqNum INTEGER NOT NULL , cerejMasterChangeSeqNum INTEGER NOT NULL , cerejLct INTEGER NOT NULL , cerejUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_17); // Inline function 'kotlin.collections.plusAssign' call var element_18 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum INTEGER NOT NULL , contentCategorySchemaMasterChangeSeqNum INTEGER NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct INTEGER NOT NULL , contentCategorySchemaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_18); // Inline function 'kotlin.collections.plusAssign' call var element_19 = 'CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid INTEGER NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum INTEGER NOT NULL , contentCategoryMasterChangeSeqNum INTEGER NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct INTEGER NOT NULL , contentCategoryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_19); // Inline function 'kotlin.collections.plusAssign' call var element_20 = 'CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive INTEGER NOT NULL , langLocalChangeSeqNum INTEGER NOT NULL , langMasterChangeSeqNum INTEGER NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct INTEGER NOT NULL , langUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_20); // Inline function 'kotlin.collections.plusAssign' call var element_21 = 'CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid INTEGER NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum INTEGER NOT NULL , langVariantMasterChangeSeqNum INTEGER NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct INTEGER NOT NULL , langVariantUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_21); // Inline function 'kotlin.collections.plusAssign' call var element_22 = 'CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_22); // Inline function 'kotlin.collections.plusAssign' call var element_23 = 'CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn INTEGER NOT NULL , groupLocalCsn INTEGER NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct INTEGER NOT NULL , groupName TEXT , groupActive INTEGER NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_23); // Inline function 'kotlin.collections.plusAssign' call var element_24 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive INTEGER NOT NULL , groupMemberPersonUid INTEGER NOT NULL , groupMemberGroupUid INTEGER NOT NULL , groupMemberMasterCsn INTEGER NOT NULL , groupMemberLocalCsn INTEGER NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct INTEGER NOT NULL , groupMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_24); // Inline function 'kotlin.collections.plusAssign' call var element_25 = 'CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct INTEGER NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive INTEGER NOT NULL , personPictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_25); // Inline function 'kotlin.collections.plusAssign' call var element_26 = 'CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid INTEGER PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted INTEGER NOT NULL , verbLct INTEGER NOT NULL )'; _stmtList.add_utx5q5_k$(element_26); // Inline function 'kotlin.collections.plusAssign' call var element_27 = 'CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid INTEGER PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct INTEGER NOT NULL )'; _stmtList.add_utx5q5_k$(element_27); // Inline function 'kotlin.collections.plusAssign' call var element_28 = 'CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi INTEGER NOT NULL , statementIdLo INTEGER NOT NULL , statementActorPersonUid INTEGER NOT NULL , statementVerbUid INTEGER NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 INTEGER NOT NULL , statementObjectUid2 INTEGER NOT NULL , statementActorUid INTEGER NOT NULL , authorityActorUid INTEGER NOT NULL , teamUid INTEGER NOT NULL , resultCompletion INTEGER , resultSuccess INTEGER , resultScoreScaled REAl , resultScoreRaw REAl , resultScoreMin REAl , resultScoreMax REAl , resultDuration INTEGER , resultResponse TEXT , timestamp INTEGER NOT NULL , stored INTEGER NOT NULL , contextRegistrationHi INTEGER NOT NULL , contextRegistrationLo INTEGER NOT NULL , contextRegistrationHash INTEGER NOT NULL , contextPlatform TEXT , contextStatementRefIdHi INTEGER NOT NULL , contextStatementRefIdLo INTEGER NOT NULL , contextInstructorActorUid INTEGER NOT NULL , statementLct INTEGER NOT NULL , extensionProgress INTEGER , completionOrProgress INTEGER NOT NULL , statementContentEntryUid INTEGER NOT NULL , statementLearnerGroupUid INTEGER NOT NULL , statementClazzUid INTEGER NOT NULL , statementCbUid INTEGER NOT NULL , statementDoorNode INTEGER NOT NULL , isSubStatement INTEGER NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'; _stmtList.add_utx5q5_k$(element_28); // Inline function 'kotlin.collections.plusAssign' call var element_29 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'; _stmtList.add_utx5q5_k$(element_29); // Inline function 'kotlin.collections.plusAssign' call var element_30 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'; _stmtList.add_utx5q5_k$(element_30); // Inline function 'kotlin.collections.plusAssign' call var element_31 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'; _stmtList.add_utx5q5_k$(element_31); // Inline function 'kotlin.collections.plusAssign' call var element_32 = 'CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid INTEGER NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag INTEGER NOT NULL , actorLct INTEGER NOT NULL , actorObjectType INTEGER NOT NULL , actorUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_32); // Inline function 'kotlin.collections.plusAssign' call var element_33 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'; _stmtList.add_utx5q5_k$(element_33); // Inline function 'kotlin.collections.plusAssign' call var element_34 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'; _stmtList.add_utx5q5_k$(element_34); // Inline function 'kotlin.collections.plusAssign' call var element_35 = 'CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId INTEGER NOT NULL , PRIMARY KEY (nodeClientId) )'; _stmtList.add_utx5q5_k$(element_35); // Inline function 'kotlin.collections.plusAssign' call var element_36 = 'CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid INTEGER NOT NULL , commentsForSubmitterUid INTEGER NOT NULL , commentsFromSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsDeleted INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_36); // Inline function 'kotlin.collections.plusAssign' call var element_37 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'; _stmtList.add_utx5q5_k$(element_37); // Inline function 'kotlin.collections.plusAssign' call var element_38 = 'CREATE TABLE IF NOT EXISTS Report ( reportTitle TEXT , reportOptions TEXT , reportIsTemplate INTEGER NOT NULL , reportLastModTime INTEGER NOT NULL , reportOwnerPersonUid INTEGER NOT NULL DEFAULT 0 , reportUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_38); // Inline function 'kotlin.collections.plusAssign' call var element_39 = 'CREATE TABLE IF NOT EXISTS Site ( sitePcsn INTEGER NOT NULL , siteLcsn INTEGER NOT NULL , siteLcb INTEGER NOT NULL , siteLct INTEGER NOT NULL , siteName TEXT , guestLogin INTEGER NOT NULL , registrationAllowed INTEGER NOT NULL , authSalt TEXT , siteUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_39); // Inline function 'kotlin.collections.plusAssign' call var element_40 = 'CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid INTEGER NOT NULL , sTermsActive INTEGER NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn INTEGER NOT NULL , sTermsLocalCsn INTEGER NOT NULL , sTermsLct INTEGER NOT NULL , sTermsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_40); // Inline function 'kotlin.collections.plusAssign' call var element_41 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn INTEGER NOT NULL , ppjLcsn INTEGER NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct INTEGER NOT NULL , ppjParentPersonUid INTEGER NOT NULL , ppjMinorPersonUid INTEGER NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive INTEGER NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp INTEGER NOT NULL , ppjApprovalIpAddr TEXT , ppjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_41); // Inline function 'kotlin.collections.plusAssign' call var element_42 = 'CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn INTEGER NOT NULL , sgLcsn INTEGER NOT NULL , sgLcb INTEGER NOT NULL , sgLct INTEGER NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid INTEGER NOT NULL , sgPermissions INTEGER NOT NULL , sgGroupUid INTEGER NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_42); // Inline function 'kotlin.collections.plusAssign' call var element_43 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)'; _stmtList.add_utx5q5_k$(element_43); // Inline function 'kotlin.collections.plusAssign' call var element_44 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)'; _stmtList.add_utx5q5_k$(element_44); // Inline function 'kotlin.collections.plusAssign' call var element_45 = 'CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn INTEGER NOT NULL , errLcsn INTEGER NOT NULL , errLcb INTEGER NOT NULL , errLct INTEGER NOT NULL , severity INTEGER NOT NULL , timestamp INTEGER NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_45); // Inline function 'kotlin.collections.plusAssign' call var element_46 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid INTEGER NOT NULL DEFAULT 0 , caActive INTEGER NOT NULL , caClassCommentEnabled INTEGER NOT NULL , caPrivateCommentsEnabled INTEGER NOT NULL DEFAULT 1 , caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission INTEGER NOT NULL DEFAULT 1 , caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission INTEGER NOT NULL DEFAULT 1 , caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid INTEGER NOT NULL DEFAULT 0 , caClazzUid INTEGER NOT NULL , caPeerReviewerCount INTEGER NOT NULL DEFAULT 0 , caLocalChangeSeqNum INTEGER NOT NULL , caMasterChangeSeqNum INTEGER NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct INTEGER NOT NULL , caUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_46); // Inline function 'kotlin.collections.plusAssign' call var element_47 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid INTEGER NOT NULL , casSubmitterUid INTEGER NOT NULL , casSubmitterPersonUid INTEGER NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp INTEGER NOT NULL , casClazzUid INTEGER NOT NULL DEFAULT 0 , casUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_47); // Inline function 'kotlin.collections.plusAssign' call var element_48 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid INTEGER NOT NULL , casaSubmitterUid INTEGER NOT NULL DEFAULT 0 , casaCaUid INTEGER NOT NULL , casaClazzUid INTEGER NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaDeleted INTEGER NOT NULL DEFAULT 0 , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_48); // Inline function 'kotlin.collections.plusAssign' call var element_49 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid INTEGER NOT NULL , camSubmitterUid INTEGER NOT NULL , camMarkerSubmitterUid INTEGER NOT NULL DEFAULT 0 , camMarkerPersonUid INTEGER NOT NULL DEFAULT 0 , camMarkerComment TEXT , camMark REAl NOT NULL , camMaxMark REAl NOT NULL DEFAULT 1 , camPenalty REAl NOT NULL , camLct INTEGER NOT NULL , camClazzUid INTEGER NOT NULL DEFAULT 0 , camUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_49); // Inline function 'kotlin.collections.plusAssign' call var element_50 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid INTEGER NOT NULL , praToMarkerSubmitterUid INTEGER NOT NULL , praAssignmentUid INTEGER NOT NULL , praActive INTEGER NOT NULL , praLct INTEGER NOT NULL , praUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_50); // Inline function 'kotlin.collections.plusAssign' call var element_51 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid INTEGER PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn INTEGER NOT NULL , pauthPcsn INTEGER NOT NULL , pauthLcb INTEGER NOT NULL , pauthLct INTEGER NOT NULL )'; _stmtList.add_utx5q5_k$(element_51); // Inline function 'kotlin.collections.plusAssign' call var element_52 = 'CREATE TABLE IF NOT EXISTS UserSession ( usPcsn INTEGER NOT NULL , usLcsn INTEGER NOT NULL , usLcb INTEGER NOT NULL , usLct INTEGER NOT NULL , usPersonUid INTEGER NOT NULL , usClientNodeId INTEGER NOT NULL , usStartTime INTEGER NOT NULL , usEndTime INTEGER NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_52); // Inline function 'kotlin.collections.plusAssign' call var element_53 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)'; _stmtList.add_utx5q5_k$(element_53); // Inline function 'kotlin.collections.plusAssign' call var element_54 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)'; _stmtList.add_utx5q5_k$(element_54); // Inline function 'kotlin.collections.plusAssign' call var element_55 = 'CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress INTEGER NOT NULL , cjTotal INTEGER NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed INTEGER NOT NULL , params TEXT , cjLct INTEGER NOT NULL , cjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_55); // Inline function 'kotlin.collections.plusAssign' call var element_56 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed INTEGER NOT NULL , cjiOwnerPersonUid INTEGER NOT NULL , cjiParams TEXT , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_56); // Inline function 'kotlin.collections.plusAssign' call var element_57 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'; _stmtList.add_utx5q5_k$(element_57); // Inline function 'kotlin.collections.plusAssign' call var element_58 = 'CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints REAl , cbMinPoints REAl , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbClazzSourcedId TEXT , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_58); // Inline function 'kotlin.collections.plusAssign' call var element_59 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'; _stmtList.add_utx5q5_k$(element_59); // Inline function 'kotlin.collections.plusAssign' call var element_60 = 'CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct INTEGER NOT NULL , ctUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_60); // Inline function 'kotlin.collections.plusAssign' call var element_61 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive INTEGER NOT NULL , cgsClazzUid INTEGER NOT NULL , cgsLct INTEGER NOT NULL , cgsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_61); // Inline function 'kotlin.collections.plusAssign' call var element_62 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid INTEGER NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid INTEGER NOT NULL , cgmLct INTEGER NOT NULL , cgmUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_62); // Inline function 'kotlin.collections.plusAssign' call var element_63 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid INTEGER NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp INTEGER NOT NULL , cepMimeType TEXT , cepActive INTEGER NOT NULL , cepUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_63); // Inline function 'kotlin.collections.plusAssign' call var element_64 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid INTEGER NOT NULL , aieHash INTEGER NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod INTEGER NOT NULL , aieIsDeleted INTEGER NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'; _stmtList.add_utx5q5_k$(element_64); // Inline function 'kotlin.collections.plusAssign' call var element_65 = 'CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_65); // Inline function 'kotlin.collections.plusAssign' call var element_66 = 'CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid INTEGER NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostCourseBlockUid INTEGER NOT NULL , dpDeleted INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostVisible INTEGER NOT NULL , discussionPostArchive INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_66); // Inline function 'kotlin.collections.plusAssign' call var element_67 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid INTEGER NOT NULL , eapPackageId TEXT , eapStartTime INTEGER NOT NULL , eapExpireTime INTEGER NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_67); // Inline function 'kotlin.collections.plusAssign' call var element_68 = 'CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageToPersonUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_68); // Inline function 'kotlin.collections.plusAssign' call var element_69 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'; _stmtList.add_utx5q5_k$(element_69); // Inline function 'kotlin.collections.plusAssign' call var element_70 = 'CREATE TABLE IF NOT EXISTS StudentResult ( srUid INTEGER PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srDeleted INTEGER NOT NULL )'; _stmtList.add_utx5q5_k$(element_70); // Inline function 'kotlin.collections.plusAssign' call var element_71 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevStorageSize INTEGER NOT NULL DEFAULT 0 , cevOriginalSize INTEGER NOT NULL DEFAULT 0 , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_71); // Inline function 'kotlin.collections.plusAssign' call var element_72 = 'CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjTableId INTEGER NOT NULL DEFAULT 0 , tjEntityUid INTEGER NOT NULL DEFAULT 0 , tjTimeCreated INTEGER NOT NULL DEFAULT 0 , tjCreationType INTEGER NOT NULL DEFAULT 0 , tjOiUid INTEGER NOT NULL DEFAULT 0 , tjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_72); // Inline function 'kotlin.collections.plusAssign' call var element_73 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'; _stmtList.add_utx5q5_k$(element_73); // Inline function 'kotlin.collections.plusAssign' call var element_74 = 'CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize INTEGER NOT NULL , tjTransferred INTEGER NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid INTEGER NOT NULL , tjiEntityEtag INTEGER NOT NULL DEFAULT 0 , tjiLockIdToRelease INTEGER NOT NULL DEFAULT 0 , tjiPartialTmpFile TEXT , tjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_74); // Inline function 'kotlin.collections.plusAssign' call var element_75 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'; _stmtList.add_utx5q5_k$(element_75); // Inline function 'kotlin.collections.plusAssign' call var element_76 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'; _stmtList.add_utx5q5_k$(element_76); // Inline function 'kotlin.collections.plusAssign' call var element_77 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid INTEGER NOT NULL , cljUrl TEXT , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljOiUid INTEGER NOT NULL DEFAULT 0 , cljId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_77); // Inline function 'kotlin.collections.plusAssign' call var element_78 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'; _stmtList.add_utx5q5_k$(element_78); // Inline function 'kotlin.collections.plusAssign' call var element_79 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'; _stmtList.add_utx5q5_k$(element_79); // Inline function 'kotlin.collections.plusAssign' call var element_80 = 'CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId INTEGER NOT NULL , oiClazzUid INTEGER NOT NULL , oiCourseBlockUid INTEGER NOT NULL , oiContentEntryUid INTEGER NOT NULL , oiActive INTEGER NOT NULL , oiLct INTEGER NOT NULL , oiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_80); // Inline function 'kotlin.collections.plusAssign' call var element_81 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'; _stmtList.add_utx5q5_k$(element_81); // Inline function 'kotlin.collections.plusAssign' call var element_82 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid INTEGER NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid INTEGER NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_82); // Inline function 'kotlin.collections.plusAssign' call var element_83 = 'CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime INTEGER NOT NULL , delItemTimeDeleted INTEGER NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid INTEGER NOT NULL , delItemDeletedByPersonUid INTEGER NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder INTEGER NOT NULL DEFAULT 0 , delItemUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_83); // Inline function 'kotlin.collections.plusAssign' call var element_84 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'; _stmtList.add_utx5q5_k$(element_84); // Inline function 'kotlin.collections.plusAssign' call var element_85 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid INTEGER NOT NULL , erClazzName TEXT , erPersonUid INTEGER NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime INTEGER NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid INTEGER NOT NULL , erDeleted INTEGER NOT NULL , erStatusSetAuth TEXT , erLastModified INTEGER NOT NULL , erUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_85); // Inline function 'kotlin.collections.plusAssign' call var element_86 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'; _stmtList.add_utx5q5_k$(element_86); // Inline function 'kotlin.collections.plusAssign' call var element_87 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'; _stmtList.add_utx5q5_k$(element_87); // Inline function 'kotlin.collections.plusAssign' call var element_88 = 'CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified INTEGER NOT NULL , cpClazzUid INTEGER NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid INTEGER NOT NULL , cpToGroupUid INTEGER NOT NULL , cpPermissionsFlag INTEGER NOT NULL , cpIsDeleted INTEGER NOT NULL , cpUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_88); // Inline function 'kotlin.collections.plusAssign' call var element_89 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'; _stmtList.add_utx5q5_k$(element_89); // Inline function 'kotlin.collections.plusAssign' call var element_90 = 'CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid INTEGER NOT NULL , spToGroupUid INTEGER NOT NULL , spPermissionsFlag INTEGER NOT NULL , spLastModified INTEGER NOT NULL , spIsDeleted INTEGER NOT NULL , spUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_90); // Inline function 'kotlin.collections.plusAssign' call var element_91 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'; _stmtList.add_utx5q5_k$(element_91); // Inline function 'kotlin.collections.plusAssign' call var element_92 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid INTEGER PRIMARY KEY NOT NULL , cbpLct INTEGER NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'; _stmtList.add_utx5q5_k$(element_92); // Inline function 'kotlin.collections.plusAssign' call var element_93 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid INTEGER PRIMARY KEY NOT NULL , cepLct INTEGER NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'; _stmtList.add_utx5q5_k$(element_93); // Inline function 'kotlin.collections.plusAssign' call var element_94 = 'CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime INTEGER NOT NULL , tjeErrorStr TEXT , tjeDismissed INTEGER NOT NULL , tjeId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_94); // Inline function 'kotlin.collections.plusAssign' call var element_95 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'; _stmtList.add_utx5q5_k$(element_95); // Inline function 'kotlin.collections.plusAssign' call var element_96 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid INTEGER NOT NULL , vlmeLangHash INTEGER NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified INTEGER NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'; _stmtList.add_utx5q5_k$(element_96); // Inline function 'kotlin.collections.plusAssign' call var element_97 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid INTEGER NOT NULL , gmajMemberActorUid INTEGER NOT NULL , gmajLastMod INTEGER NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'; _stmtList.add_utx5q5_k$(element_97); // Inline function 'kotlin.collections.plusAssign' call var element_98 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'; _stmtList.add_utx5q5_k$(element_98); // Inline function 'kotlin.collections.plusAssign' call var element_99 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'; _stmtList.add_utx5q5_k$(element_99); // Inline function 'kotlin.collections.plusAssign' call var element_100 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid INTEGER NOT NULL , almeHash INTEGER NOT NULL , almeLangCode TEXT , almePropName TEXT , almeValue TEXT , almeAieHash INTEGER NOT NULL , almeLastMod INTEGER NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'; _stmtList.add_utx5q5_k$(element_100); // Inline function 'kotlin.collections.plusAssign' call var element_101 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid INTEGER NOT NULL , aeeKeyHash INTEGER NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod INTEGER NOT NULL , aeeIsDeleted INTEGER NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'; _stmtList.add_utx5q5_k$(element_101); // Inline function 'kotlin.collections.plusAssign' call var element_102 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi INTEGER NOT NULL , scajFromStatementIdLo INTEGER NOT NULL , scajToHash INTEGER NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid INTEGER NOT NULL , scajToActivityId TEXT , scajEtag INTEGER NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'; _stmtList.add_utx5q5_k$(element_102); // Inline function 'kotlin.collections.plusAssign' call var element_103 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseActorUid INTEGER NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseContentEntryVersionUid INTEGER NOT NULL DEFAULT 0 , xseRootActivityId TEXT NOT NULL , xseRootActivityUid INTEGER NOT NULL , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , knownActorUidToPersonUids TEXT NOT NULL , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_103); // Inline function 'kotlin.collections.plusAssign' call var element_104 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi INTEGER NOT NULL , stmtJsonIdLo INTEGER NOT NULL , stmtEtag INTEGER NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'; _stmtList.add_utx5q5_k$(element_104); // Inline function 'kotlin.collections.plusAssign' call var element_105 = 'CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT NOT NULL , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , seH5PPreloaded INTEGER NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'; _stmtList.add_utx5q5_k$(element_105); // Inline function 'kotlin.collections.plusAssign' call var element_106 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid INTEGER NOT NULL , sdcHash INTEGER NOT NULL , sdcActivityUid INTEGER NOT NULL , sdcStateId TEXT , sdcLastMod INTEGER NOT NULL , sdcRegistrationHi INTEGER , sdcRegistrationLo INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )'; _stmtList.add_utx5q5_k$(element_106); // Inline function 'kotlin.collections.plusAssign' call var element_107 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL DEFAULT 0 , orPk3 INTEGER NOT NULL DEFAULT 0 , orPk4 INTEGER NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_107); // Inline function 'kotlin.collections.plusAssign' call var element_108 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId INTEGER NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'; _stmtList.add_utx5q5_k$(element_108); // Inline function 'kotlin.collections.plusAssign' call var element_109 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId INTEGER NOT NULL , rsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_109); // Inline function 'kotlin.collections.plusAssign' call var element_110 = 'CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId INTEGER NOT NULL , rel INTEGER NOT NULL DEFAULT 2 , PRIMARY KEY (nodeId) )'; _stmtList.add_utx5q5_k$(element_110); // Inline function 'kotlin.collections.plusAssign' call var element_111 = 'CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid INTEGER NOT NULL , rqrLastModified INTEGER NOT NULL , rqrLastValidated INTEGER NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis REAl NOT NULL , rqrSubgroup TEXT NOT NULL , rqrTimeZone TEXT NOT NULL , rqrUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; _stmtList.add_utx5q5_k$(element_111); // Inline function 'kotlin.collections.plusAssign' call var element_112 = 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)'; _stmtList.add_utx5q5_k$(element_112); } else if (tmp0_subject === 2) { // Inline function 'kotlin.collections.plusAssign' call var element_113 = 'CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))'; _stmtList.add_utx5q5_k$(element_113); // Inline function 'kotlin.collections.plusAssign' call var element_114 = "INSERT INTO _doorwayinfo VALUES (207, '')"; _stmtList.add_utx5q5_k$(element_114); // Inline function 'kotlin.collections.plusAssign' call var element_115 = 'CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid BIGINT NOT NULL , logDate BIGINT NOT NULL , timeRecorded BIGINT NOT NULL , clazzLogDone BOOL NOT NULL , cancellationNote TEXT , clazzLogCancelled BOOL NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid BIGINT NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN BIGINT NOT NULL , clazzLogLCSN BIGINT NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime BIGINT NOT NULL , clazzLogUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_115); // Inline function 'kotlin.collections.plusAssign' call var element_116 = 'CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid BIGINT NOT NULL , clazzLogAttendanceRecordPersonUid BIGINT NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime BIGINT NOT NULL , clazzLogAttendanceRecordUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_116); // Inline function 'kotlin.collections.plusAssign' call var element_117 = 'CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime BIGINT NOT NULL , scheduleEndTime BIGINT NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid BIGINT NOT NULL , scheduleClazzUid BIGINT NOT NULL , scheduleMasterChangeSeqNum BIGINT NOT NULL , scheduleLocalChangeSeqNum BIGINT NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime BIGINT NOT NULL , scheduleActive BOOL NOT NULL , scheduleUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_117); // Inline function 'kotlin.collections.plusAssign' call var element_118 = 'CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive BOOL NOT NULL , umCalendarMasterChangeSeqNum BIGINT NOT NULL , umCalendarLocalChangeSeqNum BIGINT NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct BIGINT NOT NULL , umCalendarUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_118); // Inline function 'kotlin.collections.plusAssign' call var element_119 = 'CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn BIGINT NOT NULL , holLocalCsn BIGINT NOT NULL , holLastModBy INTEGER NOT NULL , holLct BIGINT NOT NULL , holActive BOOL NOT NULL , holHolidayCalendarUid BIGINT NOT NULL , holStartTime BIGINT NOT NULL , holEndTime BIGINT NOT NULL , holName TEXT , holUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_119); // Inline function 'kotlin.collections.plusAssign' call var element_120 = 'CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active BOOL NOT NULL , dateOfBirth BIGINT NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid BIGINT NOT NULL , personLct BIGINT NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personMasterChangeSeqNum BIGINT NOT NULL , personLocalChangeSeqNum BIGINT NOT NULL , personLastChangedBy INTEGER NOT NULL , admin BOOL NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , personUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_120); // Inline function 'kotlin.collections.plusAssign' call var element_121 = 'CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage FLOAT NOT NULL , clazzHolidayUMCalendarUid BIGINT NOT NULL , clazzScheuleUMCalendarUid BIGINT NOT NULL , isClazzActive BOOL NOT NULL , clazzLocationUid BIGINT NOT NULL , clazzStartTime BIGINT NOT NULL , clazzEndTime BIGINT NOT NULL , clazzFeatures BIGINT NOT NULL , clazzSchoolUid BIGINT NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid BIGINT NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum BIGINT NOT NULL , clazzLocalChangeSeqNum BIGINT NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct BIGINT NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid BIGINT NOT NULL , clazzTeachersPersonGroupUid BIGINT NOT NULL , clazzPendingStudentsPersonGroupUid BIGINT NOT NULL , clazzParentsPersonGroupUid BIGINT NOT NULL , clazzCode TEXT , clazzOwnerPersonUid BIGINT NOT NULL DEFAULT 0 , clazzUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_121); // Inline function 'kotlin.collections.plusAssign' call var element_122 = 'CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid BIGINT NOT NULL , clazzEnrolmentClazzUid BIGINT NOT NULL , clazzEnrolmentDateJoined BIGINT NOT NULL , clazzEnrolmentDateLeft BIGINT NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage FLOAT NOT NULL , clazzEnrolmentActive BOOL NOT NULL , clazzEnrolmentLeavingReasonUid BIGINT NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum BIGINT NOT NULL , clazzEnrolmentMasterChangeSeqNum BIGINT NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct BIGINT NOT NULL , clazzEnrolmentUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_122); // Inline function 'kotlin.collections.plusAssign' call var element_123 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)'; _stmtList.add_utx5q5_k$(element_123); // Inline function 'kotlin.collections.plusAssign' call var element_124 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)'; _stmtList.add_utx5q5_k$(element_124); // Inline function 'kotlin.collections.plusAssign' call var element_125 = 'CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)'; _stmtList.add_utx5q5_k$(element_125); // Inline function 'kotlin.collections.plusAssign' call var element_126 = 'CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN BIGINT NOT NULL , leavingReasonCSN BIGINT NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct BIGINT NOT NULL , leavingReasonUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_126); // Inline function 'kotlin.collections.plusAssign' call var element_127 = 'CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified BIGINT NOT NULL , primaryLanguageUid BIGINT NOT NULL , languageVariantUid BIGINT NOT NULL , contentFlags INTEGER NOT NULL , leaf BOOL NOT NULL , publik BOOL NOT NULL , ceInactive BOOL NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner BIGINT NOT NULL , contentOwnerType INTEGER NOT NULL DEFAULT 1 , contentEntryLocalChangeSeqNum BIGINT NOT NULL , contentEntryMasterChangeSeqNum BIGINT NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct BIGINT NOT NULL , contentEntryUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_127); // Inline function 'kotlin.collections.plusAssign' call var element_128 = 'CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid BIGINT NOT NULL , ceccjContentCategoryUid BIGINT NOT NULL , ceccjLocalChangeSeqNum BIGINT NOT NULL , ceccjMasterChangeSeqNum BIGINT NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct BIGINT NOT NULL , ceccjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_128); // Inline function 'kotlin.collections.plusAssign' call var element_129 = 'CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum BIGINT NOT NULL , cepcjMasterChangeSeqNum BIGINT NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct BIGINT NOT NULL , cepcjDeleted BOOL NOT NULL DEFAULT false, cepcjParentContentEntryUid BIGINT NOT NULL , cepcjChildContentEntryUid BIGINT NOT NULL , childIndex INTEGER NOT NULL , cepcjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_129); // Inline function 'kotlin.collections.plusAssign' call var element_130 = 'CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)'; _stmtList.add_utx5q5_k$(element_130); // Inline function 'kotlin.collections.plusAssign' call var element_131 = 'CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid BIGINT NOT NULL , cerejRelatedEntryUid BIGINT NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid BIGINT NOT NULL , cerejLocalChangeSeqNum BIGINT NOT NULL , cerejMasterChangeSeqNum BIGINT NOT NULL , cerejLct BIGINT NOT NULL , cerejUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_131); // Inline function 'kotlin.collections.plusAssign' call var element_132 = 'CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum BIGINT NOT NULL , contentCategorySchemaMasterChangeSeqNum BIGINT NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct BIGINT NOT NULL , contentCategorySchemaUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_132); // Inline function 'kotlin.collections.plusAssign' call var element_133 = 'CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid BIGINT NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum BIGINT NOT NULL , contentCategoryMasterChangeSeqNum BIGINT NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct BIGINT NOT NULL , contentCategoryUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_133); // Inline function 'kotlin.collections.plusAssign' call var element_134 = 'CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive BOOL NOT NULL , langLocalChangeSeqNum BIGINT NOT NULL , langMasterChangeSeqNum BIGINT NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct BIGINT NOT NULL , langUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_134); // Inline function 'kotlin.collections.plusAssign' call var element_135 = 'CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid BIGINT NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum BIGINT NOT NULL , langVariantMasterChangeSeqNum BIGINT NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct BIGINT NOT NULL , langVariantUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_135); // Inline function 'kotlin.collections.plusAssign' call var element_136 = 'CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_136); // Inline function 'kotlin.collections.plusAssign' call var element_137 = 'CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn BIGINT NOT NULL , groupLocalCsn BIGINT NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct BIGINT NOT NULL , groupName TEXT , groupActive BOOL NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_137); // Inline function 'kotlin.collections.plusAssign' call var element_138 = 'CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive BOOL NOT NULL , groupMemberPersonUid BIGINT NOT NULL , groupMemberGroupUid BIGINT NOT NULL , groupMemberMasterCsn BIGINT NOT NULL , groupMemberLocalCsn BIGINT NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct BIGINT NOT NULL , groupMemberUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_138); // Inline function 'kotlin.collections.plusAssign' call var element_139 = 'CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct BIGINT NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive BOOL NOT NULL , personPictureUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_139); // Inline function 'kotlin.collections.plusAssign' call var element_140 = 'CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid BIGINT PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted BOOL NOT NULL , verbLct BIGINT NOT NULL )'; _stmtList.add_utx5q5_k$(element_140); // Inline function 'kotlin.collections.plusAssign' call var element_141 = 'CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid BIGINT PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct BIGINT NOT NULL )'; _stmtList.add_utx5q5_k$(element_141); // Inline function 'kotlin.collections.plusAssign' call var element_142 = 'CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi BIGINT NOT NULL , statementIdLo BIGINT NOT NULL , statementActorPersonUid BIGINT NOT NULL , statementVerbUid BIGINT NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 BIGINT NOT NULL , statementObjectUid2 BIGINT NOT NULL , statementActorUid BIGINT NOT NULL , authorityActorUid BIGINT NOT NULL , teamUid BIGINT NOT NULL , resultCompletion BOOL , resultSuccess BOOL , resultScoreScaled FLOAT , resultScoreRaw FLOAT , resultScoreMin FLOAT , resultScoreMax FLOAT , resultDuration BIGINT , resultResponse TEXT , timestamp BIGINT NOT NULL , stored BIGINT NOT NULL , contextRegistrationHi BIGINT NOT NULL , contextRegistrationLo BIGINT NOT NULL , contextRegistrationHash BIGINT NOT NULL , contextPlatform TEXT , contextStatementRefIdHi BIGINT NOT NULL , contextStatementRefIdLo BIGINT NOT NULL , contextInstructorActorUid BIGINT NOT NULL , statementLct BIGINT NOT NULL , extensionProgress INTEGER , completionOrProgress BOOL NOT NULL , statementContentEntryUid BIGINT NOT NULL , statementLearnerGroupUid BIGINT NOT NULL , statementClazzUid BIGINT NOT NULL , statementCbUid BIGINT NOT NULL , statementDoorNode BIGINT NOT NULL , isSubStatement BOOL NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'; _stmtList.add_utx5q5_k$(element_142); // Inline function 'kotlin.collections.plusAssign' call var element_143 = 'CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'; _stmtList.add_utx5q5_k$(element_143); // Inline function 'kotlin.collections.plusAssign' call var element_144 = 'CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'; _stmtList.add_utx5q5_k$(element_144); // Inline function 'kotlin.collections.plusAssign' call var element_145 = 'CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'; _stmtList.add_utx5q5_k$(element_145); // Inline function 'kotlin.collections.plusAssign' call var element_146 = 'CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid BIGINT NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag BIGINT NOT NULL , actorLct BIGINT NOT NULL , actorObjectType INTEGER NOT NULL , actorUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_146); // Inline function 'kotlin.collections.plusAssign' call var element_147 = 'CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'; _stmtList.add_utx5q5_k$(element_147); // Inline function 'kotlin.collections.plusAssign' call var element_148 = 'CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'; _stmtList.add_utx5q5_k$(element_148); // Inline function 'kotlin.collections.plusAssign' call var element_149 = 'CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId BIGINT NOT NULL , PRIMARY KEY (nodeClientId) )'; _stmtList.add_utx5q5_k$(element_149); // Inline function 'kotlin.collections.plusAssign' call var element_150 = 'CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid BIGINT NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid BIGINT NOT NULL , commentsForSubmitterUid BIGINT NOT NULL , commentsFromSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsDeleted BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_150); // Inline function 'kotlin.collections.plusAssign' call var element_151 = 'CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'; _stmtList.add_utx5q5_k$(element_151); // Inline function 'kotlin.collections.plusAssign' call var element_152 = 'CREATE TABLE IF NOT EXISTS Report ( reportTitle TEXT , reportOptions TEXT , reportIsTemplate BOOL NOT NULL , reportLastModTime BIGINT NOT NULL , reportOwnerPersonUid BIGINT NOT NULL DEFAULT 0 , reportUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_152); // Inline function 'kotlin.collections.plusAssign' call var element_153 = 'CREATE TABLE IF NOT EXISTS Site ( sitePcsn BIGINT NOT NULL , siteLcsn BIGINT NOT NULL , siteLcb INTEGER NOT NULL , siteLct BIGINT NOT NULL , siteName TEXT , guestLogin BOOL NOT NULL , registrationAllowed BOOL NOT NULL , authSalt TEXT , siteUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_153); // Inline function 'kotlin.collections.plusAssign' call var element_154 = 'CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid BIGINT NOT NULL , sTermsActive BOOL NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn BIGINT NOT NULL , sTermsLocalCsn BIGINT NOT NULL , sTermsLct BIGINT NOT NULL , sTermsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_154); // Inline function 'kotlin.collections.plusAssign' call var element_155 = 'CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn BIGINT NOT NULL , ppjLcsn BIGINT NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct BIGINT NOT NULL , ppjParentPersonUid BIGINT NOT NULL , ppjMinorPersonUid BIGINT NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive BOOL NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp BIGINT NOT NULL , ppjApprovalIpAddr TEXT , ppjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_155); // Inline function 'kotlin.collections.plusAssign' call var element_156 = 'CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn BIGINT NOT NULL , sgLcsn BIGINT NOT NULL , sgLcb INTEGER NOT NULL , sgLct BIGINT NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid BIGINT NOT NULL , sgPermissions BIGINT NOT NULL , sgGroupUid BIGINT NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_156); // Inline function 'kotlin.collections.plusAssign' call var element_157 = 'CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)'; _stmtList.add_utx5q5_k$(element_157); // Inline function 'kotlin.collections.plusAssign' call var element_158 = 'CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)'; _stmtList.add_utx5q5_k$(element_158); // Inline function 'kotlin.collections.plusAssign' call var element_159 = 'CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn BIGINT NOT NULL , errLcsn BIGINT NOT NULL , errLcb INTEGER NOT NULL , errLct BIGINT NOT NULL , severity INTEGER NOT NULL , timestamp BIGINT NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_159); // Inline function 'kotlin.collections.plusAssign' call var element_160 = 'CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid BIGINT NOT NULL DEFAULT 0 , caActive BOOL NOT NULL , caClassCommentEnabled BOOL NOT NULL , caPrivateCommentsEnabled BOOL NOT NULL DEFAULT true, caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission BOOL NOT NULL DEFAULT true, caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission BOOL NOT NULL DEFAULT true, caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid BIGINT NOT NULL DEFAULT 0 , caClazzUid BIGINT NOT NULL , caPeerReviewerCount INTEGER NOT NULL DEFAULT 0 , caLocalChangeSeqNum BIGINT NOT NULL , caMasterChangeSeqNum BIGINT NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct BIGINT NOT NULL , caUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_160); // Inline function 'kotlin.collections.plusAssign' call var element_161 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid BIGINT NOT NULL , casSubmitterUid BIGINT NOT NULL , casSubmitterPersonUid BIGINT NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp BIGINT NOT NULL , casClazzUid BIGINT NOT NULL DEFAULT 0 , casUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_161); // Inline function 'kotlin.collections.plusAssign' call var element_162 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid BIGINT NOT NULL , casaSubmitterUid BIGINT NOT NULL DEFAULT 0 , casaCaUid BIGINT NOT NULL , casaClazzUid BIGINT NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaDeleted BOOL NOT NULL DEFAULT false, casaUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_162); // Inline function 'kotlin.collections.plusAssign' call var element_163 = 'CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid BIGINT NOT NULL , camSubmitterUid BIGINT NOT NULL , camMarkerSubmitterUid BIGINT NOT NULL DEFAULT 0 , camMarkerPersonUid BIGINT NOT NULL DEFAULT 0 , camMarkerComment TEXT , camMark FLOAT NOT NULL , camMaxMark FLOAT NOT NULL DEFAULT 1 , camPenalty FLOAT NOT NULL , camLct BIGINT NOT NULL , camClazzUid BIGINT NOT NULL DEFAULT 0 , camUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_163); // Inline function 'kotlin.collections.plusAssign' call var element_164 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid BIGINT NOT NULL , praToMarkerSubmitterUid BIGINT NOT NULL , praAssignmentUid BIGINT NOT NULL , praActive BOOL NOT NULL , praLct BIGINT NOT NULL , praUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_164); // Inline function 'kotlin.collections.plusAssign' call var element_165 = 'CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid BIGINT PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn BIGINT NOT NULL , pauthPcsn BIGINT NOT NULL , pauthLcb BIGINT NOT NULL , pauthLct BIGINT NOT NULL )'; _stmtList.add_utx5q5_k$(element_165); // Inline function 'kotlin.collections.plusAssign' call var element_166 = 'CREATE TABLE IF NOT EXISTS UserSession ( usPcsn BIGINT NOT NULL , usLcsn BIGINT NOT NULL , usLcb BIGINT NOT NULL , usLct BIGINT NOT NULL , usPersonUid BIGINT NOT NULL , usClientNodeId BIGINT NOT NULL , usStartTime BIGINT NOT NULL , usEndTime BIGINT NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_166); // Inline function 'kotlin.collections.plusAssign' call var element_167 = 'CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)'; _stmtList.add_utx5q5_k$(element_167); // Inline function 'kotlin.collections.plusAssign' call var element_168 = 'CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)'; _stmtList.add_utx5q5_k$(element_168); // Inline function 'kotlin.collections.plusAssign' call var element_169 = 'CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress BIGINT NOT NULL , cjTotal BIGINT NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed BOOL NOT NULL , params TEXT , cjLct BIGINT NOT NULL , cjUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_169); // Inline function 'kotlin.collections.plusAssign' call var element_170 = 'CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed BOOL NOT NULL , cjiOwnerPersonUid BIGINT NOT NULL , cjiParams TEXT , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_170); // Inline function 'kotlin.collections.plusAssign' call var element_171 = 'CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'; _stmtList.add_utx5q5_k$(element_171); // Inline function 'kotlin.collections.plusAssign' call var element_172 = 'CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid BIGINT NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate BIGINT NOT NULL , cbDeadlineDate BIGINT NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate BIGINT NOT NULL , cbMaxPoints FLOAT , cbMinPoints FLOAT , cbIndex INTEGER NOT NULL , cbClazzUid BIGINT NOT NULL , cbClazzSourcedId TEXT , cbActive BOOL NOT NULL , cbHidden BOOL NOT NULL , cbEntityUid BIGINT NOT NULL , cbLct BIGINT NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_172); // Inline function 'kotlin.collections.plusAssign' call var element_173 = 'CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'; _stmtList.add_utx5q5_k$(element_173); // Inline function 'kotlin.collections.plusAssign' call var element_174 = 'CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct BIGINT NOT NULL , ctUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_174); // Inline function 'kotlin.collections.plusAssign' call var element_175 = 'CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive BOOL NOT NULL , cgsClazzUid BIGINT NOT NULL , cgsLct BIGINT NOT NULL , cgsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_175); // Inline function 'kotlin.collections.plusAssign' call var element_176 = 'CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid BIGINT NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid BIGINT NOT NULL , cgmLct BIGINT NOT NULL , cgmUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_176); // Inline function 'kotlin.collections.plusAssign' call var element_177 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid BIGINT NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp BIGINT NOT NULL , cepMimeType TEXT , cepActive BOOL NOT NULL , cepUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_177); // Inline function 'kotlin.collections.plusAssign' call var element_178 = 'CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid BIGINT NOT NULL , aieHash BIGINT NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod BIGINT NOT NULL , aieIsDeleted BOOL NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'; _stmtList.add_utx5q5_k$(element_178); // Inline function 'kotlin.collections.plusAssign' call var element_179 = 'CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_179); // Inline function 'kotlin.collections.plusAssign' call var element_180 = 'CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid BIGINT NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate BIGINT NOT NULL , discussionPostCourseBlockUid BIGINT NOT NULL , dpDeleted BOOL NOT NULL , discussionPostStartedPersonUid BIGINT NOT NULL , discussionPostClazzUid BIGINT NOT NULL , discussionPostLct BIGINT NOT NULL , discussionPostVisible BOOL NOT NULL , discussionPostArchive BOOL NOT NULL , discussionPostUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_180); // Inline function 'kotlin.collections.plusAssign' call var element_181 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid BIGINT NOT NULL , eapPackageId TEXT , eapStartTime BIGINT NOT NULL , eapExpireTime BIGINT NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_181); // Inline function 'kotlin.collections.plusAssign' call var element_182 = 'CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageToPersonUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_182); // Inline function 'kotlin.collections.plusAssign' call var element_183 = 'CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'; _stmtList.add_utx5q5_k$(element_183); // Inline function 'kotlin.collections.plusAssign' call var element_184 = 'CREATE TABLE IF NOT EXISTS StudentResult ( srUid BIGINT PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srDeleted BOOL NOT NULL )'; _stmtList.add_utx5q5_k$(element_184); // Inline function 'kotlin.collections.plusAssign' call var element_185 = 'CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid BIGINT NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize BIGINT NOT NULL , cevInActive BOOL NOT NULL , cevLastModified BIGINT NOT NULL , cevLct BIGINT NOT NULL , cevStorageSize BIGINT NOT NULL DEFAULT 0 , cevOriginalSize BIGINT NOT NULL DEFAULT 0 , cevUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_185); // Inline function 'kotlin.collections.plusAssign' call var element_186 = 'CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjTableId INTEGER NOT NULL DEFAULT 0 , tjEntityUid BIGINT NOT NULL DEFAULT 0 , tjTimeCreated BIGINT NOT NULL DEFAULT 0 , tjCreationType INTEGER NOT NULL DEFAULT 0 , tjOiUid BIGINT NOT NULL DEFAULT 0 , tjUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_186); // Inline function 'kotlin.collections.plusAssign' call var element_187 = 'CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'; _stmtList.add_utx5q5_k$(element_187); // Inline function 'kotlin.collections.plusAssign' call var element_188 = 'CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize BIGINT NOT NULL , tjTransferred BIGINT NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid BIGINT NOT NULL , tjiEntityEtag BIGINT NOT NULL DEFAULT 0 , tjiLockIdToRelease BIGINT NOT NULL DEFAULT 0 , tjiPartialTmpFile TEXT , tjiUid SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_188); // Inline function 'kotlin.collections.plusAssign' call var element_189 = 'CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'; _stmtList.add_utx5q5_k$(element_189); // Inline function 'kotlin.collections.plusAssign' call var element_190 = 'CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'; _stmtList.add_utx5q5_k$(element_190); // Inline function 'kotlin.collections.plusAssign' call var element_191 = 'CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid BIGINT NOT NULL , cljUrl TEXT , cljLockId BIGINT NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljOiUid BIGINT NOT NULL DEFAULT 0 , cljId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_191); // Inline function 'kotlin.collections.plusAssign' call var element_192 = 'CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'; _stmtList.add_utx5q5_k$(element_192); // Inline function 'kotlin.collections.plusAssign' call var element_193 = 'CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'; _stmtList.add_utx5q5_k$(element_193); // Inline function 'kotlin.collections.plusAssign' call var element_194 = 'CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId BIGINT NOT NULL , oiClazzUid BIGINT NOT NULL , oiCourseBlockUid BIGINT NOT NULL , oiContentEntryUid BIGINT NOT NULL , oiActive BOOL NOT NULL , oiLct BIGINT NOT NULL , oiUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_194); // Inline function 'kotlin.collections.plusAssign' call var element_195 = 'CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'; _stmtList.add_utx5q5_k$(element_195); // Inline function 'kotlin.collections.plusAssign' call var element_196 = 'CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid BIGINT NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid BIGINT NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_196); // Inline function 'kotlin.collections.plusAssign' call var element_197 = 'CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime BIGINT NOT NULL , delItemTimeDeleted BIGINT NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid BIGINT NOT NULL , delItemDeletedByPersonUid BIGINT NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder BOOL NOT NULL DEFAULT false, delItemUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_197); // Inline function 'kotlin.collections.plusAssign' call var element_198 = 'CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'; _stmtList.add_utx5q5_k$(element_198); // Inline function 'kotlin.collections.plusAssign' call var element_199 = 'CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid BIGINT NOT NULL , erClazzName TEXT , erPersonUid BIGINT NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime BIGINT NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid BIGINT NOT NULL , erDeleted BOOL NOT NULL , erStatusSetAuth TEXT , erLastModified BIGINT NOT NULL , erUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_199); // Inline function 'kotlin.collections.plusAssign' call var element_200 = 'CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'; _stmtList.add_utx5q5_k$(element_200); // Inline function 'kotlin.collections.plusAssign' call var element_201 = 'CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'; _stmtList.add_utx5q5_k$(element_201); // Inline function 'kotlin.collections.plusAssign' call var element_202 = 'CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified BIGINT NOT NULL , cpClazzUid BIGINT NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid BIGINT NOT NULL , cpToGroupUid BIGINT NOT NULL , cpPermissionsFlag BIGINT NOT NULL , cpIsDeleted BOOL NOT NULL , cpUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_202); // Inline function 'kotlin.collections.plusAssign' call var element_203 = 'CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'; _stmtList.add_utx5q5_k$(element_203); // Inline function 'kotlin.collections.plusAssign' call var element_204 = 'CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid BIGINT NOT NULL , spToGroupUid BIGINT NOT NULL , spPermissionsFlag BIGINT NOT NULL , spLastModified BIGINT NOT NULL , spIsDeleted BOOL NOT NULL , spUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_204); // Inline function 'kotlin.collections.plusAssign' call var element_205 = 'CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'; _stmtList.add_utx5q5_k$(element_205); // Inline function 'kotlin.collections.plusAssign' call var element_206 = 'CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid BIGINT PRIMARY KEY NOT NULL , cbpLct BIGINT NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'; _stmtList.add_utx5q5_k$(element_206); // Inline function 'kotlin.collections.plusAssign' call var element_207 = 'CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid BIGINT PRIMARY KEY NOT NULL , cepLct BIGINT NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'; _stmtList.add_utx5q5_k$(element_207); // Inline function 'kotlin.collections.plusAssign' call var element_208 = 'CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime BIGINT NOT NULL , tjeErrorStr TEXT , tjeDismissed BOOL NOT NULL , tjeId SERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_208); // Inline function 'kotlin.collections.plusAssign' call var element_209 = 'CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'; _stmtList.add_utx5q5_k$(element_209); // Inline function 'kotlin.collections.plusAssign' call var element_210 = 'CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid BIGINT NOT NULL , vlmeLangHash BIGINT NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified BIGINT NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'; _stmtList.add_utx5q5_k$(element_210); // Inline function 'kotlin.collections.plusAssign' call var element_211 = 'CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'; _stmtList.add_utx5q5_k$(element_211); // Inline function 'kotlin.collections.plusAssign' call var element_212 = 'CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'; _stmtList.add_utx5q5_k$(element_212); // Inline function 'kotlin.collections.plusAssign' call var element_213 = 'CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'; _stmtList.add_utx5q5_k$(element_213); // Inline function 'kotlin.collections.plusAssign' call var element_214 = 'CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid BIGINT NOT NULL , almeHash BIGINT NOT NULL , almeLangCode TEXT , almePropName TEXT , almeValue TEXT , almeAieHash BIGINT NOT NULL , almeLastMod BIGINT NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'; _stmtList.add_utx5q5_k$(element_214); // Inline function 'kotlin.collections.plusAssign' call var element_215 = 'CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid BIGINT NOT NULL , aeeKeyHash BIGINT NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod BIGINT NOT NULL , aeeIsDeleted BOOL NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'; _stmtList.add_utx5q5_k$(element_215); // Inline function 'kotlin.collections.plusAssign' call var element_216 = 'CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi BIGINT NOT NULL , scajFromStatementIdLo BIGINT NOT NULL , scajToHash BIGINT NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid BIGINT NOT NULL , scajToActivityId TEXT , scajEtag BIGINT NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'; _stmtList.add_utx5q5_k$(element_216); // Inline function 'kotlin.collections.plusAssign' call var element_217 = 'CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseActorUid BIGINT NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseContentEntryVersionUid BIGINT NOT NULL DEFAULT 0 , xseRootActivityId TEXT NOT NULL , xseRootActivityUid BIGINT NOT NULL , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, knownActorUidToPersonUids TEXT NOT NULL , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_217); // Inline function 'kotlin.collections.plusAssign' call var element_218 = 'CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi BIGINT NOT NULL , stmtJsonIdLo BIGINT NOT NULL , stmtEtag BIGINT NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'; _stmtList.add_utx5q5_k$(element_218); // Inline function 'kotlin.collections.plusAssign' call var element_219 = 'CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT NOT NULL , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , seH5PPreloaded BOOL NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'; _stmtList.add_utx5q5_k$(element_219); // Inline function 'kotlin.collections.plusAssign' call var element_220 = 'CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid BIGINT NOT NULL , sdcHash BIGINT NOT NULL , sdcActivityUid BIGINT NOT NULL , sdcStateId TEXT , sdcLastMod BIGINT NOT NULL , sdcRegistrationHi BIGINT , sdcRegistrationLo BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )'; _stmtList.add_utx5q5_k$(element_220); // Inline function 'kotlin.collections.plusAssign' call var element_221 = 'CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId BIGINT NOT NULL , orPk1 BIGINT NOT NULL , orPk2 BIGINT NOT NULL DEFAULT 0 , orPk3 BIGINT NOT NULL DEFAULT 0 , orPk4 BIGINT NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_221); // Inline function 'kotlin.collections.plusAssign' call var element_222 = 'CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId BIGINT NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'; _stmtList.add_utx5q5_k$(element_222); // Inline function 'kotlin.collections.plusAssign' call var element_223 = 'CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId BIGINT NOT NULL , rsUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_223); // Inline function 'kotlin.collections.plusAssign' call var element_224 = 'CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId BIGINT NOT NULL , rel INTEGER NOT NULL DEFAULT 2 , PRIMARY KEY (nodeId) )'; _stmtList.add_utx5q5_k$(element_224); // Inline function 'kotlin.collections.plusAssign' call var element_225 = 'CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid BIGINT NOT NULL , rqrLastModified BIGINT NOT NULL , rqrLastValidated BIGINT NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis DOUBLE PRECISION NOT NULL , rqrSubgroup TEXT NOT NULL , rqrTimeZone TEXT NOT NULL , rqrUid BIGSERIAL PRIMARY KEY NOT NULL )'; _stmtList.add_utx5q5_k$(element_225); // Inline function 'kotlin.collections.plusAssign' call var element_226 = 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)'; _stmtList.add_utx5q5_k$(element_226); } return _stmtList; }; protoOf(UmAppDatabase_JdbcImpl).makeClearAllTablesSql_cwont_k$ = function () { // Inline function 'kotlin.collections.mutableListOf' call var _stmtList = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.plusAssign' call var element = 'DELETE FROM ClazzLog'; _stmtList.add_utx5q5_k$(element); // Inline function 'kotlin.collections.plusAssign' call var element_0 = 'DELETE FROM ClazzLogAttendanceRecord'; _stmtList.add_utx5q5_k$(element_0); // Inline function 'kotlin.collections.plusAssign' call var element_1 = 'DELETE FROM Schedule'; _stmtList.add_utx5q5_k$(element_1); // Inline function 'kotlin.collections.plusAssign' call var element_2 = 'DELETE FROM HolidayCalendar'; _stmtList.add_utx5q5_k$(element_2); // Inline function 'kotlin.collections.plusAssign' call var element_3 = 'DELETE FROM Holiday'; _stmtList.add_utx5q5_k$(element_3); // Inline function 'kotlin.collections.plusAssign' call var element_4 = 'DELETE FROM Person'; _stmtList.add_utx5q5_k$(element_4); // Inline function 'kotlin.collections.plusAssign' call var element_5 = 'DELETE FROM Clazz'; _stmtList.add_utx5q5_k$(element_5); // Inline function 'kotlin.collections.plusAssign' call var element_6 = 'DELETE FROM ClazzEnrolment'; _stmtList.add_utx5q5_k$(element_6); // Inline function 'kotlin.collections.plusAssign' call var element_7 = 'DELETE FROM LeavingReason'; _stmtList.add_utx5q5_k$(element_7); // Inline function 'kotlin.collections.plusAssign' call var element_8 = 'DELETE FROM ContentEntry'; _stmtList.add_utx5q5_k$(element_8); // Inline function 'kotlin.collections.plusAssign' call var element_9 = 'DELETE FROM ContentEntryContentCategoryJoin'; _stmtList.add_utx5q5_k$(element_9); // Inline function 'kotlin.collections.plusAssign' call var element_10 = 'DELETE FROM ContentEntryParentChildJoin'; _stmtList.add_utx5q5_k$(element_10); // Inline function 'kotlin.collections.plusAssign' call var element_11 = 'DELETE FROM ContentEntryRelatedEntryJoin'; _stmtList.add_utx5q5_k$(element_11); // Inline function 'kotlin.collections.plusAssign' call var element_12 = 'DELETE FROM ContentCategorySchema'; _stmtList.add_utx5q5_k$(element_12); // Inline function 'kotlin.collections.plusAssign' call var element_13 = 'DELETE FROM ContentCategory'; _stmtList.add_utx5q5_k$(element_13); // Inline function 'kotlin.collections.plusAssign' call var element_14 = 'DELETE FROM Language'; _stmtList.add_utx5q5_k$(element_14); // Inline function 'kotlin.collections.plusAssign' call var element_15 = 'DELETE FROM LanguageVariant'; _stmtList.add_utx5q5_k$(element_15); // Inline function 'kotlin.collections.plusAssign' call var element_16 = 'DELETE FROM PersonAuth'; _stmtList.add_utx5q5_k$(element_16); // Inline function 'kotlin.collections.plusAssign' call var element_17 = 'DELETE FROM PersonGroup'; _stmtList.add_utx5q5_k$(element_17); // Inline function 'kotlin.collections.plusAssign' call var element_18 = 'DELETE FROM PersonGroupMember'; _stmtList.add_utx5q5_k$(element_18); // Inline function 'kotlin.collections.plusAssign' call var element_19 = 'DELETE FROM PersonPicture'; _stmtList.add_utx5q5_k$(element_19); // Inline function 'kotlin.collections.plusAssign' call var element_20 = 'DELETE FROM VerbEntity'; _stmtList.add_utx5q5_k$(element_20); // Inline function 'kotlin.collections.plusAssign' call var element_21 = 'DELETE FROM ActivityEntity'; _stmtList.add_utx5q5_k$(element_21); // Inline function 'kotlin.collections.plusAssign' call var element_22 = 'DELETE FROM StatementEntity'; _stmtList.add_utx5q5_k$(element_22); // Inline function 'kotlin.collections.plusAssign' call var element_23 = 'DELETE FROM ActorEntity'; _stmtList.add_utx5q5_k$(element_23); // Inline function 'kotlin.collections.plusAssign' call var element_24 = 'DELETE FROM SyncNode'; _stmtList.add_utx5q5_k$(element_24); // Inline function 'kotlin.collections.plusAssign' call var element_25 = 'DELETE FROM Comments'; _stmtList.add_utx5q5_k$(element_25); // Inline function 'kotlin.collections.plusAssign' call var element_26 = 'DELETE FROM Report'; _stmtList.add_utx5q5_k$(element_26); // Inline function 'kotlin.collections.plusAssign' call var element_27 = 'DELETE FROM Site'; _stmtList.add_utx5q5_k$(element_27); // Inline function 'kotlin.collections.plusAssign' call var element_28 = 'DELETE FROM SiteTerms'; _stmtList.add_utx5q5_k$(element_28); // Inline function 'kotlin.collections.plusAssign' call var element_29 = 'DELETE FROM PersonParentJoin'; _stmtList.add_utx5q5_k$(element_29); // Inline function 'kotlin.collections.plusAssign' call var element_30 = 'DELETE FROM ScopedGrant'; _stmtList.add_utx5q5_k$(element_30); // Inline function 'kotlin.collections.plusAssign' call var element_31 = 'DELETE FROM ErrorReport'; _stmtList.add_utx5q5_k$(element_31); // Inline function 'kotlin.collections.plusAssign' call var element_32 = 'DELETE FROM ClazzAssignment'; _stmtList.add_utx5q5_k$(element_32); // Inline function 'kotlin.collections.plusAssign' call var element_33 = 'DELETE FROM CourseAssignmentSubmission'; _stmtList.add_utx5q5_k$(element_33); // Inline function 'kotlin.collections.plusAssign' call var element_34 = 'DELETE FROM CourseAssignmentSubmissionFile'; _stmtList.add_utx5q5_k$(element_34); // Inline function 'kotlin.collections.plusAssign' call var element_35 = 'DELETE FROM CourseAssignmentMark'; _stmtList.add_utx5q5_k$(element_35); // Inline function 'kotlin.collections.plusAssign' call var element_36 = 'DELETE FROM PeerReviewerAllocation'; _stmtList.add_utx5q5_k$(element_36); // Inline function 'kotlin.collections.plusAssign' call var element_37 = 'DELETE FROM PersonAuth2'; _stmtList.add_utx5q5_k$(element_37); // Inline function 'kotlin.collections.plusAssign' call var element_38 = 'DELETE FROM UserSession'; _stmtList.add_utx5q5_k$(element_38); // Inline function 'kotlin.collections.plusAssign' call var element_39 = 'DELETE FROM ContentJob'; _stmtList.add_utx5q5_k$(element_39); // Inline function 'kotlin.collections.plusAssign' call var element_40 = 'DELETE FROM ContentEntryImportJob'; _stmtList.add_utx5q5_k$(element_40); // Inline function 'kotlin.collections.plusAssign' call var element_41 = 'DELETE FROM CourseBlock'; _stmtList.add_utx5q5_k$(element_41); // Inline function 'kotlin.collections.plusAssign' call var element_42 = 'DELETE FROM CourseTerminology'; _stmtList.add_utx5q5_k$(element_42); // Inline function 'kotlin.collections.plusAssign' call var element_43 = 'DELETE FROM CourseGroupSet'; _stmtList.add_utx5q5_k$(element_43); // Inline function 'kotlin.collections.plusAssign' call var element_44 = 'DELETE FROM CourseGroupMember'; _stmtList.add_utx5q5_k$(element_44); // Inline function 'kotlin.collections.plusAssign' call var element_45 = 'DELETE FROM ContentEntryPicture'; _stmtList.add_utx5q5_k$(element_45); // Inline function 'kotlin.collections.plusAssign' call var element_46 = 'DELETE FROM ActivityInteractionEntity'; _stmtList.add_utx5q5_k$(element_46); // Inline function 'kotlin.collections.plusAssign' call var element_47 = 'DELETE FROM CoursePicture'; _stmtList.add_utx5q5_k$(element_47); // Inline function 'kotlin.collections.plusAssign' call var element_48 = 'DELETE FROM DiscussionPost'; _stmtList.add_utx5q5_k$(element_48); // Inline function 'kotlin.collections.plusAssign' call var element_49 = 'DELETE FROM ExternalAppPermission'; _stmtList.add_utx5q5_k$(element_49); // Inline function 'kotlin.collections.plusAssign' call var element_50 = 'DELETE FROM Message'; _stmtList.add_utx5q5_k$(element_50); // Inline function 'kotlin.collections.plusAssign' call var element_51 = 'DELETE FROM StudentResult'; _stmtList.add_utx5q5_k$(element_51); // Inline function 'kotlin.collections.plusAssign' call var element_52 = 'DELETE FROM ContentEntryVersion'; _stmtList.add_utx5q5_k$(element_52); // Inline function 'kotlin.collections.plusAssign' call var element_53 = 'DELETE FROM TransferJob'; _stmtList.add_utx5q5_k$(element_53); // Inline function 'kotlin.collections.plusAssign' call var element_54 = 'DELETE FROM TransferJobItem'; _stmtList.add_utx5q5_k$(element_54); // Inline function 'kotlin.collections.plusAssign' call var element_55 = 'DELETE FROM CacheLockJoin'; _stmtList.add_utx5q5_k$(element_55); // Inline function 'kotlin.collections.plusAssign' call var element_56 = 'DELETE FROM OfflineItem'; _stmtList.add_utx5q5_k$(element_56); // Inline function 'kotlin.collections.plusAssign' call var element_57 = 'DELETE FROM OfflineItemPendingTransferJob'; _stmtList.add_utx5q5_k$(element_57); // Inline function 'kotlin.collections.plusAssign' call var element_58 = 'DELETE FROM DeletedItem'; _stmtList.add_utx5q5_k$(element_58); // Inline function 'kotlin.collections.plusAssign' call var element_59 = 'DELETE FROM EnrolmentRequest'; _stmtList.add_utx5q5_k$(element_59); // Inline function 'kotlin.collections.plusAssign' call var element_60 = 'DELETE FROM CoursePermission'; _stmtList.add_utx5q5_k$(element_60); // Inline function 'kotlin.collections.plusAssign' call var element_61 = 'DELETE FROM SystemPermission'; _stmtList.add_utx5q5_k$(element_61); // Inline function 'kotlin.collections.plusAssign' call var element_62 = 'DELETE FROM CourseBlockPicture'; _stmtList.add_utx5q5_k$(element_62); // Inline function 'kotlin.collections.plusAssign' call var element_63 = 'DELETE FROM ContentEntryPicture2'; _stmtList.add_utx5q5_k$(element_63); // Inline function 'kotlin.collections.plusAssign' call var element_64 = 'DELETE FROM TransferJobError'; _stmtList.add_utx5q5_k$(element_64); // Inline function 'kotlin.collections.plusAssign' call var element_65 = 'DELETE FROM VerbLangMapEntry'; _stmtList.add_utx5q5_k$(element_65); // Inline function 'kotlin.collections.plusAssign' call var element_66 = 'DELETE FROM GroupMemberActorJoin'; _stmtList.add_utx5q5_k$(element_66); // Inline function 'kotlin.collections.plusAssign' call var element_67 = 'DELETE FROM ActivityLangMapEntry'; _stmtList.add_utx5q5_k$(element_67); // Inline function 'kotlin.collections.plusAssign' call var element_68 = 'DELETE FROM ActivityExtensionEntity'; _stmtList.add_utx5q5_k$(element_68); // Inline function 'kotlin.collections.plusAssign' call var element_69 = 'DELETE FROM StatementContextActivityJoin'; _stmtList.add_utx5q5_k$(element_69); // Inline function 'kotlin.collections.plusAssign' call var element_70 = 'DELETE FROM XapiSessionEntity'; _stmtList.add_utx5q5_k$(element_70); // Inline function 'kotlin.collections.plusAssign' call var element_71 = 'DELETE FROM StatementEntityJson'; _stmtList.add_utx5q5_k$(element_71); // Inline function 'kotlin.collections.plusAssign' call var element_72 = 'DELETE FROM StateEntity'; _stmtList.add_utx5q5_k$(element_72); // Inline function 'kotlin.collections.plusAssign' call var element_73 = 'DELETE FROM StateDeleteCommand'; _stmtList.add_utx5q5_k$(element_73); // Inline function 'kotlin.collections.plusAssign' call var element_74 = 'DELETE FROM OutgoingReplication'; _stmtList.add_utx5q5_k$(element_74); // Inline function 'kotlin.collections.plusAssign' call var element_75 = 'DELETE FROM ReplicationOperation'; _stmtList.add_utx5q5_k$(element_75); // Inline function 'kotlin.collections.plusAssign' call var element_76 = 'DELETE FROM PendingRepositorySession'; _stmtList.add_utx5q5_k$(element_76); // Inline function 'kotlin.collections.plusAssign' call var element_77 = 'DELETE FROM DoorNode'; _stmtList.add_utx5q5_k$(element_77); // Inline function 'kotlin.collections.plusAssign' call var element_78 = 'DELETE FROM ReportQueryResult'; _stmtList.add_utx5q5_k$(element_78); return _stmtList; }; protoOf(UmAppDatabase_JdbcImpl).clearAllTables_arwceh_k$ = function () { throw IllegalStateException_init_$Create$('clearAllTables synchronous not supported on Javascript'); }; protoOf(UmAppDatabase_JdbcImpl).clearAllTablesAsync_ql6wfg_k$ = function ($completion) { // Inline function 'kotlin.collections.toTypedArray' call var this_0 = this.makeClearAllTablesSql_cwont_k$(); var tmp$ret$0 = copyToArray(this_0); return this.execSQLBatchAsyncJs_63mnbz_k$(tmp$ret$0.slice(), $completion); }; protoOf(UmAppDatabase_JdbcImpl).personDao_e3y77h_k$ = function () { return this.get__PersonDao_2gcixz_k$(); }; protoOf(UmAppDatabase_JdbcImpl).clazzDao_bk7qje_k$ = function () { return this.get__ClazzDao_mn47hs_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseBlockDao_msn3sw_k$ = function () { return this.get__CourseBlockDao_owibti_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseTerminologyDao_p353oa_k$ = function () { return this.get__CourseTerminologyDao_fubtf4_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseGroupSetDao_romfis_k$ = function () { return this.get__CourseGroupSetDao_qj0q2q_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseGroupMemberDao_da0s0k_k$ = function () { return this.get__CourseGroupMemberDao_417hre_k$(); }; protoOf(UmAppDatabase_JdbcImpl).clazzEnrolmentDao_8oyet6_k$ = function () { return this.get__ClazzEnrolmentDao_84ihkg_k$(); }; protoOf(UmAppDatabase_JdbcImpl).leavingReasonDao_9i0tra_k$ = function () { return this.get__LeavingReasonDao_dydsts_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryDao_5ggc49_k$ = function () { return this.get__ContentEntryDao_7j8d31_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryContentCategoryJoinDao_ehgkae_k$ = function () { return this.get__ContentEntryContentCategoryJoinDao_pvh8bk_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryParentChildJoinDao_7l71wv_k$ = function () { return this.get__ContentEntryParentChildJoinDao_bi0wfv_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryRelatedEntryJoinDao_i6y8co_k$ = function () { return this.get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentCategorySchemaDao_92g6ue_k$ = function () { return this.get__ContentCategorySchemaDao_k8roi8_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentCategoryDao_ww12m3_k$ = function () { return this.get__ContentCategoryDao_dzbhgv_k$(); }; protoOf(UmAppDatabase_JdbcImpl).languageDao_jg31ly_k$ = function () { return this.get__LanguageDao_2e4ww4_k$(); }; protoOf(UmAppDatabase_JdbcImpl).languageVariantDao_8ex0aj_k$ = function () { return this.get__LanguageVariantDao_fquhln_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personAuthDao_tb983v_k$ = function () { return this.get__PersonAuthDao_4ayl5r_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personGroupDao_lgohk_k$ = function () { return this.get__PersonGroupDao_nxfaua_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personGroupMemberDao_v4nqlu_k$ = function () { return this.get__PersonGroupMemberDao_unn144_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personPictureDao_jnjrvt_k$ = function () { return this.get__PersonPictureDao_rx5ni9_k$(); }; protoOf(UmAppDatabase_JdbcImpl).verbDao_5t0jxv_k$ = function () { return this.get__VerbDao_uhx09v_k$(); }; protoOf(UmAppDatabase_JdbcImpl).activityEntityDao_xla99c_k$ = function () { return this.get__ActivityEntityDao_kmcwc6_k$(); }; protoOf(UmAppDatabase_JdbcImpl).reportDao_5udmpu_k$ = function () { return this.get__ReportDao_hhzazc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).statementDao_8y5avx_k$ = function () { return this.get__StatementDao_ssowvt_k$(); }; protoOf(UmAppDatabase_JdbcImpl).actorDao_rapokj_k$ = function () { return this.get__ActorDao_g7t7m5_k$(); }; protoOf(UmAppDatabase_JdbcImpl).clazzLogAttendanceRecordDao_6kuhbg_k$ = function () { return this.get__ClazzLogAttendanceRecordDao_1v165m_k$(); }; protoOf(UmAppDatabase_JdbcImpl).clazzLogDao_4jisyu_k$ = function () { return this.get__ClazzLogDao_qdqrgw_k$(); }; protoOf(UmAppDatabase_JdbcImpl).scheduleDao_2wsqkb_k$ = function () { return this.get__ScheduleDao_or0p2d_k$(); }; protoOf(UmAppDatabase_JdbcImpl).holidayCalendarDao_ugpa84_k$ = function () { return this.get__HolidayCalendarDao_6axsby_k$(); }; protoOf(UmAppDatabase_JdbcImpl).holidayDao_ijvs9y_k$ = function () { return this.get__HolidayDao_opzekw_k$(); }; protoOf(UmAppDatabase_JdbcImpl).clazzAssignmentDao_ta4cfn_k$ = function () { return this.get__ClazzAssignmentDao_54cujh_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseAssignmentSubmissionDao_y3yq7y_k$ = function () { return this.get__CourseAssignmentSubmissionDao_jqvd48_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseAssignmentSubmissionFileDao_spskde_k$ = function () { return this.get__CourseAssignmentSubmissionFileDao_7q6gp8_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseAssignmentMarkDao_6irrq5_k$ = function () { return this.get__CourseAssignmentMarkDao_j1kho9_k$(); }; protoOf(UmAppDatabase_JdbcImpl).commentsDao_ysx4hq_k$ = function () { return this.get__CommentsDao_edyyzc_k$(); }; protoOf(UmAppDatabase_JdbcImpl).syncNodeDao_7tik2d_k$ = function () { return this.get__SyncNodeDao_tnqikf_k$(); }; protoOf(UmAppDatabase_JdbcImpl).siteDao_yq9qyz_k$ = function () { return this.get__SiteDao_1knt8r_k$(); }; protoOf(UmAppDatabase_JdbcImpl).siteTermsDao_wa3vn6_k$ = function () { return this.get__SiteTermsDao_105yk8_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personParentJoinDao_gvpro7_k$ = function () { return this.get__PersonParentJoinDao_lru39v_k$(); }; protoOf(UmAppDatabase_JdbcImpl).scopedGrantDao_yq1jei_k$ = function () { return this.get__ScopedGrantDao_cz3w7w_k$(); }; protoOf(UmAppDatabase_JdbcImpl).errorReportDao_xwpcpi_k$ = function () { return this.get__ErrorReportDao_akqqcs_k$(); }; protoOf(UmAppDatabase_JdbcImpl).personAuth2Dao_ep6mu5_k$ = function () { return this.get__PersonAuth2Dao_8mrzil_k$(); }; protoOf(UmAppDatabase_JdbcImpl).userSessionDao_v2hqyh_k$ = function () { return this.get__UserSessionDao_gmnonx_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryImportJobDao_bjpy9f_k$ = function () { return this.get__ContentEntryImportJobDao_degll_k$(); }; protoOf(UmAppDatabase_JdbcImpl).coursePictureDao_4rldqp_k$ = function () { return this.get__CoursePictureDao_iot8ud_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryPictureDao_8lym7n_k$ = function () { return this.get__ContentEntryPictureDao_e0mhzx_k$(); }; protoOf(UmAppDatabase_JdbcImpl).messageDao_rymlth_k$ = function () { return this.get__MessageDao_y4q84f_k$(); }; protoOf(UmAppDatabase_JdbcImpl).peerReviewerAllocationDao_5g43p1_k$ = function () { return this.get__PeerReviewerAllocationDao_39jynp_k$(); }; protoOf(UmAppDatabase_JdbcImpl).discussionPostDao_z4okmu_k$ = function () { return this.get__DiscussionPostDao_ib7o98_k$(); }; protoOf(UmAppDatabase_JdbcImpl).externalAppPermissionDao_tiffyl_k$ = function () { return this.get__ExternalAppPermissionDao_ic3yar_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryVersionDao_66n0fn_k$ = function () { return this.get__ContentEntryVersionDao_rz4nd_k$(); }; protoOf(UmAppDatabase_JdbcImpl).outgoingReplicationDao_snyh82_k$ = function () { return this.get__OutgoingReplicationDao_n9alfs_k$(); }; protoOf(UmAppDatabase_JdbcImpl).transferJobDao_mx6734_k$ = function () { return this.get__TransferJobDao_esf9m_k$(); }; protoOf(UmAppDatabase_JdbcImpl).transferJobItemDao_wbvozx_k$ = function () { return this.get__TransferJobItemDao_ejgv31_k$(); }; protoOf(UmAppDatabase_JdbcImpl).cacheLockJoinDao_yxjk3f_k$ = function () { return this.get__CacheLockJoinDao_cn5van_k$(); }; protoOf(UmAppDatabase_JdbcImpl).offlineItemDao_rdbxlw_k$ = function () { return this.get__OfflineItemDao_kbti0i_k$(); }; protoOf(UmAppDatabase_JdbcImpl).deletedItemDao_2gyh22_k$ = function () { return this.get__DeletedItemDao_psx3es_k$(); }; protoOf(UmAppDatabase_JdbcImpl).enrolmentRequestDao_hchxfd_k$ = function () { return this.get__EnrolmentRequestDao_lb1xip_k$(); }; protoOf(UmAppDatabase_JdbcImpl).coursePermissionDao_t5l7mw_k$ = function () { return this.get__CoursePermissionDao_37yze6_k$(); }; protoOf(UmAppDatabase_JdbcImpl).systemPermissionDao_fl20r8_k$ = function () { return this.get__SystemPermissionDao_gsi69u_k$(); }; protoOf(UmAppDatabase_JdbcImpl).courseBlockPictureDao_hf3pty_k$ = function () { return this.get__CourseBlockPictureDao_eyc3u8_k$(); }; protoOf(UmAppDatabase_JdbcImpl).contentEntryPicture2Dao_h7azt1_k$ = function () { return this.get__ContentEntryPicture2Dao_8d19ld_k$(); }; protoOf(UmAppDatabase_JdbcImpl).transferJobErrorDao_bf4uho_k$ = function () { return this.get__TransferJobErrorDao_kyfcje_k$(); }; protoOf(UmAppDatabase_JdbcImpl).studentResultDao_dmms6y_k$ = function () { return this.get__StudentResultDao_xy2n74_k$(); }; protoOf(UmAppDatabase_JdbcImpl).verbLangMapEntryDao_egt3yn_k$ = function () { return this.get__VerbLangMapEntryDao_hwr32f_k$(); }; protoOf(UmAppDatabase_JdbcImpl).groupMemberActorJoinDao_sbul1w_k$ = function () { return this.get__GroupMemberActorJoinDao_h4x7iu_k$(); }; protoOf(UmAppDatabase_JdbcImpl).activityLangMapEntryDao_1efc67_k$ = function () { return this.get__ActivityLangMapEntryDao_o5wx87_k$(); }; protoOf(UmAppDatabase_JdbcImpl).activityInteractionDao_ya39jj_k$ = function () { return this.get__ActivityInteractionDao_svfdr9_k$(); }; protoOf(UmAppDatabase_JdbcImpl).activityExtensionDao_w9zywu_k$ = function () { return this.get__ActivityExtensionDao_tiast4_k$(); }; protoOf(UmAppDatabase_JdbcImpl).statementContextActivityJoinDao_w1mheh_k$ = function () { return this.get__StatementContextActivityJoinDao_8ioc8z_k$(); }; protoOf(UmAppDatabase_JdbcImpl).xapiSessionEntityDao_h5sw3p_k$ = function () { return this.get__XapiSessionEntityDao_qem6cv_k$(); }; protoOf(UmAppDatabase_JdbcImpl).statementEntityJsonDao_us6vig_k$ = function () { return this.get__StatementEntityJsonDao_yu9aoe_k$(); }; protoOf(UmAppDatabase_JdbcImpl).stateEntityDao_ssmjmq_k$ = function () { return this.get__StateEntityDao_iwivzo_k$(); }; protoOf(UmAppDatabase_JdbcImpl).stateDeleteCommandDao_55kv0j_k$ = function () { return this.get__StateDeleteCommandDao_2ot90t_k$(); }; protoOf(UmAppDatabase_JdbcImpl).reportRunResultRowDao_6jkhck_k$ = function () { return this.get__ReportQueryResultDao_r1qjyh_k$(); }; protoOf(UmAppDatabase_JdbcImpl).close_yn9xrc_k$ = function () { this.jdbcImplHelper_1.close_yn9xrc_k$(); }; function realNodeIdAuthCache$factory() { return getPropertyCallableRef('realNodeIdAuthCache', 1, KProperty1, function (receiver) { return receiver.get_realNodeIdAuthCache_ojie7e_k$(); }, null); } function realPrimaryKeyManager$factory() { return getPropertyCallableRef('realPrimaryKeyManager', 1, KProperty1, function (receiver) { return receiver.get_realPrimaryKeyManager_s5zvav_k$(); }, null); } function _PersonDao$factory_0() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return receiver.get__PersonDao_2gcixz_k$(); }, null); } function _ClazzDao$factory_0() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzDao_mn47hs_k$(); }, null); } function _CourseBlockDao$factory_0() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return receiver.get__CourseBlockDao_owibti_k$(); }, null); } function _CourseTerminologyDao$factory_0() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return receiver.get__CourseTerminologyDao_fubtf4_k$(); }, null); } function _CourseGroupSetDao$factory_0() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return receiver.get__CourseGroupSetDao_qj0q2q_k$(); }, null); } function _CourseGroupMemberDao$factory_0() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.get__CourseGroupMemberDao_417hre_k$(); }, null); } function _ClazzEnrolmentDao$factory_0() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzEnrolmentDao_84ihkg_k$(); }, null); } function _LeavingReasonDao$factory_0() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return receiver.get__LeavingReasonDao_dydsts_k$(); }, null); } function _ContentEntryDao$factory_0() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryDao_7j8d31_k$(); }, null); } function _ContentEntryContentCategoryJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryContentCategoryJoinDao_pvh8bk_k$(); }, null); } function _ContentEntryParentChildJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryParentChildJoinDao_bi0wfv_k$(); }, null); } function _ContentEntryRelatedEntryJoinDao$factory_0() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryRelatedEntryJoinDao_5bzwsu_k$(); }, null); } function _ContentCategorySchemaDao$factory_0() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return receiver.get__ContentCategorySchemaDao_k8roi8_k$(); }, null); } function _ContentCategoryDao$factory_0() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return receiver.get__ContentCategoryDao_dzbhgv_k$(); }, null); } function _LanguageDao$factory_0() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return receiver.get__LanguageDao_2e4ww4_k$(); }, null); } function _LanguageVariantDao$factory_0() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return receiver.get__LanguageVariantDao_fquhln_k$(); }, null); } function _PersonAuthDao$factory() { return getPropertyCallableRef('_PersonAuthDao', 1, KProperty1, function (receiver) { return receiver.get__PersonAuthDao_4ayl5r_k$(); }, null); } function _PersonGroupDao$factory_0() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return receiver.get__PersonGroupDao_nxfaua_k$(); }, null); } function _PersonGroupMemberDao$factory_0() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return receiver.get__PersonGroupMemberDao_unn144_k$(); }, null); } function _PersonPictureDao$factory_0() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return receiver.get__PersonPictureDao_rx5ni9_k$(); }, null); } function _VerbDao$factory_0() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return receiver.get__VerbDao_uhx09v_k$(); }, null); } function _ActivityEntityDao$factory_0() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityEntityDao_kmcwc6_k$(); }, null); } function _ReportDao$factory_0() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return receiver.get__ReportDao_hhzazc_k$(); }, null); } function _StatementDao$factory_0() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return receiver.get__StatementDao_ssowvt_k$(); }, null); } function _ActorDao$factory_0() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return receiver.get__ActorDao_g7t7m5_k$(); }, null); } function _ClazzLogAttendanceRecordDao$factory_0() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzLogAttendanceRecordDao_1v165m_k$(); }, null); } function _ClazzLogDao$factory_0() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzLogDao_qdqrgw_k$(); }, null); } function _ScheduleDao$factory_0() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return receiver.get__ScheduleDao_or0p2d_k$(); }, null); } function _HolidayCalendarDao$factory_0() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return receiver.get__HolidayCalendarDao_6axsby_k$(); }, null); } function _HolidayDao$factory_0() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return receiver.get__HolidayDao_opzekw_k$(); }, null); } function _ClazzAssignmentDao$factory_0() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return receiver.get__ClazzAssignmentDao_54cujh_k$(); }, null); } function _CourseAssignmentSubmissionDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentSubmissionDao_jqvd48_k$(); }, null); } function _CourseAssignmentSubmissionFileDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentSubmissionFileDao_7q6gp8_k$(); }, null); } function _CourseAssignmentMarkDao$factory_0() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return receiver.get__CourseAssignmentMarkDao_j1kho9_k$(); }, null); } function _CommentsDao$factory_0() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return receiver.get__CommentsDao_edyyzc_k$(); }, null); } function _SyncNodeDao$factory() { return getPropertyCallableRef('_SyncNodeDao', 1, KProperty1, function (receiver) { return receiver.get__SyncNodeDao_tnqikf_k$(); }, null); } function _SiteDao$factory_0() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return receiver.get__SiteDao_1knt8r_k$(); }, null); } function _SiteTermsDao$factory_0() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return receiver.get__SiteTermsDao_105yk8_k$(); }, null); } function _PersonParentJoinDao$factory_0() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return receiver.get__PersonParentJoinDao_lru39v_k$(); }, null); } function _ScopedGrantDao$factory_0() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return receiver.get__ScopedGrantDao_cz3w7w_k$(); }, null); } function _ErrorReportDao$factory_0() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return receiver.get__ErrorReportDao_akqqcs_k$(); }, null); } function _PersonAuth2Dao$factory_0() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return receiver.get__PersonAuth2Dao_8mrzil_k$(); }, null); } function _UserSessionDao$factory_0() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return receiver.get__UserSessionDao_gmnonx_k$(); }, null); } function _ContentEntryImportJobDao$factory() { return getPropertyCallableRef('_ContentEntryImportJobDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryImportJobDao_degll_k$(); }, null); } function _CoursePictureDao$factory_0() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return receiver.get__CoursePictureDao_iot8ud_k$(); }, null); } function _ContentEntryPictureDao$factory_0() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryPictureDao_e0mhzx_k$(); }, null); } function _MessageDao$factory_0() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return receiver.get__MessageDao_y4q84f_k$(); }, null); } function _PeerReviewerAllocationDao$factory_0() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return receiver.get__PeerReviewerAllocationDao_39jynp_k$(); }, null); } function _DiscussionPostDao$factory_0() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return receiver.get__DiscussionPostDao_ib7o98_k$(); }, null); } function _ExternalAppPermissionDao$factory() { return getPropertyCallableRef('_ExternalAppPermissionDao', 1, KProperty1, function (receiver) { return receiver.get__ExternalAppPermissionDao_ic3yar_k$(); }, null); } function _ContentEntryVersionDao$factory_0() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryVersionDao_rz4nd_k$(); }, null); } function _OutgoingReplicationDao$factory() { return getPropertyCallableRef('_OutgoingReplicationDao', 1, KProperty1, function (receiver) { return receiver.get__OutgoingReplicationDao_n9alfs_k$(); }, null); } function _TransferJobDao$factory() { return getPropertyCallableRef('_TransferJobDao', 1, KProperty1, function (receiver) { return receiver.get__TransferJobDao_esf9m_k$(); }, null); } function _TransferJobItemDao$factory() { return getPropertyCallableRef('_TransferJobItemDao', 1, KProperty1, function (receiver) { return receiver.get__TransferJobItemDao_ejgv31_k$(); }, null); } function _CacheLockJoinDao$factory() { return getPropertyCallableRef('_CacheLockJoinDao', 1, KProperty1, function (receiver) { return receiver.get__CacheLockJoinDao_cn5van_k$(); }, null); } function _OfflineItemDao$factory_0() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return receiver.get__OfflineItemDao_kbti0i_k$(); }, null); } function _DeletedItemDao$factory() { return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) { return receiver.get__DeletedItemDao_psx3es_k$(); }, null); } function _EnrolmentRequestDao$factory_0() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return receiver.get__EnrolmentRequestDao_lb1xip_k$(); }, null); } function _CoursePermissionDao$factory_0() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return receiver.get__CoursePermissionDao_37yze6_k$(); }, null); } function _SystemPermissionDao$factory_0() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return receiver.get__SystemPermissionDao_gsi69u_k$(); }, null); } function _CourseBlockPictureDao$factory_0() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return receiver.get__CourseBlockPictureDao_eyc3u8_k$(); }, null); } function _ContentEntryPicture2Dao$factory_0() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return receiver.get__ContentEntryPicture2Dao_8d19ld_k$(); }, null); } function _TransferJobErrorDao$factory() { return getPropertyCallableRef('_TransferJobErrorDao', 1, KProperty1, function (receiver) { return receiver.get__TransferJobErrorDao_kyfcje_k$(); }, null); } function _StudentResultDao$factory_0() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return receiver.get__StudentResultDao_xy2n74_k$(); }, null); } function _VerbLangMapEntryDao$factory_0() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.get__VerbLangMapEntryDao_hwr32f_k$(); }, null); } function _GroupMemberActorJoinDao$factory_0() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return receiver.get__GroupMemberActorJoinDao_h4x7iu_k$(); }, null); } function _ActivityLangMapEntryDao$factory_0() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityLangMapEntryDao_o5wx87_k$(); }, null); } function _ActivityInteractionDao$factory_0() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityInteractionDao_svfdr9_k$(); }, null); } function _ActivityExtensionDao$factory_0() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return receiver.get__ActivityExtensionDao_tiast4_k$(); }, null); } function _StatementContextActivityJoinDao$factory_0() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return receiver.get__StatementContextActivityJoinDao_8ioc8z_k$(); }, null); } function _XapiSessionEntityDao$factory_0() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return receiver.get__XapiSessionEntityDao_qem6cv_k$(); }, null); } function _StatementEntityJsonDao$factory_0() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return receiver.get__StatementEntityJsonDao_yu9aoe_k$(); }, null); } function _StateEntityDao$factory_0() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return receiver.get__StateEntityDao_iwivzo_k$(); }, null); } function _StateDeleteCommandDao$factory_0() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return receiver.get__StateDeleteCommandDao_2ot90t_k$(); }, null); } function _ReportQueryResultDao$factory() { return getPropertyCallableRef('_ReportQueryResultDao', 1, KProperty1, function (receiver) { return receiver.get__ReportQueryResultDao_r1qjyh_k$(); }, null); } function _get__db__e63s44_0($this) { return $this._db_1; } function _get__endpoint__5zlgkj($this) { return $this.config_1.get_endpoint_30bvdu_k$(); } function _get__PersonDao__uzj2el($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonDao$delegate_1; _PersonDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ClazzDao__9uv608($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ClazzDao$delegate_1; _ClazzDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseBlockDao__4pp4mq($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseBlockDao$delegate_1; _CourseBlockDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseTerminologyDao__a6bld4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseTerminologyDao$delegate_1; _CourseTerminologyDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseGroupSetDao__hfsuk6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseGroupSetDao$delegate_1; _CourseGroupSetDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseGroupMemberDao__l3hcwy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseGroupMemberDao$delegate_1; _CourseGroupMemberDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ClazzEnrolmentDao__q8nlvo($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ClazzEnrolmentDao$delegate_1; _ClazzEnrolmentDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__LeavingReasonDao__m21j14($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._LeavingReasonDao$delegate_1; _LeavingReasonDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryDao__asrab3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryDao$delegate_1; _ContentEntryDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryContentCategoryJoinDao__c8c5lk($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryContentCategoryJoinDao$delegate_1; _ContentEntryContentCategoryJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryParentChildJoinDao__moxer($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryParentChildJoinDao$delegate_1; _ContentEntryParentChildJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryRelatedEntryJoinDao__wdqzcu($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryRelatedEntryJoinDao$delegate_1; _ContentEntryRelatedEntryJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentCategorySchemaDao__95pyeg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentCategorySchemaDao$delegate_1; _ContentCategorySchemaDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentCategoryDao__tsqjyv($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentCategoryDao$delegate_1; _ContentCategoryDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__LanguageDao__1z90w($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._LanguageDao$delegate_1; _LanguageDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__LanguageVariantDao__rxf1fx($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._LanguageVariantDao$delegate_1; _LanguageVariantDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PersonGroupDao__hew8d2($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonGroupDao$delegate_1; _PersonGroupDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PersonGroupMemberDao__mvnpb8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonGroupMemberDao$delegate_1; _PersonGroupMemberDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PersonPictureDao__2gbg89($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonPictureDao$delegate_1; _PersonPictureDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__VerbDao__618h8p($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._VerbDao$delegate_1; _VerbDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ActivityEntityDao__cj0phy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ActivityEntityDao$delegate_1; _ActivityEntityDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ReportDao__jbr9h0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ReportDao$delegate_1; _ReportDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StatementDao__fnw41b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StatementDao$delegate_1; _StatementDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ActorDao__6yq8sr($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ActorDao$delegate_1; _ActorDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ClazzLogAttendanceRecordDao__r3qxzy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ClazzLogAttendanceRecordDao$delegate_1; _ClazzLogAttendanceRecordDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ClazzLogDao__xeo15w($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ClazzLogDao$delegate_1; _ClazzLogDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ScheduleDao__h5s1ch($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ScheduleDao$delegate_1; _ScheduleDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__HolidayCalendarDao__gbx0p6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._HolidayCalendarDao$delegate_1; _HolidayCalendarDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__HolidayDao__x92kh4($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._HolidayDao$delegate_1; _HolidayDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ClazzAssignmentDao__kc42th($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ClazzAssignmentDao$delegate_1; _ClazzAssignmentDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseAssignmentSubmissionDao__ir2b4c($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseAssignmentSubmissionDao$delegate_1; _CourseAssignmentSubmissionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseAssignmentSubmissionFileDao__63r33c($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseAssignmentSubmissionFileDao$delegate_1; _CourseAssignmentSubmissionFileDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseAssignmentMarkDao__yi6swd($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseAssignmentMarkDao$delegate_1; _CourseAssignmentMarkDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CommentsDao__mxkt84($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CommentsDao$delegate_1; _CommentsDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__SiteDao__wss4yp($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._SiteDao$delegate_1; _SiteDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__SiteTermsDao__f7rqww($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._SiteTermsDao$delegate_1; _SiteTermsDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PersonParentJoinDao__o0iclb($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonParentJoinDao$delegate_1; _PersonParentJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ScopedGrantDao__9w613o($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ScopedGrantDao$delegate_1; _ScopedGrantDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ErrorReportDao__d8e0x0($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ErrorReportDao$delegate_1; _ErrorReportDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PersonAuth2Dao__uki6ut($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PersonAuth2Dao$delegate_1; _PersonAuth2Dao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__UserSessionDao__wcreq3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._UserSessionDao$delegate_1; _UserSessionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CoursePictureDao__qr47kz($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CoursePictureDao$delegate_1; _CoursePictureDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryPictureDao__hzeabf($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryPictureDao$delegate_1; _ContentEntryPictureDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__MessageDao__u7e9l3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._MessageDao$delegate_1; _MessageDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__PeerReviewerAllocationDao__m08hnj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._PeerReviewerAllocationDao$delegate_1; _PeerReviewerAllocationDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__DiscussionPostDao__bymsxs($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._DiscussionPostDao$delegate_1; _DiscussionPostDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryVersionDao__egjvvj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryVersionDao$delegate_1; _ContentEntryVersionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__OfflineItemDao__4yjkly($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._OfflineItemDao$delegate_1; _OfflineItemDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__DeletedItemDao__4i3s1g($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._DeletedItemDao$delegate_1; _DeletedItemDao$factory_0(); return this_0.get_value_j01efc_k$(); } function _get__EnrolmentRequestDao__wkcqzn($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._EnrolmentRequestDao$delegate_1; _EnrolmentRequestDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CoursePermissionDao__hib1jy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CoursePermissionDao$delegate_1; _CoursePermissionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__SystemPermissionDao__c05myy($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._SystemPermissionDao$delegate_1; _SystemPermissionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__CourseBlockPictureDao__hx4ubg($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._CourseBlockPictureDao$delegate_1; _CourseBlockPictureDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ContentEntryPicture2Dao__ah6hid($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ContentEntryPicture2Dao$delegate_1; _ContentEntryPicture2Dao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StudentResultDao__sr8vqw($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StudentResultDao$delegate_1; _StudentResultDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__VerbLangMapEntryDao__oda6e3($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._VerbLangMapEntryDao$delegate_1; _VerbLangMapEntryDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__GroupMemberActorJoinDao__jlmme6($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._GroupMemberActorJoinDao$delegate_1; _GroupMemberActorJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ActivityLangMapEntryDao__htpiob($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ActivityLangMapEntryDao$delegate_1; _ActivityLangMapEntryDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ActivityInteractionDao__x272ir($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ActivityInteractionDao$delegate_1; _ActivityInteractionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__ActivityExtensionDao__cpvg5s($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._ActivityExtensionDao$delegate_1; _ActivityExtensionDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StatementContextActivityJoinDao__t5jinj($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StatementContextActivityJoinDao$delegate_1; _StatementContextActivityJoinDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__XapiSessionEntityDao__tpjn2v($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._XapiSessionEntityDao$delegate_1; _XapiSessionEntityDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StatementEntityJsonDao__4ym94q($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StatementEntityJsonDao$delegate_1; _StatementEntityJsonDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StateEntityDao__vtinv8($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StateEntityDao$delegate_1; _StateEntityDao$factory_1(); return this_0.get_value_j01efc_k$(); } function _get__StateDeleteCommandDao__s2ay7b($this) { // Inline function 'kotlin.getValue' call var this_0 = $this._StateDeleteCommandDao$delegate_1; _StateDeleteCommandDao$factory_1(); return this_0.get_value_j01efc_k$(); } function Companion() { Companion_instance = this; this._DB_NAME_1 = 'UmAppDatabase'; } protoOf(Companion).get__DB_NAME_rfzlxm_k$ = function () { return this._DB_NAME_1; }; var Companion_instance; function Companion_getInstance_3() { if (Companion_instance == null) new Companion(); return Companion_instance; } function UmAppDatabase_Repo$_PersonDao$delegate$lambda(this$0) { return function () { return new PersonDao_Repo(this$0.db_1, this$0, this$0.db_1.personDao_e3y77h_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this$0) { return function () { return new ClazzDao_Repo(this$0.db_1, this$0, this$0.db_1.clazzDao_bk7qje_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this$0) { return function () { return new CourseBlockDao_Repo(this$0.db_1, this$0, this$0.db_1.courseBlockDao_msn3sw_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this$0) { return function () { return new CourseTerminologyDao_Repo(this$0.db_1, this$0, this$0.db_1.courseTerminologyDao_p353oa_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this$0) { return function () { return new CourseGroupSetDao_Repo(this$0.db_1, this$0, this$0.db_1.courseGroupSetDao_romfis_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this$0) { return function () { return new CourseGroupMemberDao_Repo(this$0.db_1, this$0, this$0.db_1.courseGroupMemberDao_da0s0k_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this$0) { return function () { return new ClazzEnrolmentDao_Repo(this$0.db_1, this$0, this$0.db_1.clazzEnrolmentDao_8oyet6_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this$0) { return function () { return new LeavingReasonDao_Repo(this$0.db_1, this$0, this$0.db_1.leavingReasonDao_9i0tra_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this$0) { return function () { return new ContentEntryDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryDao_5ggc49_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryContentCategoryJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryContentCategoryJoinDao_ehgkae_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryParentChildJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryParentChildJoinDao_7l71wv_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this$0) { return function () { return new ContentEntryRelatedEntryJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryRelatedEntryJoinDao_i6y8co_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this$0) { return function () { return new ContentCategorySchemaDao_Repo(this$0.db_1, this$0, this$0.db_1.contentCategorySchemaDao_92g6ue_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this$0) { return function () { return new ContentCategoryDao_Repo(this$0.db_1, this$0, this$0.db_1.contentCategoryDao_ww12m3_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this$0) { return function () { return new LanguageDao_Repo(this$0.db_1, this$0, this$0.db_1.languageDao_jg31ly_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this$0) { return function () { return new LanguageVariantDao_Repo(this$0.db_1, this$0, this$0.db_1.languageVariantDao_8ex0aj_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this$0) { return function () { return new PersonGroupDao_Repo(this$0.db_1, this$0, this$0.db_1.personGroupDao_lgohk_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this$0) { return function () { return new PersonGroupMemberDao_Repo(this$0.db_1, this$0, this$0.db_1.personGroupMemberDao_v4nqlu_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this$0) { return function () { return new PersonPictureDao_Repo(this$0.db_1, this$0, this$0.db_1.personPictureDao_jnjrvt_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_VerbDao$delegate$lambda(this$0) { return function () { return new VerbDao_Repo(this$0.db_1, this$0, this$0.db_1.verbDao_5t0jxv_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this$0) { return function () { return new ActivityEntityDao_Repo(this$0.db_1, this$0, this$0.db_1.activityEntityDao_xla99c_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ReportDao$delegate$lambda(this$0) { return function () { return new ReportDao_Repo(this$0.db_1, this$0, this$0.db_1.reportDao_5udmpu_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementDao$delegate$lambda(this$0) { return function () { return new StatementDao_Repo(this$0.db_1, this$0, this$0.db_1.statementDao_8y5avx_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActorDao$delegate$lambda(this$0) { return function () { return new ActorDao_Repo(this$0.db_1, this$0, this$0.db_1.actorDao_rapokj_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this$0) { return function () { return new ClazzLogAttendanceRecordDao_Repo(this$0.db_1, this$0, this$0.db_1.clazzLogAttendanceRecordDao_6kuhbg_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this$0) { return function () { return new ClazzLogDao_Repo(this$0.db_1, this$0, this$0.db_1.clazzLogDao_4jisyu_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this$0) { return function () { return new ScheduleDao_Repo(this$0.db_1, this$0, this$0.db_1.scheduleDao_2wsqkb_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this$0) { return function () { return new HolidayCalendarDao_Repo(this$0.db_1, this$0, this$0.db_1.holidayCalendarDao_ugpa84_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this$0) { return function () { return new HolidayDao_Repo(this$0.db_1, this$0, this$0.db_1.holidayDao_ijvs9y_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this$0) { return function () { return new ClazzAssignmentDao_Repo(this$0.db_1, this$0, this$0.db_1.clazzAssignmentDao_ta4cfn_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionDao_Repo(this$0.db_1, this$0, this$0.db_1.courseAssignmentSubmissionDao_y3yq7y_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentSubmissionFileDao_Repo(this$0.db_1, this$0, this$0.db_1.courseAssignmentSubmissionFileDao_spskde_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this$0) { return function () { return new CourseAssignmentMarkDao_Repo(this$0.db_1, this$0, this$0.db_1.courseAssignmentMarkDao_6irrq5_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this$0) { return function () { return new CommentsDao_Repo(this$0.db_1, this$0, this$0.db_1.commentsDao_ysx4hq_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SiteDao$delegate$lambda(this$0) { return function () { return new SiteDao_Repo(this$0.db_1, this$0, this$0.db_1.siteDao_yq9qyz_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this$0) { return function () { return new SiteTermsDao_Repo(this$0.db_1, this$0, this$0.db_1.siteTermsDao_wa3vn6_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this$0) { return function () { return new PersonParentJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.personParentJoinDao_gvpro7_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this$0) { return function () { return new ScopedGrantDao_Repo(this$0.db_1, this$0, this$0.db_1.scopedGrantDao_yq1jei_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this$0) { return function () { return new ErrorReportDao_Repo(this$0.db_1, this$0, this$0.db_1.errorReportDao_xwpcpi_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this$0) { return function () { return new PersonAuth2Dao_Repo(this$0.db_1, this$0, this$0.db_1.personAuth2Dao_ep6mu5_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this$0) { return function () { return new UserSessionDao_Repo(this$0.db_1, this$0, this$0.db_1.userSessionDao_v2hqyh_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this$0) { return function () { return new CoursePictureDao_Repo(this$0.db_1, this$0, this$0.db_1.coursePictureDao_4rldqp_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this$0) { return function () { return new ContentEntryPictureDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryPictureDao_8lym7n_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_MessageDao$delegate$lambda(this$0) { return function () { return new MessageDao_Repo(this$0.db_1, this$0, this$0.db_1.messageDao_rymlth_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this$0) { return function () { return new PeerReviewerAllocationDao_Repo(this$0.db_1, this$0, this$0.db_1.peerReviewerAllocationDao_5g43p1_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this$0) { return function () { return new DiscussionPostDao_Repo(this$0.db_1, this$0, this$0.db_1.discussionPostDao_z4okmu_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this$0) { return function () { return new ContentEntryVersionDao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryVersionDao_66n0fn_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this$0) { return function () { return new OfflineItemDao_Repo(this$0.db_1, this$0, this$0.db_1.offlineItemDao_rdbxlw_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this$0) { return function () { return new DeletedItemDao_Repo(this$0.db_1, this$0, this$0.db_1.deletedItemDao_2gyh22_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this$0) { return function () { return new EnrolmentRequestDao_Repo(this$0.db_1, this$0, this$0.db_1.enrolmentRequestDao_hchxfd_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this$0) { return function () { return new CoursePermissionDao_Repo(this$0.db_1, this$0, this$0.db_1.coursePermissionDao_t5l7mw_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this$0) { return function () { return new SystemPermissionDao_Repo(this$0.db_1, this$0, this$0.db_1.systemPermissionDao_fl20r8_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this$0) { return function () { return new CourseBlockPictureDao_Repo(this$0.db_1, this$0, this$0.db_1.courseBlockPictureDao_hf3pty_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this$0) { return function () { return new ContentEntryPicture2Dao_Repo(this$0.db_1, this$0, this$0.db_1.contentEntryPicture2Dao_h7azt1_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this$0) { return function () { return new StudentResultDao_Repo(this$0.db_1, this$0, this$0.db_1.studentResultDao_dmms6y_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this$0) { return function () { return new VerbLangMapEntryDao_Repo(this$0.db_1, this$0, this$0.db_1.verbLangMapEntryDao_egt3yn_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this$0) { return function () { return new GroupMemberActorJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.groupMemberActorJoinDao_sbul1w_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this$0) { return function () { return new ActivityLangMapEntryDao_Repo(this$0.db_1, this$0, this$0.db_1.activityLangMapEntryDao_1efc67_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this$0) { return function () { return new ActivityInteractionDao_Repo(this$0.db_1, this$0, this$0.db_1.activityInteractionDao_ya39jj_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this$0) { return function () { return new ActivityExtensionDao_Repo(this$0.db_1, this$0, this$0.db_1.activityExtensionDao_w9zywu_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this$0) { return function () { return new StatementContextActivityJoinDao_Repo(this$0.db_1, this$0, this$0.db_1.statementContextActivityJoinDao_w1mheh_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this$0) { return function () { return new XapiSessionEntityDao_Repo(this$0.db_1, this$0, this$0.db_1.xapiSessionEntityDao_h5sw3p_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this$0) { return function () { return new StatementEntityJsonDao_Repo(this$0.db_1, this$0, this$0.db_1.statementEntityJsonDao_us6vig_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this$0) { return function () { return new StateEntityDao_Repo(this$0.db_1, this$0, this$0.db_1.stateEntityDao_ssmjmq_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this$0) { return function () { return new StateDeleteCommandDao_Repo(this$0.db_1, this$0, this$0.db_1.stateDeleteCommandDao_55kv0j_k$(), this$0.get__httpClient_vck193_k$(), this$0.get_clientId_gs3e9d_k$(), _get__endpoint__5zlgkj(this$0)); }; } function UmAppDatabase_Repo(db, dbUnwrapped, config) { Companion_getInstance_3(); UmAppDatabase.call(this); this.db_1 = db; this.config_1 = config; this._db_1 = dbUnwrapped; this._repositoryHelper_1 = new RepositoryHelper(this.db_1, this.config_1); var tmp = this; tmp._PersonDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonDao$delegate$lambda(this)); var tmp_0 = this; tmp_0._ClazzDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ClazzDao$delegate$lambda(this)); var tmp_1 = this; tmp_1._CourseBlockDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockDao$delegate$lambda(this)); var tmp_2 = this; tmp_2._CourseTerminologyDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseTerminologyDao$delegate$lambda(this)); var tmp_3 = this; tmp_3._CourseGroupSetDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupSetDao$delegate$lambda(this)); var tmp_4 = this; tmp_4._CourseGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseGroupMemberDao$delegate$lambda(this)); var tmp_5 = this; tmp_5._ClazzEnrolmentDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ClazzEnrolmentDao$delegate$lambda(this)); var tmp_6 = this; tmp_6._LeavingReasonDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_LeavingReasonDao$delegate$lambda(this)); var tmp_7 = this; tmp_7._ContentEntryDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryDao$delegate$lambda(this)); var tmp_8 = this; tmp_8._ContentEntryContentCategoryJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryContentCategoryJoinDao$delegate$lambda(this)); var tmp_9 = this; tmp_9._ContentEntryParentChildJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryParentChildJoinDao$delegate$lambda(this)); var tmp_10 = this; tmp_10._ContentEntryRelatedEntryJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryRelatedEntryJoinDao$delegate$lambda(this)); var tmp_11 = this; tmp_11._ContentCategorySchemaDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentCategorySchemaDao$delegate$lambda(this)); var tmp_12 = this; tmp_12._ContentCategoryDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentCategoryDao$delegate$lambda(this)); var tmp_13 = this; tmp_13._LanguageDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_LanguageDao$delegate$lambda(this)); var tmp_14 = this; tmp_14._LanguageVariantDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_LanguageVariantDao$delegate$lambda(this)); var tmp_15 = this; tmp_15._PersonGroupDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupDao$delegate$lambda(this)); var tmp_16 = this; tmp_16._PersonGroupMemberDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonGroupMemberDao$delegate$lambda(this)); var tmp_17 = this; tmp_17._PersonPictureDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonPictureDao$delegate$lambda(this)); var tmp_18 = this; tmp_18._VerbDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_VerbDao$delegate$lambda(this)); var tmp_19 = this; tmp_19._ActivityEntityDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ActivityEntityDao$delegate$lambda(this)); var tmp_20 = this; tmp_20._ReportDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ReportDao$delegate$lambda(this)); var tmp_21 = this; tmp_21._StatementDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StatementDao$delegate$lambda(this)); var tmp_22 = this; tmp_22._ActorDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ActorDao$delegate$lambda(this)); var tmp_23 = this; tmp_23._ClazzLogAttendanceRecordDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogAttendanceRecordDao$delegate$lambda(this)); var tmp_24 = this; tmp_24._ClazzLogDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ClazzLogDao$delegate$lambda(this)); var tmp_25 = this; tmp_25._ScheduleDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ScheduleDao$delegate$lambda(this)); var tmp_26 = this; tmp_26._HolidayCalendarDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_HolidayCalendarDao$delegate$lambda(this)); var tmp_27 = this; tmp_27._HolidayDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_HolidayDao$delegate$lambda(this)); var tmp_28 = this; tmp_28._ClazzAssignmentDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ClazzAssignmentDao$delegate$lambda(this)); var tmp_29 = this; tmp_29._CourseAssignmentSubmissionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionDao$delegate$lambda(this)); var tmp_30 = this; tmp_30._CourseAssignmentSubmissionFileDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentSubmissionFileDao$delegate$lambda(this)); var tmp_31 = this; tmp_31._CourseAssignmentMarkDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseAssignmentMarkDao$delegate$lambda(this)); var tmp_32 = this; tmp_32._CommentsDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CommentsDao$delegate$lambda(this)); var tmp_33 = this; tmp_33._SiteDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_SiteDao$delegate$lambda(this)); var tmp_34 = this; tmp_34._SiteTermsDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_SiteTermsDao$delegate$lambda(this)); var tmp_35 = this; tmp_35._PersonParentJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonParentJoinDao$delegate$lambda(this)); var tmp_36 = this; tmp_36._ScopedGrantDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ScopedGrantDao$delegate$lambda(this)); var tmp_37 = this; tmp_37._ErrorReportDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ErrorReportDao$delegate$lambda(this)); var tmp_38 = this; tmp_38._PersonAuth2Dao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PersonAuth2Dao$delegate$lambda(this)); var tmp_39 = this; tmp_39._UserSessionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_UserSessionDao$delegate$lambda(this)); var tmp_40 = this; tmp_40._CoursePictureDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CoursePictureDao$delegate$lambda(this)); var tmp_41 = this; tmp_41._ContentEntryPictureDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPictureDao$delegate$lambda(this)); var tmp_42 = this; tmp_42._MessageDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_MessageDao$delegate$lambda(this)); var tmp_43 = this; tmp_43._PeerReviewerAllocationDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_PeerReviewerAllocationDao$delegate$lambda(this)); var tmp_44 = this; tmp_44._DiscussionPostDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_DiscussionPostDao$delegate$lambda(this)); var tmp_45 = this; tmp_45._ContentEntryVersionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryVersionDao$delegate$lambda(this)); var tmp_46 = this; tmp_46._OfflineItemDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_OfflineItemDao$delegate$lambda(this)); var tmp_47 = this; tmp_47._DeletedItemDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_DeletedItemDao$delegate$lambda(this)); var tmp_48 = this; tmp_48._EnrolmentRequestDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_EnrolmentRequestDao$delegate$lambda(this)); var tmp_49 = this; tmp_49._CoursePermissionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CoursePermissionDao$delegate$lambda(this)); var tmp_50 = this; tmp_50._SystemPermissionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_SystemPermissionDao$delegate$lambda(this)); var tmp_51 = this; tmp_51._CourseBlockPictureDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_CourseBlockPictureDao$delegate$lambda(this)); var tmp_52 = this; tmp_52._ContentEntryPicture2Dao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ContentEntryPicture2Dao$delegate$lambda(this)); var tmp_53 = this; tmp_53._StudentResultDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StudentResultDao$delegate$lambda(this)); var tmp_54 = this; tmp_54._VerbLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_VerbLangMapEntryDao$delegate$lambda(this)); var tmp_55 = this; tmp_55._GroupMemberActorJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_GroupMemberActorJoinDao$delegate$lambda(this)); var tmp_56 = this; tmp_56._ActivityLangMapEntryDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ActivityLangMapEntryDao$delegate$lambda(this)); var tmp_57 = this; tmp_57._ActivityInteractionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ActivityInteractionDao$delegate$lambda(this)); var tmp_58 = this; tmp_58._ActivityExtensionDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_ActivityExtensionDao$delegate$lambda(this)); var tmp_59 = this; tmp_59._StatementContextActivityJoinDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StatementContextActivityJoinDao$delegate$lambda(this)); var tmp_60 = this; tmp_60._XapiSessionEntityDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_XapiSessionEntityDao$delegate$lambda(this)); var tmp_61 = this; tmp_61._StatementEntityJsonDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StatementEntityJsonDao$delegate$lambda(this)); var tmp_62 = this; tmp_62._StateEntityDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StateEntityDao$delegate$lambda(this)); var tmp_63 = this; tmp_63._StateDeleteCommandDao$delegate_1 = lazy_0(UmAppDatabase_Repo$_StateDeleteCommandDao$delegate$lambda(this)); } protoOf(UmAppDatabase_Repo).get_db_knto1l_k$ = function () { return this.db_1; }; protoOf(UmAppDatabase_Repo).get_config_c0698r_k$ = function () { return this.config_1; }; protoOf(UmAppDatabase_Repo).get_context_h02k06_k$ = function () { return this.config_1.get_context_h02k06_k$(); }; protoOf(UmAppDatabase_Repo).get__httpClient_vck193_k$ = function () { return this.config_1.get_httpClient_cdum84_k$(); }; protoOf(UmAppDatabase_Repo).get__repositoryHelper_4vr2ya_k$ = function () { return this._repositoryHelper_1; }; protoOf(UmAppDatabase_Repo).get_clientId_gs3e9d_k$ = function () { return this.config_1.get_nodeId_h7ho7a_k$(); }; protoOf(UmAppDatabase_Repo).get_dbName_c9i0qa_k$ = function () { return 'Repository for [' + toString(this._db_1) + '] - ' + this.config_1.get_endpoint_30bvdu_k$(); }; protoOf(UmAppDatabase_Repo).set_connectivityStatus_pfu8g2_k$ = function (newValue) { this._repositoryHelper_1.set_connectivityStatus_pfu8g2_k$(newValue); }; protoOf(UmAppDatabase_Repo).get_connectivityStatus_93ttym_k$ = function () { return this._repositoryHelper_1.get_connectivityStatus_93ttym_k$(); }; protoOf(UmAppDatabase_Repo).get_clientState_au6u59_k$ = function () { return this._repositoryHelper_1.get_clientState_au6u59_k$(); }; protoOf(UmAppDatabase_Repo).get_invalidationTracker_tp0k9d_k$ = function () { return this._db_1.get_invalidationTracker_tp0k9d_k$(); }; protoOf(UmAppDatabase_Repo).get_dbVersion_jd6ndd_k$ = function () { return 207; }; protoOf(UmAppDatabase_Repo).clearAllTables_arwceh_k$ = function () { throw IllegalStateException_init_$Create$('Cannot use a repository to clearAllTables!'); }; protoOf(UmAppDatabase_Repo).clearAllTablesAsync_ql6wfg_k$ = function ($completion) { throw IllegalStateException_init_$Create$('Cannot use this to run clearAllTablesAsync'); }; protoOf(UmAppDatabase_Repo).close_yn9xrc_k$ = function () { this._repositoryHelper_1.close_yn9xrc_k$(); }; protoOf(UmAppDatabase_Repo).remoteNodeIdOrNull_xiaqh9_k$ = function () { return this._repositoryHelper_1.remoteNodeIdOrNull_xiaqh9_k$(); }; protoOf(UmAppDatabase_Repo).remoteNodeIdOrFake_xi57q3_k$ = function () { return this._repositoryHelper_1.remoteNodeIdOrFake_xi57q3_k$(); }; protoOf(UmAppDatabase_Repo).createAllTables_v6vepi_k$ = function () { throw IllegalStateException_init_$Create$('Cannot use a repository to createAllTables!'); }; protoOf(UmAppDatabase_Repo).personDao_e3y77h_k$ = function () { return _get__PersonDao__uzj2el(this); }; protoOf(UmAppDatabase_Repo).clazzDao_bk7qje_k$ = function () { return _get__ClazzDao__9uv608(this); }; protoOf(UmAppDatabase_Repo).courseBlockDao_msn3sw_k$ = function () { return _get__CourseBlockDao__4pp4mq(this); }; protoOf(UmAppDatabase_Repo).courseTerminologyDao_p353oa_k$ = function () { return _get__CourseTerminologyDao__a6bld4(this); }; protoOf(UmAppDatabase_Repo).courseGroupSetDao_romfis_k$ = function () { return _get__CourseGroupSetDao__hfsuk6(this); }; protoOf(UmAppDatabase_Repo).courseGroupMemberDao_da0s0k_k$ = function () { return _get__CourseGroupMemberDao__l3hcwy(this); }; protoOf(UmAppDatabase_Repo).clazzEnrolmentDao_8oyet6_k$ = function () { return _get__ClazzEnrolmentDao__q8nlvo(this); }; protoOf(UmAppDatabase_Repo).leavingReasonDao_9i0tra_k$ = function () { return _get__LeavingReasonDao__m21j14(this); }; protoOf(UmAppDatabase_Repo).contentEntryDao_5ggc49_k$ = function () { return _get__ContentEntryDao__asrab3(this); }; protoOf(UmAppDatabase_Repo).contentEntryContentCategoryJoinDao_ehgkae_k$ = function () { return _get__ContentEntryContentCategoryJoinDao__c8c5lk(this); }; protoOf(UmAppDatabase_Repo).contentEntryParentChildJoinDao_7l71wv_k$ = function () { return _get__ContentEntryParentChildJoinDao__moxer(this); }; protoOf(UmAppDatabase_Repo).contentEntryRelatedEntryJoinDao_i6y8co_k$ = function () { return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(this); }; protoOf(UmAppDatabase_Repo).contentCategorySchemaDao_92g6ue_k$ = function () { return _get__ContentCategorySchemaDao__95pyeg(this); }; protoOf(UmAppDatabase_Repo).contentCategoryDao_ww12m3_k$ = function () { return _get__ContentCategoryDao__tsqjyv(this); }; protoOf(UmAppDatabase_Repo).languageDao_jg31ly_k$ = function () { return _get__LanguageDao__1z90w(this); }; protoOf(UmAppDatabase_Repo).languageVariantDao_8ex0aj_k$ = function () { return _get__LanguageVariantDao__rxf1fx(this); }; protoOf(UmAppDatabase_Repo).personAuthDao_tb983v_k$ = function () { throw IllegalStateException_init_$Create$('PersonAuthDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).personGroupDao_lgohk_k$ = function () { return _get__PersonGroupDao__hew8d2(this); }; protoOf(UmAppDatabase_Repo).personGroupMemberDao_v4nqlu_k$ = function () { return _get__PersonGroupMemberDao__mvnpb8(this); }; protoOf(UmAppDatabase_Repo).personPictureDao_jnjrvt_k$ = function () { return _get__PersonPictureDao__2gbg89(this); }; protoOf(UmAppDatabase_Repo).verbDao_5t0jxv_k$ = function () { return _get__VerbDao__618h8p(this); }; protoOf(UmAppDatabase_Repo).activityEntityDao_xla99c_k$ = function () { return _get__ActivityEntityDao__cj0phy(this); }; protoOf(UmAppDatabase_Repo).reportDao_5udmpu_k$ = function () { return _get__ReportDao__jbr9h0(this); }; protoOf(UmAppDatabase_Repo).statementDao_8y5avx_k$ = function () { return _get__StatementDao__fnw41b(this); }; protoOf(UmAppDatabase_Repo).actorDao_rapokj_k$ = function () { return _get__ActorDao__6yq8sr(this); }; protoOf(UmAppDatabase_Repo).clazzLogAttendanceRecordDao_6kuhbg_k$ = function () { return _get__ClazzLogAttendanceRecordDao__r3qxzy(this); }; protoOf(UmAppDatabase_Repo).clazzLogDao_4jisyu_k$ = function () { return _get__ClazzLogDao__xeo15w(this); }; protoOf(UmAppDatabase_Repo).scheduleDao_2wsqkb_k$ = function () { return _get__ScheduleDao__h5s1ch(this); }; protoOf(UmAppDatabase_Repo).holidayCalendarDao_ugpa84_k$ = function () { return _get__HolidayCalendarDao__gbx0p6(this); }; protoOf(UmAppDatabase_Repo).holidayDao_ijvs9y_k$ = function () { return _get__HolidayDao__x92kh4(this); }; protoOf(UmAppDatabase_Repo).clazzAssignmentDao_ta4cfn_k$ = function () { return _get__ClazzAssignmentDao__kc42th(this); }; protoOf(UmAppDatabase_Repo).courseAssignmentSubmissionDao_y3yq7y_k$ = function () { return _get__CourseAssignmentSubmissionDao__ir2b4c(this); }; protoOf(UmAppDatabase_Repo).courseAssignmentSubmissionFileDao_spskde_k$ = function () { return _get__CourseAssignmentSubmissionFileDao__63r33c(this); }; protoOf(UmAppDatabase_Repo).courseAssignmentMarkDao_6irrq5_k$ = function () { return _get__CourseAssignmentMarkDao__yi6swd(this); }; protoOf(UmAppDatabase_Repo).commentsDao_ysx4hq_k$ = function () { return _get__CommentsDao__mxkt84(this); }; protoOf(UmAppDatabase_Repo).syncNodeDao_7tik2d_k$ = function () { throw IllegalStateException_init_$Create$('SyncNodeDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).siteDao_yq9qyz_k$ = function () { return _get__SiteDao__wss4yp(this); }; protoOf(UmAppDatabase_Repo).siteTermsDao_wa3vn6_k$ = function () { return _get__SiteTermsDao__f7rqww(this); }; protoOf(UmAppDatabase_Repo).personParentJoinDao_gvpro7_k$ = function () { return _get__PersonParentJoinDao__o0iclb(this); }; protoOf(UmAppDatabase_Repo).scopedGrantDao_yq1jei_k$ = function () { return _get__ScopedGrantDao__9w613o(this); }; protoOf(UmAppDatabase_Repo).errorReportDao_xwpcpi_k$ = function () { return _get__ErrorReportDao__d8e0x0(this); }; protoOf(UmAppDatabase_Repo).personAuth2Dao_ep6mu5_k$ = function () { return _get__PersonAuth2Dao__uki6ut(this); }; protoOf(UmAppDatabase_Repo).userSessionDao_v2hqyh_k$ = function () { return _get__UserSessionDao__wcreq3(this); }; protoOf(UmAppDatabase_Repo).contentEntryImportJobDao_bjpy9f_k$ = function () { throw IllegalStateException_init_$Create$('ContentEntryImportJobDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).coursePictureDao_4rldqp_k$ = function () { return _get__CoursePictureDao__qr47kz(this); }; protoOf(UmAppDatabase_Repo).contentEntryPictureDao_8lym7n_k$ = function () { return _get__ContentEntryPictureDao__hzeabf(this); }; protoOf(UmAppDatabase_Repo).messageDao_rymlth_k$ = function () { return _get__MessageDao__u7e9l3(this); }; protoOf(UmAppDatabase_Repo).peerReviewerAllocationDao_5g43p1_k$ = function () { return _get__PeerReviewerAllocationDao__m08hnj(this); }; protoOf(UmAppDatabase_Repo).discussionPostDao_z4okmu_k$ = function () { return _get__DiscussionPostDao__bymsxs(this); }; protoOf(UmAppDatabase_Repo).externalAppPermissionDao_tiffyl_k$ = function () { throw IllegalStateException_init_$Create$('ExternalAppPermissionDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).contentEntryVersionDao_66n0fn_k$ = function () { return _get__ContentEntryVersionDao__egjvvj(this); }; protoOf(UmAppDatabase_Repo).outgoingReplicationDao_snyh82_k$ = function () { throw IllegalStateException_init_$Create$('OutgoingReplicationDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).transferJobDao_mx6734_k$ = function () { throw IllegalStateException_init_$Create$('TransferJobDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).transferJobItemDao_wbvozx_k$ = function () { throw IllegalStateException_init_$Create$('TransferJobItemDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).cacheLockJoinDao_yxjk3f_k$ = function () { throw IllegalStateException_init_$Create$('CacheLockJoinDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).offlineItemDao_rdbxlw_k$ = function () { return _get__OfflineItemDao__4yjkly(this); }; protoOf(UmAppDatabase_Repo).deletedItemDao_2gyh22_k$ = function () { return _get__DeletedItemDao__4i3s1g(this); }; protoOf(UmAppDatabase_Repo).enrolmentRequestDao_hchxfd_k$ = function () { return _get__EnrolmentRequestDao__wkcqzn(this); }; protoOf(UmAppDatabase_Repo).coursePermissionDao_t5l7mw_k$ = function () { return _get__CoursePermissionDao__hib1jy(this); }; protoOf(UmAppDatabase_Repo).systemPermissionDao_fl20r8_k$ = function () { return _get__SystemPermissionDao__c05myy(this); }; protoOf(UmAppDatabase_Repo).courseBlockPictureDao_hf3pty_k$ = function () { return _get__CourseBlockPictureDao__hx4ubg(this); }; protoOf(UmAppDatabase_Repo).contentEntryPicture2Dao_h7azt1_k$ = function () { return _get__ContentEntryPicture2Dao__ah6hid(this); }; protoOf(UmAppDatabase_Repo).transferJobErrorDao_bf4uho_k$ = function () { throw IllegalStateException_init_$Create$('TransferJobErrorDao is not annotated with @Repository'); }; protoOf(UmAppDatabase_Repo).studentResultDao_dmms6y_k$ = function () { return _get__StudentResultDao__sr8vqw(this); }; protoOf(UmAppDatabase_Repo).verbLangMapEntryDao_egt3yn_k$ = function () { return _get__VerbLangMapEntryDao__oda6e3(this); }; protoOf(UmAppDatabase_Repo).groupMemberActorJoinDao_sbul1w_k$ = function () { return _get__GroupMemberActorJoinDao__jlmme6(this); }; protoOf(UmAppDatabase_Repo).activityLangMapEntryDao_1efc67_k$ = function () { return _get__ActivityLangMapEntryDao__htpiob(this); }; protoOf(UmAppDatabase_Repo).activityInteractionDao_ya39jj_k$ = function () { return _get__ActivityInteractionDao__x272ir(this); }; protoOf(UmAppDatabase_Repo).activityExtensionDao_w9zywu_k$ = function () { return _get__ActivityExtensionDao__cpvg5s(this); }; protoOf(UmAppDatabase_Repo).statementContextActivityJoinDao_w1mheh_k$ = function () { return _get__StatementContextActivityJoinDao__t5jinj(this); }; protoOf(UmAppDatabase_Repo).xapiSessionEntityDao_h5sw3p_k$ = function () { return _get__XapiSessionEntityDao__tpjn2v(this); }; protoOf(UmAppDatabase_Repo).statementEntityJsonDao_us6vig_k$ = function () { return _get__StatementEntityJsonDao__4ym94q(this); }; protoOf(UmAppDatabase_Repo).stateEntityDao_ssmjmq_k$ = function () { return _get__StateEntityDao__vtinv8(this); }; protoOf(UmAppDatabase_Repo).stateDeleteCommandDao_55kv0j_k$ = function () { return _get__StateDeleteCommandDao__s2ay7b(this); }; protoOf(UmAppDatabase_Repo).reportRunResultRowDao_6jkhck_k$ = function () { throw IllegalStateException_init_$Create$('ReportQueryResultDao is not annotated with @Repository'); }; function _PersonDao$factory_1() { return getPropertyCallableRef('_PersonDao', 1, KProperty1, function (receiver) { return _get__PersonDao__uzj2el(receiver); }, null); } function _ClazzDao$factory_1() { return getPropertyCallableRef('_ClazzDao', 1, KProperty1, function (receiver) { return _get__ClazzDao__9uv608(receiver); }, null); } function _CourseBlockDao$factory_1() { return getPropertyCallableRef('_CourseBlockDao', 1, KProperty1, function (receiver) { return _get__CourseBlockDao__4pp4mq(receiver); }, null); } function _CourseTerminologyDao$factory_1() { return getPropertyCallableRef('_CourseTerminologyDao', 1, KProperty1, function (receiver) { return _get__CourseTerminologyDao__a6bld4(receiver); }, null); } function _CourseGroupSetDao$factory_1() { return getPropertyCallableRef('_CourseGroupSetDao', 1, KProperty1, function (receiver) { return _get__CourseGroupSetDao__hfsuk6(receiver); }, null); } function _CourseGroupMemberDao$factory_1() { return getPropertyCallableRef('_CourseGroupMemberDao', 1, KProperty1, function (receiver) { return _get__CourseGroupMemberDao__l3hcwy(receiver); }, null); } function _ClazzEnrolmentDao$factory_1() { return getPropertyCallableRef('_ClazzEnrolmentDao', 1, KProperty1, function (receiver) { return _get__ClazzEnrolmentDao__q8nlvo(receiver); }, null); } function _LeavingReasonDao$factory_1() { return getPropertyCallableRef('_LeavingReasonDao', 1, KProperty1, function (receiver) { return _get__LeavingReasonDao__m21j14(receiver); }, null); } function _ContentEntryDao$factory_1() { return getPropertyCallableRef('_ContentEntryDao', 1, KProperty1, function (receiver) { return _get__ContentEntryDao__asrab3(receiver); }, null); } function _ContentEntryContentCategoryJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryContentCategoryJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryContentCategoryJoinDao__c8c5lk(receiver); }, null); } function _ContentEntryParentChildJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryParentChildJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryParentChildJoinDao__moxer(receiver); }, null); } function _ContentEntryRelatedEntryJoinDao$factory_1() { return getPropertyCallableRef('_ContentEntryRelatedEntryJoinDao', 1, KProperty1, function (receiver) { return _get__ContentEntryRelatedEntryJoinDao__wdqzcu(receiver); }, null); } function _ContentCategorySchemaDao$factory_1() { return getPropertyCallableRef('_ContentCategorySchemaDao', 1, KProperty1, function (receiver) { return _get__ContentCategorySchemaDao__95pyeg(receiver); }, null); } function _ContentCategoryDao$factory_1() { return getPropertyCallableRef('_ContentCategoryDao', 1, KProperty1, function (receiver) { return _get__ContentCategoryDao__tsqjyv(receiver); }, null); } function _LanguageDao$factory_1() { return getPropertyCallableRef('_LanguageDao', 1, KProperty1, function (receiver) { return _get__LanguageDao__1z90w(receiver); }, null); } function _LanguageVariantDao$factory_1() { return getPropertyCallableRef('_LanguageVariantDao', 1, KProperty1, function (receiver) { return _get__LanguageVariantDao__rxf1fx(receiver); }, null); } function _PersonGroupDao$factory_1() { return getPropertyCallableRef('_PersonGroupDao', 1, KProperty1, function (receiver) { return _get__PersonGroupDao__hew8d2(receiver); }, null); } function _PersonGroupMemberDao$factory_1() { return getPropertyCallableRef('_PersonGroupMemberDao', 1, KProperty1, function (receiver) { return _get__PersonGroupMemberDao__mvnpb8(receiver); }, null); } function _PersonPictureDao$factory_1() { return getPropertyCallableRef('_PersonPictureDao', 1, KProperty1, function (receiver) { return _get__PersonPictureDao__2gbg89(receiver); }, null); } function _VerbDao$factory_1() { return getPropertyCallableRef('_VerbDao', 1, KProperty1, function (receiver) { return _get__VerbDao__618h8p(receiver); }, null); } function _ActivityEntityDao$factory_1() { return getPropertyCallableRef('_ActivityEntityDao', 1, KProperty1, function (receiver) { return _get__ActivityEntityDao__cj0phy(receiver); }, null); } function _ReportDao$factory_1() { return getPropertyCallableRef('_ReportDao', 1, KProperty1, function (receiver) { return _get__ReportDao__jbr9h0(receiver); }, null); } function _StatementDao$factory_1() { return getPropertyCallableRef('_StatementDao', 1, KProperty1, function (receiver) { return _get__StatementDao__fnw41b(receiver); }, null); } function _ActorDao$factory_1() { return getPropertyCallableRef('_ActorDao', 1, KProperty1, function (receiver) { return _get__ActorDao__6yq8sr(receiver); }, null); } function _ClazzLogAttendanceRecordDao$factory_1() { return getPropertyCallableRef('_ClazzLogAttendanceRecordDao', 1, KProperty1, function (receiver) { return _get__ClazzLogAttendanceRecordDao__r3qxzy(receiver); }, null); } function _ClazzLogDao$factory_1() { return getPropertyCallableRef('_ClazzLogDao', 1, KProperty1, function (receiver) { return _get__ClazzLogDao__xeo15w(receiver); }, null); } function _ScheduleDao$factory_1() { return getPropertyCallableRef('_ScheduleDao', 1, KProperty1, function (receiver) { return _get__ScheduleDao__h5s1ch(receiver); }, null); } function _HolidayCalendarDao$factory_1() { return getPropertyCallableRef('_HolidayCalendarDao', 1, KProperty1, function (receiver) { return _get__HolidayCalendarDao__gbx0p6(receiver); }, null); } function _HolidayDao$factory_1() { return getPropertyCallableRef('_HolidayDao', 1, KProperty1, function (receiver) { return _get__HolidayDao__x92kh4(receiver); }, null); } function _ClazzAssignmentDao$factory_1() { return getPropertyCallableRef('_ClazzAssignmentDao', 1, KProperty1, function (receiver) { return _get__ClazzAssignmentDao__kc42th(receiver); }, null); } function _CourseAssignmentSubmissionDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentSubmissionDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentSubmissionDao__ir2b4c(receiver); }, null); } function _CourseAssignmentSubmissionFileDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentSubmissionFileDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentSubmissionFileDao__63r33c(receiver); }, null); } function _CourseAssignmentMarkDao$factory_1() { return getPropertyCallableRef('_CourseAssignmentMarkDao', 1, KProperty1, function (receiver) { return _get__CourseAssignmentMarkDao__yi6swd(receiver); }, null); } function _CommentsDao$factory_1() { return getPropertyCallableRef('_CommentsDao', 1, KProperty1, function (receiver) { return _get__CommentsDao__mxkt84(receiver); }, null); } function _SiteDao$factory_1() { return getPropertyCallableRef('_SiteDao', 1, KProperty1, function (receiver) { return _get__SiteDao__wss4yp(receiver); }, null); } function _SiteTermsDao$factory_1() { return getPropertyCallableRef('_SiteTermsDao', 1, KProperty1, function (receiver) { return _get__SiteTermsDao__f7rqww(receiver); }, null); } function _PersonParentJoinDao$factory_1() { return getPropertyCallableRef('_PersonParentJoinDao', 1, KProperty1, function (receiver) { return _get__PersonParentJoinDao__o0iclb(receiver); }, null); } function _ScopedGrantDao$factory_1() { return getPropertyCallableRef('_ScopedGrantDao', 1, KProperty1, function (receiver) { return _get__ScopedGrantDao__9w613o(receiver); }, null); } function _ErrorReportDao$factory_1() { return getPropertyCallableRef('_ErrorReportDao', 1, KProperty1, function (receiver) { return _get__ErrorReportDao__d8e0x0(receiver); }, null); } function _PersonAuth2Dao$factory_1() { return getPropertyCallableRef('_PersonAuth2Dao', 1, KProperty1, function (receiver) { return _get__PersonAuth2Dao__uki6ut(receiver); }, null); } function _UserSessionDao$factory_1() { return getPropertyCallableRef('_UserSessionDao', 1, KProperty1, function (receiver) { return _get__UserSessionDao__wcreq3(receiver); }, null); } function _CoursePictureDao$factory_1() { return getPropertyCallableRef('_CoursePictureDao', 1, KProperty1, function (receiver) { return _get__CoursePictureDao__qr47kz(receiver); }, null); } function _ContentEntryPictureDao$factory_1() { return getPropertyCallableRef('_ContentEntryPictureDao', 1, KProperty1, function (receiver) { return _get__ContentEntryPictureDao__hzeabf(receiver); }, null); } function _MessageDao$factory_1() { return getPropertyCallableRef('_MessageDao', 1, KProperty1, function (receiver) { return _get__MessageDao__u7e9l3(receiver); }, null); } function _PeerReviewerAllocationDao$factory_1() { return getPropertyCallableRef('_PeerReviewerAllocationDao', 1, KProperty1, function (receiver) { return _get__PeerReviewerAllocationDao__m08hnj(receiver); }, null); } function _DiscussionPostDao$factory_1() { return getPropertyCallableRef('_DiscussionPostDao', 1, KProperty1, function (receiver) { return _get__DiscussionPostDao__bymsxs(receiver); }, null); } function _ContentEntryVersionDao$factory_1() { return getPropertyCallableRef('_ContentEntryVersionDao', 1, KProperty1, function (receiver) { return _get__ContentEntryVersionDao__egjvvj(receiver); }, null); } function _OfflineItemDao$factory_1() { return getPropertyCallableRef('_OfflineItemDao', 1, KProperty1, function (receiver) { return _get__OfflineItemDao__4yjkly(receiver); }, null); } function _DeletedItemDao$factory_0() { return getPropertyCallableRef('_DeletedItemDao', 1, KProperty1, function (receiver) { return _get__DeletedItemDao__4i3s1g(receiver); }, null); } function _EnrolmentRequestDao$factory_1() { return getPropertyCallableRef('_EnrolmentRequestDao', 1, KProperty1, function (receiver) { return _get__EnrolmentRequestDao__wkcqzn(receiver); }, null); } function _CoursePermissionDao$factory_1() { return getPropertyCallableRef('_CoursePermissionDao', 1, KProperty1, function (receiver) { return _get__CoursePermissionDao__hib1jy(receiver); }, null); } function _SystemPermissionDao$factory_1() { return getPropertyCallableRef('_SystemPermissionDao', 1, KProperty1, function (receiver) { return _get__SystemPermissionDao__c05myy(receiver); }, null); } function _CourseBlockPictureDao$factory_1() { return getPropertyCallableRef('_CourseBlockPictureDao', 1, KProperty1, function (receiver) { return _get__CourseBlockPictureDao__hx4ubg(receiver); }, null); } function _ContentEntryPicture2Dao$factory_1() { return getPropertyCallableRef('_ContentEntryPicture2Dao', 1, KProperty1, function (receiver) { return _get__ContentEntryPicture2Dao__ah6hid(receiver); }, null); } function _StudentResultDao$factory_1() { return getPropertyCallableRef('_StudentResultDao', 1, KProperty1, function (receiver) { return _get__StudentResultDao__sr8vqw(receiver); }, null); } function _VerbLangMapEntryDao$factory_1() { return getPropertyCallableRef('_VerbLangMapEntryDao', 1, KProperty1, function (receiver) { return _get__VerbLangMapEntryDao__oda6e3(receiver); }, null); } function _GroupMemberActorJoinDao$factory_1() { return getPropertyCallableRef('_GroupMemberActorJoinDao', 1, KProperty1, function (receiver) { return _get__GroupMemberActorJoinDao__jlmme6(receiver); }, null); } function _ActivityLangMapEntryDao$factory_1() { return getPropertyCallableRef('_ActivityLangMapEntryDao', 1, KProperty1, function (receiver) { return _get__ActivityLangMapEntryDao__htpiob(receiver); }, null); } function _ActivityInteractionDao$factory_1() { return getPropertyCallableRef('_ActivityInteractionDao', 1, KProperty1, function (receiver) { return _get__ActivityInteractionDao__x272ir(receiver); }, null); } function _ActivityExtensionDao$factory_1() { return getPropertyCallableRef('_ActivityExtensionDao', 1, KProperty1, function (receiver) { return _get__ActivityExtensionDao__cpvg5s(receiver); }, null); } function _StatementContextActivityJoinDao$factory_1() { return getPropertyCallableRef('_StatementContextActivityJoinDao', 1, KProperty1, function (receiver) { return _get__StatementContextActivityJoinDao__t5jinj(receiver); }, null); } function _XapiSessionEntityDao$factory_1() { return getPropertyCallableRef('_XapiSessionEntityDao', 1, KProperty1, function (receiver) { return _get__XapiSessionEntityDao__tpjn2v(receiver); }, null); } function _StatementEntityJsonDao$factory_1() { return getPropertyCallableRef('_StatementEntityJsonDao', 1, KProperty1, function (receiver) { return _get__StatementEntityJsonDao__4ym94q(receiver); }, null); } function _StateEntityDao$factory_1() { return getPropertyCallableRef('_StateEntityDao', 1, KProperty1, function (receiver) { return _get__StateEntityDao__vtinv8(receiver); }, null); } function _StateDeleteCommandDao$factory_1() { return getPropertyCallableRef('_StateDeleteCommandDao', 1, KProperty1, function (receiver) { return _get__StateDeleteCommandDao__s2ay7b(receiver); }, null); } function CacheLockJoinDao() { } function CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda$lambda(_result) { return mapRows(_result, CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda$lambda$lambda(_result)); } function CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cljId = $_result.getInt_npc9pd_k$('cljId'); var _tmp_cljTableId = $_result.getInt_npc9pd_k$('cljTableId'); var _tmp_cljEntityUid = $_result.getLong_3wgf2g_k$('cljEntityUid'); var _tmp_cljUrl = $_result.getString_gb1pt9_k$('cljUrl'); var _tmp_cljLockId = $_result.getLong_3wgf2g_k$('cljLockId'); var _tmp_cljStatus = $_result.getInt_npc9pd_k$('cljStatus'); var _tmp_cljType = $_result.getInt_npc9pd_k$('cljType'); var _tmp_cljOiUid = $_result.getLong_3wgf2g_k$('cljOiUid'); // Inline function 'kotlin.apply' call var this_0 = new CacheLockJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CacheLockJoinDao_JdbcImpl.findPendingLocks....' call this_0.set_cljId_qcjql3_k$(_tmp_cljId); this_0.set_cljTableId_9xvs59_k$(_tmp_cljTableId); this_0.set_cljEntityUid_s4inn9_k$(_tmp_cljEntityUid); this_0.set_cljUrl_wt3f0s_k$(_tmp_cljUrl); this_0.set_cljLockId_of2o18_k$(_tmp_cljLockId); this_0.set_cljStatus_9olbm6_k$(_tmp_cljStatus); this_0.set_cljType_t4jady_k$(_tmp_cljType); this_0.set_cljOiUid_tqx2s4_k$(_tmp_cljOiUid); return this_0; }; } function CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda(_result) { return mapRows(_result, CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda$lambda(_result)); } function CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cljId = $_result.getInt_npc9pd_k$('cljId'); var _tmp_cljTableId = $_result.getInt_npc9pd_k$('cljTableId'); var _tmp_cljEntityUid = $_result.getLong_3wgf2g_k$('cljEntityUid'); var _tmp_cljUrl = $_result.getString_gb1pt9_k$('cljUrl'); var _tmp_cljLockId = $_result.getLong_3wgf2g_k$('cljLockId'); var _tmp_cljStatus = $_result.getInt_npc9pd_k$('cljStatus'); var _tmp_cljType = $_result.getInt_npc9pd_k$('cljType'); var _tmp_cljOiUid = $_result.getLong_3wgf2g_k$('cljOiUid'); // Inline function 'kotlin.apply' call var this_0 = new CacheLockJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CacheLockJoinDao_JdbcImpl.findByTableIdAndEntityUid....' call this_0.set_cljId_qcjql3_k$(_tmp_cljId); this_0.set_cljTableId_9xvs59_k$(_tmp_cljTableId); this_0.set_cljEntityUid_s4inn9_k$(_tmp_cljEntityUid); this_0.set_cljUrl_wt3f0s_k$(_tmp_cljUrl); this_0.set_cljLockId_of2o18_k$(_tmp_cljLockId); this_0.set_cljStatus_9olbm6_k$(_tmp_cljStatus); this_0.set_cljType_t4jady_k$(_tmp_cljType); this_0.set_cljOiUid_tqx2s4_k$(_tmp_cljOiUid); return this_0; }; } function CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CacheLockJoin (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).bindPreparedStmtToEntity_w7vqds_k$ = function (stmt, entity) { if (entity.get_cljId_ips9gz_k$() === 0) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setInt_c72a8z_k$(1, entity.get_cljId_ips9gz_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_cljTableId_fyqczz_k$()); stmt.setLong_j1sybo_k$(3, entity.get_cljEntityUid_l5u2z9_k$()); stmt.setString_2gt7ua_k$(4, entity.get_cljUrl_byfz4n_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cljLockId_k4ljeq_k$()); stmt.setInt_c72a8z_k$(6, entity.get_cljStatus_gqk9x2_k$()); stmt.setInt_c72a8z_k$(7, entity.get_cljType_fi6hhu_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cljOiUid_gn922q_k$()); }; protoOf(CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_w7vqds_k$(stmt, entity instanceof CacheLockJoin ? entity : THROW_CCE()); }; function CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda($list, $_numChanges, resultContinuation) { this.$list_1 = $list; this.$_numChanges_1 = $_numChanges; CoroutineImpl.call(this, resultContinuation); } protoOf(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$list_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setInt_c72a8z_k$(1, this._entity1__1.get_cljId_ips9gz_k$()); this.ARGUMENT2__1 = this.$_numChanges_1._v; this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT2__1 + ARGUMENT | 0; this.$_numChanges_1._v = ARGUMENT_0; this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda(this.$list_1, this.$_numChanges_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda_0($list, $_numChanges, resultContinuation) { var i = new CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda($list, $_numChanges, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda).invoke_qvx4yx_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qvx4yx_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda_0(resultContinuation) { var i = new CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qvx4yx_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda($lockId, $status, $uid, resultContinuation) { this.$lockId_1 = $lockId; this.$status_1 = $status; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$lockId_1); this._stmt_1.setInt_c72a8z_k$(2, this.$status_1); this._stmt_1.setInt_c72a8z_k$(3, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda(this.$lockId_1, this.$status_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda_0($lockId, $status, $uid, resultContinuation) { var i = new CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda($lockId, $status, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda($tableId, $entityUid, resultContinuation) { this.$tableId_1 = $tableId; this.$entityUid_1 = $entityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda).invoke_qvx4yx_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qvx4yx_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$tableId_1); this._stmt_1.setLong_j1sybo_k$(2, this.$entityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda(this.$tableId_1, this.$entityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda_0($tableId, $entityUid, resultContinuation) { var i = new CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda($tableId, $entityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qvx4yx_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateLockIdAndStatusCOROUTINE$0(_this__u8e3s4, uid, lockId, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.lockId_1 = lockId; this.status_1 = status; } protoOf($updateLockIdAndStatusCOROUTINE$0).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CacheLockJoin\n SET cljLockId = CAST(? AS BIGINT),\n cljStatus = ?\n WHERE cljId = ? \n ', VOID, VOID, VOID, '\n UPDATE CacheLockJoin\n SET cljLockId = ?,\n cljStatus = ?\n WHERE cljId = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CacheLockJoinDao_JdbcImpl$updateLockIdAndStatus$slambda_0(this.lockId_1, this.status_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CacheLockJoinDao_JdbcImpl(_db) { CacheLockJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCacheLockJoin_abort_1 = new CacheLockJoinDao_JdbcImpl$_insertAdapterCacheLockJoin_abort$1(this); } protoOf(CacheLockJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CacheLockJoinDao_JdbcImpl).get__insertAdapterCacheLockJoin_abort_l5shko_k$ = function () { return this._insertAdapterCacheLockJoin_abort_1; }; protoOf(CacheLockJoinDao_JdbcImpl).insertListAsync_psjtd0_k$ = function (list, $completion) { return this._insertAdapterCacheLockJoin_abort_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(CacheLockJoinDao_JdbcImpl).deleteListAsync_sjxw7q_k$ = function (list, $completion) { var _numChanges = {_v: 0}; return prepareAndUseStatementAsync_0(this._db_1, 'DELETE FROM CacheLockJoin WHERE cljId = ?', VOID, CacheLockJoinDao_JdbcImpl$deleteListAsync$slambda_0(list, _numChanges, null), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl).findPendingLocks_kzwz63_k$ = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT CacheLockJoin.*\n FROM CacheLockJoin\n WHERE CacheLockJoin.cljStatus = 1 \n OR CacheLockJoin.cljStatus = 3\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, CacheLockJoinDao_JdbcImpl$findPendingLocks$slambda_0(null), $completion); }; protoOf(CacheLockJoinDao_JdbcImpl).updateLockIdAndStatus_vtbtox_k$ = function (uid, lockId, status, $completion) { var tmp = new $updateLockIdAndStatusCOROUTINE$0(this, uid, lockId, status, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CacheLockJoinDao_JdbcImpl).findByTableIdAndEntityUid_kuth80_k$ = function (tableId, entityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CacheLockJoin.*\n FROM CacheLockJoin\n WHERE CacheLockJoin.cljTableId = ?\n AND CacheLockJoin.cljEntityUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT CacheLockJoin.*\n FROM CacheLockJoin\n WHERE CacheLockJoin.cljTableId = ?\n AND CacheLockJoin.cljEntityUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CacheLockJoinDao_JdbcImpl$findByTableIdAndEntityUid$slambda_0(tableId, entityUid, null), $completion); }; function ClazzAssignmentDao() { } function _get__db__e63s44_1($this) { return $this._db_1; } function _get__dao__d2kw60($this) { return $this._dao_1; } function $upsertListAsyncCOROUTINE$1(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($upsertListAsyncCOROUTINE$1).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_caUid_ipktt5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_caUid_qwqlvb_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_caLct_ijftwk_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_y4sc7o_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$2(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$2).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_caUid_ipktt5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_caUid_qwqlvb_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_caLct_ijftwk_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_caUid_ipktt5_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertListAsyncCOROUTINE$3(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$3).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_caUid_ipktt5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(520, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_caUid_qwqlvb_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_caLct_ijftwk_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_it2cbm_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzAssignmentDao_DoorWrapper(_db, _dao) { ClazzAssignmentDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ClazzAssignmentDao_DoorWrapper).getAllAssignmentsByClazzUidAsync_8t9vpj_k$ = function (clazzUid, $completion) { return this._dao_1.getAllAssignmentsByClazzUidAsync_8t9vpj_k$(clazzUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return this._dao_1.updateActiveByUid_i0tn2u_k$(cbUid, active, changeTime, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getProgressSummaryForAssignment_eztqm7_k$ = function (assignmentUid, clazzUid, accountPersonUid, group) { return this._dao_1.getProgressSummaryForAssignment_eztqm7_k$(assignmentUid, clazzUid, accountPersonUid, group); }; protoOf(ClazzAssignmentDao_DoorWrapper).getAssignmentSubmitterSummaryListForAssignment_l6ngse_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { return this._dao_1.getAssignmentSubmitterSummaryListForAssignment_l6ngse_k$(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption); }; protoOf(ClazzAssignmentDao_DoorWrapper).getCourseGroupMembersByAssignmentUid_8vggbz_k$ = function (assignmentUid, $completion) { return this._dao_1.getCourseGroupMembersByAssignmentUid_8vggbz_k$(assignmentUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getAssignmentSubmissionsByAssignmentUid_95wiro_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { return this._dao_1.getAssignmentSubmissionsByAssignmentUid_95wiro_k$(assignmentUid, clazzUid, accountPersonUid, group, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getAssignmentMarksByAssignmentUid_wbscg6_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { return this._dao_1.getAssignmentMarksByAssignmentUid_wbscg6_k$(assignmentUid, clazzUid, accountPersonUid, group, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getPeerReviewerAllocationsByAssignmentUid_kohth7_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { return this._dao_1.getPeerReviewerAllocationsByAssignmentUid_kohth7_k$(assignmentUid, clazzUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getPeerReviewAllocationsForPerson_w4t4se_k$ = function (assignmentUid, accountPersonUid, $completion) { return this._dao_1.getPeerReviewAllocationsForPerson_w4t4se_k$(assignmentUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getSubmitterUidsByClazzOrGroupSetUid_9clzlq_k$ = function (clazzUid, groupSetUid, time, $completion) { return this._dao_1.getSubmitterUidsByClazzOrGroupSetUid_9clzlq_k$(clazzUid, groupSetUid, time, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getSubmitterUidsAndNameByClazzOrGroupSetUid_2jt2i_k$ = function (clazzUid, groupSetUid, date, groupStr, $completion) { return this._dao_1.getSubmitterUidsAndNameByClazzOrGroupSetUid_2jt2i_k$(clazzUid, groupSetUid, date, groupStr, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getSubmitterCountFromAssignment_rggsmm_k$ = function (groupUid, clazzUid, group, $completion) { return this._dao_1.getSubmitterCountFromAssignment_rggsmm_k$(groupUid, clazzUid, group, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getSubmitterUid_tp5cym_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { return this._dao_1.getSubmitterUid_tp5cym_k$(assignmentUid, clazzUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).updateAsync_b8iwkk_k$ = function (clazzAssignment, $completion) { clazzAssignment.set_caLct_ijftwk_k$(systemTimeInMillis()); return this._dao_1.updateAsync_b8iwkk_k$(clazzAssignment, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findByUidAsync_y3r48q_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_y3r48q_k$(uid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { return this._dao_1.findByUidAndClazzUidAsFlow_nrf1o1_k$(uid, clazzUid); }; protoOf(ClazzAssignmentDao_DoorWrapper).findByUidAndClazzUidAsync_bk2qet_k$ = function (assignmentUid, clazzUid, $completion) { return this._dao_1.findByUidAndClazzUidAsync_bk2qet_k$(assignmentUid, clazzUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getGroupUidFromAssignment_qdi68v_k$ = function (uid, $completion) { return this._dao_1.getGroupUidFromAssignment_qdi68v_k$(uid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getMarkingTypeFromAssignment_b4nwkl_k$ = function (uid, $completion) { return this._dao_1.getMarkingTypeFromAssignment_b4nwkl_k$(uid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findByUidWithBlockAsync_naj0zk_k$ = function (uid, $completion) { return this._dao_1.findByUidWithBlockAsync_naj0zk_k$(uid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findClazzAssignment_atw59w_k$ = function () { throw IllegalStateException_init_$Create$('findClazzAssignment: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzAssignmentDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(ClazzAssignmentDao_DoorWrapper).upsertListAsync_y4sc7o_k$ = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$1(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_DoorWrapper).updateActiveByList_ieobpc_k$ = function (uidList, active, changeTime, $completion) { return this._dao_1.updateActiveByList_ieobpc_k$(uidList, active, changeTime, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findAssignmentCourseBlockAndSubmitterUidAsFlow_pyqyxo_k$ = function (assignmentUid, clazzUid, accountPersonUid) { return this._dao_1.findAssignmentCourseBlockAndSubmitterUidAsFlow_pyqyxo_k$(assignmentUid, clazzUid, accountPersonUid); }; protoOf(ClazzAssignmentDao_DoorWrapper).findEnrolmentsByPersonUidAndAssignmentUid_ry7low_k$ = function (assignmentUid, accountPersonUid, $completion) { return this._dao_1.findEnrolmentsByPersonUidAndAssignmentUid_ry7low_k$(assignmentUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findCourseGroupMembersByPersonUidAndAssignmentUid_xbalkq_k$ = function (assignmentUid, accountPersonUid, $completion) { return this._dao_1.findCourseGroupMembersByPersonUidAndAssignmentUid_xbalkq_k$(assignmentUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).findPeerReviewerAllocationsByPersonUidAndAssignmentUid_43gd8g_k$ = function (assignmentUid, accountPersonUid, $completion) { return this._dao_1.findPeerReviewerAllocationsByPersonUidAndAssignmentUid_43gd8g_k$(assignmentUid, accountPersonUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).getLatestSubmissionTimeAllowed_uvkkbx_k$ = function (assignmentUid, $completion) { return this._dao_1.getLatestSubmissionTimeAllowed_uvkkbx_k$(assignmentUid, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).insert_ichkb1_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzAssignmentDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_ichkb1_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertAsync_n6fqfo_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$2(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_n6fqfo_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertList_ex3hyb_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ex3hyb_k$(entityList); }; protoOf(ClazzAssignmentDao_DoorWrapper).update_jt7o6l_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzAssignmentDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_jt7o6l_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertListAsync_nja956_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$3(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_DoorWrapper).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_nja956_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).updateListAsync_g40gxm_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_DoorWrapper.updateListAsync.' call element.set_caLct_ijftwk_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_mdh99q_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_DoorWrapper).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_g40gxm_k$(entityList, $completion); }; function ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getAllAssignmentsByClazzUidAsync....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submittedStudents = $_result.getInt_npc9pd_k$('submittedStudents'); var _tmp_totalStudents = $_result.getInt_npc9pd_k$('totalStudents'); var _tmp_markedStudents = $_result.getInt_npc9pd_k$('markedStudents'); var _tmp_activeUserHasViewLearnerRecordsPermission = $_result.getBoolean_xz3hoo_k$('activeUserHasViewLearnerRecordsPermission'); var _tmp_isGroupAssignment = $_result.getBoolean_xz3hoo_k$('isGroupAssignment'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentProgressSummary(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getProgressSummaryForAssignment.....' call this_0.set_submittedStudents_3rq5ou_k$(_tmp_submittedStudents); this_0.set_totalStudents_zdd8hj_k$(_tmp_totalStudents); this_0.set_markedStudents_cjfldz_k$(_tmp_markedStudents); this_0.set_activeUserHasViewLearnerRecordsPermission_27x37o_k$(_tmp_activeUserHasViewLearnerRecordsPermission); this_0.set_isGroupAssignment_vlqu4w_k$(_tmp_isGroupAssignment); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).invoke_hrl9f1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_hrl9f1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$group_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_hrl9f1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submitterUid = $_result.getLong_3wgf2g_k$('submitterUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_latestPrivateComment = $_result.getString_gb1pt9_k$('latestPrivateComment'); var _tmp_fileSubmissionStatus = $_result.getInt_npc9pd_k$('fileSubmissionStatus'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentSubmitterSummary(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_submitterUid_5nf92e_k$(_tmp_submitterUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); this_0.set_latestPrivateComment_l14w5z_k$(_tmp_latestPrivateComment); this_0.set_fileSubmissionStatus_k5sqvj_k$(_tmp_fileSubmissionStatus); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; this.$searchText_1 = $searchText; this.$sortOption_1 = $sortOption; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).invoke_l6ifsi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_l6ifsi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$group_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$assignmentUid_1); this._stmt_1.setString_2gt7ua_k$(23, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(24, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(25, this.$sortOption_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOption_1); this._stmt_1.setInt_c72a8z_k$(27, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(28, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, this.$searchText_1, this.$sortOption_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_l6ifsi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; this.$searchText_1 = $searchText; this.$sortOption_1 = $sortOption; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$group_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$assignmentUid_1); this._stmt_1.setString_2gt7ua_k$(23, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(24, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(25, this.$sortOption_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOption_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, this.$searchText_1, this.$sortOption_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getCourseGroupMembersByAssignmentUid....' call this_0.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_0.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_0.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_0.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_0.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getAssignmentSubmissionsByAssignmentUid....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_camUid = $_result.getLong_3wgf2g_k$('camUid'); var _tmp_camAssignmentUid = $_result.getLong_3wgf2g_k$('camAssignmentUid'); var _tmp_camSubmitterUid = $_result.getLong_3wgf2g_k$('camSubmitterUid'); var _tmp_camMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('camMarkerSubmitterUid'); var _tmp_camMarkerPersonUid = $_result.getLong_3wgf2g_k$('camMarkerPersonUid'); var _tmp_camMarkerComment = $_result.getString_gb1pt9_k$('camMarkerComment'); var _tmp_camMark = $_result.getFloat_1jlp7w_k$('camMark'); var _tmp_camMaxMark = $_result.getFloat_1jlp7w_k$('camMaxMark'); var _tmp_camPenalty = $_result.getFloat_1jlp7w_k$('camPenalty'); var _tmp_camLct = $_result.getLong_3wgf2g_k$('camLct'); var _tmp_camClazzUid = $_result.getLong_3wgf2g_k$('camClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getAssignmentMarksByAssignmentUid....' call this_0.set_camUid_ejfae8_k$(_tmp_camUid); this_0.set_camAssignmentUid_j3ay0j_k$(_tmp_camAssignmentUid); this_0.set_camSubmitterUid_kl6od7_k$(_tmp_camSubmitterUid); this_0.set_camMarkerSubmitterUid_eboa5x_k$(_tmp_camMarkerSubmitterUid); this_0.set_camMarkerPersonUid_xbe3hr_k$(_tmp_camMarkerPersonUid); this_0.set_camMarkerComment_by6xyc_k$(_tmp_camMarkerComment); this_0.set_camMark_87svl5_k$(_tmp_camMark); this_0.set_camMaxMark_ahvi6h_k$(_tmp_camMaxMark); this_0.set_camPenalty_f53gbz_k$(_tmp_camPenalty); this_0.set_camLct_mwq2cz_k$(_tmp_camLct); this_0.set_camClazzUid_408elw_k$(_tmp_camClazzUid); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.getLong_3wgf2g_k$('praUid'); var _tmp_praMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.getLong_3wgf2g_k$('praAssignmentUid'); var _tmp_praActive = $_result.getBoolean_xz3hoo_k$('praActive'); var _tmp_praLct = $_result.getLong_3wgf2g_k$('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getPeerReviewerAllocationsByAssignmentUid....' call this_0.set_praUid_dkb29c_k$(_tmp_praUid); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_tmp_praMarkerSubmitterUid); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_tmp_praToMarkerSubmitterUid); this_0.set_praAssignmentUid_60pp0j_k$(_tmp_praAssignmentUid); this_0.set_praActive_a5t77_k$(_tmp_praActive); this_0.set_praLct_lxlu83_k$(_tmp_praLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.getLong_3wgf2g_k$('praUid'); var _tmp_praMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.getLong_3wgf2g_k$('praAssignmentUid'); var _tmp_praActive = $_result.getBoolean_xz3hoo_k$('praActive'); var _tmp_praLct = $_result.getLong_3wgf2g_k$('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getPeerReviewAllocationsForPerson....' call this_0.set_praUid_dkb29c_k$(_tmp_praUid); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_tmp_praMarkerSubmitterUid); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_tmp_praToMarkerSubmitterUid); this_0.set_praAssignmentUid_60pp0j_k$(_tmp_praAssignmentUid); this_0.set_praActive_a5t77_k$(_tmp_praActive); this_0.set_praLct_lxlu83_k$(_tmp_praLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_submitterUid = $_result.getLong_3wgf2g_k$('submitterUid'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentSubmitterUidAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.getSubmitterUidsAndNameByClazzOrGroupSetUid....' call this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_submitterUid_5nf92e_k$(_tmp_submitterUid); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidAsync....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidAndClazzUidAsFlow.....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) { this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).invoke_vrjkxg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vrjkxg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.$uid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vrjkxg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidAndClazzUidAsync....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignmentAndBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync....' call if (!_tmp_ClazzAssignment_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.....' call this_1.set_caUid_qwqlvb_k$(_tmp_caUid); this_1.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_1.set_caDescription_trgpu2_k$(_tmp_caDescription); this_1.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_1.set_caActive_hd63bg_k$(_tmp_caActive); this_1.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_1.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_1.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_1.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_1.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_1.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_1.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_1.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_1.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_1.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_1.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_1.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_1.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_1.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_1.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_1.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_1.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_1.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_1.set_caLct_ijftwk_k$(_tmp_caLct); this_0.set_assignment_6aqel7_k$(this_1); } if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidWithBlockAsync.....' call this_2.set_cbUid_qoojw6_k$(_tmp_cbUid); this_2.set_cbType_tflke_k$(_tmp_cbType); this_2.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_2.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_2.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_2.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_2.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_2.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_2.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_2.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_2.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_2.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_2.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_2.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_2.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_2.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_2.set_cbActive_isa26r_k$(_tmp_cbActive); this_2.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_2.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_2.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_2.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_2.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_2.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_block_ew53te_k$(this_2); } return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findByUidLive.....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_vrjkxg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vrjkxg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vrjkxg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_submitterUid = $_result.getLong_3wgf2g_k$('submitterUid'); var _tmp_hasModeratePermission = $_result.getBoolean_xz3hoo_k$('hasModeratePermission'); var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_CourseGroupSet_nullCount = 0; var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupSet_nullCount = _tmp_CourseGroupSet_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_CourseGroupSet_isAllNull = _tmp_CourseGroupSet_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignmentCourseBlockAndSubmitterUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow.....' call this_0.set_submitterUid_5nf92e_k$(_tmp_submitterUid); this_0.set_hasModeratePermission_fm1pwm_k$(_tmp_hasModeratePermission); if (!_tmp_ClazzAssignment_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_1.set_caUid_qwqlvb_k$(_tmp_caUid); this_1.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_1.set_caDescription_trgpu2_k$(_tmp_caDescription); this_1.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_1.set_caActive_hd63bg_k$(_tmp_caActive); this_1.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_1.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_1.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_1.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_1.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_1.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_1.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_1.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_1.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_1.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_1.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_1.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_1.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_1.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_1.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_1.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_1.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_1.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_1.set_caLct_ijftwk_k$(_tmp_caLct); this_0.set_clazzAssignment_qwtmo7_k$(this_1); } if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_2.set_cbUid_qoojw6_k$(_tmp_cbUid); this_2.set_cbType_tflke_k$(_tmp_cbType); this_2.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_2.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_2.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_2.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_2.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_2.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_2.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_2.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_2.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_2.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_2.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_2.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_2.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_2.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_2.set_cbActive_isa26r_k$(_tmp_cbActive); this_2.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_2.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_2.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_2.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_2.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_2.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_courseBlock_x7q8yb_k$(this_2); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_3.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_3.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_3.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_3.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_courseBlockPicture_pbyd35_k$(this_3); } if (!_tmp_CourseGroupSet_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findAssignmentCourseBlockAndSubmitterUidAsFlow......' call this_4.set_cgsUid_diq868_k$(_tmp_cgsUid); this_4.set_cgsName_c89ibq_k$(_tmp_cgsName); this_4.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_4.set_cgsActive_il46il_k$(_tmp_cgsActive); this_4.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_4.set_cgsLct_55fg7h_k$(_tmp_cgsLct); this_0.set_courseGroupSet_p20t1b_k$(this_4); } return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).invoke_9j4xug_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9j4xug_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(23, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(24, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(25, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(26, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda(this.$accountPersonUid_1, this.$clazzUid_1, this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda($accountPersonUid, $clazzUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9j4xug_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findEnrolmentsByPersonUidAndAssignmentUid....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findCourseGroupMembersByPersonUidAndAssignmentUid....' call this_0.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_0.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_0.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_0.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_0.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda$lambda(_result) { return mapRows(_result, ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.getLong_3wgf2g_k$('praUid'); var _tmp_praMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.getLong_3wgf2g_k$('praAssignmentUid'); var _tmp_praActive = $_result.getBoolean_xz3hoo_k$('praActive'); var _tmp_praLct = $_result.getLong_3wgf2g_k$('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findPeerReviewerAllocationsByPersonUidAndAssignmentUid....' call this_0.set_praUid_dkb29c_k$(_tmp_praUid); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_tmp_praMarkerSubmitterUid); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_tmp_praToMarkerSubmitterUid); this_0.set_praAssignmentUid_60pp0j_k$(_tmp_praAssignmentUid); this_0.set_praActive_a5t77_k$(_tmp_praActive); this_0.set_praLct_lxlu83_k$(_tmp_praLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).bindPreparedStmtToEntity_wwt3q6_k$ = function (stmt, entity) { if (entity.get_caUid_ipktt5_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_caUid_ipktt5_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_caTitle_9yyh0x_k$()); stmt.setString_2gt7ua_k$(3, entity.get_caDescription_8nvpud_k$()); stmt.setLong_j1sybo_k$(4, entity.get_caGroupUid_zf52s8_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_caActive_fw2t3h_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_caClassCommentEnabled_cfaj2r_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_caPrivateCommentsEnabled_l0k0vl_k$()); stmt.setInt_c72a8z_k$(8, entity.get_caCompletionCriteria_r0go66_k$()); stmt.setBoolean_pzdm1v_k$(9, entity.get_caRequireFileSubmission_w8j1mu_k$()); stmt.setInt_c72a8z_k$(10, entity.get_caFileType_evrg7x_k$()); stmt.setInt_c72a8z_k$(11, entity.get_caSizeLimit_60e6st_k$()); stmt.setInt_c72a8z_k$(12, entity.get_caNumberOfFiles_gm3yhc_k$()); stmt.setInt_c72a8z_k$(13, entity.get_caSubmissionPolicy_6vp9k5_k$()); stmt.setInt_c72a8z_k$(14, entity.get_caMarkingType_qumoa0_k$()); stmt.setBoolean_pzdm1v_k$(15, entity.get_caRequireTextSubmission_bngh2v_k$()); stmt.setInt_c72a8z_k$(16, entity.get_caTextLimitType_w5xj27_k$()); stmt.setInt_c72a8z_k$(17, entity.get_caTextLimit_vdw8ex_k$()); stmt.setLong_j1sybo_k$(18, entity.get_caXObjectUid_w0d8e8_k$()); stmt.setLong_j1sybo_k$(19, entity.get_caClazzUid_wf7rj5_k$()); stmt.setInt_c72a8z_k$(20, entity.get_caPeerReviewerCount_xdajq7_k$()); stmt.setLong_j1sybo_k$(21, entity.get_caLocalChangeSeqNum_n6lkrf_k$()); stmt.setLong_j1sybo_k$(22, entity.get_caMasterChangeSeqNum_93losg_k$()); stmt.setInt_c72a8z_k$(23, entity.get_caLastChangedBy_4xab6_k$()); stmt.setLong_j1sybo_k$(24, entity.get_caLct_ipkn06_k$()); }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_wwt3q6_k$(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; function ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).bindPreparedStmtToEntity_wwt3q6_k$ = function (stmt, entity) { if (entity.get_caUid_ipktt5_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_caUid_ipktt5_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_caTitle_9yyh0x_k$()); stmt.setString_2gt7ua_k$(3, entity.get_caDescription_8nvpud_k$()); stmt.setLong_j1sybo_k$(4, entity.get_caGroupUid_zf52s8_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_caActive_fw2t3h_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_caClassCommentEnabled_cfaj2r_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_caPrivateCommentsEnabled_l0k0vl_k$()); stmt.setInt_c72a8z_k$(8, entity.get_caCompletionCriteria_r0go66_k$()); stmt.setBoolean_pzdm1v_k$(9, entity.get_caRequireFileSubmission_w8j1mu_k$()); stmt.setInt_c72a8z_k$(10, entity.get_caFileType_evrg7x_k$()); stmt.setInt_c72a8z_k$(11, entity.get_caSizeLimit_60e6st_k$()); stmt.setInt_c72a8z_k$(12, entity.get_caNumberOfFiles_gm3yhc_k$()); stmt.setInt_c72a8z_k$(13, entity.get_caSubmissionPolicy_6vp9k5_k$()); stmt.setInt_c72a8z_k$(14, entity.get_caMarkingType_qumoa0_k$()); stmt.setBoolean_pzdm1v_k$(15, entity.get_caRequireTextSubmission_bngh2v_k$()); stmt.setInt_c72a8z_k$(16, entity.get_caTextLimitType_w5xj27_k$()); stmt.setInt_c72a8z_k$(17, entity.get_caTextLimit_vdw8ex_k$()); stmt.setLong_j1sybo_k$(18, entity.get_caXObjectUid_w0d8e8_k$()); stmt.setLong_j1sybo_k$(19, entity.get_caClazzUid_wf7rj5_k$()); stmt.setInt_c72a8z_k$(20, entity.get_caPeerReviewerCount_xdajq7_k$()); stmt.setLong_j1sybo_k$(21, entity.get_caLocalChangeSeqNum_n6lkrf_k$()); stmt.setLong_j1sybo_k$(22, entity.get_caMasterChangeSeqNum_93losg_k$()); stmt.setInt_c72a8z_k$(23, entity.get_caLastChangedBy_4xab6_k$()); stmt.setLong_j1sybo_k$(24, entity.get_caLct_ipkn06_k$()); }; protoOf(ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_wwt3q6_k$(stmt, entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; function ClazzAssignmentDao_JdbcImpl$updateAsync$slambda($clazzAssignment, resultContinuation) { this.$clazzAssignment_1 = $clazzAssignment; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$clazzAssignment_1.get_caTitle_9yyh0x_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$clazzAssignment_1.get_caDescription_8nvpud_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzAssignment_1.get_caGroupUid_zf52s8_k$()); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$clazzAssignment_1.get_caActive_fw2t3h_k$()); this._stmt_1.setBoolean_pzdm1v_k$(5, this.$clazzAssignment_1.get_caClassCommentEnabled_cfaj2r_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$clazzAssignment_1.get_caPrivateCommentsEnabled_l0k0vl_k$()); this._stmt_1.setInt_c72a8z_k$(7, this.$clazzAssignment_1.get_caCompletionCriteria_r0go66_k$()); this._stmt_1.setBoolean_pzdm1v_k$(8, this.$clazzAssignment_1.get_caRequireFileSubmission_w8j1mu_k$()); this._stmt_1.setInt_c72a8z_k$(9, this.$clazzAssignment_1.get_caFileType_evrg7x_k$()); this._stmt_1.setInt_c72a8z_k$(10, this.$clazzAssignment_1.get_caSizeLimit_60e6st_k$()); this._stmt_1.setInt_c72a8z_k$(11, this.$clazzAssignment_1.get_caNumberOfFiles_gm3yhc_k$()); this._stmt_1.setInt_c72a8z_k$(12, this.$clazzAssignment_1.get_caSubmissionPolicy_6vp9k5_k$()); this._stmt_1.setInt_c72a8z_k$(13, this.$clazzAssignment_1.get_caMarkingType_qumoa0_k$()); this._stmt_1.setBoolean_pzdm1v_k$(14, this.$clazzAssignment_1.get_caRequireTextSubmission_bngh2v_k$()); this._stmt_1.setInt_c72a8z_k$(15, this.$clazzAssignment_1.get_caTextLimitType_w5xj27_k$()); this._stmt_1.setInt_c72a8z_k$(16, this.$clazzAssignment_1.get_caTextLimit_vdw8ex_k$()); this._stmt_1.setLong_j1sybo_k$(17, this.$clazzAssignment_1.get_caXObjectUid_w0d8e8_k$()); this._stmt_1.setLong_j1sybo_k$(18, this.$clazzAssignment_1.get_caClazzUid_wf7rj5_k$()); this._stmt_1.setInt_c72a8z_k$(19, this.$clazzAssignment_1.get_caPeerReviewerCount_xdajq7_k$()); this._stmt_1.setLong_j1sybo_k$(20, this.$clazzAssignment_1.get_caLocalChangeSeqNum_n6lkrf_k$()); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzAssignment_1.get_caMasterChangeSeqNum_93losg_k$()); this._stmt_1.setInt_c72a8z_k$(22, this.$clazzAssignment_1.get_caLastChangedBy_4xab6_k$()); this._stmt_1.setLong_j1sybo_k$(23, this.$clazzAssignment_1.get_caLct_ipkn06_k$()); this._stmt_1.setLong_j1sybo_k$(24, this.$clazzAssignment_1.get_caUid_ipktt5_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$updateAsync$slambda(this.$clazzAssignment_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$updateAsync$slambda_0($clazzAssignment, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$updateAsync$slambda($clazzAssignment, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_caTitle_9yyh0x_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_caDescription_8nvpud_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_caGroupUid_zf52s8_k$()); _stmt.setBoolean_pzdm1v_k$(4, $entity.get_caActive_fw2t3h_k$()); _stmt.setBoolean_pzdm1v_k$(5, $entity.get_caClassCommentEnabled_cfaj2r_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_caPrivateCommentsEnabled_l0k0vl_k$()); _stmt.setInt_c72a8z_k$(7, $entity.get_caCompletionCriteria_r0go66_k$()); _stmt.setBoolean_pzdm1v_k$(8, $entity.get_caRequireFileSubmission_w8j1mu_k$()); _stmt.setInt_c72a8z_k$(9, $entity.get_caFileType_evrg7x_k$()); _stmt.setInt_c72a8z_k$(10, $entity.get_caSizeLimit_60e6st_k$()); _stmt.setInt_c72a8z_k$(11, $entity.get_caNumberOfFiles_gm3yhc_k$()); _stmt.setInt_c72a8z_k$(12, $entity.get_caSubmissionPolicy_6vp9k5_k$()); _stmt.setInt_c72a8z_k$(13, $entity.get_caMarkingType_qumoa0_k$()); _stmt.setBoolean_pzdm1v_k$(14, $entity.get_caRequireTextSubmission_bngh2v_k$()); _stmt.setInt_c72a8z_k$(15, $entity.get_caTextLimitType_w5xj27_k$()); _stmt.setInt_c72a8z_k$(16, $entity.get_caTextLimit_vdw8ex_k$()); _stmt.setLong_j1sybo_k$(17, $entity.get_caXObjectUid_w0d8e8_k$()); _stmt.setLong_j1sybo_k$(18, $entity.get_caClazzUid_wf7rj5_k$()); _stmt.setInt_c72a8z_k$(19, $entity.get_caPeerReviewerCount_xdajq7_k$()); _stmt.setLong_j1sybo_k$(20, $entity.get_caLocalChangeSeqNum_n6lkrf_k$()); _stmt.setLong_j1sybo_k$(21, $entity.get_caMasterChangeSeqNum_93losg_k$()); _stmt.setInt_c72a8z_k$(22, $entity.get_caLastChangedBy_4xab6_k$()); _stmt.setLong_j1sybo_k$(23, $entity.get_caLct_ipkn06_k$()); _stmt.setLong_j1sybo_k$(24, $entity.get_caUid_ipktt5_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation) { this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entityList_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setString_2gt7ua_k$(1, this._entity1__1.get_caTitle_9yyh0x_k$()); this._stmt_1.setString_2gt7ua_k$(2, this._entity1__1.get_caDescription_8nvpud_k$()); this._stmt_1.setLong_j1sybo_k$(3, this._entity1__1.get_caGroupUid_zf52s8_k$()); this._stmt_1.setBoolean_pzdm1v_k$(4, this._entity1__1.get_caActive_fw2t3h_k$()); this._stmt_1.setBoolean_pzdm1v_k$(5, this._entity1__1.get_caClassCommentEnabled_cfaj2r_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this._entity1__1.get_caPrivateCommentsEnabled_l0k0vl_k$()); this._stmt_1.setInt_c72a8z_k$(7, this._entity1__1.get_caCompletionCriteria_r0go66_k$()); this._stmt_1.setBoolean_pzdm1v_k$(8, this._entity1__1.get_caRequireFileSubmission_w8j1mu_k$()); this._stmt_1.setInt_c72a8z_k$(9, this._entity1__1.get_caFileType_evrg7x_k$()); this._stmt_1.setInt_c72a8z_k$(10, this._entity1__1.get_caSizeLimit_60e6st_k$()); this._stmt_1.setInt_c72a8z_k$(11, this._entity1__1.get_caNumberOfFiles_gm3yhc_k$()); this._stmt_1.setInt_c72a8z_k$(12, this._entity1__1.get_caSubmissionPolicy_6vp9k5_k$()); this._stmt_1.setInt_c72a8z_k$(13, this._entity1__1.get_caMarkingType_qumoa0_k$()); this._stmt_1.setBoolean_pzdm1v_k$(14, this._entity1__1.get_caRequireTextSubmission_bngh2v_k$()); this._stmt_1.setInt_c72a8z_k$(15, this._entity1__1.get_caTextLimitType_w5xj27_k$()); this._stmt_1.setInt_c72a8z_k$(16, this._entity1__1.get_caTextLimit_vdw8ex_k$()); this._stmt_1.setLong_j1sybo_k$(17, this._entity1__1.get_caXObjectUid_w0d8e8_k$()); this._stmt_1.setLong_j1sybo_k$(18, this._entity1__1.get_caClazzUid_wf7rj5_k$()); this._stmt_1.setInt_c72a8z_k$(19, this._entity1__1.get_caPeerReviewerCount_xdajq7_k$()); this._stmt_1.setLong_j1sybo_k$(20, this._entity1__1.get_caLocalChangeSeqNum_n6lkrf_k$()); this._stmt_1.setLong_j1sybo_k$(21, this._entity1__1.get_caMasterChangeSeqNum_93losg_k$()); this._stmt_1.setInt_c72a8z_k$(22, this._entity1__1.get_caLastChangedBy_4xab6_k$()); this._stmt_1.setLong_j1sybo_k$(23, this._entity1__1.get_caLct_ipkn06_k$()); this._stmt_1.setLong_j1sybo_k$(24, this._entity1__1.get_caUid_ipktt5_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda(this.$entityList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda_0($entityList, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda).invoke_hjldlj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_hjldlj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_hjldlj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$cbUid_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda(this.$active_1, this.$changeTime_1, this.$cbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).invoke_xi3no9_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xi3no9_k$($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig("\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT \n -- whether or not the active user has permission to view learner records \n (SELECT hasPermission\n FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n \n (SELECT COUNT(*)\n FROM SubmitterList) AS totalStudents,\n \n -- Total marked students\n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentMark.camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n ) AS markedStudents,\n \n -- Total who have submitted \n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n ) AS submittedStudents,\n \n (SELECT (ClazzAssignment.caGroupUid != 0)\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) AS isGroupAssignment\n ", VOID, VOID, VOID, "\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT \n -- whether or not the active user has permission to view learner records \n (SELECT hasPermission\n FROM HasLearningRecordSelectPermission) AS activeUserHasViewLearnerRecordsPermission,\n \n (SELECT COUNT(*)\n FROM SubmitterList) AS totalStudents,\n \n -- Total marked students\n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentMark.camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId) \n ) AS markedStudents,\n \n -- Total who have submitted \n (SELECT COUNT(*)\n FROM SubmitterList\n WHERE EXISTS(\n SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId)\n ) AS submittedStudents,\n \n (SELECT (ClazzAssignment.caGroupUid != 0)\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) AS isGroupAssignment\n \n", true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, completion); }; function ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function ($completion) { return i.invoke_xi3no9_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this$0, $clazzUid, $accountPersonUid, $assignmentUid, $group, $searchText, $sortOption) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; this.$searchText_1 = $searchText; this.$sortOption_1 = $sortOption; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).loadRows_vpu55x_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$loadRows$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, this.$searchText_1, this.$sortOption_1, _limit, _offset, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_vpu55x_k$(_limit, _offset, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n \n SELECT SubmitterList.name AS name,\n SubmitterList.submitterId AS submitterUid,\n Comments.commentsText AS latestPrivateComment,\n CASE \n WHEN SubmitterList.submitterId >= 10000 THEN\n (SELECT PersonPicture.personPictureThumbnailUri\n FROM PersonPicture\n WHERE PersonPicture.personPictureUid = SubmitterList.submitterId)\n ELSE NULL\n END AS pictureUri, \n -- Determine submission status - marked, submitted, or not yet submitted\n CASE \n WHEN CourseAssignmentMark.camUid IS NOT NULL THEN 2\n WHEN CourseAssignmentSubmission.casUid IS NOT NULL THEN 1\n ELSE 0 \n END AS fileSubmissionStatus\n \n FROM SubmitterList\n LEFT JOIN Comments \n ON Comments.commentsUid = \n (SELECT Comments.commentsUid \n FROM Comments\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = SubmitterList.submitterId\n AND NOT Comments.commentsDeleted\n ORDER BY Comments.commentsDateTimeAdded DESC \n LIMIT 1) \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camUid = \n (SELECT camUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = SubmitterList.submitterId\n LIMIT 1)\n LEFT JOIN CourseAssignmentSubmission\n ON CourseAssignmentSubmission.casUid = \n (SELECT casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = SubmitterList.submitterId \n LIMIT 1)\n WHERE (? = '%' OR SubmitterList.name LIKE ?)\n ORDER BY CASE(?)\n WHEN 5 THEN SubmitterList.name\n ELSE '' END ASC,\n CASE(?)\n WHEN 6 THEN SubmitterList.name\n ELSE '' END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$o$countRows$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, this.$searchText_1, this.$sortOption_1, null), $completion); }; function ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda).invoke_j1t8vk_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j1t8vk_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda_0($assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j1t8vk_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda).invoke_foiv6s_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_foiv6s_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$group_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_foiv6s_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$group_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda).invoke_23b7lv_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_23b7lv_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$group_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$group_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, $group, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_23b7lv_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda).invoke_b60hn3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_b60hn3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda_0($clazzUid, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda($clazzUid, $accountPersonUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_b60hn3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda).invoke_b60hn3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_b60hn3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_b60hn3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation) { this.$groupSetUid_1 = $groupSetUid; this.$clazzUid_1 = $clazzUid; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).invoke_20grgb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_20grgb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupSetUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$groupSetUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$groupSetUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda(this.$groupSetUid_1, this.$clazzUid_1, this.$time_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $time, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $time, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_20grgb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) { this.$groupSetUid_1 = $groupSetUid; this.$clazzUid_1 = $clazzUid; this.$date_1 = $date; this.$groupStr_1 = $groupStr; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).invoke_3efx85_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_3efx85_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupSetUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$date_1); this._stmt_1.setLong_j1sybo_k$(4, this.$groupSetUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$groupSetUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$groupSetUid_1); this._stmt_1.setString_2gt7ua_k$(7, this.$groupStr_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda(this.$groupSetUid_1, this.$clazzUid_1, this.$date_1, this.$groupStr_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda($groupSetUid, $clazzUid, $date, $groupStr, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_3efx85_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda($groupUid, $clazzUid, $group, resultContinuation) { this.$groupUid_1 = $groupUid; this.$clazzUid_1 = $clazzUid; this.$group_1 = $group; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setString_2gt7ua_k$(3, this.$group_1); this._stmt_1.setLong_j1sybo_k$(4, this.$groupUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda(this.$groupUid_1, this.$clazzUid_1, this.$group_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda_0($groupUid, $clazzUid, $group, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda($groupUid, $clazzUid, $group, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda(this.$clazzUid_1, this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda($clazzUid, $assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda).invoke_vrjkxg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vrjkxg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vrjkxg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).invoke_1bsp5s_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1bsp5s_k$($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = CAST(? AS BIGINT)\n AND caClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = ?\n AND caClazzUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.$uid_1, this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.this$0__1, this.$uid_1, this.$clazzUid_1, completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_1bsp5s_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda($assignmentUid, $clazzUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda).invoke_vrjkxg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vrjkxg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda(this.$assignmentUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda_0($assignmentUid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda($assignmentUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vrjkxg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).invoke_u2rkp9_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_u2rkp9_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0($uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_u2rkp9_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda$lambda); } function ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda$lambda(_result) { return mapNextRow(_result, null, ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda$lambda$lambda(_result)); } function ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda$lambda$lambda($_result) { return function (it) { var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzAssignmentDao_JdbcImpl.findClazzAssignment....' call this_0.set_caUid_qwqlvb_k$(_tmp_caUid); this_0.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_0.set_caDescription_trgpu2_k$(_tmp_caDescription); this_0.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_0.set_caActive_hd63bg_k$(_tmp_caActive); this_0.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_0.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_0.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_0.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_0.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_0.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_0.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_0.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_0.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_0.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_0.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_0.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_0.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_0.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_0.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_0.set_caLct_ijftwk_k$(_tmp_caLct); return this_0; }; } function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda).invoke_1bsp5s_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1bsp5s_k$($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * \n FROM ClazzAssignment \n WHERE caUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * \n FROM ClazzAssignment \n WHERE caUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_1bsp5s_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$uidList_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$uidList_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda(this.$active_1, this.$changeTime_1, this.$uidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0($active, $changeTime, $uidList, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda($active, $changeTime, $uidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).invoke_j1jx3o_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_j1jx3o_k$($completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n WITH PersonIsStudent(isStudent)\n AS (SELECT EXISTS(\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n \n SELECT ClazzAssignment.*,\n CourseBlock.*,\n CourseBlockPicture.*,\n CourseGroupSet.*,\n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ) AS submitterUid,\n \n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n ) AS hasModeratePermission\n \n FROM ClazzAssignment\n JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n LEFT JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n AND ClazzAssignment.caClazzUid = CAST(? AS BIGINT)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 1\n \n ) > 0)\n )\n )\n ', VOID, VOID, VOID, '\n WITH PersonIsStudent(isStudent)\n AS (SELECT EXISTS(\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n \n SELECT ClazzAssignment.*,\n CourseBlock.*,\n CourseBlockPicture.*,\n CourseGroupSet.*,\n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ) AS submitterUid,\n \n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n ) AS hasModeratePermission\n \n FROM ClazzAssignment\n JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid\n LEFT JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = ClazzAssignment.caGroupUid\n WHERE ClazzAssignment.caUid = ?\n AND ClazzAssignment.caClazzUid = ?\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 1\n \n ) > 0)\n )\n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$slambda_0(this.$accountPersonUid_1, this.$clazzUid_1, this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$clazzUid_1, this.$assignmentUid_1, completion); }; function ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_j1jx3o_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda).invoke_j1t8vk_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j1t8vk_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j1t8vk_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda).invoke_b60hn3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_b60hn3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_b60hn3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda_0($assignmentUid, resultContinuation) { var i = new ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$4(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$4).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterClazzAssignment_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$5(_this__u8e3s4, clazzAssignment, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzAssignment_1 = clazzAssignment; } protoOf($updateAsyncCOROUTINE$5).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caPeerReviewerCount = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, ClazzAssignmentDao_JdbcImpl$updateAsync$slambda_0(this.clazzAssignment_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByUidCOROUTINE$6(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$6).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ClazzAssignment \n SET caActive = ?, \n caLct = CAST(? AS BIGINT)\n WHERE caUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE ClazzAssignment \n SET caActive = ?, \n caLct = ?\n WHERE caUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$updateActiveByUid$slambda_0(this.active_1, this.changeTime_1, this.cbUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByListCOROUTINE$7(_this__u8e3s4, uidList, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateActiveByListCOROUTINE$7).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ClazzAssignment\n SET caActive = ?,\n caLct = CAST(? AS BIGINT)\n WHERE caUid IN (?) \n ', true, VOID, VOID, '\n UPDATE ClazzAssignment\n SET caActive = ?,\n caLct = ?\n WHERE caUid IN (?) \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ClazzAssignmentDao_JdbcImpl$updateActiveByList$slambda_0(this.active_1, this.changeTime_1, this.uidList_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzAssignmentDao_JdbcImpl(_db) { ClazzAssignmentDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterClazzAssignment_upsert_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterClazzAssignment_abort_1 = new ClazzAssignmentDao_JdbcImpl$_insertAdapterClazzAssignment_abort$1(this); } protoOf(ClazzAssignmentDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzAssignmentDao_JdbcImpl).get__insertAdapterClazzAssignment_upsert_kfbnrr_k$ = function () { return this._insertAdapterClazzAssignment_upsert_1; }; protoOf(ClazzAssignmentDao_JdbcImpl).get__insertAdapterClazzAssignment_abort_o8e88m_k$ = function () { return this._insertAdapterClazzAssignment_abort_1; }; protoOf(ClazzAssignmentDao_JdbcImpl).upsertListAsync_y4sc7o_k$ = function (entities, $completion) { return this._insertAdapterClazzAssignment_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).insert_ichkb1_k$ = function (entity) { var _retVal = this._insertAdapterClazzAssignment_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzAssignmentDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_ichkb1_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertAsync_n6fqfo_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$4(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_n6fqfo_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertList_ex3hyb_k$ = function (entityList) { this._insertAdapterClazzAssignment_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ex3hyb_k$(entityList); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertListAsync_nja956_k$ = function (entityList, $completion) { return this._insertAdapterClazzAssignment_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_nja956_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).updateAsync_b8iwkk_k$ = function (clazzAssignment, $completion) { var tmp = new $updateAsyncCOROUTINE$5(this, clazzAssignment, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl).update_jt7o6l_k$ = function (entity) { var _sql = 'UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caPeerReviewerCount = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ClazzAssignmentDao_JdbcImpl$update$lambda(entity)); }; protoOf(ClazzAssignmentDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_jt7o6l_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_JdbcImpl).updateListAsync_g40gxm_k$ = function (entityList, $completion) { var _sql = 'UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caPeerReviewerCount = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, ClazzAssignmentDao_JdbcImpl$updateListAsync$slambda_0(entityList, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_g40gxm_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getAllAssignmentsByClazzUidAsync_8t9vpj_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment\n WHERE ClazzAssignment.caClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment\n WHERE ClazzAssignment.caClazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getAllAssignmentsByClazzUidAsync$slambda_0(clazzUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$6(this, cbUid, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl).getProgressSummaryForAssignment_eztqm7_k$ = function (assignmentUid, clazzUid, accountPersonUid, group) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission', 'CoursePermission', 'ClazzAssignment', 'ClazzEnrolment', 'PeerReviewerAllocation', 'Person', 'CourseGroupMember', 'CourseAssignmentSubmission', 'CourseAssignmentMark', 'Comments', 'PersonPicture']; return doorFlow(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getProgressSummaryForAssignment$slambda_0(this, clazzUid, accountPersonUid, assignmentUid, group, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).getAssignmentSubmitterSummaryListForAssignment_l6ngse_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { return new ClazzAssignmentDao_JdbcImpl$getAssignmentSubmitterSummaryListForAssignment$1(this, clazzUid, accountPersonUid, assignmentUid, group, searchText, sortOption); }; protoOf(ClazzAssignmentDao_JdbcImpl).getCourseGroupMembersByAssignmentUid_8vggbz_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ', VOID, VOID, VOID, '\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getCourseGroupMembersByAssignmentUid$slambda_0(assignmentUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getAssignmentSubmissionsByAssignmentUid_95wiro_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { var tmp = new PreparedStatementConfig("\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission \n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casClazzUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid IN \n (SELECT SubmitterList.submitterId\n FROM SubmitterList) \n ", VOID, VOID, VOID, "\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission \n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casClazzUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid IN \n (SELECT SubmitterList.submitterId\n FROM SubmitterList) \n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentSubmissionsByAssignmentUid$slambda_0(clazzUid, accountPersonUid, assignmentUid, group, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getAssignmentMarksByAssignmentUid_wbscg6_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { var tmp = new PreparedStatementConfig("\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n )\n AND CourseGroupMemberInner.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1)\n ))\n )\n )\n \n \n SELECT CourseAssignmentMark.*\n FROM CourseAssignmentMark \n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camClazzUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid IN \n (SELECT SubmitterList.submitterId\n FROM SubmitterList)\n ", VOID, VOID, VOID, "\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n ,\n \n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) \n ,\n \n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?\n )\n AND CourseGroupMemberInner.cgmPersonUid = ?\n LIMIT 1)\n ))\n )\n )\n \n \n SELECT CourseAssignmentMark.*\n FROM CourseAssignmentMark \n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camClazzUid = ?\n AND CourseAssignmentMark.camSubmitterUid IN \n (SELECT SubmitterList.submitterId\n FROM SubmitterList)\n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getAssignmentMarksByAssignmentUid$slambda_0(clazzUid, accountPersonUid, assignmentUid, group, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getPeerReviewerAllocationsByAssignmentUid_kohth7_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n \n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE \n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)) = 2)\n \n AND NOT \n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission) \n AND PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND ( PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)\n OR PeerReviewerAllocation.praMarkerSubmitterUid IN \n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))))\n ', VOID, VOID, VOID, '\n WITH \n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n \n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE \n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?) = 2)\n \n AND NOT \n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission) \n AND PeerReviewerAllocation.praAssignmentUid = ?\n AND ( PeerReviewerAllocation.praMarkerSubmitterUid = ?\n OR PeerReviewerAllocation.praMarkerSubmitterUid IN \n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)))\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getPeerReviewerAllocationsByAssignmentUid$slambda_0(clazzUid, accountPersonUid, assignmentUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getPeerReviewAllocationsForPerson_w4t4se_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND (PeerReviewerAllocation.praToMarkerSubmitterUid = CAST(? AS BIGINT)\n OR\n PeerReviewerAllocation.praToMarkerSubmitterUid IN \n (SELECT CourseGroupMember.cgmSetUid \n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT))) \n ', VOID, VOID, VOID, '\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND (PeerReviewerAllocation.praToMarkerSubmitterUid = ?\n OR\n PeerReviewerAllocation.praToMarkerSubmitterUid IN \n (SELECT CourseGroupMember.cgmSetUid \n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?)) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getPeerReviewAllocationsForPerson$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getSubmitterUidsByClazzOrGroupSetUid_9clzlq_k$ = function (clazzUid, groupSetUid, time, $completion) { var tmp = new PreparedStatementConfig('\n -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (CAST(? AS BIGINT) = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE CAST(? AS BIGINT) != 0\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n -- Submitter UIDs for individual assignment the list of personuids enrolled in the course\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (? = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE ? != 0\n AND CourseGroupMember.cgmSetUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, time, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getSubmitterUidsAndNameByClazzOrGroupSetUid_2jt2i_k$ = function (clazzUid, groupSetUid, date, groupStr, $completion) { var tmp = new PreparedStatementConfig("\n WITH SubmitterUids(submitterUid) AS (\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (CAST(? AS BIGINT) = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE CAST(? AS BIGINT) != 0\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n )\n \n SELECT SubmitterUids.submitterUid AS submitterUid,\n CASE CAST(? AS BIGINT)\n WHEN 0 THEN\n (SELECT Person.firstNames || ' ' || Person.lastName\n FROM Person\n WHERE Person.personUid = SubmitterUids.submitterUid)\n ELSE (? || ' ' || SubmitterUids.submitterUid) \n END AS name\n FROM SubmitterUids \n ", VOID, VOID, VOID, "\n WITH SubmitterUids(submitterUid) AS (\n SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterUid\n FROM ClazzEnrolment\n WHERE (? = 0)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft\n \n UNION\n \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterUid\n FROM CourseGroupMember\n WHERE ? != 0\n AND CourseGroupMember.cgmSetUid = ? \n )\n \n SELECT SubmitterUids.submitterUid AS submitterUid,\n CASE ?\n WHEN 0 THEN\n (SELECT Person.firstNames || ' ' || Person.lastName\n FROM Person\n WHERE Person.personUid = SubmitterUids.submitterUid)\n ELSE (? || ' ' || SubmitterUids.submitterUid) \n END AS name\n FROM SubmitterUids \n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUidsAndNameByClazzOrGroupSetUid$slambda_0(groupSetUid, clazzUid, date, groupStr, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getSubmitterCountFromAssignment_rggsmm_k$ = function (groupUid, clazzUid, group, $completion) { var tmp = new PreparedStatementConfig("\n \n WITH SubmitterList (submitterId, name)\n AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n \n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE CAST(? AS BIGINT) = 0 \n AND clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND clazzEnrolmentActive\n AND clazzEnrolmentRole = 1000\n GROUP BY submitterId, name\n UNION \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name \n FROM CourseGroupMember\n JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = CAST(? AS BIGINT)\n WHERE CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid\n AND CourseGroupMember.cgmGroupNumber != 0\n GROUP BY submitterId, name\n )\n \n \n SELECT COUNT(*) \n FROM SubmitterList\n ", VOID, VOID, VOID, "\n \n WITH SubmitterList (submitterId, name)\n AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n \n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE ? = 0 \n AND clazzEnrolmentClazzUid = ?\n AND clazzEnrolmentActive\n AND clazzEnrolmentRole = 1000\n GROUP BY submitterId, name\n UNION \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n ? || ' ' || CourseGroupMember.cgmGroupNumber AS name \n FROM CourseGroupMember\n JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = ?\n WHERE CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid\n AND CourseGroupMember.cgmGroupNumber != 0\n GROUP BY submitterId, name\n )\n \n \n SELECT COUNT(*) \n FROM SubmitterList\n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterCountFromAssignment$slambda_0(groupUid, clazzUid, group, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getSubmitterUid_tp5cym_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH ClazzUidDummy(clazzUid) AS\n (SELECT CAST(? AS BIGINT))\n \n \n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n \n ', VOID, VOID, VOID, '\n WITH ClazzUidDummy(clazzUid) AS\n (SELECT ?)\n \n \n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getSubmitterUid$slambda_0(clazzUid, assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findByUidAsync_y3r48q_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment \n WHERE caUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment']; return doorFlow(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).findByUidAndClazzUidAsync_bk2qet_k$ = function (assignmentUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzAssignment.* \n FROM ClazzAssignment \n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n AND ClazzAssignment.caClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ClazzAssignment.* \n FROM ClazzAssignment \n WHERE ClazzAssignment.caUid = ?\n AND ClazzAssignment.caClazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidAndClazzUidAsync$slambda_0(assignmentUid, clazzUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getGroupUidFromAssignment_qdi68v_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE((\n SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)),-1)\n ', VOID, VOID, VOID, '\n SELECT COALESCE((\n SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?),-1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getGroupUidFromAssignment$slambda_0(uid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getMarkingTypeFromAssignment_b4nwkl_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE((\n SELECT caMarkingType\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)),-1)\n ', VOID, VOID, VOID, '\n SELECT COALESCE((\n SELECT caMarkingType\n FROM ClazzAssignment\n WHERE caUid = ?),-1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getMarkingTypeFromAssignment$slambda_0(uid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findByUidWithBlockAsync_naj0zk_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment\n LEFT JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n AND CourseBlock.cbType = 103\n WHERE caUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ClazzAssignment\n LEFT JOIN CourseBlock\n ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n AND CourseBlock.cbType = 103\n WHERE caUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidWithBlockAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findClazzAssignment_atw59w_k$ = function () { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ClazzAssignment LIMIT 1\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findClazzAssignment$lambda); }; protoOf(ClazzAssignmentDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment']; return doorFlow(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).updateActiveByList_ieobpc_k$ = function (uidList, active, changeTime, $completion) { var tmp = new $updateActiveByListCOROUTINE$7(this, uidList, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_JdbcImpl).findAssignmentCourseBlockAndSubmitterUidAsFlow_pyqyxo_k$ = function (assignmentUid, clazzUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'ClazzAssignment', 'CourseBlock', 'CourseGroupMember', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseBlockPicture']; return doorFlow(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, accountPersonUid, clazzUid, assignmentUid, null)); }; protoOf(ClazzAssignmentDao_JdbcImpl).findEnrolmentsByPersonUidAndAssignmentUid_ry7low_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findEnrolmentsByPersonUidAndAssignmentUid$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findCourseGroupMembersByPersonUidAndAssignmentUid_xbalkq_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid \n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid \n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findCourseGroupMembersByPersonUidAndAssignmentUid$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).findPeerReviewerAllocationsByPersonUidAndAssignmentUid_43gd8g_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND (\n PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT)\n OR PeerReviewerAllocation.praToMarkerSubmitterUid = CAST(? AS BIGINT)\n OR PeerReviewerAllocation.praMarkerSubmitterUid IN\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT))\n OR PeerReviewerAllocation.praToMarkerSubmitterUid IN\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)))\n ', VOID, VOID, VOID, '\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND (\n PeerReviewerAllocation.praMarkerSubmitterUid = ?\n OR PeerReviewerAllocation.praToMarkerSubmitterUid = ?\n OR PeerReviewerAllocation.praMarkerSubmitterUid IN\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?)\n OR PeerReviewerAllocation.praToMarkerSubmitterUid IN\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmSetUid = \n (SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?))\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$findPeerReviewerAllocationsByPersonUidAndAssignmentUid$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(ClazzAssignmentDao_JdbcImpl).getLatestSubmissionTimeAllowed_uvkkbx_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH CourseBlockDeadlines(deadline, gracePeriod) AS\n (SELECT CourseBlock.cbDeadlineDate AS deadline,\n CourseBlock.cbGracePeriodDate AS gracePeriod\n FROM CourseBlock\n WHERE CourseBlock.cbEntityUid = CAST(? AS BIGINT)\n AND CourseBlock.cbType = 103\n LIMIT 1)\n SELECT CASE\n WHEN (SELECT gracePeriod \n FROM CourseBlockDeadlines)\n BETWEEN 1 AND 7258118400000 THEN (SELECT gracePeriod FROM CourseBlockDeadlines)\n ELSE (SELECT deadline FROM CourseBlockDeadlines)\n END AS latestSubmissionTimeAllowed\n ', VOID, VOID, VOID, '\n WITH CourseBlockDeadlines(deadline, gracePeriod) AS\n (SELECT CourseBlock.cbDeadlineDate AS deadline,\n CourseBlock.cbGracePeriodDate AS gracePeriod\n FROM CourseBlock\n WHERE CourseBlock.cbEntityUid = ?\n AND CourseBlock.cbType = 103\n LIMIT 1)\n SELECT CASE\n WHEN (SELECT gracePeriod \n FROM CourseBlockDeadlines)\n BETWEEN 1 AND 7258118400000 THEN (SELECT gracePeriod FROM CourseBlockDeadlines)\n ELSE (SELECT deadline FROM CourseBlockDeadlines)\n END AS latestSubmissionTimeAllowed\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzAssignmentDao_JdbcImpl$getLatestSubmissionTimeAllowed$slambda_0(assignmentUid, null), $completion); }; function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$cbUid_1 = $cbUid; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$updateActiveByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByUid_i0tn2u_k$(this.$cbUid_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByUid$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$updateActiveByUid$slambda(this.this$0__1, this.$cbUid_1, this.$active_1, this.$changeTime_1, completion); }; function ClazzAssignmentDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) { var i = new ClazzAssignmentDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$group_1 = $group; this.$searchText_1 = $searchText; this.$sortOption_1 = $sortOption; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'group', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$group_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchText_1)); parameter(this_0, 'sortOption', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOption_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this.this$0__1, this.$assignmentUid_1, this.$clazzUid_1, this.$accountPersonUid_1, this.$group_1, this.$searchText_1, this.$sortOption_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation) { var i = new ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, $group, $searchText, $sortOption, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$getSubmitterUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$updateAsync$slambda(this$0, $clazzAssignment, resultContinuation) { this.this$0__1 = this$0; this.$clazzAssignment_1 = $clazzAssignment; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_b8iwkk_k$(this.$clazzAssignment_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$updateAsync$slambda(this.this$0__1, this.$clazzAssignment_1, completion); }; function ClazzAssignmentDao_Repo$updateAsync$slambda_0(this$0, $clazzAssignment, resultContinuation) { var i = new ClazzAssignmentDao_Repo$updateAsync$slambda(this$0, $clazzAssignment, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/findByUidAndClazzUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.this$0__1, this.$uid_1, this.$clazzUid_1, completion); }; function ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_y4sc7o_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ClazzAssignmentDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$uidList_1 = $uidList; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByList_ieobpc_k$(this.$uidList_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$updateActiveByList$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this.this$0__1, this.$uidList_1, this.$active_1, this.$changeTime_1, completion); }; function ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this$0, $uidList, $active, $changeTime, resultContinuation) { var i = new ClazzAssignmentDao_Repo$updateActiveByList$slambda(this$0, $uidList, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/findAssignmentCourseBlockAndSubmitterUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this.this$0__1, this.$assignmentUid_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); }; function ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda(this$0, $assignmentUid, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzAssignmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzAssignmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ClazzAssignmentDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function ClazzAssignmentDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_it2cbm_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ClazzAssignmentDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzAssignmentDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzAssignmentDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzAssignmentDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzAssignmentDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_mdh99q_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzAssignmentDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzAssignmentDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ClazzAssignmentDao_Repo$updateListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzAssignmentDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $getAllAssignmentsByClazzUidAsyncCOROUTINE$8(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($getAllAssignmentsByClazzUidAsyncCOROUTINE$8).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAllAssignmentsByClazzUidAsync_8t9vpj_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getCourseGroupMembersByAssignmentUidCOROUTINE$9(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($getCourseGroupMembersByAssignmentUidCOROUTINE$9).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getCourseGroupMembersByAssignmentUid_8vggbz_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getAssignmentSubmissionsByAssignmentUidCOROUTINE$10(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, group, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; this.group_1 = group; } protoOf($getAssignmentSubmissionsByAssignmentUidCOROUTINE$10).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAssignmentSubmissionsByAssignmentUid_95wiro_k$(this.assignmentUid_1, this.clazzUid_1, this.accountPersonUid_1, this.group_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getAssignmentMarksByAssignmentUidCOROUTINE$11(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, group, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; this.group_1 = group; } protoOf($getAssignmentMarksByAssignmentUidCOROUTINE$11).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAssignmentMarksByAssignmentUid_wbscg6_k$(this.assignmentUid_1, this.clazzUid_1, this.accountPersonUid_1, this.group_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getPeerReviewerAllocationsByAssignmentUidCOROUTINE$12(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($getPeerReviewerAllocationsByAssignmentUidCOROUTINE$12).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getPeerReviewerAllocationsByAssignmentUid_kohth7_k$(this.assignmentUid_1, this.clazzUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getPeerReviewAllocationsForPersonCOROUTINE$13(_this__u8e3s4, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($getPeerReviewAllocationsForPersonCOROUTINE$13).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getPeerReviewAllocationsForPerson_w4t4se_k$(this.assignmentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(_this__u8e3s4, clazzUid, groupSetUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.groupSetUid_1 = groupSetUid; this.time_1 = time; } protoOf($getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getSubmitterUidsByClazzOrGroupSetUid_9clzlq_k$(this.clazzUid_1, this.groupSetUid_1, this.time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(_this__u8e3s4, clazzUid, groupSetUid, date, groupStr, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.groupSetUid_1 = groupSetUid; this.date_1 = date; this.groupStr_1 = groupStr; } protoOf($getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/getSubmitterUidsAndNameByClazzOrGroupSetUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'groupSetUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.groupSetUid_1)); parameter(this_0, 'date', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.date_1)); parameter(this_0, 'groupStr', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.groupStr_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzAssignmentDao_Repo$getSubmitterUidsAndNameByClazzOrGroupSetUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getSubmitterUidsAndNameByClazzOrGroupSetUid_2jt2i_k$(this.clazzUid_1, this.groupSetUid_1, this.date_1, this.groupStr_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getSubmitterCountFromAssignmentCOROUTINE$16(_this__u8e3s4, groupUid, clazzUid, group, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupUid_1 = groupUid; this.clazzUid_1 = clazzUid; this.group_1 = group; } protoOf($getSubmitterCountFromAssignmentCOROUTINE$16).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getSubmitterCountFromAssignment_rggsmm_k$(this.groupUid_1, this.clazzUid_1, this.group_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getSubmitterUidCOROUTINE$17(_this__u8e3s4, assignmentUid, clazzUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($getSubmitterUidCOROUTINE$17).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/getSubmitterUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/getSubmitterUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.assignmentUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzAssignmentDao_Repo$getSubmitterUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getSubmitterUid_tp5cym_k$(this.assignmentUid_1, this.clazzUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$18(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$18).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/findByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/findByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzAssignmentDao_Repo$findByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_y3r48q_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAndClazzUidAsyncCOROUTINE$19(_this__u8e3s4, assignmentUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.clazzUid_1 = clazzUid; } protoOf($findByUidAndClazzUidAsyncCOROUTINE$19).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAndClazzUidAsync_bk2qet_k$(this.assignmentUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getGroupUidFromAssignmentCOROUTINE$20(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($getGroupUidFromAssignmentCOROUTINE$20).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getGroupUidFromAssignment_qdi68v_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getMarkingTypeFromAssignmentCOROUTINE$21(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($getMarkingTypeFromAssignmentCOROUTINE$21).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getMarkingTypeFromAssignment_b4nwkl_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithBlockAsyncCOROUTINE$22(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithBlockAsyncCOROUTINE$22).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzAssignmentDao/findByUidWithBlockAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzAssignmentDao/findByUidWithBlockAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzAssignmentDao_Repo$findByUidWithBlockAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithBlockAsync_naj0zk_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findEnrolmentsByPersonUidAndAssignmentUidCOROUTINE$23(_this__u8e3s4, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findEnrolmentsByPersonUidAndAssignmentUidCOROUTINE$23).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findEnrolmentsByPersonUidAndAssignmentUid_ry7low_k$(this.assignmentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findCourseGroupMembersByPersonUidAndAssignmentUidCOROUTINE$24(_this__u8e3s4, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findCourseGroupMembersByPersonUidAndAssignmentUidCOROUTINE$24).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findCourseGroupMembersByPersonUidAndAssignmentUid_xbalkq_k$(this.assignmentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findPeerReviewerAllocationsByPersonUidAndAssignmentUidCOROUTINE$25(_this__u8e3s4, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findPeerReviewerAllocationsByPersonUidAndAssignmentUidCOROUTINE$25).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findPeerReviewerAllocationsByPersonUidAndAssignmentUid_43gd8g_k$(this.assignmentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getLatestSubmissionTimeAllowedCOROUTINE$26(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($getLatestSubmissionTimeAllowedCOROUTINE$26).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getLatestSubmissionTimeAllowed_uvkkbx_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$27(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$27).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzAssignmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzAssignmentDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(ClazzAssignmentDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzAssignmentDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ClazzAssignmentDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ClazzAssignmentDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ClazzAssignmentDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ClazzAssignmentDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ClazzAssignmentDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(ClazzAssignmentDao_Repo).getAllAssignmentsByClazzUidAsync_8t9vpj_k$ = function (clazzUid, $completion) { var tmp = new $getAllAssignmentsByClazzUidAsyncCOROUTINE$8(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).getProgressSummaryForAssignment_eztqm7_k$ = function (assignmentUid, clazzUid, accountPersonUid, group) { var _result = this._dao_1.getProgressSummaryForAssignment_eztqm7_k$(assignmentUid, clazzUid, accountPersonUid, group); return _result; }; protoOf(ClazzAssignmentDao_Repo).getAssignmentSubmitterSummaryListForAssignment_l6ngse_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption) { var tmp = this._dao_1.getAssignmentSubmitterSummaryListForAssignment_l6ngse_k$(assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ClazzAssignmentDao/getAssignmentSubmitterSummaryListForAssignment', tmp, ClazzAssignmentDao_Repo$getAssignmentSubmitterSummaryListForAssignment$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, group, searchText, sortOption, null)); }; protoOf(ClazzAssignmentDao_Repo).getCourseGroupMembersByAssignmentUid_8vggbz_k$ = function (assignmentUid, $completion) { var tmp = new $getCourseGroupMembersByAssignmentUidCOROUTINE$9(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getAssignmentSubmissionsByAssignmentUid_95wiro_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { var tmp = new $getAssignmentSubmissionsByAssignmentUidCOROUTINE$10(this, assignmentUid, clazzUid, accountPersonUid, group, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getAssignmentMarksByAssignmentUid_wbscg6_k$ = function (assignmentUid, clazzUid, accountPersonUid, group, $completion) { var tmp = new $getAssignmentMarksByAssignmentUidCOROUTINE$11(this, assignmentUid, clazzUid, accountPersonUid, group, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getPeerReviewerAllocationsByAssignmentUid_kohth7_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new $getPeerReviewerAllocationsByAssignmentUidCOROUTINE$12(this, assignmentUid, clazzUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getPeerReviewAllocationsForPerson_w4t4se_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new $getPeerReviewAllocationsForPersonCOROUTINE$13(this, assignmentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getSubmitterUidsByClazzOrGroupSetUid_9clzlq_k$ = function (clazzUid, groupSetUid, time, $completion) { var tmp = new $getSubmitterUidsByClazzOrGroupSetUidCOROUTINE$14(this, clazzUid, groupSetUid, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getSubmitterUidsAndNameByClazzOrGroupSetUid_2jt2i_k$ = function (clazzUid, groupSetUid, date, groupStr, $completion) { var tmp = new $getSubmitterUidsAndNameByClazzOrGroupSetUidCOROUTINE$15(this, clazzUid, groupSetUid, date, groupStr, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getSubmitterCountFromAssignment_rggsmm_k$ = function (groupUid, clazzUid, group, $completion) { var tmp = new $getSubmitterCountFromAssignmentCOROUTINE$16(this, groupUid, clazzUid, group, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getSubmitterUid_tp5cym_k$ = function (assignmentUid, clazzUid, accountPersonUid, $completion) { var tmp = new $getSubmitterUidCOROUTINE$17(this, assignmentUid, clazzUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).updateAsync_b8iwkk_k$ = function (clazzAssignment, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateAsync$slambda_0(this, clazzAssignment, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).findByUidAsync_y3r48q_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$18(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { var tmp = this._dao_1.findByUidAndClazzUidAsFlow_nrf1o1_k$(uid, clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzAssignmentDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(ClazzAssignmentDao_Repo).findByUidAndClazzUidAsync_bk2qet_k$ = function (assignmentUid, clazzUid, $completion) { var tmp = new $findByUidAndClazzUidAsyncCOROUTINE$19(this, assignmentUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getGroupUidFromAssignment_qdi68v_k$ = function (uid, $completion) { var tmp = new $getGroupUidFromAssignmentCOROUTINE$20(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getMarkingTypeFromAssignment_b4nwkl_k$ = function (uid, $completion) { var tmp = new $getMarkingTypeFromAssignmentCOROUTINE$21(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).findByUidWithBlockAsync_naj0zk_k$ = function (uid, $completion) { var tmp = new $findByUidWithBlockAsyncCOROUTINE$22(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).findClazzAssignment_atw59w_k$ = function () { var _result = this._dao_1.findClazzAssignment_atw59w_k$(); return _result; }; protoOf(ClazzAssignmentDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(ClazzAssignmentDao_Repo).upsertListAsync_y4sc7o_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).updateActiveByList_ieobpc_k$ = function (uidList, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateActiveByList$slambda_0(this, uidList, active, changeTime, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).findAssignmentCourseBlockAndSubmitterUidAsFlow_pyqyxo_k$ = function (assignmentUid, clazzUid, accountPersonUid) { var tmp = this._dao_1.findAssignmentCourseBlockAndSubmitterUidAsFlow_pyqyxo_k$(assignmentUid, clazzUid, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzAssignmentDao_Repo$findAssignmentCourseBlockAndSubmitterUidAsFlow$slambda_0(this, assignmentUid, clazzUid, accountPersonUid, null)); }; protoOf(ClazzAssignmentDao_Repo).findEnrolmentsByPersonUidAndAssignmentUid_ry7low_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new $findEnrolmentsByPersonUidAndAssignmentUidCOROUTINE$23(this, assignmentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).findCourseGroupMembersByPersonUidAndAssignmentUid_xbalkq_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new $findCourseGroupMembersByPersonUidAndAssignmentUidCOROUTINE$24(this, assignmentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).findPeerReviewerAllocationsByPersonUidAndAssignmentUid_43gd8g_k$ = function (assignmentUid, accountPersonUid, $completion) { var tmp = new $findPeerReviewerAllocationsByPersonUidAndAssignmentUidCOROUTINE$25(this, assignmentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).getLatestSubmissionTimeAllowed_uvkkbx_k$ = function (assignmentUid, $completion) { var tmp = new $getLatestSubmissionTimeAllowedCOROUTINE$26(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).insert_ichkb1_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ClazzAssignmentDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_ichkb1_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_Repo).insertAsync_n6fqfo_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$27(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzAssignmentDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_n6fqfo_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzAssignmentDao_Repo).insertList_ex3hyb_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ClazzAssignmentDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ex3hyb_k$(entityList); }; protoOf(ClazzAssignmentDao_Repo).update_jt7o6l_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$update$lambda(this, entity)); }; protoOf(ClazzAssignmentDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_jt7o6l_k$(entity instanceof ClazzAssignment ? entity : THROW_CCE()); }; protoOf(ClazzAssignmentDao_Repo).insertListAsync_nja956_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_nja956_k$(entityList, $completion); }; protoOf(ClazzAssignmentDao_Repo).updateListAsync_g40gxm_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzAssignment', ClazzAssignmentDao_Repo$updateListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzAssignmentDao_Repo).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_g40gxm_k$(entityList, $completion); }; function ClazzDao() { } function _get__db__e63s44_2($this) { return $this._db_1; } function _get__dao__d2kw60_0($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$28(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$28).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_clazzUid_k8pnbz_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(6, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_clazzUid_tlygrb_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_clazzLct_l8nosk_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_clazzUid_k8pnbz_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzDao_DoorWrapper(_db, _dao) { ClazzDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ClazzDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(ClazzDao_DoorWrapper).findByClazzCode_8057ie_k$ = function (code, $completion) { return this._dao_1.findByClazzCode_8057ie_k$(code, $completion); }; protoOf(ClazzDao_DoorWrapper).findByClazzCodeFromWeb_7xwii_k$ = function (code, $completion) { return this._dao_1.findByClazzCodeFromWeb_7xwii_k$(code, $completion); }; protoOf(ClazzDao_DoorWrapper).findAllLive_19hd58_k$ = function () { return this._dao_1.findAllLive_19hd58_k$(); }; protoOf(ClazzDao_DoorWrapper).findAll_e3zahk_k$ = function () { throw IllegalStateException_init_$Create$('findAll: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).findByUidAsync_ttwvyf_k$ = function (clazzUid, $completion) { return this._dao_1.findByUidAsync_ttwvyf_k$(clazzUid, $completion); }; protoOf(ClazzDao_DoorWrapper).clazzUidExistsAsync_i9u5qy_k$ = function (clazzUid, $completion) { return this._dao_1.clazzUidExistsAsync_i9u5qy_k$(clazzUid, $completion); }; protoOf(ClazzDao_DoorWrapper).findByUidAsFlow_fzg2cy_k$ = function (uid) { return this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); }; protoOf(ClazzDao_DoorWrapper).findByUidWithHolidayCalendarAsync_dytz84_k$ = function (uid, $completion) { return this._dao_1.findByUidWithHolidayCalendarAsync_dytz84_k$(uid, $completion); }; protoOf(ClazzDao_DoorWrapper).updateAsync_qhbtgn_k$ = function (entity, $completion) { entity.set_clazzLct_l8nosk_k$(systemTimeInMillis()); return this._dao_1.updateAsync_qhbtgn_k$(entity, $completion); }; protoOf(ClazzDao_DoorWrapper).findClazzesWithPermission_k4ai68_k$ = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { return this._dao_1.findClazzesWithPermission_k4ai68_k$(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission); }; protoOf(ClazzDao_DoorWrapper).getClassNamesFromListOfIds_qfk7te_k$ = function (ids, $completion) { return this._dao_1.getClassNamesFromListOfIds_qfk7te_k$(ids, $completion); }; protoOf(ClazzDao_DoorWrapper).findByClazzName_5z1a5j_k$ = function (name) { throw IllegalStateException_init_$Create$('findByClazzName: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).updateClazzAttendanceAverageAsync_usovc0_k$ = function (clazzUid, timeChanged, $completion) { return this._dao_1.updateClazzAttendanceAverageAsync_usovc0_k$(clazzUid, timeChanged, $completion); }; protoOf(ClazzDao_DoorWrapper).clazzAndDetailPermissionsAsFlow_mptfws_k$ = function (accountPersonUid, clazzUid) { return this._dao_1.clazzAndDetailPermissionsAsFlow_mptfws_k$(accountPersonUid, clazzUid); }; protoOf(ClazzDao_DoorWrapper).getClazzWithDisplayDetails_m9nouy_k$ = function (clazzUid, currentTime, accountPersonUid) { return this._dao_1.getClazzWithDisplayDetails_m9nouy_k$(clazzUid, currentTime, accountPersonUid); }; protoOf(ClazzDao_DoorWrapper).findClazzesWithEffectiveHolidayCalendarAndFilter_vxatb5_k$ = function (filterUid) { throw IllegalStateException_init_$Create$('findClazzesWithEffectiveHolidayCalendarAndFilter: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).getTitleByUidAsFlow_bp2lxl_k$ = function (clazzUid) { return this._dao_1.getTitleByUidAsFlow_bp2lxl_k$(clazzUid); }; protoOf(ClazzDao_DoorWrapper).getClazzNameAndTerminologyAsFlow_b37obf_k$ = function (clazzUid) { return this._dao_1.getClazzNameAndTerminologyAsFlow_b37obf_k$(clazzUid); }; protoOf(ClazzDao_DoorWrapper).getClazzNameAsFlow_86n6vz_k$ = function (clazzUid) { return this._dao_1.getClazzNameAsFlow_86n6vz_k$(clazzUid); }; protoOf(ClazzDao_DoorWrapper).getClazzTimeZoneByClazzUidAsync_rra6gu_k$ = function (clazzUid, $completion) { return this._dao_1.getClazzTimeZoneByClazzUidAsync_rra6gu_k$(clazzUid, $completion); }; protoOf(ClazzDao_DoorWrapper).getCoursesByName_17ooxg_k$ = function (names, $completion) { return this._dao_1.getCoursesByName_17ooxg_k$(names, $completion); }; protoOf(ClazzDao_DoorWrapper).findOneRosterUserClazzes_eppsgj_k$ = function (accountPersonUid, filterByEnrolledMemberPersonUid, $completion) { return this._dao_1.findOneRosterUserClazzes_eppsgj_k$(accountPersonUid, filterByEnrolledMemberPersonUid, $completion); }; protoOf(ClazzDao_DoorWrapper).insert_dsng2u_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_dsng2u_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; protoOf(ClazzDao_DoorWrapper).insertAsync_95s22n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$28(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_95s22n_k$(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; protoOf(ClazzDao_DoorWrapper).insertList_fr8cvq_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_fr8cvq_k$(entityList); }; protoOf(ClazzDao_DoorWrapper).update_2mss1m_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_2mss1m_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; function ClazzDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidLive.....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_vxhd4x_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vxhd4x_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vxhd4x_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByClazzCode....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByClazzCodeFromWeb....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findAllLive$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findAllLive$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findAllLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findAllLive.....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findAllLive$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findAllLive$slambda$slambda).invoke_6yga6i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6yga6i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findAllLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findAllLive$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findAllLive$slambda$slambda_0(resultContinuation) { var i = new ClazzDao_JdbcImpl$findAllLive$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6yga6i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsync....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda$lambda(_result) { return mapNextRow(_result, false, ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_vxhd4x_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vxhd4x_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vxhd4x_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var _tmp_HolidayCalendar_nullCount = 0; var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_HolidayCalendar_isAllNull = _tmp_HolidayCalendar_nullCount === 8; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.getLong_3wgf2g_k$('coursePictureUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_coursePictureLct = $_result.getLong_3wgf2g_k$('coursePictureLct'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_coursePictureUri = $_result.getString_gb1pt9_k$('coursePictureUri'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_coursePictureThumbnailUri = $_result.getString_gb1pt9_k$('coursePictureThumbnailUri'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_coursePictureActive = $_result.getBoolean_xz3hoo_k$('coursePictureActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzWithHolidayCalendarAndAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); if (!_tmp_HolidayCalendar_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_1.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_1.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_1.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_1.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_1.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_1.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_1.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_1.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); this_0.set_holidayCalendar_1i7d23_k$(this_1); } if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_2.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_2.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_2.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_2.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_terminology_opn48q_k$(this_2); } if (!_tmp_CoursePicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUidWithHolidayCalendarAsync.....' call this_3.set_coursePictureUid_cmj704_k$(_tmp_coursePictureUid); this_3.set_coursePictureLct_kztyyv_k$(_tmp_coursePictureLct); this_3.set_coursePictureUri_6vliwf_k$(_tmp_coursePictureUri); this_3.set_coursePictureThumbnailUri_kmahw1_k$(_tmp_coursePictureThumbnailUri); this_3.set_coursePictureActive_8jknmf_k$(_tmp_coursePictureActive); this_0.set_coursePicture_h9sgol_k$(this_3); } return this_0; }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numStudents = $_result.getInt_npc9pd_k$('numStudents'); var _tmp_numTeachers = $_result.getInt_npc9pd_k$('numTeachers'); var _tmp_teacherNames = $_result.getString_gb1pt9_k$('teacherNames'); var _tmp_lastRecorded = $_result.getLong_3wgf2g_k$('lastRecorded'); var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.getLong_3wgf2g_k$('coursePictureUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_coursePictureLct = $_result.getLong_3wgf2g_k$('coursePictureLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_coursePictureUri = $_result.getString_gb1pt9_k$('coursePictureUri'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_coursePictureThumbnailUri = $_result.getString_gb1pt9_k$('coursePictureThumbnailUri'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_coursePictureActive = $_result.getBoolean_xz3hoo_k$('coursePictureActive'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzWithListDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_numStudents_sx9y7t_k$(_tmp_numStudents); this_0.set_numTeachers_35yqj6_k$(_tmp_numTeachers); this_0.set_teacherNames_eipx1w_k$(_tmp_teacherNames); this_0.set_lastRecorded_46vqe3_k$(_tmp_lastRecorded); this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); if (!_tmp_ClazzEnrolment_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_1.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_1.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_1.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_1.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_1.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_1.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_1.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_1.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_1.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_1.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_1.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_1.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_1.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); this_0.set_clazzActiveEnrolment_bpyzvp_k$(this_1); } if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_2.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_2.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_2.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_terminology_opn48q_k$(this_2); } if (!_tmp_CoursePicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_coursePictureUid_cmj704_k$(_tmp_coursePictureUid); this_3.set_coursePictureLct_kztyyv_k$(_tmp_coursePictureLct); this_3.set_coursePictureUri_6vliwf_k$(_tmp_coursePictureUri); this_3.set_coursePictureThumbnailUri_kmahw1_k$(_tmp_coursePictureThumbnailUri); this_3.set_coursePictureActive_8jknmf_k$(_tmp_coursePictureActive); this_0.set_coursePicture_h9sgol_k$(this_3); } return this_0; }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) { this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchQuery_1 = $searchQuery; this.$excludeSelectedClazzList_1 = $excludeSelectedClazzList; this.$filter_1 = $filter; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).invoke_hr8vrm_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_hr8vrm_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(2, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$permission_1); this._stmt_1.setString_2gt7ua_k$(11, this.$searchQuery_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$excludeSelectedClazzList_1; this._stmt_1.setArray_61y2p9_k$(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setInt_c72a8z_k$(13, this.$filter_1); this._stmt_1.setInt_c72a8z_k$(14, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(15, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(16, this.$currentTime_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(19, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(20, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(21, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(22, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda(this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchQuery_1, this.$excludeSelectedClazzList_1, this.$filter_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_hr8vrm_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) { this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchQuery_1 = $searchQuery; this.$excludeSelectedClazzList_1 = $excludeSelectedClazzList; this.$filter_1 = $filter; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(2, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$permission_1); this._stmt_1.setString_2gt7ua_k$(11, this.$searchQuery_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$excludeSelectedClazzList_1; this._stmt_1.setArray_61y2p9_k$(12, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setInt_c72a8z_k$(13, this.$filter_1); this._stmt_1.setInt_c72a8z_k$(14, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(15, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(16, this.$currentTime_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(19, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(20, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda(this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchQuery_1, this.$excludeSelectedClazzList_1, this.$filter_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation) { var i = new ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda($currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda$lambda$lambda($_result) { return function (it) { var _tmp_uid = $_result.getLong_3wgf2g_k$('uid'); var _tmp_labelName = $_result.getString_gb1pt9_k$('labelName'); // Inline function 'kotlin.apply' call var this_0 = new UidAndLabel(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClassNamesFromListOfIds....' call this_0.set_uid_lbehe3_k$(_tmp_uid); this_0.set_labelName_l2tf85_k$(_tmp_labelName); return this_0; }; } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_hasAttendancePermission = $_result.getBoolean_xz3hoo_k$('hasAttendancePermission'); var _tmp_hasViewMembersPermission = $_result.getBoolean_xz3hoo_k$('hasViewMembersPermission'); var _tmp_hasLearningRecordPermission = $_result.getBoolean_xz3hoo_k$('hasLearningRecordPermission'); var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; // Inline function 'kotlin.apply' call var this_0 = new ClazzAndDetailPermissions(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow.....' call this_0.set_hasAttendancePermission_p2fnk0_k$(_tmp_hasAttendancePermission); this_0.set_hasViewMembersPermission_763s4v_k$(_tmp_hasViewMembersPermission); this_0.set_hasLearningRecordPermission_ly3xie_k$(_tmp_hasLearningRecordPermission); if (!_tmp_Clazz_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.clazzAndDetailPermissionsAsFlow......' call this_1.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_1.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_1.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_1.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_1.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_1.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_1.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_1.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_1.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_1.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_1.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_1.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_1.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_1.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_1.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_1.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_1.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_1.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_1.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_1.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_1.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_1.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_1.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_1.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_1.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); this_0.set_clazz_sym4kf_k$(this_1); } return this_0; }; } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).invoke_kmlejq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_kmlejq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(23, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(24, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(25, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_kmlejq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numStudents = $_result.getInt_npc9pd_k$('numStudents'); var _tmp_numTeachers = $_result.getInt_npc9pd_k$('numTeachers'); var _tmp_activeUserIsStudent = $_result.getBoolean_xz3hoo_k$('activeUserIsStudent'); var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.getLong_3wgf2g_k$('coursePictureUid'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_coursePictureLct = $_result.getLong_3wgf2g_k$('coursePictureLct'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_coursePictureUri = $_result.getString_gb1pt9_k$('coursePictureUri'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_coursePictureThumbnailUri = $_result.getString_gb1pt9_k$('coursePictureThumbnailUri'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_coursePictureActive = $_result.getBoolean_xz3hoo_k$('coursePictureActive'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails.....' call this_0.set_numStudents_sx9y7t_k$(_tmp_numStudents); this_0.set_numTeachers_35yqj6_k$(_tmp_numTeachers); this_0.set_activeUserIsStudent_fjf5f2_k$(_tmp_activeUserIsStudent); if (!_tmp_Clazz_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_1.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_1.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_1.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_1.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_1.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_1.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_1.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_1.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_1.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_1.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_1.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_1.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_1.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_1.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_1.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_1.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_1.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_1.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_1.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_1.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_1.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_1.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_1.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_1.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_1.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); this_0.set_clazz_sym4kf_k$(this_1); } if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_2.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_2.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_2.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_2.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_terminology_opn48q_k$(this_2); } if (!_tmp_CoursePicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzWithDisplayDetails......' call this_3.set_coursePictureUid_cmj704_k$(_tmp_coursePictureUid); this_3.set_coursePictureLct_kztyyv_k$(_tmp_coursePictureLct); this_3.set_coursePictureUri_6vliwf_k$(_tmp_coursePictureUri); this_3.set_coursePictureThumbnailUri_kmahw1_k$(_tmp_coursePictureThumbnailUri); this_3.set_coursePictureActive_8jknmf_k$(_tmp_coursePictureActive); this_0.set_coursePicture_h9sgol_k$(this_3); } return this_0; }; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation) { this.$currentTime_1 = $currentTime; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).invoke_3kx4md_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_3kx4md_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(2, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda(this.$currentTime_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0($currentTime, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda($currentTime, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_3kx4md_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ClazzNameAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow.....' call this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getClazzNameAndTerminologyAsFlow......' call this_1.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_1.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_1.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_1.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_terminology_opn48q_k$(this_1); } return this_0; }; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).invoke_ky740f_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ky740f_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ky740f_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function ClazzDao_JdbcImpl$getCoursesByName$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$getCoursesByName$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$getCoursesByName$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.getCoursesByName....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findOneRosterUserClazzes....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).bindPreparedStmtToEntity_ly4p3l_k$ = function (stmt, entity) { if (entity.get_clazzUid_k8pnbz_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzUid_k8pnbz_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_clazzName_brsrx6_k$()); stmt.setString_2gt7ua_k$(3, entity.get_clazzDesc_brmh5s_k$()); stmt.setFloat_dia6lm_k$(4, entity.get_attendanceAverage_q3uit1_k$()); stmt.setLong_j1sybo_k$(5, entity.get_clazzHolidayUMCalendarUid_diy12p_k$()); stmt.setLong_j1sybo_k$(6, entity.get_clazzScheuleUMCalendarUid_pyne08_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_isClazzActive_pdk9bp_k$()); stmt.setLong_j1sybo_k$(8, entity.get_clazzLocationUid_64jec4_k$()); stmt.setLong_j1sybo_k$(9, entity.get_clazzStartTime_lc1vds_k$()); stmt.setLong_j1sybo_k$(10, entity.get_clazzEndTime_sxjf8n_k$()); stmt.setLong_j1sybo_k$(11, entity.get_clazzFeatures_6nf4ac_k$()); stmt.setLong_j1sybo_k$(12, entity.get_clazzSchoolUid_g4bglp_k$()); stmt.setInt_c72a8z_k$(13, entity.get_clazzEnrolmentPolicy_pv7kzr_k$()); stmt.setLong_j1sybo_k$(14, entity.get_clazzTerminologyUid_4xpw4_k$()); stmt.setLong_j1sybo_k$(15, entity.get_clazzMasterChangeSeqNum_7fn794_k$()); stmt.setLong_j1sybo_k$(16, entity.get_clazzLocalChangeSeqNum_9hlwk3_k$()); stmt.setInt_c72a8z_k$(17, entity.get_clazzLastChangedBy_wnz9za_k$()); stmt.setLong_j1sybo_k$(18, entity.get_clazzLct_k8pu4y_k$()); stmt.setString_2gt7ua_k$(19, entity.get_clazzTimeZone_yu1krs_k$()); stmt.setLong_j1sybo_k$(20, entity.get_clazzStudentsPersonGroupUid_myynpp_k$()); stmt.setLong_j1sybo_k$(21, entity.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); stmt.setLong_j1sybo_k$(22, entity.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); stmt.setLong_j1sybo_k$(23, entity.get_clazzParentsPersonGroupUid_gibku8_k$()); stmt.setString_2gt7ua_k$(24, entity.get_clazzCode_brm18c_k$()); stmt.setLong_j1sybo_k$(25, entity.get_clazzOwnerPersonUid_iplxz_k$()); }; protoOf(ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ly4p3l_k$(stmt, entity instanceof Clazz ? entity : THROW_CCE()); }; function ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_clazzName_brsrx6_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_clazzDesc_brmh5s_k$()); this._stmt_1.setFloat_dia6lm_k$(3, this.$entity_1.get_attendanceAverage_q3uit1_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_clazzHolidayUMCalendarUid_diy12p_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_clazzScheuleUMCalendarUid_pyne08_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$entity_1.get_isClazzActive_pdk9bp_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_clazzLocationUid_64jec4_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_clazzStartTime_lc1vds_k$()); this._stmt_1.setLong_j1sybo_k$(9, this.$entity_1.get_clazzEndTime_sxjf8n_k$()); this._stmt_1.setLong_j1sybo_k$(10, this.$entity_1.get_clazzFeatures_6nf4ac_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_clazzSchoolUid_g4bglp_k$()); this._stmt_1.setInt_c72a8z_k$(12, this.$entity_1.get_clazzEnrolmentPolicy_pv7kzr_k$()); this._stmt_1.setLong_j1sybo_k$(13, this.$entity_1.get_clazzTerminologyUid_4xpw4_k$()); this._stmt_1.setLong_j1sybo_k$(14, this.$entity_1.get_clazzMasterChangeSeqNum_7fn794_k$()); this._stmt_1.setLong_j1sybo_k$(15, this.$entity_1.get_clazzLocalChangeSeqNum_9hlwk3_k$()); this._stmt_1.setInt_c72a8z_k$(16, this.$entity_1.get_clazzLastChangedBy_wnz9za_k$()); this._stmt_1.setLong_j1sybo_k$(17, this.$entity_1.get_clazzLct_k8pu4y_k$()); this._stmt_1.setString_2gt7ua_k$(18, this.$entity_1.get_clazzTimeZone_yu1krs_k$()); this._stmt_1.setLong_j1sybo_k$(19, this.$entity_1.get_clazzStudentsPersonGroupUid_myynpp_k$()); this._stmt_1.setLong_j1sybo_k$(20, this.$entity_1.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); this._stmt_1.setLong_j1sybo_k$(21, this.$entity_1.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); this._stmt_1.setLong_j1sybo_k$(22, this.$entity_1.get_clazzParentsPersonGroupUid_gibku8_k$()); this._stmt_1.setString_2gt7ua_k$(23, this.$entity_1.get_clazzCode_brm18c_k$()); this._stmt_1.setLong_j1sybo_k$(24, this.$entity_1.get_clazzOwnerPersonUid_iplxz_k$()); this._stmt_1.setLong_j1sybo_k$(25, this.$entity_1.get_clazzUid_k8pnbz_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ClazzDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_clazzName_brsrx6_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_clazzDesc_brmh5s_k$()); _stmt.setFloat_dia6lm_k$(3, $entity.get_attendanceAverage_q3uit1_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_clazzHolidayUMCalendarUid_diy12p_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_clazzScheuleUMCalendarUid_pyne08_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_isClazzActive_pdk9bp_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_clazzLocationUid_64jec4_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_clazzStartTime_lc1vds_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_clazzEndTime_sxjf8n_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_clazzFeatures_6nf4ac_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_clazzSchoolUid_g4bglp_k$()); _stmt.setInt_c72a8z_k$(12, $entity.get_clazzEnrolmentPolicy_pv7kzr_k$()); _stmt.setLong_j1sybo_k$(13, $entity.get_clazzTerminologyUid_4xpw4_k$()); _stmt.setLong_j1sybo_k$(14, $entity.get_clazzMasterChangeSeqNum_7fn794_k$()); _stmt.setLong_j1sybo_k$(15, $entity.get_clazzLocalChangeSeqNum_9hlwk3_k$()); _stmt.setInt_c72a8z_k$(16, $entity.get_clazzLastChangedBy_wnz9za_k$()); _stmt.setLong_j1sybo_k$(17, $entity.get_clazzLct_k8pu4y_k$()); _stmt.setString_2gt7ua_k$(18, $entity.get_clazzTimeZone_yu1krs_k$()); _stmt.setLong_j1sybo_k$(19, $entity.get_clazzStudentsPersonGroupUid_myynpp_k$()); _stmt.setLong_j1sybo_k$(20, $entity.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); _stmt.setLong_j1sybo_k$(21, $entity.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); _stmt.setLong_j1sybo_k$(22, $entity.get_clazzParentsPersonGroupUid_gibku8_k$()); _stmt.setString_2gt7ua_k$(23, $entity.get_clazzCode_brm18c_k$()); _stmt.setLong_j1sybo_k$(24, $entity.get_clazzOwnerPersonUid_iplxz_k$()); _stmt.setLong_j1sybo_k$(25, $entity.get_clazzUid_k8pnbz_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, ClazzDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByUid....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzDao_JdbcImpl$findByUid$lambda$lambda); }; } function ClazzDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda).invoke_2q60er_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2q60er_k$($completion); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * From Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * From Clazz WHERE clazzUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_2q60er_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation) { this.$code_1 = $code; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).invoke_vxhd4x_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vxhd4x_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$code_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByClazzCode$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda(this.$code_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByClazzCode$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByClazzCode$slambda_0($code, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByClazzCode$slambda($code, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vxhd4x_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda($code, resultContinuation) { this.$code_1 = $code; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda).invoke_vxhd4x_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vxhd4x_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$code_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda(this.$code_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda_0($code, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda($code, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vxhd4x_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findAllLive$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findAllLive$slambda).invoke_j69vby_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_j69vby_k$($completion); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$findAllLive$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findAllLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$findAllLive$slambda(this.this$0__1, completion); }; function ClazzDao_JdbcImpl$findAllLive$slambda_0(this$0, resultContinuation) { var i = new ClazzDao_JdbcImpl$findAllLive$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_j69vby_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$findAll$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzDao_JdbcImpl$findAll$lambda$lambda); } function ClazzDao_JdbcImpl$findAll$lambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findAll$lambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findAll$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findAll....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).invoke_vxhd4x_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vxhd4x_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vxhd4x_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).invoke_2q60er_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2q60er_k$($completion); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_2q60er_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).invoke_ljui1u_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ljui1u_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0($uid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ljui1u_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findClazzesWithPermission$1(this$0, $currentTime, $accountPersonUid, $permission, $searchQuery, $excludeSelectedClazzList, $filter, $sortOrder) { this.this$0__1 = this$0; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchQuery_1 = $searchQuery; this.$excludeSelectedClazzList_1 = $excludeSelectedClazzList; this.$filter_1 = $filter; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'ClazzEnrolment', 'CoursePermission', 'SystemPermission', 'CourseTerminology', 'CoursePicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).loadRows_ordqvv_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n CAST(? AS BIGINT) != 0\n AND (\n Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n ? != 0\n AND (\n Clazz.clazzOwnerPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE ? > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$loadRows$slambda_0(this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchQuery_1, this.$excludeSelectedClazzList_1, this.$filter_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_ordqvv_k$(_limit, _offset, $completion); }; protoOf(ClazzDao_JdbcImpl$findClazzesWithPermission$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n CAST(? AS BIGINT) != 0\n AND (\n Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & CAST(? AS BIGINT)) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN CAST(? AS BIGINT) BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE CAST(? AS BIGINT) > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Clazz.*, ClazzEnrolment.*, CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n '' AS teacherNames,\n 0 AS lastRecorded,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n LEFT JOIN CourseTerminology \n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = Clazz.clazzUid \n\n WHERE /* Begin permission check clause */\n ? != 0\n AND (\n Clazz.clazzOwnerPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & ?) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n /* End permission check clause */ \n AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n AND Clazz.clazzName like ?\n AND (Clazz.clazzUid NOT IN (?))\n AND ( ? = 0 OR (CASE WHEN ? = 5 \n THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n ELSE ? > Clazz.clazzEndTime \n END))\n GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid, CoursePicture.coursePictureUid\n ORDER BY CASE ?\n WHEN 3 THEN Clazz.attendanceAverage\n ELSE 0\n END ASC,\n CASE ?\n WHEN 1 THEN Clazz.clazzName\n ELSE ''\n END ASC,\n CASE ?\n WHEN 4 THEN Clazz.attendanceAverage\n ELSE 0\n END DESC,\n CASE ?\n WHEN 2 THEN clazz.Clazzname\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzDao_JdbcImpl$findClazzesWithPermission$o$countRows$slambda_0(this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchQuery_1, this.$excludeSelectedClazzList_1, this.$filter_1, this.$sortOrder_1, null), $completion); }; function ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda($ids, resultContinuation) { this.$ids_1 = $ids; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda).invoke_6qis67_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6qis67_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$ids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda(this.$ids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda_0($ids, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda($ids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6qis67_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findByClazzName$lambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findByClazzName$lambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findByClazzName$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findByClazzName....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); return this_0; }; } function ClazzDao_JdbcImpl$findByClazzName$lambda($name) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $name); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzDao_JdbcImpl$findByClazzName$lambda$lambda); }; } function ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda($clazzUid, $timeChanged, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$timeChanged_1 = $timeChanged; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$timeChanged_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda(this.$clazzUid_1, this.$timeChanged_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda_0($clazzUid, $timeChanged, resultContinuation) { var i = new ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda($clazzUid, $timeChanged, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).invoke_riij3u_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_riij3u_k$($completion); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.*,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 32\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 32\n \n ) > 0)\n )\n \n ) AS hasAttendancePermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n \n ) AS hasViewMembersPermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 128\n \n ) > 0)\n )\n \n ) AS hasLearningRecordPermission\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n AND ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 1\n \n ) > 0)\n )\n \n )\n ', VOID, VOID, VOID, '\n SELECT Clazz.*,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 32\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 32\n \n ) > 0)\n )\n \n ) AS hasAttendancePermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n \n ) AS hasViewMembersPermission,\n ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 128\n \n ) > 0)\n )\n \n ) AS hasLearningRecordPermission\n FROM Clazz\n WHERE Clazz.clazzUid = ?\n AND ( (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 1\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 1\n \n ) > 0)\n )\n \n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, completion); }; function ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_riij3u_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$currentTime_1 = $currentTime; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).invoke_s5p01_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_s5p01_k$($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.*, \n CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001 \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n CourseTerminology.*,\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n ) AS activeUserIsStudent\n FROM Clazz \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n SELECT Clazz.*, \n CoursePicture.*,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1000 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n (SELECT COUNT(DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid) \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n AND clazzEnrolmentRole = 1001 \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n CourseTerminology.*,\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n)\n ) AS activeUserIsStudent\n FROM Clazz \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = ?\n WHERE Clazz.clazzUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda$slambda_0(this.$currentTime_1, this.$clazzUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this.this$0__1, this.$currentTime_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); }; function ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda(this$0, $currentTime, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_s5p01_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda$lambda(_result) { return mapRows(_result, ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda$lambda$lambda(_result)); } function ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var _tmp_HolidayCalendar_nullCount = 0; var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_HolidayCalendar_nullCount = _tmp_HolidayCalendar_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_HolidayCalendar_isAllNull = _tmp_HolidayCalendar_nullCount === 8; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.getLong_3wgf2g_k$('coursePictureUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_coursePictureLct = $_result.getLong_3wgf2g_k$('coursePictureLct'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_coursePictureUri = $_result.getString_gb1pt9_k$('coursePictureUri'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_coursePictureThumbnailUri = $_result.getString_gb1pt9_k$('coursePictureThumbnailUri'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_coursePictureActive = $_result.getBoolean_xz3hoo_k$('coursePictureActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new ClazzWithHolidayCalendarAndAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findClazzesWithEffectiveHolidayCalendarAndFilter....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_0.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_0.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_0.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_0.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_0.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_0.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_0.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_0.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_0.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_0.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_0.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_0.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); if (!_tmp_HolidayCalendar_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findClazzesWithEffectiveHolidayCalendarAndFilter.....' call this_1.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_1.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_1.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_1.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_1.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_1.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_1.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_1.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); this_0.set_holidayCalendar_1i7d23_k$(this_1); } if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findClazzesWithEffectiveHolidayCalendarAndFilter.....' call this_2.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_2.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_2.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_2.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_terminology_opn48q_k$(this_2); } if (!_tmp_CoursePicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzDao_JdbcImpl.findClazzesWithEffectiveHolidayCalendarAndFilter.....' call this_3.set_coursePictureUid_cmj704_k$(_tmp_coursePictureUid); this_3.set_coursePictureLct_kztyyv_k$(_tmp_coursePictureLct); this_3.set_coursePictureUri_6vliwf_k$(_tmp_coursePictureUri); this_3.set_coursePictureThumbnailUri_kmahw1_k$(_tmp_coursePictureThumbnailUri); this_3.set_coursePictureActive_8jknmf_k$(_tmp_coursePictureActive); this_0.set_coursePicture_h9sgol_k$(this_3); } return this_0; }; } function ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda($filterUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $filterUid); _stmt.setLong_j1sybo_k$(2, $filterUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda$lambda); }; } function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).invoke_723mci_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_723mci_k$($completion); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_723mci_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).invoke_ycejph_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_ycejph_k$($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName AS clazzName,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName AS clazzName,\n CourseTerminology.*\n FROM Clazz\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE Clazz.clazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda$slambda_0(this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_ycejph_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).invoke_723mci_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_723mci_k$($completion); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Clazz.clazzName AS clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzName AS clazzName\n FROM Clazz\n WHERE Clazz.clazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda$slambda_0(this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_723mci_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$getCoursesByName$slambda($names, resultContinuation) { this.$names_1 = $names; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$getCoursesByName$slambda).invoke_6yga6i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$getCoursesByName$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6yga6i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$getCoursesByName$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$names_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'TEXT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$getCoursesByName$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$getCoursesByName$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$getCoursesByName$slambda(this.$names_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$getCoursesByName$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$getCoursesByName$slambda_0($names, resultContinuation) { var i = new ClazzDao_JdbcImpl$getCoursesByName$slambda($names, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6yga6i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda($accountPersonUid, $filterByEnrolledMemberPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$filterByEnrolledMemberPersonUid_1 = $filterByEnrolledMemberPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda).invoke_6yga6i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6yga6i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$filterByEnrolledMemberPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda(this.$accountPersonUid_1, this.$filterByEnrolledMemberPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda_0($accountPersonUid, $filterByEnrolledMemberPersonUid, resultContinuation) { var i = new ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda($accountPersonUid, $filterByEnrolledMemberPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6yga6i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$29(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$29).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterClazz_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$30(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$30).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ?, clazzOwnerPersonUid = ? WHERE clazzUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, ClazzDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateClazzAttendanceAverageAsyncCOROUTINE$31(_this__u8e3s4, clazzUid, timeChanged, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.timeChanged_1 = timeChanged; } protoOf($updateClazzAttendanceAverageAsyncCOROUTINE$31).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE Clazz \n SET attendanceAverage = \n COALESCE(CAST(\n (SELECT SUM(clazzLogNumPresent) \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLogStatusFlag = 4) AS REAL) /\n \n CAST(MAX(1.0, \n (SELECT SUM(clazzLogNumPresent) + SUM(clazzLogNumPartial) + SUM(clazzLogNumAbsent)\n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT) \n AND clazzLogStatusFlag = 4)) AS REAL), 0),\n clazzLct = CAST(? AS BIGINT) \n WHERE clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE Clazz \n SET attendanceAverage = \n COALESCE(CAST(\n (SELECT SUM(clazzLogNumPresent) \n FROM ClazzLog \n WHERE clazzLogClazzUid = ?\n AND clazzLogStatusFlag = 4) AS REAL) /\n \n CAST(GREATEST(1.0, \n (SELECT SUM(clazzLogNumPresent) + SUM(clazzLogNumPartial) + SUM(clazzLogNumAbsent)\n FROM ClazzLog \n WHERE clazzLogClazzUid = ? \n AND clazzLogStatusFlag = 4)) AS REAL), 0),\n clazzLct = ? \n WHERE clazzUid = ?\n ', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ClazzDao_JdbcImpl$updateClazzAttendanceAverageAsync$slambda_0(this.clazzUid_1, this.timeChanged_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzDao_JdbcImpl(_db) { ClazzDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterClazz_abort_1 = new ClazzDao_JdbcImpl$_insertAdapterClazz_abort$1(this); } protoOf(ClazzDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzDao_JdbcImpl).get__insertAdapterClazz_abort_1og7hz_k$ = function () { return this._insertAdapterClazz_abort_1; }; protoOf(ClazzDao_JdbcImpl).insert_dsng2u_k$ = function (entity) { var _retVal = this._insertAdapterClazz_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_dsng2u_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; protoOf(ClazzDao_JdbcImpl).insertAsync_95s22n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$29(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_95s22n_k$(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; protoOf(ClazzDao_JdbcImpl).insertList_fr8cvq_k$ = function (entityList) { this._insertAdapterClazz_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_fr8cvq_k$(entityList); }; protoOf(ClazzDao_JdbcImpl).updateAsync_qhbtgn_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$30(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl).update_2mss1m_k$ = function (entity) { var _sql = 'UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ?, clazzOwnerPersonUid = ? WHERE clazzUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ClazzDao_JdbcImpl$update$lambda(entity)); }; protoOf(ClazzDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_2mss1m_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; protoOf(ClazzDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(ClazzDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(ClazzDao_JdbcImpl).findByClazzCode_8057ie_k$ = function (code, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzCode = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$findByClazzCode$slambda_0(code, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findByClazzCodeFromWeb_7xwii_k$ = function (code, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzCode = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$findByClazzCodeFromWeb$slambda_0(code, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findAllLive_19hd58_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$findAllLive$slambda_0(this, null)); }; protoOf(ClazzDao_JdbcImpl).findAll_e3zahk_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzDao_JdbcImpl$findAll$lambda); }; protoOf(ClazzDao_JdbcImpl).findByUidAsync_ttwvyf_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Clazz WHERE clazzUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$findByUidAsync$slambda_0(clazzUid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).clazzUidExistsAsync_i9u5qy_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT Clazz.clazzUid\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT Clazz.clazzUid\n FROM Clazz\n WHERE Clazz.clazzUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$clazzUidExistsAsync$slambda_0(clazzUid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findByUidAsFlow_fzg2cy_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(ClazzDao_JdbcImpl).findByUidWithHolidayCalendarAsync_dytz84_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.*, \n CoursePicture.*,\n HolidayCalendar.*, \n CourseTerminology.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = CAST(? AS BIGINT)\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n SELECT Clazz.*, \n CoursePicture.*,\n HolidayCalendar.*, \n CourseTerminology.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = ?\n WHERE Clazz.clazzUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$findByUidWithHolidayCalendarAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findClazzesWithPermission_k4ai68_k$ = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { return new ClazzDao_JdbcImpl$findClazzesWithPermission$1(this, currentTime, accountPersonUid, permission, searchQuery, excludeSelectedClazzList, filter, sortOrder); }; protoOf(ClazzDao_JdbcImpl).getClassNamesFromListOfIds_qfk7te_k$ = function (ids, $completion) { var tmp = new PreparedStatementConfig('SELECT Clazz.clazzUid AS uid, Clazz.clazzName AS labelName From Clazz WHERE clazzUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$getClassNamesFromListOfIds$slambda_0(ids, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findByClazzName_5z1a5j_k$ = function (name) { var tmp = new PreparedStatementConfig('SELECT * FROM Clazz WHERE clazzName = ? and CAST(isClazzActive AS INTEGER) = 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzDao_JdbcImpl$findByClazzName$lambda(name)); }; protoOf(ClazzDao_JdbcImpl).updateClazzAttendanceAverageAsync_usovc0_k$ = function (clazzUid, timeChanged, $completion) { var tmp = new $updateClazzAttendanceAverageAsyncCOROUTINE$31(this, clazzUid, timeChanged, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_JdbcImpl).clazzAndDetailPermissionsAsFlow_mptfws_k$ = function (accountPersonUid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$clazzAndDetailPermissionsAsFlow$slambda_0(this, clazzUid, accountPersonUid, null)); }; protoOf(ClazzDao_JdbcImpl).getClazzWithDisplayDetails_m9nouy_k$ = function (clazzUid, currentTime, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseTerminology', 'Clazz', 'CoursePicture', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$getClazzWithDisplayDetails$slambda_0(this, currentTime, clazzUid, accountPersonUid, null)); }; protoOf(ClazzDao_JdbcImpl).findClazzesWithEffectiveHolidayCalendarAndFilter_vxatb5_k$ = function (filterUid) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.*, \n HolidayCalendar.*,\n CourseTerminology.*,\n CoursePicture.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON ((clazz.clazzHolidayUMCalendarUid != 0 \n AND HolidayCalendar.umCalendarUid = clazz.clazzHolidayUMCalendarUid)\n OR clazz.clazzHolidayUMCalendarUid = 0 AND clazz.clazzSchoolUid = 0 \n AND HolidayCalendar.umCalendarUid = 0) \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = 0\n \n WHERE CAST(? AS BIGINT) = 0 \n OR Clazz.clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Clazz.*, \n HolidayCalendar.*,\n CourseTerminology.*,\n CoursePicture.*\n FROM Clazz \n LEFT JOIN HolidayCalendar \n ON ((clazz.clazzHolidayUMCalendarUid != 0 \n AND HolidayCalendar.umCalendarUid = clazz.clazzHolidayUMCalendarUid)\n OR clazz.clazzHolidayUMCalendarUid = 0 AND clazz.clazzSchoolUid = 0 \n AND HolidayCalendar.umCalendarUid = 0) \n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n \n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = 0\n \n WHERE ? = 0 \n OR Clazz.clazzUid = ?\n \n', true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzDao_JdbcImpl$findClazzesWithEffectiveHolidayCalendarAndFilter$lambda(filterUid)); }; protoOf(ClazzDao_JdbcImpl).getTitleByUidAsFlow_bp2lxl_k$ = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).getClazzNameAndTerminologyAsFlow_b37obf_k$ = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseTerminology', 'Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).getClazzNameAsFlow_86n6vz_k$ = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz']; return doorFlow(this._db_1, tmp, ClazzDao_JdbcImpl$getClazzNameAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_JdbcImpl).getClazzTimeZoneByClazzUidAsync_rra6gu_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.clazzTimeZone\n FROM Clazz\n WHERE Clazz.clazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Clazz.clazzTimeZone\n FROM Clazz\n WHERE Clazz.clazzUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$getClazzTimeZoneByClazzUidAsync$slambda_0(clazzUid, null), $completion); }; protoOf(ClazzDao_JdbcImpl).getCoursesByName_17ooxg_k$ = function (names, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.*\n FROM Clazz\n WHERE Clazz.clazzName IN (?) \n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$getCoursesByName$slambda_0(names, null), $completion); }; protoOf(ClazzDao_JdbcImpl).findOneRosterUserClazzes_eppsgj_k$ = function (accountPersonUid, filterByEnrolledMemberPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Clazz.*\n FROM CLAZZ\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE ( Clazz.clazzOwnerPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 1) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n AND EXISTS \n (SELECT ClazzEnrolment.clazzEnrolmentUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n ) \n ', VOID, VOID, VOID, '\n SELECT Clazz.*\n FROM CLAZZ\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE ( Clazz.clazzOwnerPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = Clazz.clazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 1) > 0 \n AND NOT CoursePermission.cpIsDeleted) \n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ) \n )\n AND EXISTS \n (SELECT ClazzEnrolment.clazzEnrolmentUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n ) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzDao_JdbcImpl$findOneRosterUserClazzes$slambda_0(accountPersonUid, filterByEnrolledMemberPersonUid, null), $completion); }; function ClazzDao_Repo$findByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findClazzesWithPermission$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findByClazzCode$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$clazzUidExistsAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/findByUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/findByUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$findByUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$findByUidAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzDao_Repo$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzDao_Repo$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(ClazzDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_qhbtgn_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) { this.this$0__1 = this$0; this.$searchQuery_1 = $searchQuery; this.$accountPersonUid_1 = $accountPersonUid; this.$excludeSelectedClazzList_1 = $excludeSelectedClazzList; this.$sortOrder_1 = $sortOrder; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ClazzDao/findClazzesWithPermission'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/findClazzesWithPermission'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'searchQuery', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchQuery_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'excludeSelectedClazzList', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer(Companion_getInstance())), this.$excludeSelectedClazzList_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'filter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$filter_1)); parameter(this_0, 'currentTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$currentTime_1)); parameter(this_0, 'permission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$permission_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$findClazzesWithPermission$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this.this$0__1, this.$searchQuery_1, this.$accountPersonUid_1, this.$excludeSelectedClazzList_1, this.$sortOrder_1, this.$filter_1, this.$currentTime_1, this.$permission_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ClazzDao_Repo$findClazzesWithPermission$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ClazzDao_Repo$findClazzesWithPermission$slambda_0(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation) { var i = new ClazzDao_Repo$findClazzesWithPermission$slambda(this$0, $searchQuery, $accountPersonUid, $excludeSelectedClazzList, $sortOrder, $filter, $currentTime, $permission, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda(this$0, $clazzUid, $timeChanged, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$timeChanged_1 = $timeChanged; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateClazzAttendanceAverageAsync_usovc0_k$(this.$clazzUid_1, this.$timeChanged_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda(this.this$0__1, this.$clazzUid_1, this.$timeChanged_1, completion); }; function ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda_0(this$0, $clazzUid, $timeChanged, resultContinuation) { var i = new ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda(this$0, $clazzUid, $timeChanged, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/clazzAndDetailPermissionsAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/clazzAndDetailPermissionsAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$clazzUid_1, completion); }; function ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getClazzWithDisplayDetails'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getClazzWithDisplayDetails'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'currentTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$currentTime_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$getClazzWithDisplayDetails$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$getClazzWithDisplayDetails$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this.this$0__1, this.$clazzUid_1, this.$currentTime_1, this.$accountPersonUid_1, completion); }; function ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzWithDisplayDetails$slambda(this$0, $clazzUid, $currentTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getTitleByUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getTitleByUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$getTitleByUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$getTitleByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getTitleByUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getClazzNameAndTerminologyAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getClazzNameAndTerminologyAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getClazzNameAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getClazzNameAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzDao_Repo$getClazzNameAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzDao_Repo$getClazzNameAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$getClazzNameAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ClazzDao_Repo$getClazzNameAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$getCoursesByName$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$findOneRosterUserClazzes$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ClazzDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ClazzDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ClazzDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByClazzCodeCOROUTINE$32(_this__u8e3s4, code, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.code_1 = code; } protoOf($findByClazzCodeCOROUTINE$32).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/findByClazzCode'; this.set_exceptionState_fex74n_k$(3); this.ARGUMENT3__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(); this.ARGUMENT4__1 = get_nullable(Companion_getInstance_57().serializer_9w0wvi_k$()); var tmp_2 = this; tmp_2.this5__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_httpClient_cdum84_k$(); var tmp_3 = this; tmp_3.this6__1 = this.this5__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/findByClazzCode'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'code', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.code_1)); tmp_4.builder7__1 = this_0; this.builder7__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this8__1 = this.this6__1; var tmp_6 = this; tmp_6.builder9__1 = this.builder7__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder9__1, this.this8__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ARGUMENT10__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = bodyAsText(this.ARGUMENT10__1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ARGUMENT11__1 = suspendResult; this.TRY_RESULT2__1 = this.ARGUMENT3__1.decodeFromString_jwu9sq_k$(this.ARGUMENT4__1, this.ARGUMENT11__1); this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e12__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e12__1, tmp1_tag, ClazzDao_Repo$findByClazzCode$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzCode_8057ie_k$(this.code_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.TRY_RESULT2__1 = suspendResult; this.set_state_rjd8d0_k$(5); continue $sm; case 5: this.set_exceptionState_fex74n_k$(6); return this.TRY_RESULT2__1; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByClazzCodeFromWebCOROUTINE$33(_this__u8e3s4, code, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.code_1 = code; } protoOf($findByClazzCodeFromWebCOROUTINE$33).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzCodeFromWeb_7xwii_k$(this.code_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$34(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($findByUidAsyncCOROUTINE$34).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_ttwvyf_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $clazzUidExistsAsyncCOROUTINE$35(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($clazzUidExistsAsyncCOROUTINE$35).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/clazzUidExistsAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/clazzUidExistsAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzDao_Repo$clazzUidExistsAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.clazzUidExistsAsync_i9u5qy_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithHolidayCalendarAsyncCOROUTINE$36(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithHolidayCalendarAsyncCOROUTINE$36).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/findByUidWithHolidayCalendarAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/findByUidWithHolidayCalendarAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzDao_Repo$findByUidWithHolidayCalendarAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithHolidayCalendarAsync_dytz84_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$37(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$37).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Clazz', ClazzDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getClassNamesFromListOfIdsCOROUTINE$38(_this__u8e3s4, ids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.ids_1 = ids; } protoOf($getClassNamesFromListOfIdsCOROUTINE$38).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getClassNamesFromListOfIds_qfk7te_k$(this.ids_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($getClazzTimeZoneByClazzUidAsyncCOROUTINE$39).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getClazzTimeZoneByClazzUidAsync'; this.set_exceptionState_fex74n_k$(3); this.ARGUMENT3__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(); this.ARGUMENT4__1 = get_nullable(serializer_0(StringCompanionObject_getInstance())); var tmp_2 = this; tmp_2.this5__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_httpClient_cdum84_k$(); var tmp_3 = this; tmp_3.this6__1 = this.this5__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getClazzTimeZoneByClazzUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder7__1 = this_0; this.builder7__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this8__1 = this.this6__1; var tmp_6 = this; tmp_6.builder9__1 = this.builder7__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder9__1, this.this8__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ARGUMENT10__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = bodyAsText(this.ARGUMENT10__1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ARGUMENT11__1 = suspendResult; this.TRY_RESULT2__1 = this.ARGUMENT3__1.decodeFromString_jwu9sq_k$(this.ARGUMENT4__1, this.ARGUMENT11__1); this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e12__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e12__1, tmp1_tag, ClazzDao_Repo$getClazzTimeZoneByClazzUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); suspendResult = this._this__u8e3s4__1._dao_1.getClazzTimeZoneByClazzUidAsync_rra6gu_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.TRY_RESULT2__1 = suspendResult; this.set_state_rjd8d0_k$(5); continue $sm; case 5: this.set_exceptionState_fex74n_k$(6); return this.TRY_RESULT2__1; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getCoursesByNameCOROUTINE$40(_this__u8e3s4, names, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.names_1 = names; } protoOf($getCoursesByNameCOROUTINE$40).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/getCoursesByName'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/getCoursesByName'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'names', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer_0(StringCompanionObject_getInstance())), this.names_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzDao_Repo$getCoursesByName$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getCoursesByName_17ooxg_k$(this.names_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findOneRosterUserClazzesCOROUTINE$41(_this__u8e3s4, accountPersonUid, filterByEnrolledMemberPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.filterByEnrolledMemberPersonUid_1 = filterByEnrolledMemberPersonUid; } protoOf($findOneRosterUserClazzesCOROUTINE$41).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzDao/findOneRosterUserClazzes'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzDao/findOneRosterUserClazzes'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'filterByEnrolledMemberPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.filterByEnrolledMemberPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzDao_Repo$findOneRosterUserClazzes$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findOneRosterUserClazzes_eppsgj_k$(this.accountPersonUid_1, this.filterByEnrolledMemberPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$42(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$42).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Clazz', ClazzDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(ClazzDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ClazzDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ClazzDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ClazzDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ClazzDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ClazzDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(ClazzDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(ClazzDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(ClazzDao_Repo).findByClazzCode_8057ie_k$ = function (code, $completion) { var tmp = new $findByClazzCodeCOROUTINE$32(this, code, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findByClazzCodeFromWeb_7xwii_k$ = function (code, $completion) { var tmp = new $findByClazzCodeFromWebCOROUTINE$33(this, code, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findAllLive_19hd58_k$ = function () { var _result = this._dao_1.findAllLive_19hd58_k$(); return _result; }; protoOf(ClazzDao_Repo).findAll_e3zahk_k$ = function () { var _result = this._dao_1.findAll_e3zahk_k$(); return _result; }; protoOf(ClazzDao_Repo).findByUidAsync_ttwvyf_k$ = function (clazzUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$34(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).clazzUidExistsAsync_i9u5qy_k$ = function (clazzUid, $completion) { var tmp = new $clazzUidExistsAsyncCOROUTINE$35(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findByUidAsFlow_fzg2cy_k$ = function (uid) { var tmp = this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$findByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(ClazzDao_Repo).findByUidWithHolidayCalendarAsync_dytz84_k$ = function (uid, $completion) { var tmp = new $findByUidWithHolidayCalendarAsyncCOROUTINE$36(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).updateAsync_qhbtgn_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$37(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findClazzesWithPermission_k4ai68_k$ = function (searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission) { var tmp = this._dao_1.findClazzesWithPermission_k4ai68_k$(searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ClazzDao/findClazzesWithPermission', tmp, ClazzDao_Repo$findClazzesWithPermission$slambda_0(this, searchQuery, accountPersonUid, excludeSelectedClazzList, sortOrder, filter, currentTime, permission, null)); }; protoOf(ClazzDao_Repo).getClassNamesFromListOfIds_qfk7te_k$ = function (ids, $completion) { var tmp = new $getClassNamesFromListOfIdsCOROUTINE$38(this, ids, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findByClazzName_5z1a5j_k$ = function (name) { var _result = this._dao_1.findByClazzName_5z1a5j_k$(name); return _result; }; protoOf(ClazzDao_Repo).updateClazzAttendanceAverageAsync_usovc0_k$ = function (clazzUid, timeChanged, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Clazz', ClazzDao_Repo$updateClazzAttendanceAverageAsync$slambda_0(this, clazzUid, timeChanged, null), $completion); }; protoOf(ClazzDao_Repo).clazzAndDetailPermissionsAsFlow_mptfws_k$ = function (accountPersonUid, clazzUid) { var tmp = this._dao_1.clazzAndDetailPermissionsAsFlow_mptfws_k$(accountPersonUid, clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$clazzAndDetailPermissionsAsFlow$slambda_0(this, accountPersonUid, clazzUid, null)); }; protoOf(ClazzDao_Repo).getClazzWithDisplayDetails_m9nouy_k$ = function (clazzUid, currentTime, accountPersonUid) { var tmp = this._dao_1.getClazzWithDisplayDetails_m9nouy_k$(clazzUid, currentTime, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$getClazzWithDisplayDetails$slambda_0(this, clazzUid, currentTime, accountPersonUid, null)); }; protoOf(ClazzDao_Repo).findClazzesWithEffectiveHolidayCalendarAndFilter_vxatb5_k$ = function (filterUid) { var _result = this._dao_1.findClazzesWithEffectiveHolidayCalendarAndFilter_vxatb5_k$(filterUid); return _result; }; protoOf(ClazzDao_Repo).getTitleByUidAsFlow_bp2lxl_k$ = function (clazzUid) { var tmp = this._dao_1.getTitleByUidAsFlow_bp2lxl_k$(clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$getTitleByUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).getClazzNameAndTerminologyAsFlow_b37obf_k$ = function (clazzUid) { var tmp = this._dao_1.getClazzNameAndTerminologyAsFlow_b37obf_k$(clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$getClazzNameAndTerminologyAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).getClazzNameAsFlow_86n6vz_k$ = function (clazzUid) { var tmp = this._dao_1.getClazzNameAsFlow_86n6vz_k$(clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ClazzDao_Repo$getClazzNameAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(ClazzDao_Repo).getClazzTimeZoneByClazzUidAsync_rra6gu_k$ = function (clazzUid, $completion) { var tmp = new $getClazzTimeZoneByClazzUidAsyncCOROUTINE$39(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).getCoursesByName_17ooxg_k$ = function (names, $completion) { var tmp = new $getCoursesByNameCOROUTINE$40(this, names, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).findOneRosterUserClazzes_eppsgj_k$ = function (accountPersonUid, filterByEnrolledMemberPersonUid, $completion) { var tmp = new $findOneRosterUserClazzesCOROUTINE$41(this, accountPersonUid, filterByEnrolledMemberPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).insert_dsng2u_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Clazz', ClazzDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ClazzDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_dsng2u_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; protoOf(ClazzDao_Repo).insertAsync_95s22n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$42(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_95s22n_k$(entity instanceof Clazz ? entity : THROW_CCE(), $completion); }; protoOf(ClazzDao_Repo).insertList_fr8cvq_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Clazz', ClazzDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ClazzDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_fr8cvq_k$(entityList); }; protoOf(ClazzDao_Repo).update_2mss1m_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Clazz', ClazzDao_Repo$update$lambda(this, entity)); }; protoOf(ClazzDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_2mss1m_k$(entity instanceof Clazz ? entity : THROW_CCE()); }; function ClazzEnrolmentDao() { } protoOf(ClazzEnrolmentDao).getAllClazzEnrolledAtTimeAsync$default_oa85bt_k$ = function (clazzUid, date, roleFilter, personUidFilter, $completion, $super) { personUidFilter = personUidFilter === VOID ? new Long(0, 0) : personUidFilter; return $super === VOID ? this.getAllClazzEnrolledAtTimeAsync_49if19_k$(clazzUid, date, roleFilter, personUidFilter, $completion) : $super.getAllClazzEnrolledAtTimeAsync_49if19_k$.call(this, clazzUid, date, roleFilter, personUidFilter, $completion); }; protoOf(ClazzEnrolmentDao).findByClazzUidAndRole$default_7kgaku_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findByClazzUidAndRole_s0w7co_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) : $super.findByClazzUidAndRole_s0w7co_k$.call(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission); }; protoOf(ClazzEnrolmentDao).findByClazzUidAndRoleForGradebook$default_gxo7ut_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findByClazzUidAndRoleForGradebook_5rskr1_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) : $super.findByClazzUidAndRoleForGradebook_5rskr1_k$.call(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime); }; protoOf(ClazzEnrolmentDao).findActorEntitiesForGradebook$default_ew5fiw_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findActorEntitiesForGradebook_64my98_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion) : $super.findActorEntitiesForGradebook_64my98_k$.call(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion); }; protoOf(ClazzEnrolmentDao).findEnrolmentsByClazzUidAndRolePaged$default_qx2yto_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findEnrolmentsByClazzUidAndRolePaged_org7mu_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion) : $super.findEnrolmentsByClazzUidAndRolePaged_org7mu_k$.call(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion); }; function _get__db__e63s44_3($this) { return $this._db_1; } function _get__dao__d2kw60_1($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$43(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$43).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_clazzEnrolmentUid_xeo3a3_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(65, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_clazzEnrolmentUid_ymgyw9_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_clazzEnrolmentLct_q966xi_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_clazzEnrolmentUid_xeo3a3_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzEnrolmentDao_DoorWrapper(_db, _dao) { ClazzEnrolmentDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ClazzEnrolmentDao_DoorWrapper).insertListAsync_da8ahi_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertListAsync: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findAllEnrolmentsByPersonAndClazzUid_gp5yes_k$ = function (personUid, clazzUid) { return this._dao_1.findAllEnrolmentsByPersonAndClazzUid_gp5yes_k$(personUid, clazzUid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findEnrolmentWithLeavingReason_lv06cu_k$ = function (enrolmentUid, $completion) { return this._dao_1.findEnrolmentWithLeavingReason_lv06cu_k$(enrolmentUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).updateDateLeftByUid_1hi2mc_k$ = function (clazzEnrolmentUid, endDate, updateTime, $completion) { return this._dao_1.updateDateLeftByUid_1hi2mc_k$(clazzEnrolmentUid, endDate, updateTime, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).updateAsync_vdvqtl_k$ = function (entity, $completion) { entity.set_clazzEnrolmentLct_q966xi_k$(systemTimeInMillis()); return this._dao_1.updateAsync_vdvqtl_k$(entity, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findAllClazzesByPersonWithClazz_wuzdt4_k$ = function (accountPersonUid, otherPersonUid) { return this._dao_1.findAllClazzesByPersonWithClazz_wuzdt4_k$(accountPersonUid, otherPersonUid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findAllByPersonUid_43f4oe_k$ = function (personUid) { return this._dao_1.findAllByPersonUid_43f4oe_k$(personUid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findAllClazzesByPersonWithClazzAsListAsync_ib1s7u_k$ = function (personUid, $completion) { return this._dao_1.findAllClazzesByPersonWithClazzAsListAsync_ib1s7u_k$(personUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).getAllClazzEnrolledAtTimeAsync_49if19_k$ = function (clazzUid, date, roleFilter, personUidFilter, $completion) { return this._dao_1.getAllClazzEnrolledAtTimeAsync_49if19_k$(clazzUid, date, roleFilter, personUidFilter, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).getAllEnrolmentsAtTimeByClazzAndPerson_ya0633_k$ = function (clazzUid, accountPersonUid, time, $completion) { return this._dao_1.getAllEnrolmentsAtTimeByClazzAndPerson_ya0633_k$(clazzUid, accountPersonUid, time, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findByUid_l4435r_k$ = function (uid, $completion) { return this._dao_1.findByUid_l4435r_k$(uid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findByClazzUidAndRole_s0w7co_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { return this._dao_1.findByClazzUidAndRole_s0w7co_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findByClazzUidAndRoleForGradebook_5rskr1_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { return this._dao_1.findByClazzUidAndRoleForGradebook_5rskr1_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findActorEntitiesForGradebook_64my98_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion) { return this._dao_1.findActorEntitiesForGradebook_64my98_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findEnrolmentsAndPersonByClazzUidWithPermissionCheck_o49mx5_k$ = function (clazzUid, accountPersonUid, $completion) { return this._dao_1.findEnrolmentsAndPersonByClazzUidWithPermissionCheck_o49mx5_k$(clazzUid, accountPersonUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findByAccountPersonUidAndClazzUid_gg3d6v_k$ = function (accountPersonUid, clazzUid, $completion) { return this._dao_1.findByAccountPersonUidAndClazzUid_gg3d6v_k$(accountPersonUid, clazzUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findEnrolmentsByClazzUidAndRole_38ings_k$ = function (clazzUid, accountPersonUid, roleId, permission, $completion) { return this._dao_1.findEnrolmentsByClazzUidAndRole_38ings_k$(clazzUid, accountPersonUid, roleId, permission, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findEnrolmentsByClazzUidAndRolePaged_org7mu_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion) { return this._dao_1.findEnrolmentsByClazzUidAndRolePaged_org7mu_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findAllEnrolmentsByClazzUidAndRole_5mjtuh_k$ = function (clazzUid, roleId, $completion) { return this._dao_1.findAllEnrolmentsByClazzUidAndRole_5mjtuh_k$(clazzUid, roleId, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).updateClazzEnrolmentActiveForClazzEnrolment_p5bigt_k$ = function (clazzEnrolmentUid, enrolled, timeChanged) { throw IllegalStateException_init_$Create$('updateClazzEnrolmentActiveForClazzEnrolment: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzEnrolmentDao_DoorWrapper).updateClazzEnrolmentRole_k25a0a_k$ = function (personUid, clazzUid, newRole, oldRole, updateTime, $completion) { return this._dao_1.updateClazzEnrolmentRole_k25a0a_k$(personUid, clazzUid, newRole, oldRole, updateTime, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).getClazzNameAndPersonName_hz03dx_k$ = function (personUid, clazzUid, $completion) { return this._dao_1.getClazzNameAndPersonName_hz03dx_k$(personUid, clazzUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).findClazzEnrolmentEntitiesForPersonViewPermissionCheck_l1jtok_k$ = function (accountPersonUid, otherPersonUid, $completion) { return this._dao_1.findClazzEnrolmentEntitiesForPersonViewPermissionCheck_l1jtok_k$(accountPersonUid, otherPersonUid, $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insert_4siu60_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_4siu60_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insertAsync_c6fy7x_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$43(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_c6fy7x_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insertList_cecco_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzEnrolmentDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cecco_k$(entityList); }; protoOf(ClazzEnrolmentDao_DoorWrapper).update_p193i0_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzEnrolmentDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_p193i0_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_timeZone = $_result.getString_gb1pt9_k$('timeZone'); var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var _tmp_LeavingReason_nullCount = 0; var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid.....' call this_0.set_timeZone_fxensv_k$(_tmp_timeZone); this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); if (!_tmp_LeavingReason_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByPersonAndClazzUid......' call this_1.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_1.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_1.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_1.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_1.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_1.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); this_0.set_leavingReason_lyjv33_k$(this_1); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation) { this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).invoke_i4yrjc_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_i4yrjc_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda(this.$personUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0($personUid, $clazzUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda($personUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_i4yrjc_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda$lambda($_result) { return function (it) { var _tmp_timeZone = $_result.getString_gb1pt9_k$('timeZone'); var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var _tmp_LeavingReason_nullCount = 0; var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_LeavingReason_nullCount = _tmp_LeavingReason_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_LeavingReason_isAllNull = _tmp_LeavingReason_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason....' call this_0.set_timeZone_fxensv_k$(_tmp_timeZone); this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); if (!_tmp_LeavingReason_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentWithLeavingReason.....' call this_1.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_1.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_1.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_1.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_1.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_1.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); this_0.set_leavingReason_lyjv33_k$(this_1); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; var _tmp_CourseTerminology_nullCount = 0; var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseTerminology_nullCount = _tmp_CourseTerminology_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_CourseTerminology_isAllNull = _tmp_CourseTerminology_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentAndPersonDetailDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz.....' call if (!_tmp_ClazzEnrolment_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_1.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_1.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_1.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_1.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_1.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_1.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_1.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_1.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_1.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_1.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_1.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_1.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_1.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_1.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); this_0.set_enrolment_jtf6zl_k$(this_1); } if (!_tmp_Clazz_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_2.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_2.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_2.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_2.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_2.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_2.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_2.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_2.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_2.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_2.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_2.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_2.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_2.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_2.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_2.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_2.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_2.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_2.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_2.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_2.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_2.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_2.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_2.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_2.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_2.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); this_0.set_clazz_sym4kf_k$(this_2); } if (!_tmp_CourseTerminology_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazz......' call this_3.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_3.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_3.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_3.set_ctLct_eacscx_k$(_tmp_ctLct); this_0.set_courseTerminology_yd7w9r_k$(this_3); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).invoke_iybdhq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_iybdhq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda(this.$accountPersonUid_1, this.$otherPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda($accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_iybdhq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllByPersonUid.....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda_0($personUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var _tmp_Clazz_nullCount = 0; var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_clazzDesc = $_result.getString_gb1pt9_k$('clazzDesc'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_attendanceAverage = $_result.getFloat_1jlp7w_k$('attendanceAverage'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_clazzHolidayUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzHolidayUMCalendarUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_clazzScheuleUMCalendarUid = $_result.getLong_3wgf2g_k$('clazzScheuleUMCalendarUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_isClazzActive = $_result.getBoolean_xz3hoo_k$('isClazzActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_clazzLocationUid = $_result.getLong_3wgf2g_k$('clazzLocationUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_clazzStartTime = $_result.getLong_3wgf2g_k$('clazzStartTime'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEndTime = $_result.getLong_3wgf2g_k$('clazzEndTime'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzFeatures = $_result.getLong_3wgf2g_k$('clazzFeatures'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzSchoolUid = $_result.getLong_3wgf2g_k$('clazzSchoolUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentPolicy = $_result.getInt_npc9pd_k$('clazzEnrolmentPolicy'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzTerminologyUid = $_result.getLong_3wgf2g_k$('clazzTerminologyUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_clazzMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzMasterChangeSeqNum'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLocalChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzLastChangedBy = $_result.getInt_npc9pd_k$('clazzLastChangedBy'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_clazzLct = $_result.getLong_3wgf2g_k$('clazzLct'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzTimeZone = $_result.getString_gb1pt9_k$('clazzTimeZone'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzStudentsPersonGroupUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_clazzTeachersPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzTeachersPersonGroupUid'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzPendingStudentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzPendingStudentsPersonGroupUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_clazzParentsPersonGroupUid = $_result.getLong_3wgf2g_k$('clazzParentsPersonGroupUid'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_clazzCode = $_result.getString_gb1pt9_k$('clazzCode'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_clazzOwnerPersonUid = $_result.getLong_3wgf2g_k$('clazzOwnerPersonUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Clazz_nullCount = _tmp_Clazz_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_Clazz_isAllNull = _tmp_Clazz_nullCount === 25; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithClazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazzAsListAsync....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); if (!_tmp_Clazz_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Clazz(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllClazzesByPersonWithClazzAsListAsync.....' call this_1.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_1.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_1.set_clazzDesc_gezt3p_k$(_tmp_clazzDesc); this_1.set_attendanceAverage_9una4v_k$(_tmp_attendanceAverage); this_1.set_clazzHolidayUMCalendarUid_fam2pr_k$(_tmp_clazzHolidayUMCalendarUid); this_1.set_clazzScheuleUMCalendarUid_f0khzq_k$(_tmp_clazzScheuleUMCalendarUid); this_1.set_isClazzActive_e2j2e6_k$(_tmp_isClazzActive); this_1.set_clazzLocationUid_s7jxfi_k$(_tmp_clazzLocationUid); this_1.set_clazzStartTime_dq8pme_k$(_tmp_clazzStartTime); this_1.set_clazzEndTime_yahlip_k$(_tmp_clazzEndTime); this_1.set_clazzFeatures_ypnqy_k$(_tmp_clazzFeatures); this_1.set_clazzSchoolUid_sau1vh_k$(_tmp_clazzSchoolUid); this_1.set_clazzEnrolmentPolicy_gowgj1_k$(_tmp_clazzEnrolmentPolicy); this_1.set_clazzTerminologyUid_3itmsa_k$(_tmp_clazzTerminologyUid); this_1.set_clazzMasterChangeSeqNum_tt8ty_k$(_tmp_clazzMasterChangeSeqNum); this_1.set_clazzLocalChangeSeqNum_l29zef_k$(_tmp_clazzLocalChangeSeqNum); this_1.set_clazzLastChangedBy_g3060i_k$(_tmp_clazzLastChangedBy); this_1.set_clazzLct_l8nosk_k$(_tmp_clazzLct); this_1.set_clazzTimeZone_h8a7dv_k$(_tmp_clazzTimeZone); this_1.set_clazzStudentsPersonGroupUid_d6byqt_k$(_tmp_clazzStudentsPersonGroupUid); this_1.set_clazzTeachersPersonGroupUid_go0bzo_k$(_tmp_clazzTeachersPersonGroupUid); this_1.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_tmp_clazzPendingStudentsPersonGroupUid); this_1.set_clazzParentsPersonGroupUid_l527ti_k$(_tmp_clazzParentsPersonGroupUid); this_1.set_clazzCode_xzrrf3_k$(_tmp_clazzCode); this_1.set_clazzOwnerPersonUid_jbv4ez_k$(_tmp_clazzOwnerPersonUid); this_0.set_clazz_sym4kf_k$(this_1); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentWithPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getAllClazzEnrolledAtTimeAsync....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getAllClazzEnrolledAtTimeAsync.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getAllEnrolmentsAtTimeByClazzAndPerson....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findByUid....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findByUidLive.....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_orob37_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_orob37_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_orob37_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_earliestJoinDate = $_result.getLong_3wgf2g_k$('earliestJoinDate'); var _tmp_latestDateLeft = $_result.getLong_3wgf2g_k$('latestDateLeft'); var _tmp_enrolmentRole = $_result.getInt_npc9pd_k$('enrolmentRole'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzMemberListDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_earliestJoinDate_hxbk3u_k$(_tmp_earliestJoinDate); this_0.set_latestDateLeft_x07o05_k$(_tmp_latestDateLeft); this_0.set_enrolmentRole_buy7at_k$(_tmp_enrolmentRole); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).invoke_irr3j_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_irr3j_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(15, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(19, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(20, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(21, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_irr3j_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(15, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(19, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_earliestJoinDate = $_result.getLong_3wgf2g_k$('earliestJoinDate'); var _tmp_latestDateLeft = $_result.getLong_3wgf2g_k$('latestDateLeft'); var _tmp_enrolmentRole = $_result.getInt_npc9pd_k$('enrolmentRole'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzMemberListDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_earliestJoinDate_hxbk3u_k$(_tmp_earliestJoinDate); this_0.set_latestDateLeft_x07o05_k$(_tmp_latestDateLeft); this_0.set_enrolmentRole_buy7at_k$(_tmp_enrolmentRole); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).invoke_irr3j_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_irr3j_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(19, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_irr3j_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); // Inline function 'kotlin.apply' call var this_0 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findActorEntitiesForGradebook....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_0.set_actorName_t0c818_k$(_tmp_actorName); this_0.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_0.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_0.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_0.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_0.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); this_0.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolmentAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsAndPersonByClazzUidWithPermissionCheck....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsAndPersonByClazzUidWithPermissionCheck.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_ClazzEnrolment_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsAndPersonByClazzUidWithPermissionCheck.....' call this_2.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_2.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_2.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_2.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_2.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_2.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_2.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_2.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_2.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_2.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_2.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_2.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_2.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_2.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); this_0.set_enrolment_jtf6zl_k$(this_2); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsAndPersonByClazzUidWithPermissionCheck.....' call this_3.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_3.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_3.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_3.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_3.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_3.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_3); } return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findByAccountPersonUidAndClazzUid....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsByClazzUidAndRole....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findEnrolmentsByClazzUidAndRolePaged....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findAllEnrolmentsByClazzUidAndRole....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzName = $_result.getString_gb1pt9_k$('clazzName'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); // Inline function 'kotlin.apply' call var this_0 = new CourseNameAndPersonName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.getClazzNameAndPersonName....' call this_0.set_clazzName_aqdmvj_k$(_tmp_clazzName); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda$lambda(_result) { return mapRows(_result, ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda$lambda$lambda(_result)); } function ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzEnrolmentDao_JdbcImpl.findClazzEnrolmentEntitiesForPersonViewPermissionCheck....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).bindPreparedStmtToEntity_7mu01f_k$ = function (stmt, entity) { if (entity.get_clazzEnrolmentUid_xeo3a3_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzEnrolmentUid_xeo3a3_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_clazzEnrolmentPersonUid_67nqh2_k$()); stmt.setLong_j1sybo_k$(3, entity.get_clazzEnrolmentClazzUid_5dtar_k$()); stmt.setLong_j1sybo_k$(4, entity.get_clazzEnrolmentDateJoined_r9j21g_k$()); stmt.setLong_j1sybo_k$(5, entity.get_clazzEnrolmentDateLeft_hxlqp6_k$()); stmt.setInt_c72a8z_k$(6, entity.get_clazzEnrolmentRole_ttzs6t_k$()); stmt.setFloat_dia6lm_k$(7, entity.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_clazzEnrolmentActive_il2uaj_k$()); stmt.setLong_j1sybo_k$(9, entity.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); stmt.setInt_c72a8z_k$(10, entity.get_clazzEnrolmentOutcome_8tgopp_k$()); stmt.setLong_j1sybo_k$(11, entity.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); stmt.setLong_j1sybo_k$(12, entity.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); stmt.setInt_c72a8z_k$(13, entity.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); stmt.setLong_j1sybo_k$(14, entity.get_clazzEnrolmentLct_xenwh4_k$()); }; protoOf(ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_7mu01f_k$(stmt, entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entity_1.get_clazzEnrolmentPersonUid_67nqh2_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$entity_1.get_clazzEnrolmentClazzUid_5dtar_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$entity_1.get_clazzEnrolmentDateJoined_r9j21g_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_clazzEnrolmentDateLeft_hxlqp6_k$()); this._stmt_1.setInt_c72a8z_k$(5, this.$entity_1.get_clazzEnrolmentRole_ttzs6t_k$()); this._stmt_1.setFloat_dia6lm_k$(6, this.$entity_1.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); this._stmt_1.setBoolean_pzdm1v_k$(7, this.$entity_1.get_clazzEnrolmentActive_il2uaj_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); this._stmt_1.setInt_c72a8z_k$(9, this.$entity_1.get_clazzEnrolmentOutcome_8tgopp_k$()); this._stmt_1.setLong_j1sybo_k$(10, this.$entity_1.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); this._stmt_1.setInt_c72a8z_k$(12, this.$entity_1.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); this._stmt_1.setLong_j1sybo_k$(13, this.$entity_1.get_clazzEnrolmentLct_xenwh4_k$()); this._stmt_1.setLong_j1sybo_k$(14, this.$entity_1.get_clazzEnrolmentUid_xeo3a3_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_clazzEnrolmentPersonUid_67nqh2_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_clazzEnrolmentClazzUid_5dtar_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_clazzEnrolmentDateJoined_r9j21g_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_clazzEnrolmentDateLeft_hxlqp6_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_clazzEnrolmentRole_ttzs6t_k$()); _stmt.setFloat_dia6lm_k$(6, $entity.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); _stmt.setBoolean_pzdm1v_k$(7, $entity.get_clazzEnrolmentActive_il2uaj_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); _stmt.setInt_c72a8z_k$(9, $entity.get_clazzEnrolmentOutcome_8tgopp_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); _stmt.setInt_c72a8z_k$(12, $entity.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); _stmt.setLong_j1sybo_k$(13, $entity.get_clazzEnrolmentLct_xenwh4_k$()); _stmt.setLong_j1sybo_k$(14, $entity.get_clazzEnrolmentUid_xeo3a3_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).invoke_smpggk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_smpggk_k$($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig("\n SELECT ClazzEnrolment.*, LeavingReason.*, \n COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n ORDER BY clazzEnrolmentDateLeft DESC\n ", VOID, VOID, VOID, "\n SELECT ClazzEnrolment.*, LeavingReason.*, \n COALESCE(Clazz.clazzTimeZone, 'UTC') as timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE clazzEnrolmentPersonUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND clazzEnrolmentClazzUid = ? \n ORDER BY clazzEnrolmentDateLeft DESC\n \n", true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda$slambda_0(this.$personUid_1, this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this.this$0__1, this.$personUid_1, this.$clazzUid_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this$0, $personUid, $clazzUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda(this$0, $personUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_smpggk_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation) { this.$enrolmentUid_1 = $enrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).invoke_ysyu6l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ysyu6l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$enrolmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda(this.$enrolmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0($enrolmentUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda($enrolmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ysyu6l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda($endDate, $updateTime, $clazzEnrolmentUid, resultContinuation) { this.$endDate_1 = $endDate; this.$updateTime_1 = $updateTime; this.$clazzEnrolmentUid_1 = $clazzEnrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$endDate_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzEnrolmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda(this.$endDate_1, this.$updateTime_1, this.$clazzEnrolmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda_0($endDate, $updateTime, $clazzEnrolmentUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda($endDate, $updateTime, $clazzEnrolmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).invoke_r1472e_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_r1472e_k$($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n WITH CoursePermissionsForAccountPerson AS (\n \n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = CAST(? AS BIGINT)\n ),\n /* Check if CoursePermission for accountPersonUid grants view permission */\n CanViewPersonUidViaCoursePermission(personUid) AS (\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM CoursePermissionsForAccountPerson\n JOIN ClazzEnrolment \n ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n ) \n SELECT ClazzEnrolment.*,\n Clazz.*,\n CourseTerminology.*\n FROM ClazzEnrolment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n /* Check that accountPersonUid has permission to see otherPerson */\n AND ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT CAST(? AS BIGINT) IN \n (SELECT CanViewPersonUidViaCoursePermission.personUid\n FROM CanViewPersonUidViaCoursePermission)) \n ) \n /* Check that accountPersonUid has permission to see related Clazz */\n AND ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (EXISTS(SELECT 1\n FROM CoursePermissionsForAccountPerson\n WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n )\n ', VOID, VOID, VOID, '\n /* List of all CoursePermissions that are granted to the person as per accountPersonUid */\n WITH CoursePermissionsForAccountPerson AS (\n \n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = ? \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = ?\n ),\n /* Check if CoursePermission for accountPersonUid grants view permission */\n CanViewPersonUidViaCoursePermission(personUid) AS (\n SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM CoursePermissionsForAccountPerson\n JOIN ClazzEnrolment \n ON (CoursePermissionsForAccountPerson.cpPermissionsFlag & 8192) > 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = CoursePermissionsForAccountPerson.cpClazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ? \n ) \n SELECT ClazzEnrolment.*,\n Clazz.*,\n CourseTerminology.*\n FROM ClazzEnrolment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n LEFT JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE (? != 0 AND ? != 0)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n /* Check that accountPersonUid has permission to see otherPerson */\n AND ( (SELECT ? = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT ? IN \n (SELECT CanViewPersonUidViaCoursePermission.personUid\n FROM CanViewPersonUidViaCoursePermission)) \n ) \n /* Check that accountPersonUid has permission to see related Clazz */\n AND ( (SELECT ? = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 1\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (EXISTS(SELECT 1\n FROM CoursePermissionsForAccountPerson\n WHERE CoursePermissionsForAccountPerson.cpClazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n AND (CoursePermissionsForAccountPerson.cpPermissionsFlag & 1) > 0)) \n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda$slambda_0(this.$accountPersonUid_1, this.$otherPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this.this$0__1, this.$accountPersonUid_1, this.$otherPersonUid_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_r1472e_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda(this$0, $personUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda).invoke_d32874_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_d32874_k$($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda$slambda_0(this.$personUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda(this.this$0__1, this.$personUid_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda_0(this$0, $personUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda(this$0, $personUid, resultContinuation); var l = function ($completion) { return i.invoke_d32874_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda).invoke_vn3d0o_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vn3d0o_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda_0($personUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vn3d0o_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda($clazzUid, $date, $roleFilter, $personUidFilter, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$date_1 = $date; this.$roleFilter_1 = $roleFilter; this.$personUidFilter_1 = $personUidFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda).invoke_cikkxd_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_cikkxd_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$date_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleFilter_1); this._stmt_1.setInt_c72a8z_k$(4, this.$roleFilter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$personUidFilter_1); this._stmt_1.setLong_j1sybo_k$(6, this.$personUidFilter_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda(this.$clazzUid_1, this.$date_1, this.$roleFilter_1, this.$personUidFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda_0($clazzUid, $date, $roleFilter, $personUidFilter, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda($clazzUid, $date, $roleFilter, $personUidFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_cikkxd_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$time_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0($clazzUid, $accountPersonUid, $time, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda($clazzUid, $accountPersonUid, $time, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda).invoke_orob37_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_orob37_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByUid$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_orob37_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda).invoke_1f1821_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1f1821_k$($completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_1f1821_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $permission, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).loadRows_qa8qym_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$loadRows$slambda_0(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_qa8qym_k$(_limit, _offset, $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$o$countRows$slambda_0(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$permission_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this$0, $clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Clazz', 'Person', 'ClazzEnrolment', 'PersonPicture', 'CoursePermission', 'StatementEntity', 'ActorEntity']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).loadRows_qa8qym_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$loadRows$slambda_0(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_qa8qym_k$(_limit, _offset, $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n --Dummy join so that invalidations of the StatementEntity table will trigger\n -- PagingSource invalidation of ClazzGradebookPagingSource\n LEFT JOIN StatementEntity\n ON StatementEntity.statementIdHi = 0 \n AND StatementEntity.statementIdLo = 0\n LEFT JOIN ActorEntity\n ON ActorEntity.actorUid = 0\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$o$countRows$slambda_0(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$studentsLimit_1 = $studentsLimit; this.$studentsOffset_1 = $studentsOffset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda).invoke_1cidv1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1cidv1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$studentsLimit_1); this._stmt_1.setInt_c72a8z_k$(19, this.$studentsOffset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, this.$studentsLimit_1, this.$studentsOffset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1cidv1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda($clazzUid, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda).invoke_r22jh_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_r22jh_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda(this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda_0($clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda($clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_r22jh_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda($clazzUid, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda(this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda_0($clazzUid, $accountPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda($clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda($clazzUid, $roleId, $accountPersonUid, $permission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$roleId_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda(this.$clazzUid_1, this.$roleId_1, this.$accountPersonUid_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda_0($clazzUid, $roleId, $accountPersonUid, $permission, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda($clazzUid, $roleId, $accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $permission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$studentsLimit_1 = $studentsLimit; this.$studentsOffset_1 = $studentsOffset; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$studentsLimit_1); this._stmt_1.setInt_c72a8z_k$(19, this.$studentsOffset_1); this._stmt_1.setLong_j1sybo_k$(20, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(21, this.$roleId_1); this._stmt_1.setLong_j1sybo_k$(22, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(23, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(24, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(25, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(26, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(27, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(28, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(29, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(30, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, this.$studentsLimit_1, this.$studentsOffset_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $permission, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda($clazzUid, $roleId, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$roleId_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda(this.$clazzUid_1, this.$roleId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda_0($clazzUid, $roleId, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda($clazzUid, $roleId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentActiveForClazzEnrolment$lambda($enrolled, $timeChanged, $clazzEnrolmentUid) { return function (_stmt) { _stmt.setBoolean_pzdm1v_k$(1, $enrolled); _stmt.setLong_j1sybo_k$(2, $timeChanged); _stmt.setLong_j1sybo_k$(3, $clazzEnrolmentUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda($newRole, $updateTime, $personUid, $clazzUid, $oldRole, resultContinuation) { this.$newRole_1 = $newRole; this.$updateTime_1 = $updateTime; this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; this.$oldRole_1 = $oldRole; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$newRole_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(5, this.$oldRole_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda(this.$newRole_1, this.$updateTime_1, this.$personUid_1, this.$clazzUid_1, this.$oldRole_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda_0($newRole, $updateTime, $personUid, $clazzUid, $oldRole, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda($newRole, $updateTime, $personUid, $clazzUid, $oldRole, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).invoke_gd80hv_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_gd80hv_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda(this.$clazzUid_1, this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0($clazzUid, $personUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda($clazzUid, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_gd80hv_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda($accountPersonUid, $otherPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$otherPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda(this.$accountPersonUid_1, this.$otherPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) { var i = new ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda($accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$44(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$44).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterClazzEnrolment_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$45(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$45).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, ClazzEnrolmentDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateDateLeftByUidCOROUTINE$46(_this__u8e3s4, clazzEnrolmentUid, endDate, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzEnrolmentUid_1 = clazzEnrolmentUid; this.endDate_1 = endDate; this.updateTime_1 = updateTime; } protoOf($updateDateLeftByUidCOROUTINE$46).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ClazzEnrolment \n SET clazzEnrolmentDateLeft = CAST(? AS BIGINT),\n clazzEnrolmentLct = CAST(? AS BIGINT)\n WHERE clazzEnrolmentUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE ClazzEnrolment \n SET clazzEnrolmentDateLeft = ?,\n clazzEnrolmentLct = ?\n WHERE clazzEnrolmentUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ClazzEnrolmentDao_JdbcImpl$updateDateLeftByUid$slambda_0(this.endDate_1, this.updateTime_1, this.clazzEnrolmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzEnrolmentDao_JdbcImpl(_db) { ClazzEnrolmentDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterClazzEnrolment_abort_1 = new ClazzEnrolmentDao_JdbcImpl$_insertAdapterClazzEnrolment_abort$1(this); } protoOf(ClazzEnrolmentDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzEnrolmentDao_JdbcImpl).get__insertAdapterClazzEnrolment_abort_8zskpv_k$ = function () { return this._insertAdapterClazzEnrolment_abort_1; }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertListAsync_da8ahi_k$ = function (entityList) { this._insertAdapterClazzEnrolment_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insert_4siu60_k$ = function (entity) { var _retVal = this._insertAdapterClazzEnrolment_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzEnrolmentDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_4siu60_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertAsync_c6fy7x_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$44(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_c6fy7x_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertList_cecco_k$ = function (entityList) { this._insertAdapterClazzEnrolment_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzEnrolmentDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cecco_k$(entityList); }; protoOf(ClazzEnrolmentDao_JdbcImpl).updateAsync_vdvqtl_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$45(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl).update_p193i0_k$ = function (entity) { var _sql = 'UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ClazzEnrolmentDao_JdbcImpl$update$lambda(entity)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_p193i0_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findAllEnrolmentsByPersonAndClazzUid_gp5yes_k$ = function (personUid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['LeavingReason', 'Clazz', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByPersonAndClazzUid$slambda_0(this, personUid, clazzUid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findEnrolmentWithLeavingReason_lv06cu_k$ = function (enrolmentUid, $completion) { var tmp = new PreparedStatementConfig("\n SELECT ClazzEnrolment.*, \n LeavingReason.*,\n COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT)\n ", VOID, VOID, VOID, "\n SELECT ClazzEnrolment.*, \n LeavingReason.*,\n COALESCE(Clazz.clazzTimeZone, 'UTC') AS timeZone\n FROM ClazzEnrolment \n LEFT JOIN LeavingReason \n ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n LEFT JOIN Clazz \n ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n WHERE ClazzEnrolment.clazzEnrolmentUid = ?\n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentWithLeavingReason$slambda_0(enrolmentUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).updateDateLeftByUid_1hi2mc_k$ = function (clazzEnrolmentUid, endDate, updateTime, $completion) { var tmp = new $updateDateLeftByUidCOROUTINE$46(this, clazzEnrolmentUid, endDate, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findAllClazzesByPersonWithClazz_wuzdt4_k$ = function (accountPersonUid, otherPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission', 'CourseTerminology', 'Clazz', 'ClazzEnrolment', 'CoursePermission']; return doorFlow(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazz$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findAllByPersonUid_43f4oe_k$ = function (personUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzEnrolment']; return doorFlow(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllByPersonUid$slambda_0(this, personUid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findAllClazzesByPersonWithClazzAsListAsync_ib1s7u_k$ = function (personUid, $completion) { var tmp = new PreparedStatementConfig('SELECT ClazzEnrolment.*, Clazz.* \n FROM ClazzEnrolment \n LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n ', VOID, VOID, VOID, 'SELECT ClazzEnrolment.*, Clazz.* \n FROM ClazzEnrolment \n LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllClazzesByPersonWithClazzAsListAsync$slambda_0(personUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).getAllClazzEnrolledAtTimeAsync_49if19_k$ = function (clazzUid, date, roleFilter, personUidFilter, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*, Person.*\n FROM ClazzEnrolment\n LEFT JOIN Person \n ON ClazzEnrolment.clazzEnrolmentPersonUid = Person.personUid\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n AND (? = 0 OR ClazzEnrolment.clazzEnrolmentRole = ?)\n AND (CAST(? AS BIGINT) = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*, Person.*\n FROM ClazzEnrolment\n LEFT JOIN Person \n ON ClazzEnrolment.clazzEnrolmentPersonUid = Person.personUid\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n AND (? = 0 OR ClazzEnrolment.clazzEnrolmentRole = ?)\n AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$getAllClazzEnrolledAtTimeAsync$slambda_0(clazzUid, date, roleFilter, personUidFilter, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).getAllEnrolmentsAtTimeByClazzAndPerson_ya0633_k$ = function (clazzUid, accountPersonUid, time, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive \n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$getAllEnrolmentsAtTimeByClazzAndPerson$slambda_0(clazzUid, accountPersonUid, time, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findByUid_l4435r_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzEnrolment']; return doorFlow(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findByClazzUidAndRole_s0w7co_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRole$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, permission, searchText, sortOrder); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findByClazzUidAndRoleForGradebook_5rskr1_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { return new ClazzEnrolmentDao_JdbcImpl$findByClazzUidAndRoleForGradebook$1(this, clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findActorEntitiesForGradebook_64my98_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion) { var tmp = new PreparedStatementConfig("\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n \n \n \n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN \n (SELECT PersonUids.personUid\n FROM PersonUids)\n ", VOID, VOID, VOID, "\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n \n \n \n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN \n (SELECT PersonUids.personUid\n FROM PersonUids)\n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findActorEntitiesForGradebook$slambda_0(clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder, studentsLimit, studentsOffset, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findEnrolmentsAndPersonByClazzUidWithPermissionCheck_o49mx5_k$ = function (clazzUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*,\n Person.*,\n PersonPicture.*\n FROM ClazzEnrolment\n JOIN Person\n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n /* Begin permission check*/\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n )\n ) \n /* End permission check */\n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*,\n Person.*,\n PersonPicture.*\n FROM ClazzEnrolment\n JOIN Person\n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n /* Begin permission check*/\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n 8192\n \n ) > 0)\n )\n )\n ) \n /* End permission check */\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsAndPersonByClazzUidWithPermissionCheck$slambda_0(clazzUid, accountPersonUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findByAccountPersonUidAndClazzUid_gg3d6v_k$ = function (accountPersonUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findByAccountPersonUidAndClazzUid$slambda_0(clazzUid, accountPersonUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findEnrolmentsByClazzUidAndRole_38ings_k$ = function (clazzUid, accountPersonUid, roleId, permission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n /* Begin permission check*/\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n ) \n /* End permission check */\n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n /* Begin permission check*/\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR ClazzEnrolment.clazzEnrolmentPersonUid = ?\n ) \n /* End permission check */\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRole$slambda_0(clazzUid, roleId, accountPersonUid, permission, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findEnrolmentsByClazzUidAndRolePaged_org7mu_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion) { var tmp = new PreparedStatementConfig("\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n \n \n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid IN (\n SELECT PersonUids.personUid\n FROM PersonUids)\n /* Begin permission check*/\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n )\n OR ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n ) \n ", VOID, VOID, VOID, "\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n \n \n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid IN (\n SELECT PersonUids.personUid\n FROM PersonUids)\n /* Begin permission check*/\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n )\n OR ClazzEnrolment.clazzEnrolmentPersonUid = ?\n ) \n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findEnrolmentsByClazzUidAndRolePaged$slambda_0(clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder, studentsLimit, studentsOffset, permission, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findAllEnrolmentsByClazzUidAndRole_5mjtuh_k$ = function (clazzUid, roleId, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findAllEnrolmentsByClazzUidAndRole$slambda_0(clazzUid, roleId, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).updateClazzEnrolmentActiveForClazzEnrolment_p5bigt_k$ = function (clazzEnrolmentUid, enrolled, timeChanged) { var tmp = new PreparedStatementConfig('\n UPDATE ClazzEnrolment \n SET clazzEnrolmentActive = ?,\n clazzEnrolmentLct = CAST(? AS BIGINT)\n WHERE clazzEnrolmentUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE ClazzEnrolment \n SET clazzEnrolmentActive = ?,\n clazzEnrolmentLct = ?\n WHERE clazzEnrolmentUid = ?\n', false); return prepareAndUseStatement_0(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentActiveForClazzEnrolment$lambda(enrolled, timeChanged, clazzEnrolmentUid)); }; protoOf(ClazzEnrolmentDao_JdbcImpl).updateClazzEnrolmentRole_k25a0a_k$ = function (personUid, clazzUid, newRole, oldRole, updateTime, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE ClazzEnrolment \n SET clazzEnrolmentRole = ?,\n clazzEnrolmentLct = CAST(? AS BIGINT) \n -- Avoid potential for duplicate approvals if user was previously refused \n WHERE clazzEnrolmentUid = COALESCE( \n (SELECT clazzEnrolmentUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n AND clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND clazzEnrolmentRole = ?\n AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n LIMIT 1), 0)', VOID, VOID, VOID, '\n UPDATE ClazzEnrolment \n SET clazzEnrolmentRole = ?,\n clazzEnrolmentLct = ? \n -- Avoid potential for duplicate approvals if user was previously refused \n WHERE clazzEnrolmentUid = COALESCE( \n (SELECT clazzEnrolmentUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentPersonUid = ? \n AND clazzEnrolmentClazzUid = ?\n AND clazzEnrolmentRole = ?\n AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n LIMIT 1), 0)\n', false); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$updateClazzEnrolmentRole$slambda_0(newRole, updateTime, personUid, clazzUid, oldRole, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).getClazzNameAndPersonName_hz03dx_k$ = function (personUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n FROM Person\n LEFT JOIN Clazz\n ON Clazz.clazzUid = CAST(? AS BIGINT)\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName, Clazz.clazzName\n FROM Person\n LEFT JOIN Clazz\n ON Clazz.clazzUid = ?\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$getClazzNameAndPersonName$slambda_0(clazzUid, personUid, null), $completion); }; protoOf(ClazzEnrolmentDao_JdbcImpl).findClazzEnrolmentEntitiesForPersonViewPermissionCheck_l1jtok_k$ = function (accountPersonUid, otherPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH CanViewMembersClazzesViaCoursePermission(clazzUid) AS\n /* Get clazzuids where active user can view members based on their own enrolment role */\n (SELECT CoursePermission.cpClazzUid\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n AND (CoursePermission.cpPermissionsFlag & 8192) > 0 \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.cpClazzUid\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n )\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n OR ( ClazzEnrolment.clazzEnrolmentClazzUid IN \n (SELECT CanViewMembersClazzesViaCoursePermission.clazzUid\n FROM CanViewMembersClazzesViaCoursePermission)\n AND (CAST(? AS BIGINT) = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)) \n )\n ', VOID, VOID, VOID, '\n WITH CanViewMembersClazzesViaCoursePermission(clazzUid) AS\n /* Get clazzuids where active user can view members based on their own enrolment role */\n (SELECT CoursePermission.cpClazzUid\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = ? \n AND (CoursePermission.cpPermissionsFlag & 8192) > 0 \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.cpClazzUid\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = ?\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n )\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n OR ( ClazzEnrolment.clazzEnrolmentClazzUid IN \n (SELECT CanViewMembersClazzesViaCoursePermission.clazzUid\n FROM CanViewMembersClazzesViaCoursePermission)\n AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?) \n )\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzEnrolmentDao_JdbcImpl$findClazzEnrolmentEntitiesForPersonViewPermissionCheck$slambda_0(accountPersonUid, otherPersonUid, null), $completion); }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$insertListAsync$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertListAsync_da8ahi_k$($entityList); return Unit_getInstance(); }; } function ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda(this$0, $clazzEnrolmentUid, $endDate, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$clazzEnrolmentUid_1 = $clazzEnrolmentUid; this.$endDate_1 = $endDate; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateDateLeftByUid_1hi2mc_k$(this.$clazzEnrolmentUid_1, this.$endDate_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda(this.this$0__1, this.$clazzEnrolmentUid_1, this.$endDate_1, this.$updateTime_1, completion); }; function ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda_0(this$0, $clazzEnrolmentUid, $endDate, $updateTime, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda(this$0, $clazzEnrolmentUid, $endDate, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_vdvqtl_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$sortOrder_1 = $sortOrder; this.$searchText_1 = $searchText; this.$filter_1 = $filter; this.$accountPersonUid_1 = $accountPersonUid; this.$currentTime_1 = $currentTime; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ClazzEnrolmentDao/findByClazzUidAndRole'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzEnrolmentDao/findByClazzUidAndRole'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'roleId', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$roleId_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer_0(StringCompanionObject_getInstance())), this.$searchText_1)); parameter(this_0, 'filter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$filter_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'currentTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$currentTime_1)); parameter(this_0, 'permission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$permission_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this.this$0__1, this.$clazzUid_1, this.$roleId_1, this.$sortOrder_1, this.$searchText_1, this.$filter_1, this.$accountPersonUid_1, this.$currentTime_1, this.$permission_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, $permission, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$sortOrder_1 = $sortOrder; this.$searchText_1 = $searchText; this.$filter_1 = $filter; this.$accountPersonUid_1 = $accountPersonUid; this.$currentTime_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'roleId', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$roleId_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer_0(StringCompanionObject_getInstance())), this.$searchText_1)); parameter(this_0, 'filter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$filter_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'currentTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$currentTime_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this.this$0__1, this.$clazzUid_1, this.$roleId_1, this.$sortOrder_1, this.$searchText_1, this.$filter_1, this.$accountPersonUid_1, this.$currentTime_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda(this$0, $clazzUid, $roleId, $sortOrder, $searchText, $filter, $accountPersonUid, $currentTime, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzEnrolmentDao_Repo$updateClazzEnrolmentActiveForClazzEnrolment$lambda(this$0, $clazzEnrolmentUid, $enrolled, $timeChanged) { return function () { return this$0._dao_1.updateClazzEnrolmentActiveForClazzEnrolment_p5bigt_k$($clazzEnrolmentUid, $enrolled, $timeChanged); }; } function ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda(this$0, $personUid, $clazzUid, $newRole, $oldRole, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; this.$newRole_1 = $newRole; this.$oldRole_1 = $oldRole; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateClazzEnrolmentRole_k25a0a_k$(this.$personUid_1, this.$clazzUid_1, this.$newRole_1, this.$oldRole_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda(this.this$0__1, this.$personUid_1, this.$clazzUid_1, this.$newRole_1, this.$oldRole_1, this.$updateTime_1, completion); }; function ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda_0(this$0, $personUid, $clazzUid, $newRole, $oldRole, $updateTime, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda(this$0, $personUid, $clazzUid, $newRole, $oldRole, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzEnrolmentDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzEnrolmentDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzEnrolmentDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ClazzEnrolmentDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ClazzEnrolmentDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findEnrolmentWithLeavingReasonCOROUTINE$47(_this__u8e3s4, enrolmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.enrolmentUid_1 = enrolmentUid; } protoOf($findEnrolmentWithLeavingReasonCOROUTINE$47).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzEnrolmentDao/findEnrolmentWithLeavingReason'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'enrolmentUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.enrolmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzEnrolmentDao_Repo$findEnrolmentWithLeavingReason$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findEnrolmentWithLeavingReason_lv06cu_k$(this.enrolmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$48(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$48).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllClazzesByPersonWithClazzAsListAsyncCOROUTINE$49(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; } protoOf($findAllClazzesByPersonWithClazzAsListAsyncCOROUTINE$49).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllClazzesByPersonWithClazzAsListAsync_ib1s7u_k$(this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getAllClazzEnrolledAtTimeAsyncCOROUTINE$50(_this__u8e3s4, clazzUid, date, roleFilter, personUidFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.date_1 = date; this.roleFilter_1 = roleFilter; this.personUidFilter_1 = personUidFilter; } protoOf($getAllClazzEnrolledAtTimeAsyncCOROUTINE$50).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAllClazzEnrolledAtTimeAsync_49if19_k$(this.clazzUid_1, this.date_1, this.roleFilter_1, this.personUidFilter_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(_this__u8e3s4, clazzUid, accountPersonUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; this.time_1 = time; } protoOf($getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzEnrolmentDao/getAllEnrolmentsAtTimeByClazzAndPerson'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'time', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.time_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzEnrolmentDao_Repo$getAllEnrolmentsAtTimeByClazzAndPerson$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getAllEnrolmentsAtTimeByClazzAndPerson_ya0633_k$(this.clazzUid_1, this.accountPersonUid_1, this.time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidCOROUTINE$52(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidCOROUTINE$52).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_l4435r_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findActorEntitiesForGradebookCOROUTINE$53(_this__u8e3s4, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.roleId_1 = roleId; this.sortOrder_1 = sortOrder; this.searchText_1 = searchText; this.filter_1 = filter; this.accountPersonUid_1 = accountPersonUid; this.currentTime_1 = currentTime; this.studentsLimit_1 = studentsLimit; this.studentsOffset_1 = studentsOffset; } protoOf($findActorEntitiesForGradebookCOROUTINE$53).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActorEntitiesForGradebook_64my98_k$(this.clazzUid_1, this.roleId_1, this.sortOrder_1, this.searchText_1, this.filter_1, this.accountPersonUid_1, this.currentTime_1, this.studentsLimit_1, this.studentsOffset_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findEnrolmentsAndPersonByClazzUidWithPermissionCheckCOROUTINE$54(_this__u8e3s4, clazzUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findEnrolmentsAndPersonByClazzUidWithPermissionCheckCOROUTINE$54).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findEnrolmentsAndPersonByClazzUidWithPermissionCheck_o49mx5_k$(this.clazzUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByAccountPersonUidAndClazzUidCOROUTINE$55(_this__u8e3s4, accountPersonUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzUid_1 = clazzUid; } protoOf($findByAccountPersonUidAndClazzUidCOROUTINE$55).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByAccountPersonUidAndClazzUid_gg3d6v_k$(this.accountPersonUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findEnrolmentsByClazzUidAndRoleCOROUTINE$56(_this__u8e3s4, clazzUid, accountPersonUid, roleId, permission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; this.roleId_1 = roleId; this.permission_1 = permission; } protoOf($findEnrolmentsByClazzUidAndRoleCOROUTINE$56).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findEnrolmentsByClazzUidAndRole_38ings_k$(this.clazzUid_1, this.accountPersonUid_1, this.roleId_1, this.permission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findEnrolmentsByClazzUidAndRolePagedCOROUTINE$57(_this__u8e3s4, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.roleId_1 = roleId; this.sortOrder_1 = sortOrder; this.searchText_1 = searchText; this.filter_1 = filter; this.accountPersonUid_1 = accountPersonUid; this.currentTime_1 = currentTime; this.permission_1 = permission; this.studentsLimit_1 = studentsLimit; this.studentsOffset_1 = studentsOffset; } protoOf($findEnrolmentsByClazzUidAndRolePagedCOROUTINE$57).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findEnrolmentsByClazzUidAndRolePaged_org7mu_k$(this.clazzUid_1, this.roleId_1, this.sortOrder_1, this.searchText_1, this.filter_1, this.accountPersonUid_1, this.currentTime_1, this.permission_1, this.studentsLimit_1, this.studentsOffset_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllEnrolmentsByClazzUidAndRoleCOROUTINE$58(_this__u8e3s4, clazzUid, roleId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.roleId_1 = roleId; } protoOf($findAllEnrolmentsByClazzUidAndRoleCOROUTINE$58).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllEnrolmentsByClazzUidAndRole_5mjtuh_k$(this.clazzUid_1, this.roleId_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateClazzEnrolmentRoleCOROUTINE$59(_this__u8e3s4, personUid, clazzUid, newRole, oldRole, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.clazzUid_1 = clazzUid; this.newRole_1 = newRole; this.oldRole_1 = oldRole; this.updateTime_1 = updateTime; } protoOf($updateClazzEnrolmentRoleCOROUTINE$59).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateClazzEnrolmentRole$slambda_0(this._this__u8e3s4__1, this.personUid_1, this.clazzUid_1, this.newRole_1, this.oldRole_1, this.updateTime_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getClazzNameAndPersonNameCOROUTINE$60(_this__u8e3s4, personUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.clazzUid_1 = clazzUid; } protoOf($getClazzNameAndPersonNameCOROUTINE$60).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getClazzNameAndPersonName_hz03dx_k$(this.personUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findClazzEnrolmentEntitiesForPersonViewPermissionCheckCOROUTINE$61(_this__u8e3s4, accountPersonUid, otherPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.otherPersonUid_1 = otherPersonUid; } protoOf($findClazzEnrolmentEntitiesForPersonViewPermissionCheckCOROUTINE$61).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findClazzEnrolmentEntitiesForPersonViewPermissionCheck_l1jtok_k$(this.accountPersonUid_1, this.otherPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$62(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$62).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzEnrolmentDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzEnrolmentDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ClazzEnrolmentDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzEnrolmentDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ClazzEnrolmentDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ClazzEnrolmentDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ClazzEnrolmentDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ClazzEnrolmentDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ClazzEnrolmentDao_Repo).insertListAsync_da8ahi_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertListAsync$lambda(this, entityList)); }; protoOf(ClazzEnrolmentDao_Repo).findAllEnrolmentsByPersonAndClazzUid_gp5yes_k$ = function (personUid, clazzUid) { var _result = this._dao_1.findAllEnrolmentsByPersonAndClazzUid_gp5yes_k$(personUid, clazzUid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).findEnrolmentWithLeavingReason_lv06cu_k$ = function (enrolmentUid, $completion) { var tmp = new $findEnrolmentWithLeavingReasonCOROUTINE$47(this, enrolmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).updateDateLeftByUid_1hi2mc_k$ = function (clazzEnrolmentUid, endDate, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateDateLeftByUid$slambda_0(this, clazzEnrolmentUid, endDate, updateTime, null), $completion); }; protoOf(ClazzEnrolmentDao_Repo).updateAsync_vdvqtl_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$48(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findAllClazzesByPersonWithClazz_wuzdt4_k$ = function (accountPersonUid, otherPersonUid) { var _result = this._dao_1.findAllClazzesByPersonWithClazz_wuzdt4_k$(accountPersonUid, otherPersonUid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).findAllByPersonUid_43f4oe_k$ = function (personUid) { var _result = this._dao_1.findAllByPersonUid_43f4oe_k$(personUid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).findAllClazzesByPersonWithClazzAsListAsync_ib1s7u_k$ = function (personUid, $completion) { var tmp = new $findAllClazzesByPersonWithClazzAsListAsyncCOROUTINE$49(this, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).getAllClazzEnrolledAtTimeAsync_49if19_k$ = function (clazzUid, date, roleFilter, personUidFilter, $completion) { var tmp = new $getAllClazzEnrolledAtTimeAsyncCOROUTINE$50(this, clazzUid, date, roleFilter, personUidFilter, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).getAllEnrolmentsAtTimeByClazzAndPerson_ya0633_k$ = function (clazzUid, accountPersonUid, time, $completion) { var tmp = new $getAllEnrolmentsAtTimeByClazzAndPersonCOROUTINE$51(this, clazzUid, accountPersonUid, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findByUid_l4435r_k$ = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$52(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(ClazzEnrolmentDao_Repo).findByClazzUidAndRole_s0w7co_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission) { var tmp = this._dao_1.findByClazzUidAndRole_s0w7co_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ClazzEnrolmentDao/findByClazzUidAndRole', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRole$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, null)); }; protoOf(ClazzEnrolmentDao_Repo).findByClazzUidAndRoleForGradebook_5rskr1_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime) { var tmp = this._dao_1.findByClazzUidAndRoleForGradebook_5rskr1_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ClazzEnrolmentDao/findByClazzUidAndRoleForGradebook', tmp, ClazzEnrolmentDao_Repo$findByClazzUidAndRoleForGradebook$slambda_0(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, null)); }; protoOf(ClazzEnrolmentDao_Repo).findActorEntitiesForGradebook_64my98_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion) { var tmp = new $findActorEntitiesForGradebookCOROUTINE$53(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findEnrolmentsAndPersonByClazzUidWithPermissionCheck_o49mx5_k$ = function (clazzUid, accountPersonUid, $completion) { var tmp = new $findEnrolmentsAndPersonByClazzUidWithPermissionCheckCOROUTINE$54(this, clazzUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findByAccountPersonUidAndClazzUid_gg3d6v_k$ = function (accountPersonUid, clazzUid, $completion) { var tmp = new $findByAccountPersonUidAndClazzUidCOROUTINE$55(this, accountPersonUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findEnrolmentsByClazzUidAndRole_38ings_k$ = function (clazzUid, accountPersonUid, roleId, permission, $completion) { var tmp = new $findEnrolmentsByClazzUidAndRoleCOROUTINE$56(this, clazzUid, accountPersonUid, roleId, permission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findEnrolmentsByClazzUidAndRolePaged_org7mu_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion) { var tmp = new $findEnrolmentsByClazzUidAndRolePagedCOROUTINE$57(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, permission, studentsLimit, studentsOffset, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findAllEnrolmentsByClazzUidAndRole_5mjtuh_k$ = function (clazzUid, roleId, $completion) { var tmp = new $findAllEnrolmentsByClazzUidAndRoleCOROUTINE$58(this, clazzUid, roleId, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).updateClazzEnrolmentActiveForClazzEnrolment_p5bigt_k$ = function (clazzEnrolmentUid, enrolled, timeChanged) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$updateClazzEnrolmentActiveForClazzEnrolment$lambda(this, clazzEnrolmentUid, enrolled, timeChanged)); return _result; }; protoOf(ClazzEnrolmentDao_Repo).updateClazzEnrolmentRole_k25a0a_k$ = function (personUid, clazzUid, newRole, oldRole, updateTime, $completion) { var tmp = new $updateClazzEnrolmentRoleCOROUTINE$59(this, personUid, clazzUid, newRole, oldRole, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).getClazzNameAndPersonName_hz03dx_k$ = function (personUid, clazzUid, $completion) { var tmp = new $getClazzNameAndPersonNameCOROUTINE$60(this, personUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).findClazzEnrolmentEntitiesForPersonViewPermissionCheck_l1jtok_k$ = function (accountPersonUid, otherPersonUid, $completion) { var tmp = new $findClazzEnrolmentEntitiesForPersonViewPermissionCheckCOROUTINE$61(this, accountPersonUid, otherPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).insert_4siu60_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ClazzEnrolmentDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_4siu60_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; protoOf(ClazzEnrolmentDao_Repo).insertAsync_c6fy7x_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$62(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzEnrolmentDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_c6fy7x_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE(), $completion); }; protoOf(ClazzEnrolmentDao_Repo).insertList_cecco_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ClazzEnrolmentDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cecco_k$(entityList); }; protoOf(ClazzEnrolmentDao_Repo).update_p193i0_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ClazzEnrolment', ClazzEnrolmentDao_Repo$update$lambda(this, entity)); }; protoOf(ClazzEnrolmentDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_p193i0_k$(entity instanceof ClazzEnrolment ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao() { } function _get__db__e63s44_4($this) { return $this._db_1; } function _get__dao__d2kw60_2($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$63(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($insertListAsyncCOROUTINE$63).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_clazzLogAttendanceRecordUid_u3gxm9_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_y35md9_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListAsyncCOROUTINE$64(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($upsertListAsyncCOROUTINE$64).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_clazzLogAttendanceRecordUid_u3gxm9_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_9oirw3_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$65(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$65).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(15, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_clazzLogAttendanceRecordUid_u3gxm9_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_clazzLogAttendanceRecordUid_a6xjzz_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogAttendanceRecordDao_DoorWrapper(_db, _dao) { ClazzLogAttendanceRecordDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertListAsync_y35md9_k$ = function (entities, $completion) { var tmp = new $insertListAsyncCOROUTINE$63(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).updateListAsync_3vk5mb_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_DoorWrapper.updateListAsync.' call element.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_3vk5mb_k$(entities, $completion); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).findByClazzLogUid_bq66rt_k$ = function (clazzLogUid, $completion) { return this._dao_1.findByClazzLogUid_bq66rt_k$(clazzLogUid, $completion); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).updateRescheduledClazzLogUids_vm5ise_k$ = function (oldClazzLogUid, newClazzLogUid, changedTime) { throw IllegalStateException_init_$Create$('updateRescheduledClazzLogUids: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).findByClazzAndTime_e5b96n_k$ = function (clazzUid, clazzLogUid, time, $completion) { return this._dao_1.findByClazzAndTime_e5b96n_k$(clazzUid, clazzLogUid, time, $completion); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).upsertListAsync_9oirw3_k$ = function (entityList, $completion) { var tmp = new $upsertListAsyncCOROUTINE$64(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insert_9byl02_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_9byl02_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertAsync_p5obb_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$65(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_p5obb_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertList_21zh02_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_21zh02_k$(entityList); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).update_uygepa_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogAttendanceRecordDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_uygepa_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda$lambda(_result) { return mapRows(_result, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda$lambda$lambda(_result)); } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogAttendanceRecordUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordUid'); var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordClazzLogUid'); var _tmp_clazzLogAttendanceRecordPersonUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordPersonUid'); var _tmp_attendanceStatus = $_result.getInt_npc9pd_k$('attendanceStatus'); var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordMasterChangeSeqNum'); var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLocalChangeSeqNum'); var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.getInt_npc9pd_k$('clazzLogAttendanceRecordLastChangedBy'); var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLastChangedTime'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new ClazzLogAttendanceRecordWithPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzLogUid....' call this_0.set_clazzLogAttendanceRecordUid_u3gxm9_k$(_tmp_clazzLogAttendanceRecordUid); this_0.set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$(_tmp_clazzLogAttendanceRecordClazzLogUid); this_0.set_clazzLogAttendanceRecordPersonUid_tldzbu_k$(_tmp_clazzLogAttendanceRecordPersonUid); this_0.set_attendanceStatus_scnmkw_k$(_tmp_attendanceStatus); this_0.set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$(_tmp_clazzLogAttendanceRecordMasterChangeSeqNum); this_0.set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$(_tmp_clazzLogAttendanceRecordLocalChangeSeqNum); this_0.set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$(_tmp_clazzLogAttendanceRecordLastChangedBy); this_0.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(_tmp_clazzLogAttendanceRecordLastChangedTime); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzLogUid.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } return this_0; }; } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda(_result) { return mapRows(_result, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda(_result)); } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_ClazzLogAttendanceRecord_nullCount = 0; var _tmp_clazzLogAttendanceRecordUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordClazzLogUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordPersonUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordPersonUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_attendanceStatus = $_result.getInt_npc9pd_k$('attendanceStatus'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordMasterChangeSeqNum'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLocalChangeSeqNum'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.getInt_npc9pd_k$('clazzLogAttendanceRecordLastChangedBy'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLastChangedTime'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzLogAttendanceRecord_nullCount = _tmp_ClazzLogAttendanceRecord_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_ClazzLogAttendanceRecord_isAllNull = _tmp_ClazzLogAttendanceRecord_nullCount === 8; // Inline function 'kotlin.apply' call var this_0 = new PersonAndClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } if (!_tmp_ClazzLogAttendanceRecord_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByClazzAndTime.....' call this_3.set_clazzLogAttendanceRecordUid_u3gxm9_k$(_tmp_clazzLogAttendanceRecordUid); this_3.set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$(_tmp_clazzLogAttendanceRecordClazzLogUid); this_3.set_clazzLogAttendanceRecordPersonUid_tldzbu_k$(_tmp_clazzLogAttendanceRecordPersonUid); this_3.set_attendanceStatus_scnmkw_k$(_tmp_attendanceStatus); this_3.set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$(_tmp_clazzLogAttendanceRecordMasterChangeSeqNum); this_3.set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$(_tmp_clazzLogAttendanceRecordLocalChangeSeqNum); this_3.set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$(_tmp_clazzLogAttendanceRecordLastChangedBy); this_3.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(_tmp_clazzLogAttendanceRecordLastChangedTime); this_0.set_attendanceRecord_5755zp_k$(this_3); } return this_0; }; } function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).bindPreparedStmtToEntity_m9rpll_k$ = function (stmt, entity) { if (entity.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); stmt.setLong_j1sybo_k$(3, entity.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); stmt.setInt_c72a8z_k$(4, entity.get_attendanceStatus_noqiv8_k$()); stmt.setLong_j1sybo_k$(5, entity.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); stmt.setLong_j1sybo_k$(6, entity.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); stmt.setInt_c72a8z_k$(7, entity.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); stmt.setLong_j1sybo_k$(8, entity.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_m9rpll_k$(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).bindPreparedStmtToEntity_m9rpll_k$ = function (stmt, entity) { if (entity.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); stmt.setLong_j1sybo_k$(3, entity.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); stmt.setInt_c72a8z_k$(4, entity.get_attendanceStatus_noqiv8_k$()); stmt.setLong_j1sybo_k$(5, entity.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); stmt.setLong_j1sybo_k$(6, entity.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); stmt.setInt_c72a8z_k$(7, entity.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); stmt.setLong_j1sybo_k$(8, entity.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_m9rpll_k$(stmt, entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda($entities, resultContinuation) { this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entities_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setLong_j1sybo_k$(1, this._entity1__1.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); this._stmt_1.setLong_j1sybo_k$(2, this._entity1__1.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); this._stmt_1.setInt_c72a8z_k$(3, this._entity1__1.get_attendanceStatus_noqiv8_k$()); this._stmt_1.setLong_j1sybo_k$(4, this._entity1__1.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); this._stmt_1.setLong_j1sybo_k$(5, this._entity1__1.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); this._stmt_1.setInt_c72a8z_k$(6, this._entity1__1.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); this._stmt_1.setLong_j1sybo_k$(7, this._entity1__1.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); this._stmt_1.setLong_j1sybo_k$(8, this._entity1__1.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda(this.$entities_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda_0($entities, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda($entities, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogAttendanceRecordDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_attendanceStatus_noqiv8_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogAttendanceRecordUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordUid'); var _tmp_clazzLogAttendanceRecordClazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordClazzLogUid'); var _tmp_clazzLogAttendanceRecordPersonUid = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordPersonUid'); var _tmp_attendanceStatus = $_result.getInt_npc9pd_k$('attendanceStatus'); var _tmp_clazzLogAttendanceRecordMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordMasterChangeSeqNum'); var _tmp_clazzLogAttendanceRecordLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLocalChangeSeqNum'); var _tmp_clazzLogAttendanceRecordLastChangedBy = $_result.getInt_npc9pd_k$('clazzLogAttendanceRecordLastChangedBy'); var _tmp_clazzLogAttendanceRecordLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogAttendanceRecordLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogAttendanceRecordDao_JdbcImpl.findByUid....' call this_0.set_clazzLogAttendanceRecordUid_u3gxm9_k$(_tmp_clazzLogAttendanceRecordUid); this_0.set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$(_tmp_clazzLogAttendanceRecordClazzLogUid); this_0.set_clazzLogAttendanceRecordPersonUid_tldzbu_k$(_tmp_clazzLogAttendanceRecordPersonUid); this_0.set_attendanceStatus_scnmkw_k$(_tmp_attendanceStatus); this_0.set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$(_tmp_clazzLogAttendanceRecordMasterChangeSeqNum); this_0.set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$(_tmp_clazzLogAttendanceRecordLocalChangeSeqNum); this_0.set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$(_tmp_clazzLogAttendanceRecordLastChangedBy); this_0.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(_tmp_clazzLogAttendanceRecordLastChangedTime); return this_0; }; } function ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda$lambda); }; } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda($clazzLogUid, resultContinuation) { this.$clazzLogUid_1 = $clazzLogUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda).invoke_yovxav_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_yovxav_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzLogUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda(this.$clazzLogUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda_0($clazzLogUid, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda($clazzLogUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_yovxav_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogAttendanceRecordDao_JdbcImpl$updateRescheduledClazzLogUids$lambda($newClazzLogUid, $changedTime, $oldClazzLogUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $newClazzLogUid); _stmt.setLong_j1sybo_k$(2, $changedTime); _stmt.setLong_j1sybo_k$(3, $oldClazzLogUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$time_1 = $time; this.$clazzLogUid_1 = $clazzLogUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).invoke_ssqczp_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ssqczp_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$time_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzLogUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda(this.$clazzUid_1, this.$time_1, this.$clazzLogUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0($clazzUid, $time, $clazzLogUid, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda($clazzUid, $time, $clazzLogUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ssqczp_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$66(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$66).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterClazzLogAttendanceRecord_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogAttendanceRecordDao_JdbcImpl(_db) { ClazzLogAttendanceRecordDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterClazzLogAttendanceRecord_abort_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterClazzLogAttendanceRecord_upsert_1 = new ClazzLogAttendanceRecordDao_JdbcImpl$_insertAdapterClazzLogAttendanceRecord_upsert$1(this); } protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).get__insertAdapterClazzLogAttendanceRecord_abort_lz38hj_k$ = function () { return this._insertAdapterClazzLogAttendanceRecord_abort_1; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).get__insertAdapterClazzLogAttendanceRecord_upsert_jeoe48_k$ = function () { return this._insertAdapterClazzLogAttendanceRecord_upsert_1; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertListAsync_y35md9_k$ = function (entities, $completion) { return this._insertAdapterClazzLogAttendanceRecord_abort_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).upsertListAsync_9oirw3_k$ = function (entityList, $completion) { return this._insertAdapterClazzLogAttendanceRecord_upsert_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insert_9byl02_k$ = function (entity) { var _retVal = this._insertAdapterClazzLogAttendanceRecord_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_9byl02_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertAsync_p5obb_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$66(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_p5obb_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertList_21zh02_k$ = function (entityList) { this._insertAdapterClazzLogAttendanceRecord_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_21zh02_k$(entityList); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).updateListAsync_3vk5mb_k$ = function (entities, $completion) { var _sql = 'UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordClazzLogUid = ?, clazzLogAttendanceRecordPersonUid = ?, attendanceStatus = ?, clazzLogAttendanceRecordMasterChangeSeqNum = ?, clazzLogAttendanceRecordLocalChangeSeqNum = ?, clazzLogAttendanceRecordLastChangedBy = ?, clazzLogAttendanceRecordLastChangedTime = ? WHERE clazzLogAttendanceRecordUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, ClazzLogAttendanceRecordDao_JdbcImpl$updateListAsync$slambda_0(entities, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).update_uygepa_k$ = function (entity) { var _sql = 'UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordClazzLogUid = ?, clazzLogAttendanceRecordPersonUid = ?, attendanceStatus = ?, clazzLogAttendanceRecordMasterChangeSeqNum = ?, clazzLogAttendanceRecordLocalChangeSeqNum = ?, clazzLogAttendanceRecordLastChangedBy = ?, clazzLogAttendanceRecordLastChangedTime = ? WHERE clazzLogAttendanceRecordUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ClazzLogAttendanceRecordDao_JdbcImpl$update$lambda(entity)); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_uygepa_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * from ClazzLogAttendanceRecord WHERE clazzLogAttendanceRecordUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * from ClazzLogAttendanceRecord WHERE clazzLogAttendanceRecordUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).findByClazzLogUid_bq66rt_k$ = function (clazzLogUid, $completion) { var tmp = new PreparedStatementConfig('SELECT ClazzLogAttendanceRecord.*, Person.*\n FROM ClazzLogAttendanceRecord \n LEFT JOIN Person ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = Person.personUid\n WHERE clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT ClazzLogAttendanceRecord.*, Person.*\n FROM ClazzLogAttendanceRecord \n LEFT JOIN Person ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = Person.personUid\n WHERE clazzLogAttendanceRecordClazzLogUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzLogUid$slambda_0(clazzLogUid, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).updateRescheduledClazzLogUids_vm5ise_k$ = function (oldClazzLogUid, newClazzLogUid, changedTime) { var tmp = new PreparedStatementConfig('\n UPDATE ClazzLogAttendanceRecord\n SET clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT),\n clazzLogAttendanceRecordLastChangedTime = CAST(? AS BIGINT)\n WHERE clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE ClazzLogAttendanceRecord\n SET clazzLogAttendanceRecordClazzLogUid = ?,\n clazzLogAttendanceRecordLastChangedTime = ?\n WHERE clazzLogAttendanceRecordClazzLogUid = ?\n \n', false); prepareAndUseStatement_0(this._db_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$updateRescheduledClazzLogUids$lambda(newClazzLogUid, changedTime, oldClazzLogUid)); }; protoOf(ClazzLogAttendanceRecordDao_JdbcImpl).findByClazzAndTime_e5b96n_k$ = function (clazzUid, clazzLogUid, time, $completion) { var tmp = new PreparedStatementConfig('\n \n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n \n \n SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n FROM Person\n LEFT JOIN ClazzLogAttendanceRecord \n ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid \n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = CAST(? AS BIGINT)\n AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC \n LIMIT 1 \n )\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n FROM CurrentlyEnrolledPersonUids) \n ', VOID, VOID, VOID, '\n \n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n \n \n SELECT Person.*, ClazzLogAttendanceRecord.*, PersonPicture.*\n FROM Person\n LEFT JOIN ClazzLogAttendanceRecord \n ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = \n (SELECT ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordUid \n FROM ClazzLogAttendanceRecord ClazzLogAttendanceRecordInner\n WHERE ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordClazzLogUid = ?\n AND ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordPersonUid = Person.personUid\n ORDER BY ClazzLogAttendanceRecordInner.clazzLogAttendanceRecordLastChangedTime DESC \n LIMIT 1 \n )\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT CurrentlyEnrolledPersonUids.enroledPersonUid\n FROM CurrentlyEnrolledPersonUids) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogAttendanceRecordDao_JdbcImpl$findByClazzAndTime$slambda_0(clazzUid, time, clazzLogUid, null), $completion); }; function ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_y35md9_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_3vk5mb_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzLogAttendanceRecordDao_Repo$updateRescheduledClazzLogUids$lambda(this$0, $oldClazzLogUid, $newClazzLogUid, $changedTime) { return function () { this$0._dao_1.updateRescheduledClazzLogUids_vm5ise_k$($oldClazzLogUid, $newClazzLogUid, $changedTime); return Unit_getInstance(); }; } function ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_9oirw3_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzLogAttendanceRecordDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ClazzLogAttendanceRecordDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ClazzLogAttendanceRecordDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByClazzLogUidCOROUTINE$67(_this__u8e3s4, clazzLogUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzLogUid_1 = clazzLogUid; } protoOf($findByClazzLogUidCOROUTINE$67).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzLogUid_bq66rt_k$(this.clazzLogUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByClazzAndTimeCOROUTINE$68(_this__u8e3s4, clazzUid, clazzLogUid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.clazzLogUid_1 = clazzLogUid; this.time_1 = time; } protoOf($findByClazzAndTimeCOROUTINE$68).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzLogAttendanceRecordDao/findByClazzAndTime'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzLogAttendanceRecordDao/findByClazzAndTime'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'clazzLogUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzLogUid_1)); parameter(this_0, 'time', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.time_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzLogAttendanceRecordDao_Repo$findByClazzAndTime$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzAndTime_e5b96n_k$(this.clazzUid_1, this.clazzLogUid_1, this.time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$69(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$69).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogAttendanceRecordDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzLogAttendanceRecordDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ClazzLogAttendanceRecordDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertListAsync_y35md9_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(ClazzLogAttendanceRecordDao_Repo).updateListAsync_3vk5mb_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$updateListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo).findByClazzLogUid_bq66rt_k$ = function (clazzLogUid, $completion) { var tmp = new $findByClazzLogUidCOROUTINE$67(this, clazzLogUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo).updateRescheduledClazzLogUids_vm5ise_k$ = function (oldClazzLogUid, newClazzLogUid, changedTime) { withRepoChangeMonitor(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$updateRescheduledClazzLogUids$lambda(this, oldClazzLogUid, newClazzLogUid, changedTime)); }; protoOf(ClazzLogAttendanceRecordDao_Repo).findByClazzAndTime_e5b96n_k$ = function (clazzUid, clazzLogUid, time, $completion) { var tmp = new $findByClazzAndTimeCOROUTINE$68(this, clazzUid, clazzLogUid, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo).upsertListAsync_9oirw3_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insert_9byl02_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ClazzLogAttendanceRecordDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_9byl02_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertAsync_p5obb_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$69(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_p5obb_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertList_21zh02_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ClazzLogAttendanceRecordDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_21zh02_k$(entityList); }; protoOf(ClazzLogAttendanceRecordDao_Repo).update_uygepa_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ClazzLogAttendanceRecord', ClazzLogAttendanceRecordDao_Repo$update$lambda(this, entity)); }; protoOf(ClazzLogAttendanceRecordDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_uygepa_k$(entity instanceof ClazzLogAttendanceRecord ? entity : THROW_CCE()); }; function ClazzLogDao() { } protoOf(ClazzLogDao).findByClazzUidWithinTimeRange$default_q8bg68_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit, $super) { excludeStatusFilter = excludeStatusFilter === VOID ? 0 : excludeStatusFilter; limit = limit === VOID ? IntCompanionObject_getInstance().get_MAX_VALUE_54a9lf_k$() : limit; return $super === VOID ? this.findByClazzUidWithinTimeRange_5e9gcx_k$(clazzUid, fromTime, toTime, excludeStatusFilter, limit) : $super.findByClazzUidWithinTimeRange_5e9gcx_k$.call(this, clazzUid, fromTime, toTime, excludeStatusFilter, limit); }; function _get__db__e63s44_5($this) { return $this._db_1; } function _get__dao__d2kw60_3($this) { return $this._dao_1; } function $upsertListAsyncCOROUTINE$70(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($upsertListAsyncCOROUTINE$70).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_clazzLogUid_ifqem3_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_clazzLogUid_ks9wuh_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_clazzLogLastChangedTime_hpmcu4_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_pb1a2h_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$71(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$71).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_clazzLogUid_ifqem3_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(14, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_clazzLogUid_ks9wuh_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_clazzLogLastChangedTime_hpmcu4_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_clazzLogUid_ifqem3_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogDao_DoorWrapper(_db, _dao) { ClazzLogDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ClazzLogDao_DoorWrapper).replace_fl7rtv_k$ = function (entity) { throw IllegalStateException_init_$Create$('replace: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).findByUidAsync_bq9c8t_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_bq9c8t_k$(uid, $completion); }; protoOf(ClazzLogDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(ClazzLogDao_DoorWrapper).findByClazzUidAsFactory_11prtm_k$ = function (clazzUid, excludeStatus) { return this._dao_1.findByClazzUidAsFactory_11prtm_k$(clazzUid, excludeStatus); }; protoOf(ClazzLogDao_DoorWrapper).findByClazzUidAsync_yumxyy_k$ = function (clazzUid, excludeStatus, $completion) { return this._dao_1.findByClazzUidAsync_yumxyy_k$(clazzUid, excludeStatus, $completion); }; protoOf(ClazzLogDao_DoorWrapper).findAllForClazzByClazzLogUid_4h71h4_k$ = function (clazzLogUid, excludeStatus, $completion) { return this._dao_1.findAllForClazzByClazzLogUid_4h71h4_k$(clazzLogUid, excludeStatus, $completion); }; protoOf(ClazzLogDao_DoorWrapper).findByClazzUidWithinTimeRangeAsync_shr9wp_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit, $completion) { return this._dao_1.findByClazzUidWithinTimeRangeAsync_shr9wp_k$(clazzUid, fromTime, toTime, excludeStatusFilter, limit, $completion); }; protoOf(ClazzLogDao_DoorWrapper).findByClazzUidWithinTimeRange_5e9gcx_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit) { throw IllegalStateException_init_$Create$('findByClazzUidWithinTimeRange: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).findByClazzUidWithinTimeRangeLive_1iacy5_k$ = function (clazzUid, fromTime, toTime, statusFilter) { return this._dao_1.findByClazzUidWithinTimeRangeLive_1iacy5_k$(clazzUid, fromTime, toTime, statusFilter); }; protoOf(ClazzLogDao_DoorWrapper).clazzHasScheduleLive_14kfm7_k$ = function (clazzUid, excludeStatusFilter) { return this._dao_1.clazzHasScheduleLive_14kfm7_k$(clazzUid, excludeStatusFilter); }; protoOf(ClazzLogDao_DoorWrapper).updateStatusByClazzLogUid_x2snge_k$ = function (clazzLogUid, newStatus, timeChanged) { throw IllegalStateException_init_$Create$('updateStatusByClazzLogUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).updateAsync_v4gqwl_k$ = function (clazzLog, $completion) { clazzLog.set_clazzLogLastChangedTime_hpmcu4_k$(systemTimeInMillis()); return this._dao_1.updateAsync_v4gqwl_k$(clazzLog, $completion); }; protoOf(ClazzLogDao_DoorWrapper).findMostRecentClazzLogToEditUid_r4rsjt_k$ = function (clazzUid, $completion) { return this._dao_1.findMostRecentClazzLogToEditUid_r4rsjt_k$(clazzUid, $completion); }; protoOf(ClazzLogDao_DoorWrapper).upsertListAsync_pb1a2h_k$ = function (entityList, $completion) { var tmp = new $upsertListAsyncCOROUTINE$70(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_DoorWrapper).insert_c3siso_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_c3siso_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; protoOf(ClazzLogDao_DoorWrapper).insertAsync_1k3dp_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$71(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_1k3dp_k$(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_DoorWrapper).insertList_rh432w_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rh432w_k$(entityList); }; protoOf(ClazzLogDao_DoorWrapper).update_nh2r8o_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ClazzLogDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_nh2r8o_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; function ClazzLogDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzLogDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByUidAsync....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByUidLive.....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_v7hm2l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_v7hm2l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_v7hm2l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$excludeStatus_1 = $excludeStatus; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).invoke_5j34vo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5j34vo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$excludeStatus_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda(this.$clazzUid_1, this.$excludeStatus_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda($clazzUid, $excludeStatus, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5j34vo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$excludeStatus_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$excludeStatus_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda(this.$clazzUid_1, this.$excludeStatus_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0($clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda($clazzUid, $excludeStatus, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidAsync....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findAllForClazzByClazzLogUid....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidWithinTimeRangeAsync....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidWithinTimeRangeLive.....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda($clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$fromTime_1 = $fromTime; this.$toTime_1 = $toTime; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda).invoke_5j34vo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5j34vo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$fromTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$toTime_1); this._stmt_1.setInt_c72a8z_k$(4, this.$statusFilter_1); this._stmt_1.setInt_c72a8z_k$(5, this.$statusFilter_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda(this.$clazzUid_1, this.$fromTime_1, this.$toTime_1, this.$statusFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda_0($clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda($clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5j34vo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$excludeStatusFilter_1 = $excludeStatusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$excludeStatusFilter_1); this._stmt_1.setInt_c72a8z_k$(3, this.$excludeStatusFilter_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda(this.$clazzUid_1, this.$excludeStatusFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0($clazzUid, $excludeStatusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda($clazzUid, $excludeStatusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).bindPreparedStmtToEntity_mz9yul_k$ = function (stmt, entity) { if (entity.get_clazzLogUid_ifqem3_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzLogUid_ifqem3_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_clazzLogClazzUid_p2tbpp_k$()); stmt.setLong_j1sybo_k$(3, entity.get_logDate_6wppgp_k$()); stmt.setLong_j1sybo_k$(4, entity.get_timeRecorded_30b196_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_clazzLogDone_3ajf7b_k$()); stmt.setString_2gt7ua_k$(6, entity.get_cancellationNote_xf4nfm_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_clazzLogCancelled_pcu2k_k$()); stmt.setInt_c72a8z_k$(8, entity.get_clazzLogNumPresent_9zzoay_k$()); stmt.setInt_c72a8z_k$(9, entity.get_clazzLogNumAbsent_4ftf7u_k$()); stmt.setInt_c72a8z_k$(10, entity.get_clazzLogNumPartial_25e4y8_k$()); stmt.setLong_j1sybo_k$(11, entity.get_clazzLogScheduleUid_4puu8s_k$()); stmt.setInt_c72a8z_k$(12, entity.get_clazzLogStatusFlag_5bedjh_k$()); stmt.setLong_j1sybo_k$(13, entity.get_clazzLogMSQN_3aokm0_k$()); stmt.setLong_j1sybo_k$(14, entity.get_clazzLogLCSN_3anlt3_k$()); stmt.setInt_c72a8z_k$(15, entity.get_clazzLogLCB_ifq706_k$()); stmt.setLong_j1sybo_k$(16, entity.get_clazzLogLastChangedTime_dwg7je_k$()); }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_mz9yul_k$(stmt, entity instanceof ClazzLog ? entity : THROW_CCE()); }; function ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).bindPreparedStmtToEntity_mz9yul_k$ = function (stmt, entity) { if (entity.get_clazzLogUid_ifqem3_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_clazzLogUid_ifqem3_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_clazzLogClazzUid_p2tbpp_k$()); stmt.setLong_j1sybo_k$(3, entity.get_logDate_6wppgp_k$()); stmt.setLong_j1sybo_k$(4, entity.get_timeRecorded_30b196_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_clazzLogDone_3ajf7b_k$()); stmt.setString_2gt7ua_k$(6, entity.get_cancellationNote_xf4nfm_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_clazzLogCancelled_pcu2k_k$()); stmt.setInt_c72a8z_k$(8, entity.get_clazzLogNumPresent_9zzoay_k$()); stmt.setInt_c72a8z_k$(9, entity.get_clazzLogNumAbsent_4ftf7u_k$()); stmt.setInt_c72a8z_k$(10, entity.get_clazzLogNumPartial_25e4y8_k$()); stmt.setLong_j1sybo_k$(11, entity.get_clazzLogScheduleUid_4puu8s_k$()); stmt.setInt_c72a8z_k$(12, entity.get_clazzLogStatusFlag_5bedjh_k$()); stmt.setLong_j1sybo_k$(13, entity.get_clazzLogMSQN_3aokm0_k$()); stmt.setLong_j1sybo_k$(14, entity.get_clazzLogLCSN_3anlt3_k$()); stmt.setInt_c72a8z_k$(15, entity.get_clazzLogLCB_ifq706_k$()); stmt.setLong_j1sybo_k$(16, entity.get_clazzLogLastChangedTime_dwg7je_k$()); }; protoOf(ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_mz9yul_k$(stmt, entity instanceof ClazzLog ? entity : THROW_CCE()); }; function ClazzLogDao_JdbcImpl$updateAsync$slambda($clazzLog, resultContinuation) { this.$clazzLog_1 = $clazzLog; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzLog_1.get_clazzLogClazzUid_p2tbpp_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzLog_1.get_logDate_6wppgp_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzLog_1.get_timeRecorded_30b196_k$()); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$clazzLog_1.get_clazzLogDone_3ajf7b_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$clazzLog_1.get_cancellationNote_xf4nfm_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$clazzLog_1.get_clazzLogCancelled_pcu2k_k$()); this._stmt_1.setInt_c72a8z_k$(7, this.$clazzLog_1.get_clazzLogNumPresent_9zzoay_k$()); this._stmt_1.setInt_c72a8z_k$(8, this.$clazzLog_1.get_clazzLogNumAbsent_4ftf7u_k$()); this._stmt_1.setInt_c72a8z_k$(9, this.$clazzLog_1.get_clazzLogNumPartial_25e4y8_k$()); this._stmt_1.setLong_j1sybo_k$(10, this.$clazzLog_1.get_clazzLogScheduleUid_4puu8s_k$()); this._stmt_1.setInt_c72a8z_k$(11, this.$clazzLog_1.get_clazzLogStatusFlag_5bedjh_k$()); this._stmt_1.setLong_j1sybo_k$(12, this.$clazzLog_1.get_clazzLogMSQN_3aokm0_k$()); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzLog_1.get_clazzLogLCSN_3anlt3_k$()); this._stmt_1.setInt_c72a8z_k$(14, this.$clazzLog_1.get_clazzLogLCB_ifq706_k$()); this._stmt_1.setLong_j1sybo_k$(15, this.$clazzLog_1.get_clazzLogLastChangedTime_dwg7je_k$()); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzLog_1.get_clazzLogUid_ifqem3_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$updateAsync$slambda(this.$clazzLog_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$updateAsync$slambda_0($clazzLog, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$updateAsync$slambda($clazzLog, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_clazzLogClazzUid_p2tbpp_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_logDate_6wppgp_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_timeRecorded_30b196_k$()); _stmt.setBoolean_pzdm1v_k$(4, $entity.get_clazzLogDone_3ajf7b_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_cancellationNote_xf4nfm_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_clazzLogCancelled_pcu2k_k$()); _stmt.setInt_c72a8z_k$(7, $entity.get_clazzLogNumPresent_9zzoay_k$()); _stmt.setInt_c72a8z_k$(8, $entity.get_clazzLogNumAbsent_4ftf7u_k$()); _stmt.setInt_c72a8z_k$(9, $entity.get_clazzLogNumPartial_25e4y8_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_clazzLogScheduleUid_4puu8s_k$()); _stmt.setInt_c72a8z_k$(11, $entity.get_clazzLogStatusFlag_5bedjh_k$()); _stmt.setLong_j1sybo_k$(12, $entity.get_clazzLogMSQN_3aokm0_k$()); _stmt.setLong_j1sybo_k$(13, $entity.get_clazzLogLCSN_3anlt3_k$()); _stmt.setInt_c72a8z_k$(14, $entity.get_clazzLogLCB_ifq706_k$()); _stmt.setLong_j1sybo_k$(15, $entity.get_clazzLogLastChangedTime_dwg7je_k$()); _stmt.setLong_j1sybo_k$(16, $entity.get_clazzLogUid_ifqem3_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzLogDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, ClazzLogDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByUid....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzLogDao_JdbcImpl$findByUid$lambda$lambda); }; } function ClazzLogDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByUidAsync$slambda).invoke_v7hm2l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_v7hm2l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_v7hm2l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda).invoke_9k91av_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_9k91av_k$($completion); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM ClazzLog WHERE clazzLogUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ClazzLog WHERE clazzLogUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzLogDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function ClazzLogDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_9k91av_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this$0, $clazzUid, $excludeStatus) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$excludeStatus_1 = $excludeStatus; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ClazzLog']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).loadRows_orafs7_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$loadRows$slambda_0(this.$clazzUid_1, this.$excludeStatus_1, _limit, _offset, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_orafs7_k$(_limit, _offset, $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate DESC\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$o$countRows$slambda_0(this.$clazzUid_1, this.$excludeStatus_1, null), $completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$excludeStatus_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).invoke_5j34vo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5j34vo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$excludeStatus_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda(this.$clazzUid_1, this.$excludeStatus_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0($clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda($clazzUid, $excludeStatus, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5j34vo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda($clazzLogUid, $excludeStatus, resultContinuation) { this.$clazzLogUid_1 = $clazzLogUid; this.$excludeStatus_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda).invoke_5j34vo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5j34vo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzLogUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$excludeStatus_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda(this.$clazzLogUid_1, this.$excludeStatus_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda_0($clazzLogUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda($clazzLogUid, $excludeStatus, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5j34vo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda($clazzUid, $fromTime, $toTime, $excludeStatusFilter, $limit, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$fromTime_1 = $fromTime; this.$toTime_1 = $toTime; this.$excludeStatusFilter_1 = $excludeStatusFilter; this.$limit_1 = $limit; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda).invoke_5j34vo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5j34vo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$fromTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$toTime_1); this._stmt_1.setInt_c72a8z_k$(4, this.$excludeStatusFilter_1); this._stmt_1.setInt_c72a8z_k$(5, this.$excludeStatusFilter_1); this._stmt_1.setInt_c72a8z_k$(6, this.$limit_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda(this.$clazzUid_1, this.$fromTime_1, this.$toTime_1, this.$excludeStatusFilter_1, this.$limit_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda_0($clazzUid, $fromTime, $toTime, $excludeStatusFilter, $limit, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda($clazzUid, $fromTime, $toTime, $excludeStatusFilter, $limit, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5j34vo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda$lambda(_result) { return mapRows(_result, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda$lambda$lambda(_result)); } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzLogUid = $_result.getLong_3wgf2g_k$('clazzLogUid'); var _tmp_clazzLogClazzUid = $_result.getLong_3wgf2g_k$('clazzLogClazzUid'); var _tmp_logDate = $_result.getLong_3wgf2g_k$('logDate'); var _tmp_timeRecorded = $_result.getLong_3wgf2g_k$('timeRecorded'); var _tmp_clazzLogDone = $_result.getBoolean_xz3hoo_k$('clazzLogDone'); var _tmp_cancellationNote = $_result.getString_gb1pt9_k$('cancellationNote'); var _tmp_clazzLogCancelled = $_result.getBoolean_xz3hoo_k$('clazzLogCancelled'); var _tmp_clazzLogNumPresent = $_result.getInt_npc9pd_k$('clazzLogNumPresent'); var _tmp_clazzLogNumAbsent = $_result.getInt_npc9pd_k$('clazzLogNumAbsent'); var _tmp_clazzLogNumPartial = $_result.getInt_npc9pd_k$('clazzLogNumPartial'); var _tmp_clazzLogScheduleUid = $_result.getLong_3wgf2g_k$('clazzLogScheduleUid'); var _tmp_clazzLogStatusFlag = $_result.getInt_npc9pd_k$('clazzLogStatusFlag'); var _tmp_clazzLogMSQN = $_result.getLong_3wgf2g_k$('clazzLogMSQN'); var _tmp_clazzLogLCSN = $_result.getLong_3wgf2g_k$('clazzLogLCSN'); var _tmp_clazzLogLCB = $_result.getInt_npc9pd_k$('clazzLogLCB'); var _tmp_clazzLogLastChangedTime = $_result.getLong_3wgf2g_k$('clazzLogLastChangedTime'); // Inline function 'kotlin.apply' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ClazzLogDao_JdbcImpl.findByClazzUidWithinTimeRange....' call this_0.set_clazzLogUid_ks9wuh_k$(_tmp_clazzLogUid); this_0.set_clazzLogClazzUid_g2lcqr_k$(_tmp_clazzLogClazzUid); this_0.set_logDate_dvs32h_k$(_tmp_logDate); this_0.set_timeRecorded_s2m610_k$(_tmp_timeRecorded); this_0.set_clazzLogDone_area5y_k$(_tmp_clazzLogDone); this_0.set_cancellationNote_5l3n97_k$(_tmp_cancellationNote); this_0.set_clazzLogCancelled_ws6ff1_k$(_tmp_clazzLogCancelled); this_0.set_clazzLogNumPresent_oia4y2_k$(_tmp_clazzLogNumPresent); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_tmp_clazzLogNumAbsent); this_0.set_clazzLogNumPartial_5wqx38_k$(_tmp_clazzLogNumPartial); this_0.set_clazzLogScheduleUid_98b2vm_k$(_tmp_clazzLogScheduleUid); this_0.set_clazzLogStatusFlag_tr01j3_k$(_tmp_clazzLogStatusFlag); this_0.set_clazzLogMSQN_a5eeoi_k$(_tmp_clazzLogMSQN); this_0.set_clazzLogLCSN_tbobmr_k$(_tmp_clazzLogLCSN); this_0.set_clazzLogLCB_x6ghiy_k$(_tmp_clazzLogLCB); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_tmp_clazzLogLastChangedTime); return this_0; }; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda($clazzUid, $fromTime, $toTime, $excludeStatusFilter, $limit) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $clazzUid); _stmt.setLong_j1sybo_k$(2, $fromTime); _stmt.setLong_j1sybo_k$(3, $toTime); _stmt.setInt_c72a8z_k$(4, $excludeStatusFilter); _stmt.setInt_c72a8z_k$(5, $excludeStatusFilter); _stmt.setInt_c72a8z_k$(6, $limit); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda$lambda); }; } function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda(this$0, $clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$fromTime_1 = $fromTime; this.$toTime_1 = $toTime; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda).invoke_7zg7ts_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_7zg7ts_k$($completion); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT) \n AND ClazzLog.logDate BETWEEN CAST(? AS BIGINT) AND CAST(? AS BIGINT)\n AND (? = 0 OR ClazzLog.clazzLogStatusFlag = ?)\n ORDER BY ClazzLog.logDate\n ', VOID, VOID, VOID, 'SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = ? \n AND ClazzLog.logDate BETWEEN ? AND ?\n AND (? = 0 OR ClazzLog.clazzLogStatusFlag = ?)\n ORDER BY ClazzLog.logDate\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda$slambda_0(this.$clazzUid_1, this.$fromTime_1, this.$toTime_1, this.$statusFilter_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda(this.this$0__1, this.$clazzUid_1, this.$fromTime_1, this.$toTime_1, this.$statusFilter_1, completion); }; function ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda_0(this$0, $clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda(this$0, $clazzUid, $fromTime, $toTime, $statusFilter, resultContinuation); var l = function ($completion) { return i.invoke_7zg7ts_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$excludeStatusFilter_1 = $excludeStatusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT EXISTS\n (SELECT ClazzLog.clazzLogUid \n FROM ClazzLog \n WHERE clazzLogClazzUid = CAST(? AS BIGINT) \n AND (? = 0 \n OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n )\n ', VOID, VOID, VOID, '\n SELECT EXISTS\n (SELECT ClazzLog.clazzLogUid \n FROM ClazzLog \n WHERE clazzLogClazzUid = ? \n AND (? = 0 \n OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda$slambda_0(this.$clazzUid_1, this.$excludeStatusFilter_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this.this$0__1, this.$clazzUid_1, this.$excludeStatusFilter_1, completion); }; function ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this$0, $clazzUid, $excludeStatusFilter, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda(this$0, $clazzUid, $excludeStatusFilter, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_JdbcImpl$updateStatusByClazzLogUid$lambda($newStatus, $timeChanged, $clazzLogUid) { return function (_stmt) { _stmt.setInt_c72a8z_k$(1, $newStatus); _stmt.setLong_j1sybo_k$(2, $timeChanged); _stmt.setLong_j1sybo_k$(3, $clazzLogUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0($clazzUid, resultContinuation) { var i = new ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$72(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$72).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterClazzLog_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$73(_this__u8e3s4, clazzLog, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzLog_1 = clazzLog; } protoOf($updateAsyncCOROUTINE$73).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE ClazzLog SET clazzLogClazzUid = ?, logDate = ?, timeRecorded = ?, clazzLogDone = ?, cancellationNote = ?, clazzLogCancelled = ?, clazzLogNumPresent = ?, clazzLogNumAbsent = ?, clazzLogNumPartial = ?, clazzLogScheduleUid = ?, clazzLogStatusFlag = ?, clazzLogMSQN = ?, clazzLogLCSN = ?, clazzLogLCB = ?, clazzLogLastChangedTime = ? WHERE clazzLogUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, ClazzLogDao_JdbcImpl$updateAsync$slambda_0(this.clazzLog_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogDao_JdbcImpl(_db) { ClazzLogDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterClazzLog_upsert_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterClazzLog_abort_1 = new ClazzLogDao_JdbcImpl$_insertAdapterClazzLog_abort$1(this); } protoOf(ClazzLogDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzLogDao_JdbcImpl).get__insertAdapterClazzLog_upsert_opq0e6_k$ = function () { return this._insertAdapterClazzLog_upsert_1; }; protoOf(ClazzLogDao_JdbcImpl).get__insertAdapterClazzLog_abort_o3exdp_k$ = function () { return this._insertAdapterClazzLog_abort_1; }; protoOf(ClazzLogDao_JdbcImpl).replace_fl7rtv_k$ = function (entity) { var _retVal = this._insertAdapterClazzLog_upsert_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzLogDao_JdbcImpl).upsertListAsync_pb1a2h_k$ = function (entityList, $completion) { return this._insertAdapterClazzLog_upsert_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(ClazzLogDao_JdbcImpl).insert_c3siso_k$ = function (entity) { var _retVal = this._insertAdapterClazzLog_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ClazzLogDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_c3siso_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; protoOf(ClazzLogDao_JdbcImpl).insertAsync_1k3dp_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$72(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_1k3dp_k$(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_JdbcImpl).insertList_rh432w_k$ = function (entityList) { this._insertAdapterClazzLog_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ClazzLogDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rh432w_k$(entityList); }; protoOf(ClazzLogDao_JdbcImpl).updateAsync_v4gqwl_k$ = function (clazzLog, $completion) { var tmp = new $updateAsyncCOROUTINE$73(this, clazzLog, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_JdbcImpl).update_nh2r8o_k$ = function (entity) { var _sql = 'UPDATE ClazzLog SET clazzLogClazzUid = ?, logDate = ?, timeRecorded = ?, clazzLogDone = ?, cancellationNote = ?, clazzLogCancelled = ?, clazzLogNumPresent = ?, clazzLogNumAbsent = ?, clazzLogNumPartial = ?, clazzLogScheduleUid = ?, clazzLogStatusFlag = ?, clazzLogMSQN = ?, clazzLogLCSN = ?, clazzLogLCB = ?, clazzLogLastChangedTime = ? WHERE clazzLogUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ClazzLogDao_JdbcImpl$update$lambda(entity)); }; protoOf(ClazzLogDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_nh2r8o_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; protoOf(ClazzLogDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM ClazzLog WHERE clazzLogUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ClazzLog WHERE clazzLogUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(ClazzLogDao_JdbcImpl).findByUidAsync_bq9c8t_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM ClazzLog WHERE clazzLogUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ClazzLog WHERE clazzLogUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzLog']; return doorFlow(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(ClazzLogDao_JdbcImpl).findByClazzUidAsFactory_11prtm_k$ = function (clazzUid, excludeStatus) { return new ClazzLogDao_JdbcImpl$findByClazzUidAsFactory$1(this, clazzUid, excludeStatus); }; protoOf(ClazzLogDao_JdbcImpl).findByClazzUidAsync_yumxyy_k$ = function (clazzUid, excludeStatus, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n ', VOID, VOID, VOID, '\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = ?\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidAsync$slambda_0(clazzUid, excludeStatus, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl).findAllForClazzByClazzLogUid_4h71h4_k$ = function (clazzLogUid, excludeStatus, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = \n (SELECT ClazzLogInner.clazzLogClazzUid\n FROM ClazzLog ClazzLogInner\n WHERE ClazzLogInner.clazzLogUid = CAST(? AS BIGINT))\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n ', VOID, VOID, VOID, '\n SELECT ClazzLog.* \n FROM ClazzLog \n WHERE ClazzLog.clazzLogClazzUid = \n (SELECT ClazzLogInner.clazzLogClazzUid\n FROM ClazzLog ClazzLogInner\n WHERE ClazzLogInner.clazzLogUid = ?)\n AND clazzLog.clazzLogStatusFlag != ?\n ORDER BY ClazzLog.logDate ASC\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogDao_JdbcImpl$findAllForClazzByClazzLogUid$slambda_0(clazzLogUid, excludeStatus, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl).findByClazzUidWithinTimeRangeAsync_shr9wp_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit, $completion) { var tmp = new PreparedStatementConfig('SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT) \n AND ClazzLog.logDate BETWEEN CAST(? AS BIGINT) AND CAST(? AS BIGINT)\n AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n ORDER BY ClazzLog.logDate DESC\n LIMIT ?\n ', VOID, VOID, VOID, 'SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = ? \n AND ClazzLog.logDate BETWEEN ? AND ?\n AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n ORDER BY ClazzLog.logDate DESC\n LIMIT ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeAsync$slambda_0(clazzUid, fromTime, toTime, excludeStatusFilter, limit, null), $completion); }; protoOf(ClazzLogDao_JdbcImpl).findByClazzUidWithinTimeRange_5e9gcx_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit) { var tmp = new PreparedStatementConfig('SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT) \n AND ClazzLog.logDate BETWEEN CAST(? AS BIGINT) AND CAST(? AS BIGINT)\n AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n ORDER BY ClazzLog.logDate DESC\n LIMIT ?\n ', VOID, VOID, VOID, 'SELECT ClazzLog.* FROM ClazzLog \n WHERE \n ClazzLog.clazzLogClazzUid = ? \n AND ClazzLog.logDate BETWEEN ? AND ?\n AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n ORDER BY ClazzLog.logDate DESC\n LIMIT ?\n \n', true); return prepareAndUseStatement_0(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRange$lambda(clazzUid, fromTime, toTime, excludeStatusFilter, limit)); }; protoOf(ClazzLogDao_JdbcImpl).findByClazzUidWithinTimeRangeLive_1iacy5_k$ = function (clazzUid, fromTime, toTime, statusFilter) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzLog']; return doorFlow(this._db_1, tmp, ClazzLogDao_JdbcImpl$findByClazzUidWithinTimeRangeLive$slambda_0(this, clazzUid, fromTime, toTime, statusFilter, null)); }; protoOf(ClazzLogDao_JdbcImpl).clazzHasScheduleLive_14kfm7_k$ = function (clazzUid, excludeStatusFilter) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzLog']; return doorFlow(this._db_1, tmp, ClazzLogDao_JdbcImpl$clazzHasScheduleLive$slambda_0(this, clazzUid, excludeStatusFilter, null)); }; protoOf(ClazzLogDao_JdbcImpl).updateStatusByClazzLogUid_x2snge_k$ = function (clazzLogUid, newStatus, timeChanged) { var tmp = new PreparedStatementConfig('UPDATE ClazzLog \n SET clazzLogStatusFlag = ?,\n clazzLogLastChangedTime = CAST(? AS BIGINT)\n WHERE clazzLogUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'UPDATE ClazzLog \n SET clazzLogStatusFlag = ?,\n clazzLogLastChangedTime = ?\n WHERE clazzLogUid = ?\n', false); prepareAndUseStatement_0(this._db_1, tmp, ClazzLogDao_JdbcImpl$updateStatusByClazzLogUid$lambda(newStatus, timeChanged, clazzLogUid)); }; protoOf(ClazzLogDao_JdbcImpl).findMostRecentClazzLogToEditUid_r4rsjt_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT ClazzLog.clazzLogUid\n FROM ClazzLog\n WHERE ClazzLog.clazzLogClazzUid = CAST(? AS BIGINT)\n AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n ORDER BY ClazzLog.logDate DESC\n LIMIT 1), 0)\n\n \n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT ClazzLog.clazzLogUid\n FROM ClazzLog\n WHERE ClazzLog.clazzLogClazzUid = ?\n AND (ClazzLog.clazzLogStatusFlag & 8) != 8\n ORDER BY ClazzLog.logDate DESC\n LIMIT 1), 0)\n\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ClazzLogDao_JdbcImpl$findMostRecentClazzLogToEditUid$slambda_0(clazzUid, null), $completion); }; function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogDao_Repo$replace$lambda(this$0, $entity) { return function () { return this$0._dao_1.replace_fl7rtv_k$($entity); }; } function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$excludeStatus_1 = $excludeStatus; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ClazzLogDao/findByClazzUidAsFactory'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ClazzLogDao/findByClazzUidAsFactory'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'excludeStatus', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$excludeStatus_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ClazzLogDao_Repo$findByClazzUidAsFactory$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this.this$0__1, this.$clazzUid_1, this.$excludeStatus_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ClazzLogDao_Repo$findByClazzUidAsFactory$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this$0, $clazzUid, $excludeStatus, resultContinuation) { var i = new ClazzLogDao_Repo$findByClazzUidAsFactory$slambda(this$0, $clazzUid, $excludeStatus, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ClazzLogDao_Repo$findByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogDao_Repo$findAllForClazzByClazzLogUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ClazzLogDao_Repo$updateStatusByClazzLogUid$lambda(this$0, $clazzLogUid, $newStatus, $timeChanged) { return function () { this$0._dao_1.updateStatusByClazzLogUid_x2snge_k$($clazzLogUid, $newStatus, $timeChanged); return Unit_getInstance(); }; } function ClazzLogDao_Repo$updateAsync$slambda(this$0, $clazzLog, resultContinuation) { this.this$0__1 = this$0; this.$clazzLog_1 = $clazzLog; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzLogDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_v4gqwl_k$(this.$clazzLog_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_Repo$updateAsync$slambda(this.this$0__1, this.$clazzLog_1, completion); }; function ClazzLogDao_Repo$updateAsync$slambda_0(this$0, $clazzLog, resultContinuation) { var i = new ClazzLogDao_Repo$updateAsync$slambda(this$0, $clazzLog, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_pb1a2h_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ClazzLogDao_Repo$upsertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ClazzLogDao_Repo$upsertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ClazzLogDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ClazzLogDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ClazzLogDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ClazzLogDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ClazzLogDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ClazzLogDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ClazzLogDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByUidAsyncCOROUTINE$74(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$74).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_bq9c8t_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByClazzUidAsyncCOROUTINE$75(_this__u8e3s4, clazzUid, excludeStatus, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.excludeStatus_1 = excludeStatus; } protoOf($findByClazzUidAsyncCOROUTINE$75).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzLogDao/findByClazzUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzLogDao/findByClazzUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'excludeStatus', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.excludeStatus_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzLogDao_Repo$findByClazzUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzUidAsync_yumxyy_k$(this.clazzUid_1, this.excludeStatus_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllForClazzByClazzLogUidCOROUTINE$76(_this__u8e3s4, clazzLogUid, excludeStatus, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzLogUid_1 = clazzLogUid; this.excludeStatus_1 = excludeStatus; } protoOf($findAllForClazzByClazzLogUidCOROUTINE$76).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ClazzLogDao/findAllForClazzByClazzLogUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ClazzLogDao/findAllForClazzByClazzLogUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzLogUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzLogUid_1)); parameter(this_0, 'excludeStatus', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.excludeStatus_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ClazzLogDao_Repo$findAllForClazzByClazzLogUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findAllForClazzByClazzLogUid_4h71h4_k$(this.clazzLogUid_1, this.excludeStatus_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByClazzUidWithinTimeRangeAsyncCOROUTINE$77(_this__u8e3s4, clazzUid, fromTime, toTime, excludeStatusFilter, limit, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.fromTime_1 = fromTime; this.toTime_1 = toTime; this.excludeStatusFilter_1 = excludeStatusFilter; this.limit_1 = limit; } protoOf($findByClazzUidWithinTimeRangeAsyncCOROUTINE$77).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzUidWithinTimeRangeAsync_shr9wp_k$(this.clazzUid_1, this.fromTime_1, this.toTime_1, this.excludeStatusFilter_1, this.limit_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findMostRecentClazzLogToEditUidCOROUTINE$78(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($findMostRecentClazzLogToEditUidCOROUTINE$78).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findMostRecentClazzLogToEditUid_r4rsjt_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$79(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$79).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ClazzLog', ClazzLogDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ClazzLogDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ClazzLogDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ClazzLogDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ClazzLogDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ClazzLogDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ClazzLogDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ClazzLogDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ClazzLogDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ClazzLogDao_Repo).replace_fl7rtv_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$replace$lambda(this, entity)); return _result; }; protoOf(ClazzLogDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(ClazzLogDao_Repo).findByUidAsync_bq9c8t_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$74(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(ClazzLogDao_Repo).findByClazzUidAsFactory_11prtm_k$ = function (clazzUid, excludeStatus) { var tmp = this._dao_1.findByClazzUidAsFactory_11prtm_k$(clazzUid, excludeStatus); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ClazzLogDao/findByClazzUidAsFactory', tmp, ClazzLogDao_Repo$findByClazzUidAsFactory$slambda_0(this, clazzUid, excludeStatus, null)); }; protoOf(ClazzLogDao_Repo).findByClazzUidAsync_yumxyy_k$ = function (clazzUid, excludeStatus, $completion) { var tmp = new $findByClazzUidAsyncCOROUTINE$75(this, clazzUid, excludeStatus, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).findAllForClazzByClazzLogUid_4h71h4_k$ = function (clazzLogUid, excludeStatus, $completion) { var tmp = new $findAllForClazzByClazzLogUidCOROUTINE$76(this, clazzLogUid, excludeStatus, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).findByClazzUidWithinTimeRangeAsync_shr9wp_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit, $completion) { var tmp = new $findByClazzUidWithinTimeRangeAsyncCOROUTINE$77(this, clazzUid, fromTime, toTime, excludeStatusFilter, limit, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).findByClazzUidWithinTimeRange_5e9gcx_k$ = function (clazzUid, fromTime, toTime, excludeStatusFilter, limit) { var _result = this._dao_1.findByClazzUidWithinTimeRange_5e9gcx_k$(clazzUid, fromTime, toTime, excludeStatusFilter, limit); return _result; }; protoOf(ClazzLogDao_Repo).findByClazzUidWithinTimeRangeLive_1iacy5_k$ = function (clazzUid, fromTime, toTime, statusFilter) { var _result = this._dao_1.findByClazzUidWithinTimeRangeLive_1iacy5_k$(clazzUid, fromTime, toTime, statusFilter); return _result; }; protoOf(ClazzLogDao_Repo).clazzHasScheduleLive_14kfm7_k$ = function (clazzUid, excludeStatusFilter) { var _result = this._dao_1.clazzHasScheduleLive_14kfm7_k$(clazzUid, excludeStatusFilter); return _result; }; protoOf(ClazzLogDao_Repo).updateStatusByClazzLogUid_x2snge_k$ = function (clazzLogUid, newStatus, timeChanged) { withRepoChangeMonitor(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$updateStatusByClazzLogUid$lambda(this, clazzLogUid, newStatus, timeChanged)); }; protoOf(ClazzLogDao_Repo).updateAsync_v4gqwl_k$ = function (clazzLog, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$updateAsync$slambda_0(this, clazzLog, null), $completion); }; protoOf(ClazzLogDao_Repo).findMostRecentClazzLogToEditUid_r4rsjt_k$ = function (clazzUid, $completion) { var tmp = new $findMostRecentClazzLogToEditUidCOROUTINE$78(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).upsertListAsync_pb1a2h_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$upsertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ClazzLogDao_Repo).insert_c3siso_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ClazzLogDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_c3siso_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; protoOf(ClazzLogDao_Repo).insertAsync_1k3dp_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$79(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ClazzLogDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_1k3dp_k$(entity instanceof ClazzLog ? entity : THROW_CCE(), $completion); }; protoOf(ClazzLogDao_Repo).insertList_rh432w_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ClazzLogDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rh432w_k$(entityList); }; protoOf(ClazzLogDao_Repo).update_nh2r8o_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ClazzLog', ClazzLogDao_Repo$update$lambda(this, entity)); }; protoOf(ClazzLogDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_nh2r8o_k$(entity instanceof ClazzLog ? entity : THROW_CCE()); }; function CommentsDao() { } function _get__db__e63s44_6($this) { return $this._db_1; } function _get__dao__d2kw60_4($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$80(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.comments_1 = comments; } protoOf($insertAsyncCOROUTINE$80).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.comments_1.get_commentsUid_mbzbu5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(208, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.comments_1.set_commentsUid_j6laht_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.comments_1.set_commentsLct_ataij2_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_p6r5iz_k$(this.comments_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.comments_1.get_commentsUid_mbzbu5_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CommentsDao_DoorWrapper(_db, _dao) { CommentsDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CommentsDao_DoorWrapper).insertAsync_p6r5iz_k$ = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$80(this, comments, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_DoorWrapper).updateDeletedByCommentUid_djs5vs_k$ = function (uid, deleted, changeTime, $completion) { return this._dao_1.updateDeletedByCommentUid_djs5vs_k$(uid, deleted, changeTime, $completion); }; protoOf(CommentsDao_DoorWrapper).findPrivateCommentsForUserByAssignmentUid_sfw2hb_k$ = function (accountPersonUid, assignmentUid, includeDeleted) { return this._dao_1.findPrivateCommentsForUserByAssignmentUid_sfw2hb_k$(accountPersonUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_DoorWrapper).findPrivateCommentsForUserByAssignmentUidPersons_eou0cr_k$ = function (accountPersonUid, assignmentUid, $completion) { return this._dao_1.findPrivateCommentsForUserByAssignmentUidPersons_eou0cr_k$(accountPersonUid, assignmentUid, $completion); }; protoOf(CommentsDao_DoorWrapper).findPrivateCommentsForSubmitterByAssignmentUid_c99dxz_k$ = function (submitterUid, assignmentUid, includeDeleted) { return this._dao_1.findPrivateCommentsForSubmitterByAssignmentUid_c99dxz_k$(submitterUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_DoorWrapper).findPrivateCommentsForSubmitterByAssignmentUidPersons_27e3lc_k$ = function (submitterUid, assignmentUid) { throw IllegalStateException_init_$Create$('findPrivateCommentsForSubmitterByAssignmentUidPersons: synchronous db access is NOT possible on Javascript!'); }; protoOf(CommentsDao_DoorWrapper).findCourseCommentsByAssignmentUid_9j56pn_k$ = function (assignmentUid, includeDeleted) { return this._dao_1.findCourseCommentsByAssignmentUid_9j56pn_k$(assignmentUid, includeDeleted); }; protoOf(CommentsDao_DoorWrapper).findCourseCommentsByAssignmentUidPersons_u3c10l_k$ = function (assignmentUid, $completion) { return this._dao_1.findCourseCommentsByAssignmentUidPersons_u3c10l_k$(assignmentUid, $completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.getLong_3wgf2g_k$('commentsUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_commentsText = $_result.getString_gb1pt9_k$('commentsText'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_commentsEntityUid = $_result.getLong_3wgf2g_k$('commentsEntityUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_commentsStatus = $_result.getInt_npc9pd_k$('commentsStatus'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_commentsFromPersonUid = $_result.getLong_3wgf2g_k$('commentsFromPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_commentsForSubmitterUid = $_result.getLong_3wgf2g_k$('commentsForSubmitterUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_commentsFromSubmitterUid = $_result.getLong_3wgf2g_k$('commentsFromSubmitterUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_commentsFlagged = $_result.getBoolean_xz3hoo_k$('commentsFlagged'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_commentsDeleted = $_result.getBoolean_xz3hoo_k$('commentsDeleted'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_commentsDateTimeAdded = $_result.getLong_3wgf2g_k$('commentsDateTimeAdded'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_commentsLct = $_result.getLong_3wgf2g_k$('commentsLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); if (!_tmp_Comments_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_commentsUid_j6laht_k$(_tmp_commentsUid); this_1.set_commentsText_l77wpl_k$(_tmp_commentsText); this_1.set_commentsEntityUid_efls2q_k$(_tmp_commentsEntityUid); this_1.set_commentsStatus_9c8691_k$(_tmp_commentsStatus); this_1.set_commentsFromPersonUid_5ww49q_k$(_tmp_commentsFromPersonUid); this_1.set_commentsForSubmitterUid_kngio1_k$(_tmp_commentsForSubmitterUid); this_1.set_commentsFromSubmitterUid_brso5g_k$(_tmp_commentsFromSubmitterUid); this_1.set_commentsFlagged_5zmmto_k$(_tmp_commentsFlagged); this_1.set_commentsDeleted_pcy4od_k$(_tmp_commentsDeleted); this_1.set_commentsDateTimeAdded_w1vh7a_k$(_tmp_commentsDateTimeAdded); this_1.set_commentsLct_ataij2_k$(_tmp_commentsLct); this_0.set_comment_vfk9kp_k$(this_1); } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).invoke_c4s97_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_c4s97_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(12, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(13, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(14, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_c4s97_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(12, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda($assignmentUid, $accountPersonUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForUserByAssignmentUidPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForUserByAssignmentUidPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForUserByAssignmentUidPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.getLong_3wgf2g_k$('commentsUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_commentsText = $_result.getString_gb1pt9_k$('commentsText'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_commentsEntityUid = $_result.getLong_3wgf2g_k$('commentsEntityUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_commentsStatus = $_result.getInt_npc9pd_k$('commentsStatus'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_commentsFromPersonUid = $_result.getLong_3wgf2g_k$('commentsFromPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_commentsForSubmitterUid = $_result.getLong_3wgf2g_k$('commentsForSubmitterUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_commentsFromSubmitterUid = $_result.getLong_3wgf2g_k$('commentsFromSubmitterUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_commentsFlagged = $_result.getBoolean_xz3hoo_k$('commentsFlagged'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_commentsDeleted = $_result.getBoolean_xz3hoo_k$('commentsDeleted'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_commentsDateTimeAdded = $_result.getLong_3wgf2g_k$('commentsDateTimeAdded'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_commentsLct = $_result.getLong_3wgf2g_k$('commentsLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); if (!_tmp_Comments_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_commentsUid_j6laht_k$(_tmp_commentsUid); this_1.set_commentsText_l77wpl_k$(_tmp_commentsText); this_1.set_commentsEntityUid_efls2q_k$(_tmp_commentsEntityUid); this_1.set_commentsStatus_9c8691_k$(_tmp_commentsStatus); this_1.set_commentsFromPersonUid_5ww49q_k$(_tmp_commentsFromPersonUid); this_1.set_commentsForSubmitterUid_kngio1_k$(_tmp_commentsForSubmitterUid); this_1.set_commentsFromSubmitterUid_brso5g_k$(_tmp_commentsFromSubmitterUid); this_1.set_commentsFlagged_5zmmto_k$(_tmp_commentsFlagged); this_1.set_commentsDeleted_pcy4od_k$(_tmp_commentsDeleted); this_1.set_commentsDateTimeAdded_w1vh7a_k$(_tmp_commentsDateTimeAdded); this_1.set_commentsLct_ataij2_k$(_tmp_commentsLct); this_0.set_comment_vfk9kp_k$(this_1); } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).invoke_c4s97_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_c4s97_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(5, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda(this.$submitterUid_1, this.$assignmentUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda($submitterUid, $assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_c4s97_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda(this.$submitterUid_1, this.$assignmentUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0($submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda($submitterUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_Comments_nullCount = 0; var _tmp_commentsUid = $_result.getLong_3wgf2g_k$('commentsUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_commentsText = $_result.getString_gb1pt9_k$('commentsText'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_commentsEntityUid = $_result.getLong_3wgf2g_k$('commentsEntityUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_commentsStatus = $_result.getInt_npc9pd_k$('commentsStatus'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_commentsFromPersonUid = $_result.getLong_3wgf2g_k$('commentsFromPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_commentsForSubmitterUid = $_result.getLong_3wgf2g_k$('commentsForSubmitterUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_commentsFromSubmitterUid = $_result.getLong_3wgf2g_k$('commentsFromSubmitterUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_commentsFlagged = $_result.getBoolean_xz3hoo_k$('commentsFlagged'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_commentsDeleted = $_result.getBoolean_xz3hoo_k$('commentsDeleted'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_commentsDateTimeAdded = $_result.getLong_3wgf2g_k$('commentsDateTimeAdded'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_commentsLct = $_result.getLong_3wgf2g_k$('commentsLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Comments_nullCount = _tmp_Comments_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Comments_isAllNull = _tmp_Comments_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CommentsAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); if (!_tmp_Comments_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Comments(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_commentsUid_j6laht_k$(_tmp_commentsUid); this_1.set_commentsText_l77wpl_k$(_tmp_commentsText); this_1.set_commentsEntityUid_efls2q_k$(_tmp_commentsEntityUid); this_1.set_commentsStatus_9c8691_k$(_tmp_commentsStatus); this_1.set_commentsFromPersonUid_5ww49q_k$(_tmp_commentsFromPersonUid); this_1.set_commentsForSubmitterUid_kngio1_k$(_tmp_commentsForSubmitterUid); this_1.set_commentsFromSubmitterUid_brso5g_k$(_tmp_commentsFromSubmitterUid); this_1.set_commentsFlagged_5zmmto_k$(_tmp_commentsFlagged); this_1.set_commentsDeleted_pcy4od_k$(_tmp_commentsDeleted); this_1.set_commentsDateTimeAdded_w1vh7a_k$(_tmp_commentsDateTimeAdded); this_1.set_commentsLct_ataij2_k$(_tmp_commentsLct); this_0.set_comment_vfk9kp_k$(this_1); } return this_0; }; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).invoke_c4s97_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_c4s97_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda(this.$assignmentUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda($assignmentUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_c4s97_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda(this.$assignmentUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0($assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda($assignmentUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findCourseCommentsByAssignmentUidPersons....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Comments (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).bindPreparedStmtToEntity_azghqt_k$ = function (stmt, entity) { if (entity.get_commentsUid_mbzbu5_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_commentsUid_mbzbu5_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_commentsText_hzoney_k$()); stmt.setLong_j1sybo_k$(3, entity.get_commentsEntityUid_550xjk_k$()); stmt.setInt_c72a8z_k$(4, entity.get_commentsStatus_stgemn_k$()); stmt.setLong_j1sybo_k$(5, entity.get_commentsFromPersonUid_xf607g_k$()); stmt.setLong_j1sybo_k$(6, entity.get_commentsForSubmitterUid_1gyutp_k$()); stmt.setLong_j1sybo_k$(7, entity.get_commentsFromSubmitterUid_xf26um_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_commentsFlagged_bjr7s3_k$()); stmt.setBoolean_pzdm1v_k$(9, entity.get_commentsDeleted_qz9n6k_k$()); stmt.setLong_j1sybo_k$(10, entity.get_commentsDateTimeAdded_giu1d4_k$()); stmt.setLong_j1sybo_k$(11, entity.get_commentsLct_mbzin4_k$()); }; protoOf(CommentsDao_JdbcImpl$_insertAdapterComments_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_azghqt_k$(stmt, entity instanceof Comments ? entity : THROW_CCE()); }; function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation) { this.$deleted_1 = $deleted; this.$changeTime_1 = $changeTime; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$deleted_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda(this.$deleted_1, this.$changeTime_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0($deleted, $changeTime, $uid, resultContinuation) { var i = new CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda($deleted, $changeTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this$0, $assignmentUid, $accountPersonUid, $includeDeleted) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ClazzAssignment', 'CourseGroupMember', 'Comments', 'ClazzEnrolment', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).loadRows_65rnug_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = ?\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$loadRows$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_65rnug_k$(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = ?\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1) \n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$o$countRows$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, this.$includeDeleted_1, null), $completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda).invoke_dgsx6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dgsx6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dgsx6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this$0, $submitterUid, $assignmentUid, $includeDeleted) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).loadRows_65rnug_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = ?\n AND Comments.commentsEntityUid = ?\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$loadRows$slambda_0(this.$submitterUid_1, this.$assignmentUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_65rnug_k$(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsForSubmitterUid = ?\n AND Comments.commentsEntityUid = ?\n AND (NOT Comments.commentsDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$o$countRows$slambda_0(this.$submitterUid_1, this.$assignmentUid_1, this.$includeDeleted_1, null), $completion); }; function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda$lambda(_result) { return mapRows(_result, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda$lambda$lambda(_result)); } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForSubmitterByAssignmentUidPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForSubmitterByAssignmentUidPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CommentsDao_JdbcImpl.findPrivateCommentsForSubmitterByAssignmentUidPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda($submitterUid, $assignmentUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $submitterUid); _stmt.setLong_j1sybo_k$(2, $assignmentUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda$lambda); }; } function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this$0, $assignmentUid, $includeDeleted) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Comments', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).loadRows_65rnug_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$loadRows$slambda_0(this.$assignmentUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_65rnug_k$(_limit, _offset, $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Comments.*,\n Person.firstNames AS firstNames, \n Person.lastName AS lastName,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = 0\n AND (CAST(Comments.commentsDeleted AS INTEGER) = 0 OR CAST(? AS INTEGER) = 1)\n ORDER BY Comments.commentsDateTimeAdded DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$o$countRows$slambda_0(this.$assignmentUid_1, this.$includeDeleted_1, null), $completion); }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda).invoke_nhkjc3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_nhkjc3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda_0($assignmentUid, resultContinuation) { var i = new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_nhkjc3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$81(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.comments_1 = comments; } protoOf($insertAsyncCOROUTINE$81).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterComments_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.comments_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateDeletedByCommentUidCOROUTINE$82(_this__u8e3s4, uid, deleted, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.deleted_1 = deleted; this.changeTime_1 = changeTime; } protoOf($updateDeletedByCommentUidCOROUTINE$82).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE Comments \n SET commentsDeleted = ?,\n commentsLct = CAST(? AS BIGINT)\n WHERE Comments.commentsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE Comments \n SET commentsDeleted = ?,\n commentsLct = ?\n WHERE Comments.commentsUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CommentsDao_JdbcImpl$updateDeletedByCommentUid$slambda_0(this.deleted_1, this.changeTime_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CommentsDao_JdbcImpl(_db) { CommentsDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterComments_abort_1 = new CommentsDao_JdbcImpl$_insertAdapterComments_abort$1(this); } protoOf(CommentsDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CommentsDao_JdbcImpl).get__insertAdapterComments_abort_6r5iud_k$ = function () { return this._insertAdapterComments_abort_1; }; protoOf(CommentsDao_JdbcImpl).insertAsync_p6r5iz_k$ = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$81(this, comments, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl).updateDeletedByCommentUid_djs5vs_k$ = function (uid, deleted, changeTime, $completion) { var tmp = new $updateDeletedByCommentUidCOROUTINE$82(this, uid, deleted, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_JdbcImpl).findPrivateCommentsForUserByAssignmentUid_sfw2hb_k$ = function (accountPersonUid, assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUid$1(this, assignmentUid, accountPersonUid, includeDeleted); }; protoOf(CommentsDao_JdbcImpl).findPrivateCommentsForUserByAssignmentUidPersons_eou0cr_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT Comments.commentsFromPersonUid\n FROM Comments\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND CAST(Comments.commentsDeleted AS INTEGER) = 0)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT Comments.commentsFromPersonUid\n FROM Comments\n WHERE Comments.commentsForSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND Comments.commentsForSubmitterUid != 0\n AND Comments.commentsEntityUid = ?\n AND CAST(Comments.commentsDeleted AS INTEGER) = 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForUserByAssignmentUidPersons$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(CommentsDao_JdbcImpl).findPrivateCommentsForSubmitterByAssignmentUid_c99dxz_k$ = function (submitterUid, assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUid$1(this, submitterUid, assignmentUid, includeDeleted); }; protoOf(CommentsDao_JdbcImpl).findPrivateCommentsForSubmitterByAssignmentUidPersons_27e3lc_k$ = function (submitterUid, assignmentUid) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n WHERE Person.personUid IN \n (SELECT Comments.commentsFromPersonUid\n FROM Comments\n WHERE Comments.commentsForSubmitterUid = CAST(? AS BIGINT)\n AND Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND NOT Comments.commentsDeleted) \n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n WHERE Person.personUid IN \n (SELECT Comments.commentsFromPersonUid\n FROM Comments\n WHERE Comments.commentsForSubmitterUid = ?\n AND Comments.commentsEntityUid = ?\n AND NOT Comments.commentsDeleted) \n \n', true); return prepareAndUseStatement_0(this._db_1, tmp, CommentsDao_JdbcImpl$findPrivateCommentsForSubmitterByAssignmentUidPersons$lambda(submitterUid, assignmentUid)); }; protoOf(CommentsDao_JdbcImpl).findCourseCommentsByAssignmentUid_9j56pn_k$ = function (assignmentUid, includeDeleted) { return new CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUid$1(this, assignmentUid, includeDeleted); }; protoOf(CommentsDao_JdbcImpl).findCourseCommentsByAssignmentUidPersons_u3c10l_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT Comments.commentsFromPersonUid\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = CAST(? AS BIGINT)\n AND Comments.commentsForSubmitterUid = 0)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT Comments.commentsFromPersonUid\n FROM Comments\n LEFT JOIN Person \n ON Person.personUid = Comments.commentsFromPersonUid\n WHERE Comments.commentsEntityUid = ?\n AND Comments.commentsForSubmitterUid = 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CommentsDao_JdbcImpl$findCourseCommentsByAssignmentUidPersons$slambda_0(assignmentUid, null), $completion); }; function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation) { this.this$0__1 = this$0; this.$comments_1 = $comments; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CommentsDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_p6r5iz_k$(this.$comments_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CommentsDao_Repo$insertAsync$slambda(this.this$0__1, this.$comments_1, completion); }; function CommentsDao_Repo$insertAsync$slambda_0(this$0, $comments, resultContinuation) { var i = new CommentsDao_Repo$insertAsync$slambda(this$0, $comments, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$deleted_1 = $deleted; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateDeletedByCommentUid_djs5vs_k$(this.$uid_1, this.$deleted_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CommentsDao_Repo$updateDeletedByCommentUid$slambda).create_d196fn_k$ = function (completion) { return new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this.this$0__1, this.$uid_1, this.$deleted_1, this.$changeTime_1, completion); }; function CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this$0, $uid, $deleted, $changeTime, resultContinuation) { var i = new CommentsDao_Repo$updateDeletedByCommentUid$slambda(this$0, $uid, $deleted, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CommentsDao/findPrivateCommentsForUserByAssignmentUid'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CommentsDao/findPrivateCommentsForUserByAssignmentUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this.this$0__1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda(this$0, $accountPersonUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submitterUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this.this$0__1, this.$submitterUid_1, this.$assignmentUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda(this$0, $submitterUid, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CommentsDao/findCourseCommentsByAssignmentUid'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CommentsDao/findCourseCommentsByAssignmentUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this.this$0__1, this.$assignmentUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this$0, $assignmentUid, $includeDeleted, resultContinuation) { var i = new CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda(this$0, $assignmentUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$83(_this__u8e3s4, comments, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.comments_1 = comments; } protoOf($insertAsyncCOROUTINE$83).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Comments', CommentsDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.comments_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findPrivateCommentsForUserByAssignmentUidPersonsCOROUTINE$84(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.assignmentUid_1 = assignmentUid; } protoOf($findPrivateCommentsForUserByAssignmentUidPersonsCOROUTINE$84).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findPrivateCommentsForUserByAssignmentUidPersons_eou0cr_k$(this.accountPersonUid_1, this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findCourseCommentsByAssignmentUidPersonsCOROUTINE$85(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($findCourseCommentsByAssignmentUidPersonsCOROUTINE$85).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findCourseCommentsByAssignmentUidPersons_u3c10l_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CommentsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CommentsDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(CommentsDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CommentsDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CommentsDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CommentsDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CommentsDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CommentsDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CommentsDao_Repo).insertAsync_p6r5iz_k$ = function (comments, $completion) { var tmp = new $insertAsyncCOROUTINE$83(this, comments, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo).updateDeletedByCommentUid_djs5vs_k$ = function (uid, deleted, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Comments', CommentsDao_Repo$updateDeletedByCommentUid$slambda_0(this, uid, deleted, changeTime, null), $completion); }; protoOf(CommentsDao_Repo).findPrivateCommentsForUserByAssignmentUid_sfw2hb_k$ = function (accountPersonUid, assignmentUid, includeDeleted) { var tmp = this._dao_1.findPrivateCommentsForUserByAssignmentUid_sfw2hb_k$(accountPersonUid, assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CommentsDao/findPrivateCommentsForUserByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForUserByAssignmentUid$slambda_0(this, accountPersonUid, assignmentUid, includeDeleted, null)); }; protoOf(CommentsDao_Repo).findPrivateCommentsForUserByAssignmentUidPersons_eou0cr_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new $findPrivateCommentsForUserByAssignmentUidPersonsCOROUTINE$84(this, accountPersonUid, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CommentsDao_Repo).findPrivateCommentsForSubmitterByAssignmentUid_c99dxz_k$ = function (submitterUid, assignmentUid, includeDeleted) { var tmp = this._dao_1.findPrivateCommentsForSubmitterByAssignmentUid_c99dxz_k$(submitterUid, assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CommentsDao/findPrivateCommentsForSubmitterByAssignmentUid', tmp, CommentsDao_Repo$findPrivateCommentsForSubmitterByAssignmentUid$slambda_0(this, submitterUid, assignmentUid, includeDeleted, null)); }; protoOf(CommentsDao_Repo).findPrivateCommentsForSubmitterByAssignmentUidPersons_27e3lc_k$ = function (submitterUid, assignmentUid) { var _result = this._dao_1.findPrivateCommentsForSubmitterByAssignmentUidPersons_27e3lc_k$(submitterUid, assignmentUid); return _result; }; protoOf(CommentsDao_Repo).findCourseCommentsByAssignmentUid_9j56pn_k$ = function (assignmentUid, includeDeleted) { var tmp = this._dao_1.findCourseCommentsByAssignmentUid_9j56pn_k$(assignmentUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CommentsDao/findCourseCommentsByAssignmentUid', tmp, CommentsDao_Repo$findCourseCommentsByAssignmentUid$slambda_0(this, assignmentUid, includeDeleted, null)); }; protoOf(CommentsDao_Repo).findCourseCommentsByAssignmentUidPersons_u3c10l_k$ = function (assignmentUid, $completion) { var tmp = new $findCourseCommentsByAssignmentUidPersonsCOROUTINE$85(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ContentCategoryDao() { } function _get__db__e63s44_7($this) { return $this._db_1; } function _get__dao__d2kw60_5($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$86(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$86).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_contentCategoryUid_bl11ry_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_contentCategoryUid_6aaso8_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_contentCategoryLct_enlkmz_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_contentCategoryUid_bl11ry_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategoryDao_DoorWrapper(_db, _dao) { ContentCategoryDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentCategoryDao_DoorWrapper).publicContentCategories_q4qz2k_k$ = function () { throw IllegalStateException_init_$Create$('publicContentCategories: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategoryDao_DoorWrapper).findCategoryBySchemaIdAndName_8p8kdg_k$ = function (schemaId, name) { throw IllegalStateException_init_$Create$('findCategoryBySchemaIdAndName: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategoryDao_DoorWrapper).insert_buhrv_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategoryDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_buhrv_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; protoOf(ContentCategoryDao_DoorWrapper).insertAsync_66rwhq_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$86(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategoryDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_66rwhq_k$(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategoryDao_DoorWrapper).insertList_ps6k51_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategoryDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ps6k51_k$(entityList); }; protoOf(ContentCategoryDao_DoorWrapper).update_9znrdx_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategoryDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_9znrdx_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; function ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).bindPreparedStmtToEntity_8bfiog_k$ = function (stmt, entity) { if (entity.get_contentCategoryUid_bl11ry_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_contentCategoryUid_bl11ry_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_ctnCatContentCategorySchemaUid_9uofqy_k$()); stmt.setString_2gt7ua_k$(3, entity.get_name_woqyms_k$()); stmt.setLong_j1sybo_k$(4, entity.get_contentCategoryLocalChangeSeqNum_wbgrck_k$()); stmt.setLong_j1sybo_k$(5, entity.get_contentCategoryMasterChangeSeqNum_a178hl_k$()); stmt.setInt_c72a8z_k$(6, entity.get_contentCategoryLastChangedBy_v71fbt_k$()); stmt.setLong_j1sybo_k$(7, entity.get_contentCategoryLct_bl18kx_k$()); }; protoOf(ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_8bfiog_k$(stmt, entity instanceof ContentCategory ? entity : THROW_CCE()); }; function ContentCategoryDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_ctnCatContentCategorySchemaUid_9uofqy_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_name_woqyms_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_contentCategoryLocalChangeSeqNum_wbgrck_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_contentCategoryMasterChangeSeqNum_a178hl_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_contentCategoryLastChangedBy_v71fbt_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_contentCategoryLct_bl18kx_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_contentCategoryUid_bl11ry_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentCategoryDao_JdbcImpl$publicContentCategories$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentCategoryDao_JdbcImpl$publicContentCategories$lambda$lambda); } function ContentCategoryDao_JdbcImpl$publicContentCategories$lambda$lambda(_result) { return mapRows(_result, ContentCategoryDao_JdbcImpl$publicContentCategories$lambda$lambda$lambda(_result)); } function ContentCategoryDao_JdbcImpl$publicContentCategories$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentCategoryUid = $_result.getLong_3wgf2g_k$('contentCategoryUid'); var _tmp_ctnCatContentCategorySchemaUid = $_result.getLong_3wgf2g_k$('ctnCatContentCategorySchemaUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_contentCategoryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategoryLocalChangeSeqNum'); var _tmp_contentCategoryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategoryMasterChangeSeqNum'); var _tmp_contentCategoryLastChangedBy = $_result.getInt_npc9pd_k$('contentCategoryLastChangedBy'); var _tmp_contentCategoryLct = $_result.getLong_3wgf2g_k$('contentCategoryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentCategory(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentCategoryDao_JdbcImpl.publicContentCategories....' call this_0.set_contentCategoryUid_6aaso8_k$(_tmp_contentCategoryUid); this_0.set_ctnCatContentCategorySchemaUid_wwv5ps_k$(_tmp_ctnCatContentCategorySchemaUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_contentCategoryLocalChangeSeqNum_12rgzu_k$(_tmp_contentCategoryLocalChangeSeqNum); this_0.set_contentCategoryMasterChangeSeqNum_n526nf_k$(_tmp_contentCategoryMasterChangeSeqNum); this_0.set_contentCategoryLastChangedBy_yh4bjn_k$(_tmp_contentCategoryLastChangedBy); this_0.set_contentCategoryLct_enlkmz_k$(_tmp_contentCategoryLct); return this_0; }; } function ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda$lambda(_result) { return mapNextRow(_result, null, ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda$lambda$lambda(_result)); } function ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentCategoryUid = $_result.getLong_3wgf2g_k$('contentCategoryUid'); var _tmp_ctnCatContentCategorySchemaUid = $_result.getLong_3wgf2g_k$('ctnCatContentCategorySchemaUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_contentCategoryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategoryLocalChangeSeqNum'); var _tmp_contentCategoryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategoryMasterChangeSeqNum'); var _tmp_contentCategoryLastChangedBy = $_result.getInt_npc9pd_k$('contentCategoryLastChangedBy'); var _tmp_contentCategoryLct = $_result.getLong_3wgf2g_k$('contentCategoryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentCategory(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentCategoryDao_JdbcImpl.findCategoryBySchemaIdAndName....' call this_0.set_contentCategoryUid_6aaso8_k$(_tmp_contentCategoryUid); this_0.set_ctnCatContentCategorySchemaUid_wwv5ps_k$(_tmp_ctnCatContentCategorySchemaUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_contentCategoryLocalChangeSeqNum_12rgzu_k$(_tmp_contentCategoryLocalChangeSeqNum); this_0.set_contentCategoryMasterChangeSeqNum_n526nf_k$(_tmp_contentCategoryMasterChangeSeqNum); this_0.set_contentCategoryLastChangedBy_yh4bjn_k$(_tmp_contentCategoryLastChangedBy); this_0.set_contentCategoryLct_enlkmz_k$(_tmp_contentCategoryLct); return this_0; }; } function ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda($schemaId, $name) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $schemaId); _stmt.setString_2gt7ua_k$(2, $name); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda$lambda); }; } function $insertAsyncCOROUTINE$87(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$87).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentCategory_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategoryDao_JdbcImpl(_db) { ContentCategoryDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentCategory_abort_1 = new ContentCategoryDao_JdbcImpl$_insertAdapterContentCategory_abort$1(this); } protoOf(ContentCategoryDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentCategoryDao_JdbcImpl).get__insertAdapterContentCategory_abort_p1z094_k$ = function () { return this._insertAdapterContentCategory_abort_1; }; protoOf(ContentCategoryDao_JdbcImpl).insert_buhrv_k$ = function (entity) { var _retVal = this._insertAdapterContentCategory_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentCategoryDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_buhrv_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; protoOf(ContentCategoryDao_JdbcImpl).insertAsync_66rwhq_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$87(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategoryDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_66rwhq_k$(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategoryDao_JdbcImpl).insertList_ps6k51_k$ = function (entityList) { this._insertAdapterContentCategory_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentCategoryDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ps6k51_k$(entityList); }; protoOf(ContentCategoryDao_JdbcImpl).update_9znrdx_k$ = function (entity) { var _sql = 'UPDATE ContentCategory SET ctnCatContentCategorySchemaUid = ?, name = ?, contentCategoryLocalChangeSeqNum = ?, contentCategoryMasterChangeSeqNum = ?, contentCategoryLastChangedBy = ?, contentCategoryLct = ? WHERE contentCategoryUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentCategoryDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentCategoryDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_9znrdx_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; protoOf(ContentCategoryDao_JdbcImpl).publicContentCategories_q4qz2k_k$ = function () { var tmp = new PreparedStatementConfig('SELECT ContentCategory.* FROM ContentCategory', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentCategoryDao_JdbcImpl$publicContentCategories$lambda); }; protoOf(ContentCategoryDao_JdbcImpl).findCategoryBySchemaIdAndName_8p8kdg_k$ = function (schemaId, name) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentCategory WHERE ctnCatContentCategorySchemaUid = CAST(? AS BIGINT) AND name = ?', VOID, VOID, VOID, 'SELECT * FROM ContentCategory WHERE ctnCatContentCategorySchemaUid = ? AND name = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentCategoryDao_JdbcImpl$findCategoryBySchemaIdAndName$lambda(schemaId, name)); }; function ContentCategoryDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentCategoryDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentCategoryDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentCategoryDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentCategoryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentCategoryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentCategoryDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ContentCategoryDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $insertAsyncCOROUTINE$88(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$88).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentCategory', ContentCategoryDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategoryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentCategoryDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentCategoryDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentCategoryDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentCategoryDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentCategoryDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentCategoryDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentCategoryDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentCategoryDao_Repo).publicContentCategories_q4qz2k_k$ = function () { var _result = this._dao_1.publicContentCategories_q4qz2k_k$(); return _result; }; protoOf(ContentCategoryDao_Repo).findCategoryBySchemaIdAndName_8p8kdg_k$ = function (schemaId, name) { var _result = this._dao_1.findCategoryBySchemaIdAndName_8p8kdg_k$(schemaId, name); return _result; }; protoOf(ContentCategoryDao_Repo).insert_buhrv_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentCategory', ContentCategoryDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentCategoryDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_buhrv_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; protoOf(ContentCategoryDao_Repo).insertAsync_66rwhq_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$88(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategoryDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_66rwhq_k$(entity instanceof ContentCategory ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategoryDao_Repo).insertList_ps6k51_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentCategory', ContentCategoryDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentCategoryDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ps6k51_k$(entityList); }; protoOf(ContentCategoryDao_Repo).update_9znrdx_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentCategory', ContentCategoryDao_Repo$update$lambda(this, entity)); }; protoOf(ContentCategoryDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_9znrdx_k$(entity instanceof ContentCategory ? entity : THROW_CCE()); }; function ContentCategorySchemaDao() { } function _get__db__e63s44_8($this) { return $this._db_1; } function _get__dao__d2kw60_6($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$89(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$89).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_contentCategorySchemaUid_j392ox_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(2, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_contentCategorySchemaUid_e4p507_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_contentCategorySchemaLct_5red1g_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_contentCategorySchemaUid_j392ox_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategorySchemaDao_DoorWrapper(_db, _dao) { ContentCategorySchemaDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentCategorySchemaDao_DoorWrapper).publicContentCategorySchemas_7jyj18_k$ = function () { throw IllegalStateException_init_$Create$('publicContentCategorySchemas: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategorySchemaDao_DoorWrapper).findBySchemaUrl_pnxwho_k$ = function (schemaUrl) { throw IllegalStateException_init_$Create$('findBySchemaUrl: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insert_yman8a_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_yman8a_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insertAsync_i9f2rl_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$89(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_i9f2rl_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insertList_47xr7a_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategorySchemaDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_47xr7a_k$(entityList); }; protoOf(ContentCategorySchemaDao_DoorWrapper).update_mjxkna_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentCategorySchemaDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_mjxkna_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; function ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).bindPreparedStmtToEntity_vriv2p_k$ = function (stmt, entity) { if (entity.get_contentCategorySchemaUid_j392ox_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_contentCategorySchemaUid_j392ox_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_schemaName_rlfmaz_k$()); stmt.setString_2gt7ua_k$(3, entity.get_schemaUrl_5zf52d_k$()); stmt.setLong_j1sybo_k$(4, entity.get_contentCategorySchemaLocalChangeSeqNum_fiv0rx_k$()); stmt.setLong_j1sybo_k$(5, entity.get_contentCategorySchemaMasterChangeSeqNum_1hzauw_k$()); stmt.setInt_c72a8z_k$(6, entity.get_contentCategorySchemaLastChangedBy_ev2nwa_k$()); stmt.setLong_j1sybo_k$(7, entity.get_contentCategorySchemaLct_j38vvy_k$()); }; protoOf(ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_vriv2p_k$(stmt, entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; function ContentCategorySchemaDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_schemaName_rlfmaz_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_schemaUrl_5zf52d_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_contentCategorySchemaLocalChangeSeqNum_fiv0rx_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_contentCategorySchemaMasterChangeSeqNum_1hzauw_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_contentCategorySchemaLastChangedBy_ev2nwa_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_contentCategorySchemaLct_j38vvy_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_contentCategorySchemaUid_j392ox_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda$lambda); } function ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda$lambda(_result) { return mapRows(_result, ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda$lambda$lambda(_result)); } function ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentCategorySchemaUid = $_result.getLong_3wgf2g_k$('contentCategorySchemaUid'); var _tmp_schemaName = $_result.getString_gb1pt9_k$('schemaName'); var _tmp_schemaUrl = $_result.getString_gb1pt9_k$('schemaUrl'); var _tmp_contentCategorySchemaLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategorySchemaLocalChangeSeqNum'); var _tmp_contentCategorySchemaMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategorySchemaMasterChangeSeqNum'); var _tmp_contentCategorySchemaLastChangedBy = $_result.getInt_npc9pd_k$('contentCategorySchemaLastChangedBy'); var _tmp_contentCategorySchemaLct = $_result.getLong_3wgf2g_k$('contentCategorySchemaLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentCategorySchema(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentCategorySchemaDao_JdbcImpl.publicContentCategorySchemas....' call this_0.set_contentCategorySchemaUid_e4p507_k$(_tmp_contentCategorySchemaUid); this_0.set_schemaName_rihn9q_k$(_tmp_schemaName); this_0.set_schemaUrl_2ssgii_k$(_tmp_schemaUrl); this_0.set_contentCategorySchemaLocalChangeSeqNum_fi539l_k$(_tmp_contentCategorySchemaLocalChangeSeqNum); this_0.set_contentCategorySchemaMasterChangeSeqNum_230c3u_k$(_tmp_contentCategorySchemaMasterChangeSeqNum); this_0.set_contentCategorySchemaLastChangedBy_zgg9ma_k$(_tmp_contentCategorySchemaLastChangedBy); this_0.set_contentCategorySchemaLct_5red1g_k$(_tmp_contentCategorySchemaLct); return this_0; }; } function ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda$lambda(_result) { return mapNextRow(_result, null, ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda$lambda$lambda(_result)); } function ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentCategorySchemaUid = $_result.getLong_3wgf2g_k$('contentCategorySchemaUid'); var _tmp_schemaName = $_result.getString_gb1pt9_k$('schemaName'); var _tmp_schemaUrl = $_result.getString_gb1pt9_k$('schemaUrl'); var _tmp_contentCategorySchemaLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategorySchemaLocalChangeSeqNum'); var _tmp_contentCategorySchemaMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentCategorySchemaMasterChangeSeqNum'); var _tmp_contentCategorySchemaLastChangedBy = $_result.getInt_npc9pd_k$('contentCategorySchemaLastChangedBy'); var _tmp_contentCategorySchemaLct = $_result.getLong_3wgf2g_k$('contentCategorySchemaLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentCategorySchema(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentCategorySchemaDao_JdbcImpl.findBySchemaUrl....' call this_0.set_contentCategorySchemaUid_e4p507_k$(_tmp_contentCategorySchemaUid); this_0.set_schemaName_rihn9q_k$(_tmp_schemaName); this_0.set_schemaUrl_2ssgii_k$(_tmp_schemaUrl); this_0.set_contentCategorySchemaLocalChangeSeqNum_fi539l_k$(_tmp_contentCategorySchemaLocalChangeSeqNum); this_0.set_contentCategorySchemaMasterChangeSeqNum_230c3u_k$(_tmp_contentCategorySchemaMasterChangeSeqNum); this_0.set_contentCategorySchemaLastChangedBy_zgg9ma_k$(_tmp_contentCategorySchemaLastChangedBy); this_0.set_contentCategorySchemaLct_5red1g_k$(_tmp_contentCategorySchemaLct); return this_0; }; } function ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda($schemaUrl) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $schemaUrl); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda$lambda); }; } function $insertAsyncCOROUTINE$90(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$90).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentCategorySchema_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategorySchemaDao_JdbcImpl(_db) { ContentCategorySchemaDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentCategorySchema_abort_1 = new ContentCategorySchemaDao_JdbcImpl$_insertAdapterContentCategorySchema_abort$1(this); } protoOf(ContentCategorySchemaDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentCategorySchemaDao_JdbcImpl).get__insertAdapterContentCategorySchema_abort_4ir0vr_k$ = function () { return this._insertAdapterContentCategorySchema_abort_1; }; protoOf(ContentCategorySchemaDao_JdbcImpl).insert_yman8a_k$ = function (entity) { var _retVal = this._insertAdapterContentCategorySchema_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentCategorySchemaDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_yman8a_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; protoOf(ContentCategorySchemaDao_JdbcImpl).insertAsync_i9f2rl_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$90(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategorySchemaDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_i9f2rl_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategorySchemaDao_JdbcImpl).insertList_47xr7a_k$ = function (entityList) { this._insertAdapterContentCategorySchema_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentCategorySchemaDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_47xr7a_k$(entityList); }; protoOf(ContentCategorySchemaDao_JdbcImpl).update_mjxkna_k$ = function (entity) { var _sql = 'UPDATE ContentCategorySchema SET schemaName = ?, schemaUrl = ?, contentCategorySchemaLocalChangeSeqNum = ?, contentCategorySchemaMasterChangeSeqNum = ?, contentCategorySchemaLastChangedBy = ?, contentCategorySchemaLct = ? WHERE contentCategorySchemaUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentCategorySchemaDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentCategorySchemaDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_mjxkna_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; protoOf(ContentCategorySchemaDao_JdbcImpl).publicContentCategorySchemas_7jyj18_k$ = function () { var tmp = new PreparedStatementConfig('SELECT ContentCategorySchema.* FROM ContentCategorySchema', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentCategorySchemaDao_JdbcImpl$publicContentCategorySchemas$lambda); }; protoOf(ContentCategorySchemaDao_JdbcImpl).findBySchemaUrl_pnxwho_k$ = function (schemaUrl) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentCategorySchema WHERE schemaUrl = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentCategorySchemaDao_JdbcImpl$findBySchemaUrl$lambda(schemaUrl)); }; function ContentCategorySchemaDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentCategorySchemaDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentCategorySchemaDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentCategorySchemaDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentCategorySchemaDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ContentCategorySchemaDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $insertAsyncCOROUTINE$91(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$91).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentCategorySchemaDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentCategorySchemaDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentCategorySchemaDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentCategorySchemaDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentCategorySchemaDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentCategorySchemaDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentCategorySchemaDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentCategorySchemaDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentCategorySchemaDao_Repo).publicContentCategorySchemas_7jyj18_k$ = function () { var _result = this._dao_1.publicContentCategorySchemas_7jyj18_k$(); return _result; }; protoOf(ContentCategorySchemaDao_Repo).findBySchemaUrl_pnxwho_k$ = function (schemaUrl) { var _result = this._dao_1.findBySchemaUrl_pnxwho_k$(schemaUrl); return _result; }; protoOf(ContentCategorySchemaDao_Repo).insert_yman8a_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentCategorySchemaDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_yman8a_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; protoOf(ContentCategorySchemaDao_Repo).insertAsync_i9f2rl_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$91(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentCategorySchemaDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_i9f2rl_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE(), $completion); }; protoOf(ContentCategorySchemaDao_Repo).insertList_47xr7a_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentCategorySchemaDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_47xr7a_k$(entityList); }; protoOf(ContentCategorySchemaDao_Repo).update_mjxkna_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentCategorySchema', ContentCategorySchemaDao_Repo$update$lambda(this, entity)); }; protoOf(ContentCategorySchemaDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_mjxkna_k$(entity instanceof ContentCategorySchema ? entity : THROW_CCE()); }; function ContentEntryContentCategoryJoinDao() { } function _get__db__e63s44_9($this) { return $this._db_1; } function _get__dao__d2kw60_7($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$92(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$92).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_ceccjUid_jnw8ep_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(3, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_ceccjUid_jeg2pl_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_ceccjLct_rrquoc_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_ceccjUid_jnw8ep_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryContentCategoryJoinDao_DoorWrapper(_db, _dao) { ContentEntryContentCategoryJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).publicContentEntryContentCategoryJoins_eju33g_k$ = function () { throw IllegalStateException_init_$Create$('publicContentEntryContentCategoryJoins: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).findJoinByParentChildUuids_1axps0_k$ = function (categoryUid, contentEntry) { throw IllegalStateException_init_$Create$('findJoinByParentChildUuids: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insert_w4qy7q_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_w4qy7q_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertAsync_s9hyep_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$92(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_s9hyep_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertList_tmvnwm_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_tmvnwm_k$(entityList); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).update_wiweja_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryContentCategoryJoinDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_wiweja_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; function ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).bindPreparedStmtToEntity_eieucf_k$ = function (stmt, entity) { if (entity.get_ceccjUid_jnw8ep_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_ceccjUid_jnw8ep_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_ceccjContentEntryUid_xbpd5k_k$()); stmt.setLong_j1sybo_k$(3, entity.get_ceccjContentCategoryUid_xe5qs8_k$()); stmt.setLong_j1sybo_k$(4, entity.get_ceccjLocalChangeSeqNum_boys59_k$()); stmt.setLong_j1sybo_k$(5, entity.get_ceccjMasterChangeSeqNum_otfzag_k$()); stmt.setInt_c72a8z_k$(6, entity.get_ceccjLastChangedBy_cazpvu_k$()); stmt.setLong_j1sybo_k$(7, entity.get_ceccjLct_jnw1lq_k$()); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_eieucf_k$(stmt, entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; function ContentEntryContentCategoryJoinDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_ceccjContentEntryUid_xbpd5k_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_ceccjContentCategoryUid_xe5qs8_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_ceccjLocalChangeSeqNum_boys59_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_ceccjMasterChangeSeqNum_otfzag_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_ceccjLastChangedBy_cazpvu_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_ceccjLct_jnw1lq_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_ceccjUid_jnw8ep_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda$lambda); } function ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda$lambda(_result) { return mapRows(_result, ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda$lambda$lambda(_result)); } function ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda$lambda$lambda($_result) { return function (it) { var _tmp_ceccjUid = $_result.getLong_3wgf2g_k$('ceccjUid'); var _tmp_ceccjContentEntryUid = $_result.getLong_3wgf2g_k$('ceccjContentEntryUid'); var _tmp_ceccjContentCategoryUid = $_result.getLong_3wgf2g_k$('ceccjContentCategoryUid'); var _tmp_ceccjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('ceccjLocalChangeSeqNum'); var _tmp_ceccjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('ceccjMasterChangeSeqNum'); var _tmp_ceccjLastChangedBy = $_result.getInt_npc9pd_k$('ceccjLastChangedBy'); var _tmp_ceccjLct = $_result.getLong_3wgf2g_k$('ceccjLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryContentCategoryJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryContentCategoryJoinDao_JdbcImpl.publicContentEntryContentCategoryJoins....' call this_0.set_ceccjUid_jeg2pl_k$(_tmp_ceccjUid); this_0.set_ceccjContentEntryUid_v909ta_k$(_tmp_ceccjContentEntryUid); this_0.set_ceccjContentCategoryUid_zppyy_k$(_tmp_ceccjContentCategoryUid); this_0.set_ceccjLocalChangeSeqNum_76g2o7_k$(_tmp_ceccjLocalChangeSeqNum); this_0.set_ceccjMasterChangeSeqNum_51w3k6_k$(_tmp_ceccjMasterChangeSeqNum); this_0.set_ceccjLastChangedBy_dyrov2_k$(_tmp_ceccjLastChangedBy); this_0.set_ceccjLct_rrquoc_k$(_tmp_ceccjLct); return this_0; }; } function ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda$lambda(_result)); } function ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda$lambda($_result) { return function (it) { var _tmp_ceccjUid = $_result.getLong_3wgf2g_k$('ceccjUid'); var _tmp_ceccjContentEntryUid = $_result.getLong_3wgf2g_k$('ceccjContentEntryUid'); var _tmp_ceccjContentCategoryUid = $_result.getLong_3wgf2g_k$('ceccjContentCategoryUid'); var _tmp_ceccjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('ceccjLocalChangeSeqNum'); var _tmp_ceccjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('ceccjMasterChangeSeqNum'); var _tmp_ceccjLastChangedBy = $_result.getInt_npc9pd_k$('ceccjLastChangedBy'); var _tmp_ceccjLct = $_result.getLong_3wgf2g_k$('ceccjLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryContentCategoryJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryContentCategoryJoinDao_JdbcImpl.findJoinByParentChildUuids....' call this_0.set_ceccjUid_jeg2pl_k$(_tmp_ceccjUid); this_0.set_ceccjContentEntryUid_v909ta_k$(_tmp_ceccjContentEntryUid); this_0.set_ceccjContentCategoryUid_zppyy_k$(_tmp_ceccjContentCategoryUid); this_0.set_ceccjLocalChangeSeqNum_76g2o7_k$(_tmp_ceccjLocalChangeSeqNum); this_0.set_ceccjMasterChangeSeqNum_51w3k6_k$(_tmp_ceccjMasterChangeSeqNum); this_0.set_ceccjLastChangedBy_dyrov2_k$(_tmp_ceccjLastChangedBy); this_0.set_ceccjLct_rrquoc_k$(_tmp_ceccjLct); return this_0; }; } function ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda($categoryUid, $contentEntry) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $categoryUid); _stmt.setLong_j1sybo_k$(2, $contentEntry); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda); }; } function $insertAsyncCOROUTINE$93(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$93).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryContentCategoryJoin_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryContentCategoryJoinDao_JdbcImpl(_db) { ContentEntryContentCategoryJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryContentCategoryJoin_abort_1 = new ContentEntryContentCategoryJoinDao_JdbcImpl$_insertAdapterContentEntryContentCategoryJoin_abort$1(this); } protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).get__insertAdapterContentEntryContentCategoryJoin_abort_2yqg4n_k$ = function () { return this._insertAdapterContentEntryContentCategoryJoin_abort_1; }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insert_w4qy7q_k$ = function (entity) { var _retVal = this._insertAdapterContentEntryContentCategoryJoin_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_w4qy7q_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertAsync_s9hyep_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$93(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_s9hyep_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertList_tmvnwm_k$ = function (entityList) { this._insertAdapterContentEntryContentCategoryJoin_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_tmvnwm_k$(entityList); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).update_wiweja_k$ = function (entity) { var _sql = 'UPDATE ContentEntryContentCategoryJoin SET ceccjContentEntryUid = ?, ceccjContentCategoryUid = ?, ceccjLocalChangeSeqNum = ?, ceccjMasterChangeSeqNum = ?, ceccjLastChangedBy = ?, ceccjLct = ? WHERE ceccjUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentEntryContentCategoryJoinDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_wiweja_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).publicContentEntryContentCategoryJoins_eju33g_k$ = function () { var tmp = new PreparedStatementConfig('SELECT ContentEntryContentCategoryJoin.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntry ON ContentEntryContentCategoryJoin.ceccjContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntry.publik', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryContentCategoryJoinDao_JdbcImpl$publicContentEntryContentCategoryJoins$lambda); }; protoOf(ContentEntryContentCategoryJoinDao_JdbcImpl).findJoinByParentChildUuids_1axps0_k$ = function (categoryUid, contentEntry) { var tmp = new PreparedStatementConfig('SELECT * from ContentEntryContentCategoryJoin WHERE ceccjContentCategoryUid = CAST(? AS BIGINT) AND ceccjContentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * from ContentEntryContentCategoryJoin WHERE ceccjContentCategoryUid = ? AND ceccjContentEntryUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryContentCategoryJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda(categoryUid, contentEntry)); }; function ContentEntryContentCategoryJoinDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryContentCategoryJoinDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ContentEntryContentCategoryJoinDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $insertAsyncCOROUTINE$94(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$94).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryContentCategoryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryContentCategoryJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentEntryContentCategoryJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).publicContentEntryContentCategoryJoins_eju33g_k$ = function () { var _result = this._dao_1.publicContentEntryContentCategoryJoins_eju33g_k$(); return _result; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).findJoinByParentChildUuids_1axps0_k$ = function (categoryUid, contentEntry) { var _result = this._dao_1.findJoinByParentChildUuids_1axps0_k$(categoryUid, contentEntry); return _result; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insert_w4qy7q_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_w4qy7q_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insertAsync_s9hyep_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$94(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_s9hyep_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insertList_tmvnwm_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_tmvnwm_k$(entityList); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).update_wiweja_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentEntryContentCategoryJoin', ContentEntryContentCategoryJoinDao_Repo$update$lambda(this, entity)); }; protoOf(ContentEntryContentCategoryJoinDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_wiweja_k$(entity instanceof ContentEntryContentCategoryJoin ? entity : THROW_CCE()); }; function ContentEntryDao() { } function _get__db__e63s44_10($this) { return $this._db_1; } function _get__dao__d2kw60_8($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$95(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$95).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(42, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_contentEntryUid_82c9uk_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_contentEntryLct_ayi47_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_7n9bhs_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertAsyncCOROUTINE$96(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$96).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(42, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_contentEntryUid_82c9uk_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_contentEntryLct_ayi47_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_29lw1k_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$97(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$97).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(42, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_contentEntryUid_82c9uk_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_contentEntryLct_ayi47_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_contentEntryUid_pu6bbm_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryDao_DoorWrapper(_db, _dao) { ContentEntryDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryDao_DoorWrapper).insertListAsync_7n9bhs_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$95(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_DoorWrapper).upsertAsync_29lw1k_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$96(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_DoorWrapper).findByUidAsync_883mls_k$ = function (entryUid, $completion) { return this._dao_1.findByUidAsync_883mls_k$(entryUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).findEntryWithLanguageByEntryIdAsync_ewc1b7_k$ = function (entryUuid, $completion) { return this._dao_1.findEntryWithLanguageByEntryIdAsync_ewc1b7_k$(entryUuid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).findByUidWithEditDetails_rcs30q_k$ = function (uid, $completion) { return this._dao_1.findByUidWithEditDetails_rcs30q_k$(uid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).findByContentEntryUidWithDetailsAsFlow_i93hu3_k$ = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { return this._dao_1.findByContentEntryUidWithDetailsAsFlow_i93hu3_k$(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).findBySourceUrl_lpfkne_k$ = function (sourceUrl) { throw IllegalStateException_init_$Create$('findBySourceUrl: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).findTitleByUidAsync_9gda26_k$ = function (entryUid, $completion) { return this._dao_1.findTitleByUidAsync_9gda26_k$(entryUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).getChildrenByParentUid_j1qm2c_k$ = function (parentUid) { return this._dao_1.getChildrenByParentUid_j1qm2c_k$(parentUid); }; protoOf(ContentEntryDao_DoorWrapper).getChildrenByParentAsync_e6cny5_k$ = function (parentUid, $completion) { return this._dao_1.getChildrenByParentAsync_e6cny5_k$(parentUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).getCountNumberOfChildrenByParentUUidAsync_3fnk4t_k$ = function (parentUid, $completion) { return this._dao_1.getCountNumberOfChildrenByParentUUidAsync_3fnk4t_k$(parentUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).getContentByUuidAsync_zggu7v_k$ = function (parentUid, $completion) { return this._dao_1.getContentByUuidAsync_zggu7v_k$(parentUid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).findAllLanguageRelatedEntriesAsync_cyvxos_k$ = function (entryUuid, $completion) { return this._dao_1.findAllLanguageRelatedEntriesAsync_cyvxos_k$(entryUuid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).update_66rhet_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_66rhet_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_DoorWrapper).findByUidWithLanguageAsync_uknipg_k$ = function (uid, $completion) { return this._dao_1.findByUidWithLanguageAsync_uknipg_k$(uid, $completion); }; protoOf(ContentEntryDao_DoorWrapper).findByUid_w1fpv2_k$ = function (entryUid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).findByTitle_85ew4y_k$ = function (title) { return this._dao_1.findByTitle_85ew4y_k$(title); }; protoOf(ContentEntryDao_DoorWrapper).findBySourceUrlWithContentEntryStatusAsync_rmksxb_k$ = function (sourceUrl, $completion) { return this._dao_1.findBySourceUrlWithContentEntryStatusAsync_rmksxb_k$(sourceUrl, $completion); }; protoOf(ContentEntryDao_DoorWrapper).getChildrenByParentUidWithCategoryFilterOrderByName_zadow7_k$ = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { return this._dao_1.getChildrenByParentUidWithCategoryFilterOrderByName_zadow7_k$(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted); }; protoOf(ContentEntryDao_DoorWrapper).getContentFromMyCourses_mc08lt_k$ = function (accountPersonUid) { return this._dao_1.getContentFromMyCourses_mc08lt_k$(accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).getContentByOwner_4zkl6d_k$ = function (accountPersonUid) { return this._dao_1.getContentByOwner_4zkl6d_k$(accountPersonUid); }; protoOf(ContentEntryDao_DoorWrapper).updateAsync_n24xlw_k$ = function (entity, $completion) { entity.set_contentEntryLct_ayi47_k$(systemTimeInMillis()); return this._dao_1.updateAsync_n24xlw_k$(entity, $completion); }; protoOf(ContentEntryDao_DoorWrapper).getChildrenByAll_g40xjb_k$ = function (parentUid) { throw IllegalStateException_init_$Create$('getChildrenByAll: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).findLiveContentEntry_5bv7w0_k$ = function (parentUid) { return this._dao_1.findLiveContentEntry_5bv7w0_k$(parentUid); }; protoOf(ContentEntryDao_DoorWrapper).getContentEntryUidFromXapiObjectId_z050pf_k$ = function (objectId) { throw IllegalStateException_init_$Create$('getContentEntryUidFromXapiObjectId: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).findSimilarIdEntryForKhan_xatwfo_k$ = function (sourceUrl) { throw IllegalStateException_init_$Create$('findSimilarIdEntryForKhan: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).updateContentEntryInActive_a8or16_k$ = function (contentEntryUid, ceInactive, changedTime) { throw IllegalStateException_init_$Create$('updateContentEntryInActive: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).updateContentEntryContentFlag_iukj1h_k$ = function (contentFlag, contentEntryUid, changedTime) { throw IllegalStateException_init_$Create$('updateContentEntryContentFlag: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).getContentEntryFromUids_fl2ry3_k$ = function (contentEntryUids, $completion) { return this._dao_1.getContentEntryFromUids_fl2ry3_k$(contentEntryUids, $completion); }; protoOf(ContentEntryDao_DoorWrapper).insert_8eq8rf_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_8eq8rf_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_DoorWrapper).insertAsync_v71czu_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$97(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_v71czu_k$(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_DoorWrapper).insertList_czb5vf_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_czb5vf_k$(entityList); }; function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_name = $_result.getString_gb1pt9_k$('name'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndLanguage(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findEntryWithLanguageByEntryIdAsync....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findEntryWithLanguageByEntryIdAsync.....' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_1); } if (!_tmp_Language_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findEntryWithLanguageByEntryIdAsync.....' call this_2.set_langUid_ci1fyx_k$(_tmp_langUid); this_2.set_name_wkmnld_k$(_tmp_name); this_2.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_2.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_2.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_2.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_2.set_languageActive_33gxtm_k$(_tmp_languageActive); this_2.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_2.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_2.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_2.set_langLct_kvc7xo_k$(_tmp_langLct); this_0.set_language_k1j0e9_k$(this_2); } return this_0; }; } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.....' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_entry_6mesg_k$(this_1); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithEditDetails.....' call this_2.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_2.set_cepLct_jp50ni_k$(_tmp_cepLct); this_2.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_2.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_picture_vkub8o_k$(this_2); } return this_0; }; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryVersion_nullCount = 0; var _tmp_cevUid = $_result.getLong_3wgf2g_k$('cevUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cevContentEntryUid = $_result.getLong_3wgf2g_k$('cevContentEntryUid'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cevOpenUri = $_result.getString_gb1pt9_k$('cevOpenUri'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cevContentType = $_result.getString_gb1pt9_k$('cevContentType'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_cevManifestUrl = $_result.getString_gb1pt9_k$('cevManifestUrl'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cevSize = $_result.getLong_3wgf2g_k$('cevSize'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cevInActive = $_result.getBoolean_xz3hoo_k$('cevInActive'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cevLastModified = $_result.getLong_3wgf2g_k$('cevLastModified'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cevLct = $_result.getLong_3wgf2g_k$('cevLct'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cevStorageSize = $_result.getLong_3wgf2g_k$('cevStorageSize'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cevOriginalSize = $_result.getLong_3wgf2g_k$('cevOriginalSize'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryVersion_nullCount = _tmp_ContentEntryVersion_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_ContentEntryVersion_isAllNull = _tmp_ContentEntryVersion_nullCount === 11; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow.....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_entry_6mesg_k$(this_1); } if (!_tmp_ContentEntryVersion_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_2.set_cevUid_qq3grf_k$(_tmp_cevUid); this_2.set_cevContentEntryUid_7jgl4y_k$(_tmp_cevContentEntryUid); this_2.set_cevOpenUri_pcvf0_k$(_tmp_cevOpenUri); this_2.set_cevContentType_ideg79_k$(_tmp_cevContentType); this_2.set_cevManifestUrl_j9gcjy_k$(_tmp_cevManifestUrl); this_2.set_cevSize_6z2zqy_k$(_tmp_cevSize); this_2.set_cevInActive_fcf9u5_k$(_tmp_cevInActive); this_2.set_cevLastModified_av83s_k$(_tmp_cevLastModified); this_2.set_cevLct_icsoso_k$(_tmp_cevLct); this_2.set_cevStorageSize_l6q8m1_k$(_tmp_cevStorageSize); this_2.set_cevOriginalSize_ehp645_k$(_tmp_cevOriginalSize); this_0.set_latestVersion_pb6c81_k$(this_2); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_3.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_3.set_cepLct_jp50ni_k$(_tmp_cepLct); this_3.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_3.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_picture_vkub8o_k$(this_3); } if (!_tmp_BlockStatus_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByContentEntryUidWithDetailsAsFlow......' call this_4.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_4.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_4.set_sProgress_srgi2g_k$(_tmp_sProgress); this_4.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_4.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_4.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); this_0.set_status_kzq07v_k$(this_4); } return this_0; }; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$courseBlockUid_1 = $courseBlockUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).invoke_iryqpt_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_iryqpt_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$courseBlockUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$courseBlockUid_1, this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_iryqpt_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda($parentUid, $_limit, $_offset, resultContinuation) { this.$parentUid_1 = $parentUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda).invoke_rodcvz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rodcvz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda(this.$parentUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda_0($parentUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda($parentUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rodcvz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.getChildrenByParentAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.getContentByUuidAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findAllLanguageRelatedEntriesAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_name = $_result.getString_gb1pt9_k$('name'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryWithLanguage(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithLanguageAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); if (!_tmp_Language_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUidWithLanguageAsync.....' call this_1.set_langUid_ci1fyx_k$(_tmp_langUid); this_1.set_name_wkmnld_k$(_tmp_name); this_1.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_1.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_1.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_1.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_1.set_languageActive_33gxtm_k$(_tmp_languageActive); this_1.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_1.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_1.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_1.set_langLct_kvc7xo_k$(_tmp_langLct); this_0.set_language_k1j0e9_k$(this_1); } return this_0; }; } function ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByTitle.....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda($title, resultContinuation) { this.$title_1 = $title; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda).invoke_1gr75i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gr75i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$title_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda(this.$title_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda_0($title, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda($title, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gr75i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findBySourceUrlWithContentEntryStatusAsync....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_1); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_2.set_cepLct_jp50ni_k$(_tmp_cepLct); this_2.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_2.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_picture_vkub8o_k$(this_2); } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_3.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_3.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_3.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_3.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_3.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_3.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_3.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_3.set_childIndex_yj4tez_k$(_tmp_childIndex); this_0.set_contentEntryParentChildJoin_cx82x7_k$(this_3); } if (!_tmp_BlockStatus_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_4.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_4.set_sProgress_srgi2g_k$(_tmp_sProgress); this_4.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_4.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_4.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); this_0.set_status_kzq07v_k$(this_4); } return this_0; }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$parentUid_1 = $parentUid; this.$langParam_1 = $langParam; this.$categoryParam0__1 = $categoryParam0; this.$includeDeleted_1 = $includeDeleted; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).invoke_jgj0ne_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jgj0ne_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$parentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$langParam_1); this._stmt_1.setLong_j1sybo_k$(9, this.$langParam_1); this._stmt_1.setLong_j1sybo_k$(10, this.$categoryParam0__1); this._stmt_1.setLong_j1sybo_k$(11, this.$categoryParam0__1); this._stmt_1.setBoolean_pzdm1v_k$(12, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(13, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(16, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda(this.$accountPersonUid_1, this.$parentUid_1, this.$langParam_1, this.$categoryParam0__1, this.$includeDeleted_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jgj0ne_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$parentUid_1 = $parentUid; this.$langParam_1 = $langParam; this.$categoryParam0__1 = $categoryParam0; this.$includeDeleted_1 = $includeDeleted; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$parentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$langParam_1); this._stmt_1.setLong_j1sybo_k$(9, this.$langParam_1); this._stmt_1.setLong_j1sybo_k$(10, this.$categoryParam0__1); this._stmt_1.setLong_j1sybo_k$(11, this.$categoryParam0__1); this._stmt_1.setBoolean_pzdm1v_k$(12, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(13, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda(this.$accountPersonUid_1, this.$parentUid_1, this.$langParam_1, this.$categoryParam0__1, this.$includeDeleted_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda($accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_1); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_2.set_cepLct_jp50ni_k$(_tmp_cepLct); this_2.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_2.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_picture_vkub8o_k$(this_2); } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_3.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_3.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_3.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_3.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_3.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_3.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_3.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_3.set_childIndex_yj4tez_k$(_tmp_childIndex); this_0.set_contentEntryParentChildJoin_cx82x7_k$(this_3); } if (!_tmp_BlockStatus_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_4.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_4.set_sProgress_srgi2g_k$(_tmp_sProgress); this_4.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_4.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_4.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); this_0.set_status_kzq07v_k$(this_4); } return this_0; }; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).invoke_jgj0ne_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jgj0ne_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(8, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(9, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda(this.$accountPersonUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jgj0ne_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0($accountPersonUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; var _tmp_ContentEntryParentChildJoin_nullCount = 0; var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryParentChildJoin_nullCount = _tmp_ContentEntryParentChildJoin_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_ContentEntryParentChildJoin_isAllNull = _tmp_ContentEntryParentChildJoin_nullCount === 9; var _tmp_BlockStatus_nullCount = 0; var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_BlockStatus_nullCount = _tmp_BlockStatus_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_BlockStatus_isAllNull = _tmp_BlockStatus_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_1.set_title_ceyuu4_k$(_tmp_title); this_1.set_description_s1386w_k$(_tmp_description); this_1.set_entryId_b4l6o7_k$(_tmp_entryId); this_1.set_author_btovnz_k$(_tmp_author); this_1.set_publisher_u973bc_k$(_tmp_publisher); this_1.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_1.set_licenseName_gyoh54_k$(_tmp_licenseName); this_1.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_1.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_1.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_1.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_1.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_1.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_1.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_1.set_leaf_nt94be_k$(_tmp_leaf); this_1.set_publik_bkafrt_k$(_tmp_publik); this_1.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_1.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_1.set_minScore_d3l9dh_k$(_tmp_minScore); this_1.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_1.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_1.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_1.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_1.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_1.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_1.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_1); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_2.set_cepLct_jp50ni_k$(_tmp_cepLct); this_2.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_2.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_picture_vkub8o_k$(this_2); } if (!_tmp_ContentEntryParentChildJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_3.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_3.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_3.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_3.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_3.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_3.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_3.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_3.set_childIndex_yj4tez_k$(_tmp_childIndex); this_0.set_contentEntryParentChildJoin_cx82x7_k$(this_3); } if (!_tmp_BlockStatus_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_4.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_4.set_sProgress_srgi2g_k$(_tmp_sProgress); this_4.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_4.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_4.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); this_0.set_status_kzq07v_k$(this_4); } return this_0; }; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).invoke_jgj0ne_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jgj0ne_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(8, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(9, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda(this.$accountPersonUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0($accountPersonUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda($accountPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jgj0ne_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0($accountPersonUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findLiveContentEntry.....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).invoke_1gr75i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gr75i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gr75i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda$lambda$lambda($_result) { return function (it) { var _tmp_uid = $_result.getLong_3wgf2g_k$('uid'); var _tmp_labelName = $_result.getString_gb1pt9_k$('labelName'); // Inline function 'kotlin.apply' call var this_0 = new UidAndLabel(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.getContentEntryFromUids....' call this_0.set_uid_lbehe3_k$(_tmp_uid); this_0.set_labelName_l2tf85_k$(_tmp_labelName); return this_0; }; } function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).bindPreparedStmtToEntity_xi2fzu_k$ = function (stmt, entity) { if (entity.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_contentEntryUid_pu6bbm_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_title_iz32un_k$()); stmt.setString_2gt7ua_k$(3, entity.get_description_emjre5_k$()); stmt.setString_2gt7ua_k$(4, entity.get_entryId_p20on0_k$()); stmt.setString_2gt7ua_k$(5, entity.get_author_b5hnkk_k$()); stmt.setString_2gt7ua_k$(6, entity.get_publisher_wg9par_k$()); stmt.setInt_c72a8z_k$(7, entity.get_licenseType_3ajir6_k$()); stmt.setString_2gt7ua_k$(8, entity.get_licenseName_3af6yr_k$()); stmt.setString_2gt7ua_k$(9, entity.get_licenseUrl_rloa2f_k$()); stmt.setString_2gt7ua_k$(10, entity.get_sourceUrl_jko7yt_k$()); stmt.setString_2gt7ua_k$(11, entity.get_thumbnailUrl_1cubbo_k$()); stmt.setLong_j1sybo_k$(12, entity.get_lastModified_y37iuw_k$()); stmt.setLong_j1sybo_k$(13, entity.get_primaryLanguageUid_r5tse9_k$()); stmt.setLong_j1sybo_k$(14, entity.get_languageVariantUid_i54xak_k$()); stmt.setInt_c72a8z_k$(15, entity.get_contentFlags_hwx6mv_k$()); stmt.setBoolean_pzdm1v_k$(16, entity.get_leaf_woprc7_k$()); stmt.setBoolean_pzdm1v_k$(17, entity.get_publik_i8ukje_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_ceInactive_l2z6a2_k$()); stmt.setInt_c72a8z_k$(19, entity.get_completionCriteria_godp98_k$()); stmt.setInt_c72a8z_k$(20, entity.get_minScore_ger1gp_k$()); stmt.setInt_c72a8z_k$(21, entity.get_contentTypeFlag_2ekfii_k$()); stmt.setLong_j1sybo_k$(22, entity.get_contentOwner_i22mf7_k$()); stmt.setInt_c72a8z_k$(23, entity.get_contentOwnerType_bfan1f_k$()); stmt.setLong_j1sybo_k$(24, entity.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); stmt.setLong_j1sybo_k$(25, entity.get_contentEntryMasterChangeSeqNum_offl1_k$()); stmt.setInt_c72a8z_k$(26, entity.get_contentEntryLastChangedBy_4itnjh_k$()); stmt.setLong_j1sybo_k$(27, entity.get_contentEntryLct_pu6i4l_k$()); }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xi2fzu_k$(stmt, entity instanceof ContentEntry ? entity : THROW_CCE()); }; function ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).bindPreparedStmtToEntity_xi2fzu_k$ = function (stmt, entity) { if (entity.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_contentEntryUid_pu6bbm_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_title_iz32un_k$()); stmt.setString_2gt7ua_k$(3, entity.get_description_emjre5_k$()); stmt.setString_2gt7ua_k$(4, entity.get_entryId_p20on0_k$()); stmt.setString_2gt7ua_k$(5, entity.get_author_b5hnkk_k$()); stmt.setString_2gt7ua_k$(6, entity.get_publisher_wg9par_k$()); stmt.setInt_c72a8z_k$(7, entity.get_licenseType_3ajir6_k$()); stmt.setString_2gt7ua_k$(8, entity.get_licenseName_3af6yr_k$()); stmt.setString_2gt7ua_k$(9, entity.get_licenseUrl_rloa2f_k$()); stmt.setString_2gt7ua_k$(10, entity.get_sourceUrl_jko7yt_k$()); stmt.setString_2gt7ua_k$(11, entity.get_thumbnailUrl_1cubbo_k$()); stmt.setLong_j1sybo_k$(12, entity.get_lastModified_y37iuw_k$()); stmt.setLong_j1sybo_k$(13, entity.get_primaryLanguageUid_r5tse9_k$()); stmt.setLong_j1sybo_k$(14, entity.get_languageVariantUid_i54xak_k$()); stmt.setInt_c72a8z_k$(15, entity.get_contentFlags_hwx6mv_k$()); stmt.setBoolean_pzdm1v_k$(16, entity.get_leaf_woprc7_k$()); stmt.setBoolean_pzdm1v_k$(17, entity.get_publik_i8ukje_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_ceInactive_l2z6a2_k$()); stmt.setInt_c72a8z_k$(19, entity.get_completionCriteria_godp98_k$()); stmt.setInt_c72a8z_k$(20, entity.get_minScore_ger1gp_k$()); stmt.setInt_c72a8z_k$(21, entity.get_contentTypeFlag_2ekfii_k$()); stmt.setLong_j1sybo_k$(22, entity.get_contentOwner_i22mf7_k$()); stmt.setInt_c72a8z_k$(23, entity.get_contentOwnerType_bfan1f_k$()); stmt.setLong_j1sybo_k$(24, entity.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); stmt.setLong_j1sybo_k$(25, entity.get_contentEntryMasterChangeSeqNum_offl1_k$()); stmt.setInt_c72a8z_k$(26, entity.get_contentEntryLastChangedBy_4itnjh_k$()); stmt.setLong_j1sybo_k$(27, entity.get_contentEntryLct_pu6i4l_k$()); }; protoOf(ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xi2fzu_k$(stmt, entity instanceof ContentEntry ? entity : THROW_CCE()); }; function ContentEntryDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_title_iz32un_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_description_emjre5_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_entryId_p20on0_k$()); _stmt.setString_2gt7ua_k$(4, $entity.get_author_b5hnkk_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_publisher_wg9par_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_licenseType_3ajir6_k$()); _stmt.setString_2gt7ua_k$(7, $entity.get_licenseName_3af6yr_k$()); _stmt.setString_2gt7ua_k$(8, $entity.get_licenseUrl_rloa2f_k$()); _stmt.setString_2gt7ua_k$(9, $entity.get_sourceUrl_jko7yt_k$()); _stmt.setString_2gt7ua_k$(10, $entity.get_thumbnailUrl_1cubbo_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_lastModified_y37iuw_k$()); _stmt.setLong_j1sybo_k$(12, $entity.get_primaryLanguageUid_r5tse9_k$()); _stmt.setLong_j1sybo_k$(13, $entity.get_languageVariantUid_i54xak_k$()); _stmt.setInt_c72a8z_k$(14, $entity.get_contentFlags_hwx6mv_k$()); _stmt.setBoolean_pzdm1v_k$(15, $entity.get_leaf_woprc7_k$()); _stmt.setBoolean_pzdm1v_k$(16, $entity.get_publik_i8ukje_k$()); _stmt.setBoolean_pzdm1v_k$(17, $entity.get_ceInactive_l2z6a2_k$()); _stmt.setInt_c72a8z_k$(18, $entity.get_completionCriteria_godp98_k$()); _stmt.setInt_c72a8z_k$(19, $entity.get_minScore_ger1gp_k$()); _stmt.setInt_c72a8z_k$(20, $entity.get_contentTypeFlag_2ekfii_k$()); _stmt.setLong_j1sybo_k$(21, $entity.get_contentOwner_i22mf7_k$()); _stmt.setInt_c72a8z_k$(22, $entity.get_contentOwnerType_bfan1f_k$()); _stmt.setLong_j1sybo_k$(23, $entity.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); _stmt.setLong_j1sybo_k$(24, $entity.get_contentEntryMasterChangeSeqNum_offl1_k$()); _stmt.setInt_c72a8z_k$(25, $entity.get_contentEntryLastChangedBy_4itnjh_k$()); _stmt.setLong_j1sybo_k$(26, $entity.get_contentEntryLct_pu6i4l_k$()); _stmt.setLong_j1sybo_k$(27, $entity.get_contentEntryUid_pu6bbm_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_title_iz32un_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_description_emjre5_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$entity_1.get_entryId_p20on0_k$()); this._stmt_1.setString_2gt7ua_k$(4, this.$entity_1.get_author_b5hnkk_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$entity_1.get_publisher_wg9par_k$()); this._stmt_1.setInt_c72a8z_k$(6, this.$entity_1.get_licenseType_3ajir6_k$()); this._stmt_1.setString_2gt7ua_k$(7, this.$entity_1.get_licenseName_3af6yr_k$()); this._stmt_1.setString_2gt7ua_k$(8, this.$entity_1.get_licenseUrl_rloa2f_k$()); this._stmt_1.setString_2gt7ua_k$(9, this.$entity_1.get_sourceUrl_jko7yt_k$()); this._stmt_1.setString_2gt7ua_k$(10, this.$entity_1.get_thumbnailUrl_1cubbo_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_lastModified_y37iuw_k$()); this._stmt_1.setLong_j1sybo_k$(12, this.$entity_1.get_primaryLanguageUid_r5tse9_k$()); this._stmt_1.setLong_j1sybo_k$(13, this.$entity_1.get_languageVariantUid_i54xak_k$()); this._stmt_1.setInt_c72a8z_k$(14, this.$entity_1.get_contentFlags_hwx6mv_k$()); this._stmt_1.setBoolean_pzdm1v_k$(15, this.$entity_1.get_leaf_woprc7_k$()); this._stmt_1.setBoolean_pzdm1v_k$(16, this.$entity_1.get_publik_i8ukje_k$()); this._stmt_1.setBoolean_pzdm1v_k$(17, this.$entity_1.get_ceInactive_l2z6a2_k$()); this._stmt_1.setInt_c72a8z_k$(18, this.$entity_1.get_completionCriteria_godp98_k$()); this._stmt_1.setInt_c72a8z_k$(19, this.$entity_1.get_minScore_ger1gp_k$()); this._stmt_1.setInt_c72a8z_k$(20, this.$entity_1.get_contentTypeFlag_2ekfii_k$()); this._stmt_1.setLong_j1sybo_k$(21, this.$entity_1.get_contentOwner_i22mf7_k$()); this._stmt_1.setInt_c72a8z_k$(22, this.$entity_1.get_contentOwnerType_bfan1f_k$()); this._stmt_1.setLong_j1sybo_k$(23, this.$entity_1.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); this._stmt_1.setLong_j1sybo_k$(24, this.$entity_1.get_contentEntryMasterChangeSeqNum_offl1_k$()); this._stmt_1.setInt_c72a8z_k$(25, this.$entity_1.get_contentEntryLastChangedBy_4itnjh_k$()); this._stmt_1.setLong_j1sybo_k$(26, this.$entity_1.get_contentEntryLct_pu6i4l_k$()); this._stmt_1.setLong_j1sybo_k$(27, this.$entity_1.get_contentEntryUid_pu6bbm_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation) { this.$entryUid_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).invoke_1gr75i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gr75i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda(this.$entryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByUidAsync$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gr75i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda($entryUuid, resultContinuation) { this.$entryUuid_1 = $entryUuid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda).invoke_axrm20_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_axrm20_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUuid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda(this.$entryUuid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda_0($entryUuid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda($entryUuid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_axrm20_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).invoke_unbo6e_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_unbo6e_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0($uid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_unbo6e_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$courseBlockUid_1 = $courseBlockUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).invoke_y0hxbf_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_y0hxbf_k$($completion); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n -- When the user is viewing ContentEntryDetail where the class is specified eg \n -- for a ContentEntry that is part of a Clazz then results information will only be\n -- included if the user is a student in the class\n -- If the user is viewing the ContentEntryDetail via the library then the results\n -- information will always be included\n WITH IncludeResults(includeResults) AS (\n SELECT CAST(\n (SELECT (CAST(? AS BIGINT) = 0)\n OR (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n ) AS INTEGER)\n )\n\n SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n CAST(? AS BIGINT) AS sPersonUid,\n CAST(? AS BIGINT) AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n FROM ContentEntry\n LEFT JOIN ContentEntryVersion\n ON ContentEntryVersion.cevUid = \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n AND CAST(cevInActive AS INTEGER) = 0\n ORDER BY ContentEntryVersion.cevLct DESC\n LIMIT 1)\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT) \n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n -- When the user is viewing ContentEntryDetail where the class is specified eg \n -- for a ContentEntry that is part of a Clazz then results information will only be\n -- included if the user is a student in the class\n -- If the user is viewing the ContentEntryDetail via the library then the results\n -- information will always be included\n WITH IncludeResults(includeResults) AS (\n SELECT CAST(\n (SELECT (? = 0)\n OR (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n ) AS INTEGER)\n )\n\n SELECT ContentEntry.*, ContentEntryVersion.*, ContentEntryPicture2.*,\n ? AS sPersonUid,\n ? AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n FROM ContentEntry\n LEFT JOIN ContentEntryVersion\n ON ContentEntryVersion.cevUid = \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n AND CAST(cevInActive AS INTEGER) = 0\n ORDER BY ContentEntryVersion.cevLct DESC\n LIMIT 1)\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ? \n WHERE ContentEntry.contentEntryUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$courseBlockUid_1, this.$contentEntryUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, this.$courseBlockUid_1, this.$contentEntryUid_1, completion); }; function ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $courseBlockUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_y0hxbf_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_JdbcImpl$findBySourceUrl$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findBySourceUrl$lambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findBySourceUrl$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findBySourceUrl....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findBySourceUrl$lambda($sourceUrl) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $sourceUrl); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryDao_JdbcImpl$findBySourceUrl$lambda$lambda); }; } function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation) { this.$entryUid_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda(this.$entryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUid$1(this$0, $parentUid) { this.this$0__1 = this$0; this.$parentUid_1 = $parentUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$1).loadRows_1qt8ms_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT)) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$loadRows$slambda_0(this.$parentUid_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_1qt8ms_k$(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT)) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUid$o$countRows$slambda_0(this.$parentUid_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda).invoke_rodcvz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rodcvz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rodcvz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda).invoke_1gr75i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gr75i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gr75i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda($entryUuid, resultContinuation) { this.$entryUuid_1 = $entryUuid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda).invoke_rodcvz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rodcvz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUuid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda(this.$entryUuid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda_0($entryUuid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda($entryUuid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rodcvz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda).invoke_21zae0_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_21zae0_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda_0($uid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_21zae0_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findByUid....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findByUid$lambda($entryUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entryUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryDao_JdbcImpl$findByUid$lambda$lambda); }; } function ContentEntryDao_JdbcImpl$findByTitle$slambda(this$0, $title, resultContinuation) { this.this$0__1 = this$0; this.$title_1 = $title; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda).invoke_gtgq46_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_gtgq46_k$($completion); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE title = ?', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryDao_JdbcImpl$findByTitle$slambda$slambda_0(this.$title_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findByTitle$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_JdbcImpl$findByTitle$slambda(this.this$0__1, this.$title_1, completion); }; function ContentEntryDao_JdbcImpl$findByTitle$slambda_0(this$0, $title, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findByTitle$slambda(this$0, $title, resultContinuation); var l = function ($completion) { return i.invoke_gtgq46_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda($sourceUrl, resultContinuation) { this.$sourceUrl_1 = $sourceUrl; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda).invoke_1gr75i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gr75i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$sourceUrl_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda(this.$sourceUrl_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda_0($sourceUrl, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda($sourceUrl, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gr75i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $includeDeleted, $sortOrder) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$parentUid_1 = $parentUid; this.$langParam_1 = $langParam; this.$categoryParam0__1 = $categoryParam0; this.$includeDeleted_1 = $includeDeleted; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'ContentEntryContentCategoryJoin', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).loadRows_91yeo9_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n AND (? = 0 OR ? \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$loadRows$slambda_0(this.$accountPersonUid_1, this.$parentUid_1, this.$langParam_1, this.$categoryParam0__1, this.$includeDeleted_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_91yeo9_k$(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT) \n AND (CAST(? AS BIGINT) = 0 OR ContentEntry.primaryLanguageUid = CAST(? AS BIGINT))\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry \n LEFT JOIN ContentEntryParentChildJoin \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n AND (? = 0 OR ContentEntry.primaryLanguageUid = ?)\n AND (? = 0 OR ? \n IN (SELECT ceccjContentCategoryUid \n FROM ContentEntryContentCategoryJoin \n WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n AND (CAST(? AS INTEGER) = 1 OR CAST(ContentEntryParentChildJoin.cepcjDeleted AS INTEGER) = 0) \n ORDER BY ContentEntryParentChildJoin.childIndex,\n CASE(?)\n WHEN 1 THEN ContentEntry.title\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN ContentEntry.title\n ELSE ''\n END DESC, \n ContentEntry.contentEntryUid) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$o$countRows$slambda_0(this.$accountPersonUid_1, this.$parentUid_1, this.$langParam_1, this.$categoryParam0__1, this.$includeDeleted_1, this.$sortOrder_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this$0, $accountPersonUid) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'CourseBlock', 'ClazzEnrolment', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).loadRows_91yeo9_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$loadRows$slambda_0(this.$accountPersonUid_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_91yeo9_k$(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentFromMyCourses$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT))\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*,\n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM CourseBlock\n JOIN ContentEntry \n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid \n WHERE CourseBlock.cbClazzUid IN\n (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getContentFromMyCourses$o$countRows$slambda_0(this.$accountPersonUid_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getContentByOwner$1(this$0, $accountPersonUid) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'ContentEntryPicture2', 'StatementEntity', 'ContentEntryParentChildJoin']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).loadRows_91yeo9_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = ?\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$loadRows$slambda_0(this.$accountPersonUid_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_91yeo9_k$(_limit, _offset, $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentByOwner$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n CAST(? AS BIGINT) AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = CAST(? AS BIGINT)\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH IncludeResults(includeResults) AS (SELECT 1)\n \n SELECT ContentEntry.*, ContentEntryParentChildJoin.*, ContentEntryPicture2.*, \n \n ? AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n \n FROM ContentEntry\n LEFT JOIN ContentEntryParentChildJoin\n ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = 0\n LEFT JOIN ContentEntryPicture2\n ON ContentEntryPicture2.cepUid = ContentEntry.contentEntryUid\n WHERE ContentEntry.contentOwner = ?\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryDao_JdbcImpl$getContentByOwner$o$countRows$slambda_0(this.$accountPersonUid_1, null), $completion); }; function ContentEntryDao_JdbcImpl$getChildrenByAll$lambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$getChildrenByAll$lambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getChildrenByAll$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.getChildrenByAll....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$getChildrenByAll$lambda($parentUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $parentUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryDao_JdbcImpl$getChildrenByAll$lambda$lambda); }; } function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation) { this.this$0__1 = this$0; this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).invoke_gtgq46_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_gtgq46_k$($completion); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM ContentEntry where contentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda$slambda_0(this.$parentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this.this$0__1, this.$parentUid_1, completion); }; function ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this$0, $parentUid, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda(this$0, $parentUid, resultContinuation); var l = function ($completion) { return i.invoke_gtgq46_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda($objectId) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $objectId); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda$lambda); }; } function ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda$lambda(_result) { return mapRows(_result, ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda$lambda$lambda(_result)); } function ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryDao_JdbcImpl.findSimilarIdEntryForKhan....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda($sourceUrl) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $sourceUrl); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda$lambda); }; } function ContentEntryDao_JdbcImpl$updateContentEntryInActive$lambda($ceInactive, $changedTime, $contentEntryUid) { return function (_stmt) { _stmt.setBoolean_pzdm1v_k$(1, $ceInactive); _stmt.setLong_j1sybo_k$(2, $changedTime); _stmt.setLong_j1sybo_k$(3, $contentEntryUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryDao_JdbcImpl$updateContentEntryContentFlag$lambda($contentFlag, $changedTime, $contentEntryUid) { return function (_stmt) { _stmt.setInt_c72a8z_k$(1, $contentFlag); _stmt.setLong_j1sybo_k$(2, $changedTime); _stmt.setLong_j1sybo_k$(3, $contentEntryUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda($contentEntryUids, resultContinuation) { this.$contentEntryUids_1 = $contentEntryUids; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda).invoke_6qis67_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6qis67_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$contentEntryUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda(this.$contentEntryUids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda_0($contentEntryUids, resultContinuation) { var i = new ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda($contentEntryUids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6qis67_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$98(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$98).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntry_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$99(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$99).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE ContentEntry SET title = ?, description = ?, entryId = ?, author = ?, publisher = ?, licenseType = ?, licenseName = ?, licenseUrl = ?, sourceUrl = ?, thumbnailUrl = ?, lastModified = ?, primaryLanguageUid = ?, languageVariantUid = ?, contentFlags = ?, leaf = ?, publik = ?, ceInactive = ?, completionCriteria = ?, minScore = ?, contentTypeFlag = ?, contentOwner = ?, contentOwnerType = ?, contentEntryLocalChangeSeqNum = ?, contentEntryMasterChangeSeqNum = ?, contentEntryLastChangedBy = ?, contentEntryLct = ? WHERE contentEntryUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, ContentEntryDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryDao_JdbcImpl(_db) { ContentEntryDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntry_abort_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterContentEntry_upsert_1 = new ContentEntryDao_JdbcImpl$_insertAdapterContentEntry_upsert$1(this); } protoOf(ContentEntryDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryDao_JdbcImpl).get__insertAdapterContentEntry_abort_52l20a_k$ = function () { return this._insertAdapterContentEntry_abort_1; }; protoOf(ContentEntryDao_JdbcImpl).get__insertAdapterContentEntry_upsert_oukgtx_k$ = function () { return this._insertAdapterContentEntry_upsert_1; }; protoOf(ContentEntryDao_JdbcImpl).insertListAsync_7n9bhs_k$ = function (entityList, $completion) { return this._insertAdapterContentEntry_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(ContentEntryDao_JdbcImpl).upsertAsync_29lw1k_k$ = function (entity, $completion) { return this._insertAdapterContentEntry_upsert_1.insertAsync_kic9b7_k$(entity, $completion); }; protoOf(ContentEntryDao_JdbcImpl).insert_8eq8rf_k$ = function (entity) { var _retVal = this._insertAdapterContentEntry_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentEntryDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_8eq8rf_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_JdbcImpl).insertAsync_v71czu_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$98(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_v71czu_k$(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_JdbcImpl).insertList_czb5vf_k$ = function (entityList) { this._insertAdapterContentEntry_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentEntryDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_czb5vf_k$(entityList); }; protoOf(ContentEntryDao_JdbcImpl).update_66rhet_k$ = function (entity) { var _sql = 'UPDATE ContentEntry SET title = ?, description = ?, entryId = ?, author = ?, publisher = ?, licenseType = ?, licenseName = ?, licenseUrl = ?, sourceUrl = ?, thumbnailUrl = ?, lastModified = ?, primaryLanguageUid = ?, languageVariantUid = ?, contentFlags = ?, leaf = ?, publik = ?, ceInactive = ?, completionCriteria = ?, minScore = ?, contentTypeFlag = ?, contentOwner = ?, contentOwnerType = ?, contentEntryLocalChangeSeqNum = ?, contentEntryMasterChangeSeqNum = ?, contentEntryLastChangedBy = ?, contentEntryLct = ? WHERE contentEntryUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentEntryDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentEntryDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_66rhet_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_JdbcImpl).updateAsync_n24xlw_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$99(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_JdbcImpl).findByUidAsync_883mls_k$ = function (entryUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ContentEntry WHERE contentEntryUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByUidAsync$slambda_0(entryUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findEntryWithLanguageByEntryIdAsync_ewc1b7_k$ = function (entryUuid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntry.*, Language.* \n FROM ContentEntry \n LEFT JOIN Language \n ON Language.langUid = ContentEntry.primaryLanguageUid\n WHERE ContentEntry.contentEntryUid=CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ContentEntry.*, Language.* \n FROM ContentEntry \n LEFT JOIN Language \n ON Language.langUid = ContentEntry.primaryLanguageUid\n WHERE ContentEntry.contentEntryUid=?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findEntryWithLanguageByEntryIdAsync$slambda_0(entryUuid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findByUidWithEditDetails_rcs30q_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntry.*, ContentEntryPicture2.*\n FROM ContentEntry\n LEFT JOIN ContentEntryPicture2 \n ON ContentEntryPicture2.cepUid = CAST(? AS BIGINT)\n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntry.*, ContentEntryPicture2.*\n FROM ContentEntry\n LEFT JOIN ContentEntryPicture2 \n ON ContentEntryPicture2.cepUid = ?\n WHERE ContentEntry.contentEntryUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByUidWithEditDetails$slambda_0(uid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findByContentEntryUidWithDetailsAsFlow_i93hu3_k$ = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'ContentEntryVersion', 'ContentEntryPicture2', 'CourseBlock', 'ClazzEnrolment', 'StatementEntity']; return doorFlow(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, clazzUid, accountPersonUid, courseBlockUid, contentEntryUid, null)); }; protoOf(ContentEntryDao_JdbcImpl).findBySourceUrl_lpfkne_k$ = function (sourceUrl) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE sourceUrl = ? LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$findBySourceUrl$lambda(sourceUrl)); }; protoOf(ContentEntryDao_JdbcImpl).findTitleByUidAsync_9gda26_k$ = function (entryUid, $completion) { var tmp = new PreparedStatementConfig('SELECT title FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT title FROM ContentEntry WHERE contentEntryUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findTitleByUidAsync$slambda_0(entryUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).getChildrenByParentUid_j1qm2c_k$ = function (parentUid) { return new ContentEntryDao_JdbcImpl$getChildrenByParentUid$1(this, parentUid); }; protoOf(ContentEntryDao_JdbcImpl).getChildrenByParentAsync_e6cny5_k$ = function (parentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntry.*\n FROM ContentEntryParentChildJoin\n JOIN ContentEntry \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ContentEntry.*\n FROM ContentEntryParentChildJoin\n JOIN ContentEntry \n ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByParentAsync$slambda_0(parentUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).getCountNumberOfChildrenByParentUUidAsync_3fnk4t_k$ = function (parentUid, $completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT COUNT(*) FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$getCountNumberOfChildrenByParentUUidAsync$slambda_0(parentUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).getContentByUuidAsync_zggu7v_k$ = function (parentUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry where contentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$getContentByUuidAsync$slambda_0(parentUid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findAllLanguageRelatedEntriesAsync_cyvxos_k$ = function (entryUuid, $completion) { var tmp = new PreparedStatementConfig('SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryRelatedEntryJoin ON ContentEntryRelatedEntryJoin.cerejRelatedEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryRelatedEntryJoin.relType = 1 AND ContentEntryRelatedEntryJoin.cerejRelatedEntryUid != CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryRelatedEntryJoin ON ContentEntryRelatedEntryJoin.cerejRelatedEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryRelatedEntryJoin.relType = 1 AND ContentEntryRelatedEntryJoin.cerejRelatedEntryUid != ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findAllLanguageRelatedEntriesAsync$slambda_0(entryUuid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findByUidWithLanguageAsync_uknipg_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntry.*, Language.*\n FROM ContentEntry\n LEFT JOIN Language \n ON Language.langUid = ContentEntry.primaryLanguageUid \n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntry.*, Language.*\n FROM ContentEntry\n LEFT JOIN Language \n ON Language.langUid = ContentEntry.primaryLanguageUid \n WHERE ContentEntry.contentEntryUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByUidWithLanguageAsync$slambda_0(uid, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).findByUid_w1fpv2_k$ = function (entryUid) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ContentEntry WHERE contentEntryUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByUid$lambda(entryUid)); }; protoOf(ContentEntryDao_JdbcImpl).findByTitle_85ew4y_k$ = function (title) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry']; return doorFlow(this._db_1, tmp, ContentEntryDao_JdbcImpl$findByTitle$slambda_0(this, title, null)); }; protoOf(ContentEntryDao_JdbcImpl).findBySourceUrlWithContentEntryStatusAsync_rmksxb_k$ = function (sourceUrl, $completion) { var tmp = new PreparedStatementConfig('SELECT ContentEntry.* FROM ContentEntry WHERE ContentEntry.sourceUrl = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$findBySourceUrlWithContentEntryStatusAsync$slambda_0(sourceUrl, null), $completion); }; protoOf(ContentEntryDao_JdbcImpl).getChildrenByParentUidWithCategoryFilterOrderByName_zadow7_k$ = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { return new ContentEntryDao_JdbcImpl$getChildrenByParentUidWithCategoryFilterOrderByName$1(this, accountPersonUid, parentUid, langParam, categoryParam0, includeDeleted, sortOrder); }; protoOf(ContentEntryDao_JdbcImpl).getContentFromMyCourses_mc08lt_k$ = function (accountPersonUid) { return new ContentEntryDao_JdbcImpl$getContentFromMyCourses$1(this, accountPersonUid); }; protoOf(ContentEntryDao_JdbcImpl).getContentByOwner_4zkl6d_k$ = function (accountPersonUid) { return new ContentEntryDao_JdbcImpl$getContentByOwner$1(this, accountPersonUid); }; protoOf(ContentEntryDao_JdbcImpl).getChildrenByAll_g40xjb_k$ = function (parentUid) { var tmp = new PreparedStatementConfig('SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$getChildrenByAll$lambda(parentUid)); }; protoOf(ContentEntryDao_JdbcImpl).findLiveContentEntry_5bv7w0_k$ = function (parentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry']; return doorFlow(this._db_1, tmp, ContentEntryDao_JdbcImpl$findLiveContentEntry$slambda_0(this, parentUid, null)); }; protoOf(ContentEntryDao_JdbcImpl).getContentEntryUidFromXapiObjectId_z050pf_k$ = function (objectId) { var tmp = new PreparedStatementConfig('SELECT COALESCE((SELECT contentEntryUid \n FROM ContentEntry \n WHERE entryId = ? \n LIMIT 1),0) AS ID', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$getContentEntryUidFromXapiObjectId$lambda(objectId)); }; protoOf(ContentEntryDao_JdbcImpl).findSimilarIdEntryForKhan_xatwfo_k$ = function (sourceUrl) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntry WHERE sourceUrl LIKE ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$findSimilarIdEntryForKhan$lambda(sourceUrl)); }; protoOf(ContentEntryDao_JdbcImpl).updateContentEntryInActive_a8or16_k$ = function (contentEntryUid, ceInactive, changedTime) { var tmp = new PreparedStatementConfig('\n UPDATE ContentEntry \n SET ceInactive = ?,\n contentEntryLct = CAST(? AS BIGINT) \n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE ContentEntry \n SET ceInactive = ?,\n contentEntryLct = ? \n WHERE ContentEntry.contentEntryUid = ?\n', false); prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$updateContentEntryInActive$lambda(ceInactive, changedTime, contentEntryUid)); }; protoOf(ContentEntryDao_JdbcImpl).updateContentEntryContentFlag_iukj1h_k$ = function (contentFlag, contentEntryUid, changedTime) { var tmp = new PreparedStatementConfig('\n UPDATE ContentEntry \n SET contentTypeFlag = ?,\n contentEntryLct = CAST(? AS BIGINT) \n WHERE ContentEntry.contentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE ContentEntry \n SET contentTypeFlag = ?,\n contentEntryLct = ? \n WHERE ContentEntry.contentEntryUid = ?\n', false); prepareAndUseStatement_0(this._db_1, tmp, ContentEntryDao_JdbcImpl$updateContentEntryContentFlag$lambda(contentFlag, changedTime, contentEntryUid)); }; protoOf(ContentEntryDao_JdbcImpl).getContentEntryFromUids_fl2ry3_k$ = function (contentEntryUids, $completion) { var tmp = new PreparedStatementConfig('Select ContentEntry.contentEntryUid AS uid, ContentEntry.title As labelName \n from ContentEntry WHERE contentEntryUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryDao_JdbcImpl$getContentEntryFromUids$slambda_0(contentEntryUids, null), $completion); }; function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_7n9bhs_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ContentEntryDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ContentEntryDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_29lw1k_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_Repo$upsertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$findByUidWithEditDetails$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$clazzUid_1 = $clazzUid; this.$courseBlockUid_1 = $courseBlockUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ContentEntryDao/findByContentEntryUidWithDetailsAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'courseBlockUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$courseBlockUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this.this$0__1, this.$contentEntryUid_1, this.$clazzUid_1, this.$courseBlockUid_1, this.$accountPersonUid_1, completion); }; function ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation) { var i = new ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda(this$0, $contentEntryUid, $clazzUid, $courseBlockUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$findTitleByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_66rhet_k$($entity); return Unit_getInstance(); }; } function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$parentUid_1 = $parentUid; this.$langParam_1 = $langParam; this.$categoryParam0__1 = $categoryParam0; this.$sortOrder_1 = $sortOrder; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'parentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$parentUid_1)); parameter(this_0, 'langParam', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$langParam_1)); parameter(this_0, 'categoryParam0', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$categoryParam0__1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this.this$0__1, this.$accountPersonUid_1, this.$parentUid_1, this.$langParam_1, this.$categoryParam0__1, this.$sortOrder_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation) { var i = new ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda(this$0, $accountPersonUid, $parentUid, $langParam, $categoryParam0, $sortOrder, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ContentEntryDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(ContentEntryDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_n24xlw_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$updateContentEntryInActive$lambda(this$0, $contentEntryUid, $ceInactive, $changedTime) { return function () { this$0._dao_1.updateContentEntryInActive_a8or16_k$($contentEntryUid, $ceInactive, $changedTime); return Unit_getInstance(); }; } function ContentEntryDao_Repo$updateContentEntryContentFlag$lambda(this$0, $contentFlag, $contentEntryUid, $changedTime) { return function () { this$0._dao_1.updateContentEntryContentFlag_iukj1h_k$($contentFlag, $contentEntryUid, $changedTime); return Unit_getInstance(); }; } function ContentEntryDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function $findByUidAsyncCOROUTINE$100(_this__u8e3s4, entryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entryUid_1 = entryUid; } protoOf($findByUidAsyncCOROUTINE$100).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_883mls_k$(this.entryUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findEntryWithLanguageByEntryIdAsyncCOROUTINE$101(_this__u8e3s4, entryUuid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entryUuid_1 = entryUuid; } protoOf($findEntryWithLanguageByEntryIdAsyncCOROUTINE$101).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findEntryWithLanguageByEntryIdAsync_ewc1b7_k$(this.entryUuid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithEditDetailsCOROUTINE$102(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithEditDetailsCOROUTINE$102).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ContentEntryDao/findByUidWithEditDetails'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ContentEntryDao/findByUidWithEditDetails'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ContentEntryDao_Repo$findByUidWithEditDetails$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithEditDetails_rcs30q_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findTitleByUidAsyncCOROUTINE$103(_this__u8e3s4, entryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entryUid_1 = entryUid; } protoOf($findTitleByUidAsyncCOROUTINE$103).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ContentEntryDao/findTitleByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ContentEntryDao/findTitleByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'entryUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.entryUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ContentEntryDao_Repo$findTitleByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findTitleByUidAsync_9gda26_k$(this.entryUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getChildrenByParentAsyncCOROUTINE$104(_this__u8e3s4, parentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.parentUid_1 = parentUid; } protoOf($getChildrenByParentAsyncCOROUTINE$104).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getChildrenByParentAsync_e6cny5_k$(this.parentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getCountNumberOfChildrenByParentUUidAsyncCOROUTINE$105(_this__u8e3s4, parentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.parentUid_1 = parentUid; } protoOf($getCountNumberOfChildrenByParentUUidAsyncCOROUTINE$105).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getCountNumberOfChildrenByParentUUidAsync_3fnk4t_k$(this.parentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getContentByUuidAsyncCOROUTINE$106(_this__u8e3s4, parentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.parentUid_1 = parentUid; } protoOf($getContentByUuidAsyncCOROUTINE$106).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getContentByUuidAsync_zggu7v_k$(this.parentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllLanguageRelatedEntriesAsyncCOROUTINE$107(_this__u8e3s4, entryUuid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entryUuid_1 = entryUuid; } protoOf($findAllLanguageRelatedEntriesAsyncCOROUTINE$107).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllLanguageRelatedEntriesAsync_cyvxos_k$(this.entryUuid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithLanguageAsyncCOROUTINE$108(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithLanguageAsyncCOROUTINE$108).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithLanguageAsync_uknipg_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findBySourceUrlWithContentEntryStatusAsyncCOROUTINE$109(_this__u8e3s4, sourceUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.sourceUrl_1 = sourceUrl; } protoOf($findBySourceUrlWithContentEntryStatusAsyncCOROUTINE$109).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findBySourceUrlWithContentEntryStatusAsync_rmksxb_k$(this.sourceUrl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$110(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$110).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntry', ContentEntryDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getContentEntryFromUidsCOROUTINE$111(_this__u8e3s4, contentEntryUids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUids_1 = contentEntryUids; } protoOf($getContentEntryFromUidsCOROUTINE$111).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getContentEntryFromUids_fl2ry3_k$(this.contentEntryUids_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$112(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$112).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntry', ContentEntryDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(ContentEntryDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(ContentEntryDao_Repo).insertListAsync_7n9bhs_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ContentEntryDao_Repo).upsertAsync_29lw1k_k$ = function (entity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(ContentEntryDao_Repo).findByUidAsync_883mls_k$ = function (entryUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$100(this, entryUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).findEntryWithLanguageByEntryIdAsync_ewc1b7_k$ = function (entryUuid, $completion) { var tmp = new $findEntryWithLanguageByEntryIdAsyncCOROUTINE$101(this, entryUuid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).findByUidWithEditDetails_rcs30q_k$ = function (uid, $completion) { var tmp = new $findByUidWithEditDetailsCOROUTINE$102(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).findByContentEntryUidWithDetailsAsFlow_i93hu3_k$ = function (contentEntryUid, clazzUid, courseBlockUid, accountPersonUid) { var tmp = this._dao_1.findByContentEntryUidWithDetailsAsFlow_i93hu3_k$(contentEntryUid, clazzUid, courseBlockUid, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ContentEntryDao_Repo$findByContentEntryUidWithDetailsAsFlow$slambda_0(this, contentEntryUid, clazzUid, courseBlockUid, accountPersonUid, null)); }; protoOf(ContentEntryDao_Repo).findBySourceUrl_lpfkne_k$ = function (sourceUrl) { var _result = this._dao_1.findBySourceUrl_lpfkne_k$(sourceUrl); return _result; }; protoOf(ContentEntryDao_Repo).findTitleByUidAsync_9gda26_k$ = function (entryUid, $completion) { var tmp = new $findTitleByUidAsyncCOROUTINE$103(this, entryUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).getChildrenByParentUid_j1qm2c_k$ = function (parentUid) { var _result = this._dao_1.getChildrenByParentUid_j1qm2c_k$(parentUid); return _result; }; protoOf(ContentEntryDao_Repo).getChildrenByParentAsync_e6cny5_k$ = function (parentUid, $completion) { var tmp = new $getChildrenByParentAsyncCOROUTINE$104(this, parentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).getCountNumberOfChildrenByParentUUidAsync_3fnk4t_k$ = function (parentUid, $completion) { var tmp = new $getCountNumberOfChildrenByParentUUidAsyncCOROUTINE$105(this, parentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).getContentByUuidAsync_zggu7v_k$ = function (parentUid, $completion) { var tmp = new $getContentByUuidAsyncCOROUTINE$106(this, parentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).findAllLanguageRelatedEntriesAsync_cyvxos_k$ = function (entryUuid, $completion) { var tmp = new $findAllLanguageRelatedEntriesAsyncCOROUTINE$107(this, entryUuid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).update_66rhet_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$update$lambda(this, entity)); }; protoOf(ContentEntryDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_66rhet_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_Repo).findByUidWithLanguageAsync_uknipg_k$ = function (uid, $completion) { var tmp = new $findByUidWithLanguageAsyncCOROUTINE$108(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).findByUid_w1fpv2_k$ = function (entryUid) { var _result = this._dao_1.findByUid_w1fpv2_k$(entryUid); return _result; }; protoOf(ContentEntryDao_Repo).findByTitle_85ew4y_k$ = function (title) { var _result = this._dao_1.findByTitle_85ew4y_k$(title); return _result; }; protoOf(ContentEntryDao_Repo).findBySourceUrlWithContentEntryStatusAsync_rmksxb_k$ = function (sourceUrl, $completion) { var tmp = new $findBySourceUrlWithContentEntryStatusAsyncCOROUTINE$109(this, sourceUrl, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).getChildrenByParentUidWithCategoryFilterOrderByName_zadow7_k$ = function (accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted) { var tmp = this._dao_1.getChildrenByParentUidWithCategoryFilterOrderByName_zadow7_k$(accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ContentEntryDao/getChildrenByParentUidWithCategoryFilterOrderByName', tmp, ContentEntryDao_Repo$getChildrenByParentUidWithCategoryFilterOrderByName$slambda_0(this, accountPersonUid, parentUid, langParam, categoryParam0, sortOrder, includeDeleted, null)); }; protoOf(ContentEntryDao_Repo).getContentFromMyCourses_mc08lt_k$ = function (accountPersonUid) { var _result = this._dao_1.getContentFromMyCourses_mc08lt_k$(accountPersonUid); return _result; }; protoOf(ContentEntryDao_Repo).getContentByOwner_4zkl6d_k$ = function (accountPersonUid) { var _result = this._dao_1.getContentByOwner_4zkl6d_k$(accountPersonUid); return _result; }; protoOf(ContentEntryDao_Repo).updateAsync_n24xlw_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$110(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).getChildrenByAll_g40xjb_k$ = function (parentUid) { var _result = this._dao_1.getChildrenByAll_g40xjb_k$(parentUid); return _result; }; protoOf(ContentEntryDao_Repo).findLiveContentEntry_5bv7w0_k$ = function (parentUid) { var _result = this._dao_1.findLiveContentEntry_5bv7w0_k$(parentUid); return _result; }; protoOf(ContentEntryDao_Repo).getContentEntryUidFromXapiObjectId_z050pf_k$ = function (objectId) { var _result = this._dao_1.getContentEntryUidFromXapiObjectId_z050pf_k$(objectId); return _result; }; protoOf(ContentEntryDao_Repo).findSimilarIdEntryForKhan_xatwfo_k$ = function (sourceUrl) { var _result = this._dao_1.findSimilarIdEntryForKhan_xatwfo_k$(sourceUrl); return _result; }; protoOf(ContentEntryDao_Repo).updateContentEntryInActive_a8or16_k$ = function (contentEntryUid, ceInactive, changedTime) { withRepoChangeMonitor(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$updateContentEntryInActive$lambda(this, contentEntryUid, ceInactive, changedTime)); }; protoOf(ContentEntryDao_Repo).updateContentEntryContentFlag_iukj1h_k$ = function (contentFlag, contentEntryUid, changedTime) { withRepoChangeMonitor(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$updateContentEntryContentFlag$lambda(this, contentFlag, contentEntryUid, changedTime)); }; protoOf(ContentEntryDao_Repo).getContentEntryFromUids_fl2ry3_k$ = function (contentEntryUids, $completion) { var tmp = new $getContentEntryFromUidsCOROUTINE$111(this, contentEntryUids, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).insert_8eq8rf_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentEntryDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_8eq8rf_k$(entity instanceof ContentEntry ? entity : THROW_CCE()); }; protoOf(ContentEntryDao_Repo).insertAsync_v71czu_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$112(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_v71czu_k$(entity instanceof ContentEntry ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryDao_Repo).insertList_czb5vf_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentEntry', ContentEntryDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentEntryDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_czb5vf_k$(entityList); }; function ContentEntryImportJobDao() { } function ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cjiUid = $_result.getLong_3wgf2g_k$('cjiUid'); var _tmp_sourceUri = $_result.getString_gb1pt9_k$('sourceUri'); var _tmp_cjiOriginalFilename = $_result.getString_gb1pt9_k$('cjiOriginalFilename'); var _tmp_cjiContentEntryUid = $_result.getLong_3wgf2g_k$('cjiContentEntryUid'); var _tmp_cjiParentContentEntryUid = $_result.getLong_3wgf2g_k$('cjiParentContentEntryUid'); var _tmp_cjiContentEntryVersion = $_result.getLong_3wgf2g_k$('cjiContentEntryVersion'); var _tmp_cjiItemProgress = $_result.getLong_3wgf2g_k$('cjiItemProgress'); var _tmp_cjiItemTotal = $_result.getLong_3wgf2g_k$('cjiItemTotal'); var _tmp_cjiStatus = $_result.getInt_npc9pd_k$('cjiStatus'); var _tmp_cjiRecursiveStatus = $_result.getInt_npc9pd_k$('cjiRecursiveStatus'); var _tmp_cjiPluginId = $_result.getInt_npc9pd_k$('cjiPluginId'); var _tmp_cjiParentCjiUid = $_result.getLong_3wgf2g_k$('cjiParentCjiUid'); var _tmp_cjiStartTime = $_result.getLong_3wgf2g_k$('cjiStartTime'); var _tmp_cjiFinishTime = $_result.getLong_3wgf2g_k$('cjiFinishTime'); var _tmp_cjiContentDeletedOnCancellation = $_result.getBoolean_xz3hoo_k$('cjiContentDeletedOnCancellation'); var _tmp_cjiCompressionLevel = $_result.getInt_npc9pd_k$('cjiCompressionLevel'); var _tmp_cjiError = $_result.getString_gb1pt9_k$('cjiError'); var _tmp_cjiErrorDismissed = $_result.getBoolean_xz3hoo_k$('cjiErrorDismissed'); var _tmp_cjiOwnerPersonUid = $_result.getLong_3wgf2g_k$('cjiOwnerPersonUid'); var _tmp_cjiParams = $_result.getString_gb1pt9_k$('cjiParams'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryImportJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryImportJobDao_JdbcImpl.findByUidAsync....' call this_0.set_cjiUid_520bub_k$(_tmp_cjiUid); this_0.set_sourceUri_cxuqfx_k$(_tmp_sourceUri); this_0.set_cjiOriginalFilename_wioxc6_k$(_tmp_cjiOriginalFilename); this_0.set_cjiContentEntryUid_auvyx8_k$(_tmp_cjiContentEntryUid); this_0.set_cjiParentContentEntryUid_56m7ai_k$(_tmp_cjiParentContentEntryUid); this_0.set_cjiContentEntryVersion_gz0d8c_k$(_tmp_cjiContentEntryVersion); this_0.set_cjiItemProgress_7dh35l_k$(_tmp_cjiItemProgress); this_0.set_cjiItemTotal_nqgzw2_k$(_tmp_cjiItemTotal); this_0.set_cjiStatus_kle71r_k$(_tmp_cjiStatus); this_0.set_cjiRecursiveStatus_uk8izt_k$(_tmp_cjiRecursiveStatus); this_0.set_cjiPluginId_8nr8b9_k$(_tmp_cjiPluginId); this_0.set_cjiParentCjiUid_exikw1_k$(_tmp_cjiParentCjiUid); this_0.set_cjiStartTime_j5vht8_k$(_tmp_cjiStartTime); this_0.set_cjiFinishTime_kuemah_k$(_tmp_cjiFinishTime); this_0.set_cjiContentDeletedOnCancellation_x1z53i_k$(_tmp_cjiContentDeletedOnCancellation); this_0.set_cjiCompressionLevel_p9rlj9_k$(_tmp_cjiCompressionLevel); this_0.set_cjiError_crtvak_k$(_tmp_cjiError); this_0.set_cjiErrorDismissed_g4yptb_k$(_tmp_cjiErrorDismissed); this_0.set_cjiOwnerPersonUid_mxouc1_k$(_tmp_cjiOwnerPersonUid); this_0.set_cjiParams_lov0yc_k$(_tmp_cjiParams); return this_0; }; } function ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda(_result) { return mapRows(_result, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda(_result)); } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cjiUid = $_result.getLong_3wgf2g_k$('cjiUid'); var _tmp_cjiItemProgress = $_result.getLong_3wgf2g_k$('cjiItemProgress'); var _tmp_cjiItemTotal = $_result.getLong_3wgf2g_k$('cjiItemTotal'); var _tmp_cjiStatus = $_result.getInt_npc9pd_k$('cjiStatus'); var _tmp_cjiError = $_result.getString_gb1pt9_k$('cjiError'); var _tmp_cjiOwnerPersonUid = $_result.getLong_3wgf2g_k$('cjiOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryImportJobProgress(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryImportJobDao_JdbcImpl.findInProgressJobsByContentEntryUid.....' call this_0.set_cjiUid_520bub_k$(_tmp_cjiUid); this_0.set_cjiItemProgress_7dh35l_k$(_tmp_cjiItemProgress); this_0.set_cjiItemTotal_nqgzw2_k$(_tmp_cjiItemTotal); this_0.set_cjiStatus_kle71r_k$(_tmp_cjiStatus); this_0.set_cjiError_crtvak_k$(_tmp_cjiError); this_0.set_cjiOwnerPersonUid_mxouc1_k$(_tmp_cjiOwnerPersonUid); return this_0; }; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).invoke_qydsp5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qydsp5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qydsp5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda$lambda(_result) { return mapRows(_result, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cjiUid = $_result.getLong_3wgf2g_k$('cjiUid'); var _tmp_cjiItemProgress = $_result.getLong_3wgf2g_k$('cjiItemProgress'); var _tmp_cjiItemTotal = $_result.getLong_3wgf2g_k$('cjiItemTotal'); var _tmp_cjiStatus = $_result.getInt_npc9pd_k$('cjiStatus'); var _tmp_cjiError = $_result.getString_gb1pt9_k$('cjiError'); var _tmp_cjiOwnerPersonUid = $_result.getLong_3wgf2g_k$('cjiOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryImportJobProgress(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryImportJobDao_JdbcImpl.findInProgressJobsByContentEntryUidAsync....' call this_0.set_cjiUid_520bub_k$(_tmp_cjiUid); this_0.set_cjiItemProgress_7dh35l_k$(_tmp_cjiItemProgress); this_0.set_cjiItemTotal_nqgzw2_k$(_tmp_cjiItemTotal); this_0.set_cjiStatus_kle71r_k$(_tmp_cjiStatus); this_0.set_cjiError_crtvak_k$(_tmp_cjiError); this_0.set_cjiOwnerPersonUid_mxouc1_k$(_tmp_cjiOwnerPersonUid); return this_0; }; } function ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryImportJob (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).bindPreparedStmtToEntity_6wkdq0_k$ = function (stmt, entity) { if (entity.get_cjiUid_bxbqqf_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cjiUid_bxbqqf_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_sourceUri_jko7yw_k$()); stmt.setString_2gt7ua_k$(3, entity.get_cjiOriginalFilename_5qc9rj_k$()); stmt.setLong_j1sybo_k$(4, entity.get_cjiContentEntryUid_ayw19a_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cjiParentContentEntryUid_lqm49g_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cjiContentEntryVersion_km06ca_k$()); stmt.setLong_j1sybo_k$(7, entity.get_cjiItemProgress_rooux3_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cjiItemTotal_aik9s8_k$()); stmt.setInt_c72a8z_k$(9, entity.get_cjiStatus_i13gad_k$()); stmt.setInt_c72a8z_k$(10, entity.get_cjiRecursiveStatus_a66z2j_k$()); stmt.setInt_c72a8z_k$(11, entity.get_cjiPluginId_mr5gsn_k$()); stmt.setLong_j1sybo_k$(12, entity.get_cjiParentCjiUid_bo2s9b_k$()); stmt.setLong_j1sybo_k$(13, entity.get_cjiStartTime_a5da96_k$()); stmt.setLong_j1sybo_k$(14, entity.get_cjiFinishTime_eqg509_k$()); stmt.setBoolean_pzdm1v_k$(15, entity.get_cjiContentDeletedOnCancellation_a7jylh_k$()); stmt.setInt_c72a8z_k$(16, entity.get_cjiCompressionLevel_5fa7jd_k$()); stmt.setString_2gt7ua_k$(17, entity.get_cjiError_oep7nz_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_cjiErrorDismissed_sti1cq_k$()); stmt.setLong_j1sybo_k$(19, entity.get_cjiOwnerPersonUid_7yysrl_k$()); stmt.setString_2gt7ua_k$(20, entity.get_cjiParams_jqdy8x_k$()); }; protoOf(ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_6wkdq0_k$(stmt, entity instanceof ContentEntryImportJob ? entity : THROW_CCE()); }; function ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda($status, $cjiUid, resultContinuation) { this.$status_1 = $status; this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setLong_j1sybo_k$(2, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda(this.$status_1, this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda_0($status, $cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda($status, $cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda($status, $error, $cjiUid, resultContinuation) { this.$status_1 = $status; this.$error_1 = $error; this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setString_2gt7ua_k$(2, this.$error_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda(this.$status_1, this.$error_1, this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda_0($status, $error, $cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda($status, $error, $cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda($dismissed, $cjiUid, resultContinuation) { this.$dismissed_1 = $dismissed; this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$dismissed_1); this._stmt_1.setLong_j1sybo_k$(2, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda(this.$dismissed_1, this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda_0($dismissed, $cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda($dismissed, $cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda($cjiProgress, $cjiTotal, $cjiUid, resultContinuation) { this.$cjiProgress_1 = $cjiProgress; this.$cjiTotal_1 = $cjiTotal; this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cjiProgress_1); this._stmt_1.setLong_j1sybo_k$(2, this.$cjiTotal_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda(this.$cjiProgress_1, this.$cjiTotal_1, this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda_0($cjiProgress, $cjiTotal, $cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda($cjiProgress, $cjiTotal, $cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda($cjiUid, resultContinuation) { this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda).invoke_62q1nq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_62q1nq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda(this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda_0($cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda($cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_62q1nq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda($cjiUid, resultContinuation) { this.$cjiUid_1 = $cjiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cjiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda(this.$cjiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda_0($cjiUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda($cjiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).invoke_ggn3rx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_ggn3rx_k$($completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = CAST(? AS BIGINT)\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n ', VOID, VOID, VOID, '\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = ?\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda$slambda_0(this.$contentEntryUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this.this$0__1, this.$contentEntryUid_1, completion); }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_ggn3rx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda).invoke_qydsp5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qydsp5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qydsp5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertJobItemCOROUTINE$113(_this__u8e3s4, jobItem, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobItem_1 = jobItem; } protoOf($insertJobItemCOROUTINE$113).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryImportJob_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.jobItem_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateItemStatusCOROUTINE$114(_this__u8e3s4, cjiUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cjiUid_1 = cjiUid; this.status_1 = status; } protoOf($updateItemStatusCOROUTINE$114).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryImportJob \n SET cjiStatus = ?\n WHERE cjiUid= CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryImportJob \n SET cjiStatus = ?\n WHERE cjiUid= ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$updateItemStatus$slambda_0(this.status_1, this.cjiUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateItemStatusAndErrorCOROUTINE$115(_this__u8e3s4, cjiUid, status, error, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cjiUid_1 = cjiUid; this.status_1 = status; this.error_1 = error; } protoOf($updateItemStatusAndErrorCOROUTINE$115).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryImportJob \n SET cjiStatus = ?,\n cjiError = ?\n WHERE cjiUid= CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryImportJob \n SET cjiStatus = ?,\n cjiError = ?\n WHERE cjiUid= ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$updateItemStatusAndError$slambda_0(this.status_1, this.error_1, this.cjiUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateErrorDismissedCOROUTINE$116(_this__u8e3s4, cjiUid, dismissed, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cjiUid_1 = cjiUid; this.dismissed_1 = dismissed; } protoOf($updateErrorDismissedCOROUTINE$116).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryImportJob\n SET cjiErrorDismissed = ?\n WHERE cjiUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryImportJob\n SET cjiErrorDismissed = ?\n WHERE cjiUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$updateErrorDismissed$slambda_0(this.dismissed_1, this.cjiUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateItemProgressCOROUTINE$117(_this__u8e3s4, cjiUid, cjiProgress, cjiTotal, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cjiUid_1 = cjiUid; this.cjiProgress_1 = cjiProgress; this.cjiTotal_1 = cjiTotal; } protoOf($updateItemProgressCOROUTINE$117).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryImportJob\n SET cjiItemProgress = CAST(? AS BIGINT),\n cjiItemTotal = CAST(? AS BIGINT)\n WHERE cjiUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryImportJob\n SET cjiItemProgress = ?,\n cjiItemTotal = ?\n WHERE cjiUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryImportJobDao_JdbcImpl$updateItemProgress$slambda_0(this.cjiProgress_1, this.cjiTotal_1, this.cjiUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryImportJobDao_JdbcImpl(_db) { ContentEntryImportJobDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryImportJob_abort_1 = new ContentEntryImportJobDao_JdbcImpl$_insertAdapterContentEntryImportJob_abort$1(this); } protoOf(ContentEntryImportJobDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryImportJobDao_JdbcImpl).get__insertAdapterContentEntryImportJob_abort_t1xosw_k$ = function () { return this._insertAdapterContentEntryImportJob_abort_1; }; protoOf(ContentEntryImportJobDao_JdbcImpl).insertJobItem_j2eghy_k$ = function (jobItem, $completion) { var tmp = new $insertJobItemCOROUTINE$113(this, jobItem, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl).updateItemStatus_k7xgrl_k$ = function (cjiUid, status, $completion) { var tmp = new $updateItemStatusCOROUTINE$114(this, cjiUid, status, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl).updateItemStatusAndError_d0glqt_k$ = function (cjiUid, status, error, $completion) { var tmp = new $updateItemStatusAndErrorCOROUTINE$115(this, cjiUid, status, error, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl).updateErrorDismissed_hxlga2_k$ = function (cjiUid, dismissed, $completion) { var tmp = new $updateErrorDismissedCOROUTINE$116(this, cjiUid, dismissed, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl).updateItemProgress_o8j3m_k$ = function (cjiUid, cjiProgress, cjiTotal, $completion) { var tmp = new $updateItemProgressCOROUTINE$117(this, cjiUid, cjiProgress, cjiTotal, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryImportJobDao_JdbcImpl).findByUidAsync_bmdy5c_k$ = function (cjiUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryImportJob.*\n FROM ContentEntryImportJob\n WHERE cjiUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntryImportJob.*\n FROM ContentEntryImportJob\n WHERE cjiUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryImportJobDao_JdbcImpl$findByUidAsync$slambda_0(cjiUid, null), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl).findOwnerByUidAsync_kk0uta_k$ = function (cjiUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiUid = CAST(? AS BIGINT)), 0)\n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiUid = ?), 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryImportJobDao_JdbcImpl$findOwnerByUidAsync$slambda_0(cjiUid, null), $completion); }; protoOf(ContentEntryImportJobDao_JdbcImpl).findInProgressJobsByContentEntryUid_3k6kmp_k$ = function (contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryImportJob']; return doorFlow(this._db_1, tmp, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUid$slambda_0(this, contentEntryUid, null)); }; protoOf(ContentEntryImportJobDao_JdbcImpl).findInProgressJobsByContentEntryUidAsync_miaa84_k$ = function (contentEntryUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = CAST(? AS BIGINT)\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n ', VOID, VOID, VOID, '\n SELECT ContentEntryImportJob.cjiUid,\n ContentEntryImportJob.cjiItemProgress,\n ContentEntryImportJob.cjiItemTotal,\n ContentEntryImportJob.cjiStatus,\n ContentEntryImportJob.cjiError,\n ContentEntryImportJob.cjiOwnerPersonUid\n FROM ContentEntryImportJob\n WHERE ContentEntryImportJob.cjiContentEntryUid = ?\n AND ( ContentEntryImportJob.cjiStatus BETWEEN 4 AND 20\n OR (ContentEntryImportJob.cjiStatus = 25 AND NOT ContentEntryImportJob.cjiErrorDismissed))\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryImportJobDao_JdbcImpl$findInProgressJobsByContentEntryUidAsync$slambda_0(contentEntryUid, null), $completion); }; function ContentEntryParentChildJoinDao() { } function _get__db__e63s44_11($this) { return $this._db_1; } function _get__dao__d2kw60_9($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$118(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$118).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cepcjUid_pthbj8_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(7, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cepcjUid_psyd4q_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cepcjLct_hfnl5z_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_iq3ee0_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$119(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$119).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cepcjUid_pthbj8_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(7, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cepcjUid_psyd4q_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cepcjLct_hfnl5z_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cepcjUid_pthbj8_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryParentChildJoinDao_DoorWrapper(_db, _dao) { ContentEntryParentChildJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertListAsync_iq3ee0_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$118(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).publicContentEntryParentChildJoins_ba9ohz_k$ = function () { throw IllegalStateException_init_$Create$('publicContentEntryParentChildJoins: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).all_22ld_k$ = function () { throw IllegalStateException_init_$Create$('all: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).findParentByChildUuids_mjhjqw_k$ = function (childEntryContentUid) { throw IllegalStateException_init_$Create$('findParentByChildUuids: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).findListOfParentsByChildUuid_vrnzd_k$ = function (childEntryContentUid) { throw IllegalStateException_init_$Create$('findListOfParentsByChildUuid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).findListOfChildsByParentUuid_m1hzas_k$ = function (parentUid, $completion) { return this._dao_1.findListOfChildsByParentUuid_m1hzas_k$(parentUid, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).findJoinByParentChildUuids_1axps0_k$ = function (parentUid, childUid) { throw IllegalStateException_init_$Create$('findJoinByParentChildUuids: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).selectTopEntries_giv46k_k$ = function ($completion) { return this._dao_1.selectTopEntries_giv46k_k$($completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).replaceList_3rtrcs_k$ = function (entries) { throw IllegalStateException_init_$Create$('replaceList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertWithReplace_6dl3ur_k$ = function (parentChildJoinDao) { throw IllegalStateException_init_$Create$('insertWithReplace: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).moveListOfEntriesToNewParent_226j44_k$ = function (contentEntryUid, selectedItems, updateTime, $completion) { return this._dao_1.moveListOfEntriesToNewParent_226j44_k$(contentEntryUid, selectedItems, updateTime, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).setEntriesDeleted_jml36v_k$ = function (selectedUids, isDeleted, updateTime, $completion) { return this._dao_1.setEntriesDeleted_jml36v_k$(selectedUids, isDeleted, updateTime, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).findByUid_1euqdk_k$ = function (uid, $completion) { return this._dao_1.findByUid_1euqdk_k$(uid, $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insert_lpxq1d_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_lpxq1d_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertAsync_z8kaly_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$119(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_z8kaly_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertList_19jpfl_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_19jpfl_k$(entityList); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).update_po0agh_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryParentChildJoinDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_po0agh_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda$lambda(_result) { return mapRows(_result, ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.findListOfChildsByParentUuid....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda$lambda(_result) { return mapRows(_result, ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var _tmp_title = $_result.getString_gb1pt9_k$('title'); var _tmp_description = $_result.getString_gb1pt9_k$('description'); var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var _tmp_author = $_result.getString_gb1pt9_k$('author'); var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.selectTopEntries....' call this_0.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_0.set_title_ceyuu4_k$(_tmp_title); this_0.set_description_s1386w_k$(_tmp_description); this_0.set_entryId_b4l6o7_k$(_tmp_entryId); this_0.set_author_btovnz_k$(_tmp_author); this_0.set_publisher_u973bc_k$(_tmp_publisher); this_0.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_0.set_licenseName_gyoh54_k$(_tmp_licenseName); this_0.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_0.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_0.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_0.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_0.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_0.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_0.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_0.set_leaf_nt94be_k$(_tmp_leaf); this_0.set_publik_bkafrt_k$(_tmp_publik); this_0.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_0.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_0.set_minScore_d3l9dh_k$(_tmp_minScore); this_0.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_0.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_0.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_0.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.findByUid....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).bindPreparedStmtToEntity_ggdinw_k$ = function (stmt, entity) { if (entity.get_cepcjUid_pthbj8_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cepcjUid_pthbj8_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cepcjLocalChangeSeqNum_sk3iga_k$()); stmt.setLong_j1sybo_k$(3, entity.get_cepcjMasterChangeSeqNum_kmdt0l_k$()); stmt.setInt_c72a8z_k$(4, entity.get_cepcjLastChangedBy_jzrn2h_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cepcjLct_pth4q9_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_cepcjDeleted_h9leab_k$()); stmt.setLong_j1sybo_k$(7, entity.get_cepcjParentContentEntryUid_27xw81_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cepcjChildContentEntryUid_mkd6kn_k$()); stmt.setInt_c72a8z_k$(9, entity.get_childIndex_1wd0v3_k$()); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ggdinw_k$(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).bindPreparedStmtToEntity_ggdinw_k$ = function (stmt, entity) { if (entity.get_cepcjUid_pthbj8_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cepcjUid_pthbj8_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cepcjLocalChangeSeqNum_sk3iga_k$()); stmt.setLong_j1sybo_k$(3, entity.get_cepcjMasterChangeSeqNum_kmdt0l_k$()); stmt.setInt_c72a8z_k$(4, entity.get_cepcjLastChangedBy_jzrn2h_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cepcjLct_pth4q9_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_cepcjDeleted_h9leab_k$()); stmt.setLong_j1sybo_k$(7, entity.get_cepcjParentContentEntryUid_27xw81_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cepcjChildContentEntryUid_mkd6kn_k$()); stmt.setInt_c72a8z_k$(9, entity.get_childIndex_1wd0v3_k$()); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ggdinw_k$(stmt, entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryParentChildJoinDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_cepcjLocalChangeSeqNum_sk3iga_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_cepcjMasterChangeSeqNum_kmdt0l_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_cepcjLastChangedBy_jzrn2h_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_cepcjLct_pth4q9_k$()); _stmt.setBoolean_pzdm1v_k$(5, $entity.get_cepcjDeleted_h9leab_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_cepcjParentContentEntryUid_27xw81_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_cepcjChildContentEntryUid_mkd6kn_k$()); _stmt.setInt_c72a8z_k$(8, $entity.get_childIndex_1wd0v3_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_cepcjUid_pthbj8_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda$lambda); } function ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda$lambda(_result) { return mapRows(_result, ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.publicContentEntryParentChildJoins....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$all$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryParentChildJoinDao_JdbcImpl$all$lambda$lambda); } function ContentEntryParentChildJoinDao_JdbcImpl$all$lambda$lambda(_result) { return mapRows(_result, ContentEntryParentChildJoinDao_JdbcImpl$all$lambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$all$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.all....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.findParentByChildUuids....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda($childEntryContentUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $childEntryContentUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda$lambda); }; } function ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda$lambda(_result) { return mapRows(_result, ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.findListOfParentsByChildUuid....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda($childEntryContentUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $childEntryContentUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda$lambda); }; } function ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda($parentUid, resultContinuation) { this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda).invoke_q7d6q3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_q7d6q3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda(this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda_0($parentUid, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda($parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_q7d6q3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda$lambda(_result)); } function ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cepcjUid = $_result.getLong_3wgf2g_k$('cepcjUid'); var _tmp_cepcjLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjLocalChangeSeqNum'); var _tmp_cepcjMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cepcjMasterChangeSeqNum'); var _tmp_cepcjLastChangedBy = $_result.getInt_npc9pd_k$('cepcjLastChangedBy'); var _tmp_cepcjLct = $_result.getLong_3wgf2g_k$('cepcjLct'); var _tmp_cepcjDeleted = $_result.getBoolean_xz3hoo_k$('cepcjDeleted'); var _tmp_cepcjParentContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjParentContentEntryUid'); var _tmp_cepcjChildContentEntryUid = $_result.getLong_3wgf2g_k$('cepcjChildContentEntryUid'); var _tmp_childIndex = $_result.getInt_npc9pd_k$('childIndex'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryParentChildJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryParentChildJoinDao_JdbcImpl.findJoinByParentChildUuids....' call this_0.set_cepcjUid_psyd4q_k$(_tmp_cepcjUid); this_0.set_cepcjLocalChangeSeqNum_grk6p8_k$(_tmp_cepcjLocalChangeSeqNum); this_0.set_cepcjMasterChangeSeqNum_y04fm5_k$(_tmp_cepcjMasterChangeSeqNum); this_0.set_cepcjLastChangedBy_djiuqd_k$(_tmp_cepcjLastChangedBy); this_0.set_cepcjLct_hfnl5z_k$(_tmp_cepcjLct); this_0.set_cepcjDeleted_vbtces_k$(_tmp_cepcjDeleted); this_0.set_cepcjParentContentEntryUid_oowyqx_k$(_tmp_cepcjParentContentEntryUid); this_0.set_cepcjChildContentEntryUid_xs79pn_k$(_tmp_cepcjChildContentEntryUid); this_0.set_childIndex_yj4tez_k$(_tmp_childIndex); return this_0; }; } function ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda($parentUid, $childUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $parentUid); _stmt.setLong_j1sybo_k$(2, $childUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda$lambda); }; } function ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda).invoke_rodcvz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rodcvz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda_0(resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rodcvz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$updateTime_1 = $updateTime; this.$selectedItems_1 = $selectedItems; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$selectedItems_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda(this.$contentEntryUid_1, this.$updateTime_1, this.$selectedItems_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0($contentEntryUid, $updateTime, $selectedItems, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda($contentEntryUid, $updateTime, $selectedItems, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation) { this.$isDeleted_1 = $isDeleted; this.$updateTime_1 = $updateTime; this.$selectedUids_1 = $selectedUids; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$isDeleted_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$selectedUids_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda(this.$isDeleted_1, this.$updateTime_1, this.$selectedUids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0($isDeleted, $updateTime, $selectedUids, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda($isDeleted, $updateTime, $selectedUids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda).invoke_ijdlp2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ijdlp2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ijdlp2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$120(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$120).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryParentChildJoin_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $moveListOfEntriesToNewParentCOROUTINE$121(_this__u8e3s4, contentEntryUid, selectedItems, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; this.selectedItems_1 = selectedItems; this.updateTime_1 = updateTime; } protoOf($moveListOfEntriesToNewParentCOROUTINE$121).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryParentChildJoin \n SET cepcjParentContentEntryUid = CAST(? AS BIGINT), \n cepcjLct = CAST(? AS BIGINT) \n WHERE cepcjUid IN (?)\n ', true, VOID, VOID, '\n UPDATE ContentEntryParentChildJoin \n SET cepcjParentContentEntryUid = ?, \n cepcjLct = ? \n WHERE cepcjUid IN (?)\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$moveListOfEntriesToNewParent$slambda_0(this.contentEntryUid_1, this.updateTime_1, this.selectedItems_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $setEntriesDeletedCOROUTINE$122(_this__u8e3s4, selectedUids, isDeleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.selectedUids_1 = selectedUids; this.isDeleted_1 = isDeleted; this.updateTime_1 = updateTime; } protoOf($setEntriesDeletedCOROUTINE$122).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryParentChildJoin\n SET cepcjDeleted = ?,\n cepcjLct = CAST(? AS BIGINT)\n WHERE cepcjUid IN (?) \n ', true, VOID, VOID, '\n UPDATE ContentEntryParentChildJoin\n SET cepcjDeleted = ?,\n cepcjLct = ?\n WHERE cepcjUid IN (?) \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryParentChildJoinDao_JdbcImpl$setEntriesDeleted$slambda_0(this.isDeleted_1, this.updateTime_1, this.selectedUids_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryParentChildJoinDao_JdbcImpl(_db) { ContentEntryParentChildJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryParentChildJoin_abort_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterContentEntryParentChildJoin_upsert_1 = new ContentEntryParentChildJoinDao_JdbcImpl$_insertAdapterContentEntryParentChildJoin_upsert$1(this); } protoOf(ContentEntryParentChildJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).get__insertAdapterContentEntryParentChildJoin_abort_jt2pgs_k$ = function () { return this._insertAdapterContentEntryParentChildJoin_abort_1; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).get__insertAdapterContentEntryParentChildJoin_upsert_yxcevf_k$ = function () { return this._insertAdapterContentEntryParentChildJoin_upsert_1; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertListAsync_iq3ee0_k$ = function (entityList, $completion) { return this._insertAdapterContentEntryParentChildJoin_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).replaceList_3rtrcs_k$ = function (entries) { this._insertAdapterContentEntryParentChildJoin_upsert_1.insertList_bfvuij_k$(entries); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertWithReplace_6dl3ur_k$ = function (parentChildJoinDao) { this._insertAdapterContentEntryParentChildJoin_upsert_1.insert_fs66hy_k$(parentChildJoinDao); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insert_lpxq1d_k$ = function (entity) { var _retVal = this._insertAdapterContentEntryParentChildJoin_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_lpxq1d_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertAsync_z8kaly_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$120(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_z8kaly_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertList_19jpfl_k$ = function (entityList) { this._insertAdapterContentEntryParentChildJoin_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_19jpfl_k$(entityList); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).update_po0agh_k$ = function (entity) { var _sql = 'UPDATE ContentEntryParentChildJoin SET cepcjLocalChangeSeqNum = ?, cepcjMasterChangeSeqNum = ?, cepcjLastChangedBy = ?, cepcjLct = ?, cepcjDeleted = ?, cepcjParentContentEntryUid = ?, cepcjChildContentEntryUid = ?, childIndex = ? WHERE cepcjUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentEntryParentChildJoinDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_po0agh_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).publicContentEntryParentChildJoins_ba9ohz_k$ = function () { var tmp = new PreparedStatementConfig('SELECT ContentEntryParentChildJoin.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntry parentEntry ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = parentEntry.contentEntryUid LEFT JOIN ContentEntry childEntry ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = childEntry.contentEntryUid WHERE parentEntry.publik AND childEntry.publik', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$publicContentEntryParentChildJoins$lambda); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).all_22ld_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntryParentChildJoin', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$all$lambda); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).findParentByChildUuids_mjhjqw_k$ = function (childEntryContentUid) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ? LIMIT 1\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$findParentByChildUuids$lambda(childEntryContentUid)); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).findListOfParentsByChildUuid_vrnzd_k$ = function (childEntryContentUid) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$findListOfParentsByChildUuid$lambda(childEntryContentUid)); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).findListOfChildsByParentUuid_m1hzas_k$ = function (parentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ContentEntryParentChildJoin \n WHERE cepcjParentContentEntryUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ContentEntryParentChildJoin \n WHERE cepcjParentContentEntryUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$findListOfChildsByParentUuid$slambda_0(parentUid, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).findJoinByParentChildUuids_1axps0_k$ = function (parentUid, childUid) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = CAST(? AS BIGINT) AND cepcjChildContentEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = ? AND cepcjChildContentEntryUid = ? LIMIT 1\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$findJoinByParentChildUuids$lambda(parentUid, childUid)); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).selectTopEntries_giv46k_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT ContentEntry.* FROM ContentEntry WHERE NOT EXISTS(SELECT cepcjUid FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ContentEntry.contentEntryUid) AND EXISTS(SELECT cepcjUid FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = ContentEntry.contentEntryUid)', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$selectTopEntries$slambda_0(null), $completion); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).moveListOfEntriesToNewParent_226j44_k$ = function (contentEntryUid, selectedItems, updateTime, $completion) { var tmp = new $moveListOfEntriesToNewParentCOROUTINE$121(this, contentEntryUid, selectedItems, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).setEntriesDeleted_jml36v_k$ = function (selectedUids, isDeleted, updateTime, $completion) { var tmp = new $setEntriesDeletedCOROUTINE$122(this, selectedUids, isDeleted, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_JdbcImpl).findByUid_1euqdk_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryParentChildJoin.*\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ContentEntryParentChildJoin.*\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryParentChildJoinDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; function ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_iq3ee0_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$replaceList$lambda(this$0, $entries) { return function () { this$0._dao_1.replaceList_3rtrcs_k$($entries); return Unit_getInstance(); }; } function ContentEntryParentChildJoinDao_Repo$insertWithReplace$lambda(this$0, $parentChildJoinDao) { return function () { this$0._dao_1.insertWithReplace_6dl3ur_k$($parentChildJoinDao); return Unit_getInstance(); }; } function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$selectedItems_1 = $selectedItems; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.moveListOfEntriesToNewParent_226j44_k$(this.$contentEntryUid_1, this.$selectedItems_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this.this$0__1, this.$contentEntryUid_1, this.$selectedItems_1, this.$updateTime_1, completion); }; function ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda(this$0, $contentEntryUid, $selectedItems, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$selectedUids_1 = $selectedUids; this.$isDeleted_1 = $isDeleted; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.setEntriesDeleted_jml36v_k$(this.$selectedUids_1, this.$isDeleted_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this.this$0__1, this.$selectedUids_1, this.$isDeleted_1, this.$updateTime_1, completion); }; function ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda(this$0, $selectedUids, $isDeleted, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryParentChildJoinDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryParentChildJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryParentChildJoinDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ContentEntryParentChildJoinDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findListOfChildsByParentUuidCOROUTINE$123(_this__u8e3s4, parentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.parentUid_1 = parentUid; } protoOf($findListOfChildsByParentUuidCOROUTINE$123).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findListOfChildsByParentUuid_m1hzas_k$(this.parentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $selectTopEntriesCOROUTINE$124(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($selectTopEntriesCOROUTINE$124).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.selectTopEntries_giv46k_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidCOROUTINE$125(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidCOROUTINE$125).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_1euqdk_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$126(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$126).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryParentChildJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryParentChildJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentEntryParentChildJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryParentChildJoinDao_Repo).insertListAsync_iq3ee0_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).publicContentEntryParentChildJoins_ba9ohz_k$ = function () { var _result = this._dao_1.publicContentEntryParentChildJoins_ba9ohz_k$(); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).all_22ld_k$ = function () { var _result = this._dao_1.all_22ld_k$(); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).findParentByChildUuids_mjhjqw_k$ = function (childEntryContentUid) { var _result = this._dao_1.findParentByChildUuids_mjhjqw_k$(childEntryContentUid); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).findListOfParentsByChildUuid_vrnzd_k$ = function (childEntryContentUid) { var _result = this._dao_1.findListOfParentsByChildUuid_vrnzd_k$(childEntryContentUid); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).findListOfChildsByParentUuid_m1hzas_k$ = function (parentUid, $completion) { var tmp = new $findListOfChildsByParentUuidCOROUTINE$123(this, parentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo).findJoinByParentChildUuids_1axps0_k$ = function (parentUid, childUid) { var _result = this._dao_1.findJoinByParentChildUuids_1axps0_k$(parentUid, childUid); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).selectTopEntries_giv46k_k$ = function ($completion) { var tmp = new $selectTopEntriesCOROUTINE$124(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo).replaceList_3rtrcs_k$ = function (entries) { withRepoChangeMonitor(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$replaceList$lambda(this, entries)); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertWithReplace_6dl3ur_k$ = function (parentChildJoinDao) { withRepoChangeMonitor(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertWithReplace$lambda(this, parentChildJoinDao)); }; protoOf(ContentEntryParentChildJoinDao_Repo).moveListOfEntriesToNewParent_226j44_k$ = function (contentEntryUid, selectedItems, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$moveListOfEntriesToNewParent$slambda_0(this, contentEntryUid, selectedItems, updateTime, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).setEntriesDeleted_jml36v_k$ = function (selectedUids, isDeleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$setEntriesDeleted$slambda_0(this, selectedUids, isDeleted, updateTime, null), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).findByUid_1euqdk_k$ = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$125(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo).insert_lpxq1d_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentEntryParentChildJoinDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_lpxq1d_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertAsync_z8kaly_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$126(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_z8kaly_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertList_19jpfl_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentEntryParentChildJoinDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_19jpfl_k$(entityList); }; protoOf(ContentEntryParentChildJoinDao_Repo).update_po0agh_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentEntryParentChildJoin', ContentEntryParentChildJoinDao_Repo$update$lambda(this, entity)); }; protoOf(ContentEntryParentChildJoinDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_po0agh_k$(entity instanceof ContentEntryParentChildJoin ? entity : THROW_CCE()); }; function ContentEntryPicture2Dao() { } function _get__db__e63s44_12($this) { return $this._db_1; } function _get__dao__d2kw60_10($this) { return $this._dao_1; } function ContentEntryPicture2Dao_DoorWrapper(_db, _dao) { ContentEntryPicture2Dao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryPicture2Dao_DoorWrapper).upsertListAsync_gpq206_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.ContentEntryPicture2Dao_DoorWrapper.upsertListAsync.' call element.set_cepLct_jp50ni_k$(systemTimeInMillis()); } return this._dao_1.upsertListAsync_gpq206_k$(entities, $completion); }; protoOf(ContentEntryPicture2Dao_DoorWrapper).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return this._dao_1.updateUri_m1qgqu_k$(uid, uri, thumbnailUri, time, $completion); }; function ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ContentEntryPicture2 (cepUid, cepLct, cepPictureUri, cepThumbnailUri) VALUES(?, ?, ?, ?)'; }; protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).bindPreparedStmtToEntity_frtucy_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_cepUid_bup8ob_k$()); stmt.setLong_j1sybo_k$(2, entity.get_cepLct_bup1vc_k$()); stmt.setString_2gt7ua_k$(3, entity.get_cepPictureUri_z88ker_k$()); stmt.setString_2gt7ua_k$(4, entity.get_cepThumbnailUri_jl1i1n_k$()); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_frtucy_k$(stmt, entity instanceof ContentEntryPicture2 ? entity : THROW_CCE()); }; function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$uri_1); this._stmt_1.setString_2gt7ua_k$(2, this.$thumbnailUri_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda(this.$uri_1, this.$thumbnailUri_1, this.$time_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$127(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.uri_1 = uri; this.thumbnailUri_1 = thumbnailUri; this.time_1 = time; } protoOf($updateUriCOROUTINE$127).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ContentEntryPicture2\n SET cepPictureUri = ?,\n cepThumbnailUri = ?,\n cepLct = CAST(? AS BIGINT)\n WHERE cepUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE ContentEntryPicture2\n SET cepPictureUri = ?,\n cepThumbnailUri = ?,\n cepLct = ?\n WHERE cepUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryPicture2Dao_JdbcImpl$updateUri$slambda_0(this.uri_1, this.thumbnailUri_1, this.time_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryPicture2Dao_JdbcImpl(_db) { ContentEntryPicture2Dao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryPicture2_upsert_1 = new ContentEntryPicture2Dao_JdbcImpl$_insertAdapterContentEntryPicture2_upsert$1(this); } protoOf(ContentEntryPicture2Dao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryPicture2Dao_JdbcImpl).get__insertAdapterContentEntryPicture2_upsert_qimkpr_k$ = function () { return this._insertAdapterContentEntryPicture2_upsert_1; }; protoOf(ContentEntryPicture2Dao_JdbcImpl).upsertListAsync_gpq206_k$ = function (entities, $completion) { return this._insertAdapterContentEntryPicture2_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ContentEntryPicture2Dao_JdbcImpl).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$127(this, uid, uri, thumbnailUri, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_gpq206_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPicture2Dao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ContentEntryPicture2Dao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUri_m1qgqu_k$(this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPicture2Dao_Repo$updateUri$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryPicture2Dao_Repo$updateUri$slambda(this.this$0__1, this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, completion); }; function ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new ContentEntryPicture2Dao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryPicture2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryPicture2Dao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentEntryPicture2Dao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryPicture2Dao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryPicture2Dao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryPicture2Dao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryPicture2Dao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryPicture2Dao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryPicture2Dao_Repo).upsertListAsync_gpq206_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ContentEntryPicture2Dao_Repo).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryPicture2', ContentEntryPicture2Dao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function ContentEntryPictureDao() { } function _get__db__e63s44_13($this) { return $this._db_1; } function _get__dao__d2kw60_11($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$128(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$128).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cepUid_bup8ob_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(138, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cepUid_s2fsm9_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cepTimestamp_vlvzon_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cepUid_bup8ob_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryPictureDao_DoorWrapper(_db, _dao) { ContentEntryPictureDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryPictureDao_DoorWrapper).findByContentEntryUidAsync_8n2iwx_k$ = function (entryUid, $completion) { return this._dao_1.findByContentEntryUidAsync_8n2iwx_k$(entryUid, $completion); }; protoOf(ContentEntryPictureDao_DoorWrapper).findByContentEntryUidLive_2lnsmz_k$ = function (entryUid) { return this._dao_1.findByContentEntryUidLive_2lnsmz_k$(entryUid); }; protoOf(ContentEntryPictureDao_DoorWrapper).updateAsync_5l7uos_k$ = function (ContentEntryPicture, $completion) { ContentEntryPicture.set_cepTimestamp_vlvzon_k$(systemTimeInMillis()); return this._dao_1.updateAsync_5l7uos_k$(ContentEntryPicture, $completion); }; protoOf(ContentEntryPictureDao_DoorWrapper).insert_qr2mj1_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryPictureDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_qr2mj1_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; protoOf(ContentEntryPictureDao_DoorWrapper).insertAsync_wsif3g_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$128(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_wsif3g_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_DoorWrapper).insertList_5ec1sz_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryPictureDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_5ec1sz_k$(entityList); }; protoOf(ContentEntryPictureDao_DoorWrapper).update_lt0w4t_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryPictureDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_lt0w4t_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var _tmp_cepContentEntryUid = $_result.getLong_3wgf2g_k$('cepContentEntryUid'); var _tmp_cepUri = $_result.getString_gb1pt9_k$('cepUri'); var _tmp_cepMd5 = $_result.getString_gb1pt9_k$('cepMd5'); var _tmp_cepFileSize = $_result.getInt_npc9pd_k$('cepFileSize'); var _tmp_cepTimestamp = $_result.getLong_3wgf2g_k$('cepTimestamp'); var _tmp_cepMimeType = $_result.getString_gb1pt9_k$('cepMimeType'); var _tmp_cepActive = $_result.getBoolean_xz3hoo_k$('cepActive'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryPictureDao_JdbcImpl.findByContentEntryUidAsync....' call this_0.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_0.set_cepContentEntryUid_up5wc8_k$(_tmp_cepContentEntryUid); this_0.set_cepUri_mg6dic_k$(_tmp_cepUri); this_0.set_cepMd5_loo4y2_k$(_tmp_cepMd5); this_0.set_cepFileSize_o3ewbe_k$(_tmp_cepFileSize); this_0.set_cepTimestamp_vlvzon_k$(_tmp_cepTimestamp); this_0.set_cepMimeType_a6gyx4_k$(_tmp_cepMimeType); this_0.set_cepActive_cro1um_k$(_tmp_cepActive); return this_0; }; } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda$lambda$lambda(_result)); } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var _tmp_cepContentEntryUid = $_result.getLong_3wgf2g_k$('cepContentEntryUid'); var _tmp_cepUri = $_result.getString_gb1pt9_k$('cepUri'); var _tmp_cepMd5 = $_result.getString_gb1pt9_k$('cepMd5'); var _tmp_cepFileSize = $_result.getInt_npc9pd_k$('cepFileSize'); var _tmp_cepTimestamp = $_result.getLong_3wgf2g_k$('cepTimestamp'); var _tmp_cepMimeType = $_result.getString_gb1pt9_k$('cepMimeType'); var _tmp_cepActive = $_result.getBoolean_xz3hoo_k$('cepActive'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryPictureDao_JdbcImpl.findByContentEntryUidLive.....' call this_0.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_0.set_cepContentEntryUid_up5wc8_k$(_tmp_cepContentEntryUid); this_0.set_cepUri_mg6dic_k$(_tmp_cepUri); this_0.set_cepMd5_loo4y2_k$(_tmp_cepMd5); this_0.set_cepFileSize_o3ewbe_k$(_tmp_cepFileSize); this_0.set_cepTimestamp_vlvzon_k$(_tmp_cepTimestamp); this_0.set_cepMimeType_a6gyx4_k$(_tmp_cepMimeType); this_0.set_cepActive_cro1um_k$(_tmp_cepActive); return this_0; }; } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda($entryUid, resultContinuation) { this.$entryUid_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda).invoke_lj2bpo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_lj2bpo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda(this.$entryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_lj2bpo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).bindPreparedStmtToEntity_axj202_k$ = function (stmt, entity) { if (entity.get_cepUid_bup8ob_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cepUid_bup8ob_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cepContentEntryUid_hz83v2_k$()); stmt.setString_2gt7ua_k$(3, entity.get_cepUri_bup8w7_k$()); stmt.setString_2gt7ua_k$(4, entity.get_cepMd5_bup2l5_k$()); stmt.setInt_c72a8z_k$(5, entity.get_cepFileSize_9l6d7i_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cepTimestamp_9r931t_k$()); stmt.setString_2gt7ua_k$(7, entity.get_cepMimeType_kg2mp9_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_cepActive_2uufd7_k$()); }; protoOf(ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_axj202_k$(stmt, entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; function ContentEntryPictureDao_JdbcImpl$updateAsync$slambda($ContentEntryPicture, resultContinuation) { this.$ContentEntryPicture_1 = $ContentEntryPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$ContentEntryPicture_1.get_cepContentEntryUid_hz83v2_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$ContentEntryPicture_1.get_cepUri_bup8w7_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$ContentEntryPicture_1.get_cepMd5_bup2l5_k$()); this._stmt_1.setInt_c72a8z_k$(4, this.$ContentEntryPicture_1.get_cepFileSize_9l6d7i_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$ContentEntryPicture_1.get_cepTimestamp_9r931t_k$()); this._stmt_1.setString_2gt7ua_k$(6, this.$ContentEntryPicture_1.get_cepMimeType_kg2mp9_k$()); this._stmt_1.setBoolean_pzdm1v_k$(7, this.$ContentEntryPicture_1.get_cepActive_2uufd7_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$ContentEntryPicture_1.get_cepUid_bup8ob_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryPictureDao_JdbcImpl$updateAsync$slambda(this.$ContentEntryPicture_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryPictureDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryPictureDao_JdbcImpl$updateAsync$slambda_0($ContentEntryPicture, resultContinuation) { var i = new ContentEntryPictureDao_JdbcImpl$updateAsync$slambda($ContentEntryPicture, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryPictureDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_cepContentEntryUid_hz83v2_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_cepUri_bup8w7_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_cepMd5_bup2l5_k$()); _stmt.setInt_c72a8z_k$(4, $entity.get_cepFileSize_9l6d7i_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_cepTimestamp_9r931t_k$()); _stmt.setString_2gt7ua_k$(6, $entity.get_cepMimeType_kg2mp9_k$()); _stmt.setBoolean_pzdm1v_k$(7, $entity.get_cepActive_2uufd7_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_cepUid_bup8ob_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda($entryUid, resultContinuation) { this.$entryUid_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda).invoke_lj2bpo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_lj2bpo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda(this.$entryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda_0($entryUid, resultContinuation) { var i = new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda($entryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_lj2bpo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda(this$0, $entryUid, resultContinuation) { this.this$0__1 = this$0; this.$entryUid_1 = $entryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda).invoke_kokezk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_kokezk_k$($completion); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM ContentEntryPicture \n WHERE cepContentEntryUid = CAST(? AS BIGINT)\n AND cepActive\n ORDER BY cepTimestamp DESC \n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ContentEntryPicture \n WHERE cepContentEntryUid = ?\n AND cepActive\n ORDER BY cepTimestamp DESC \n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda$slambda_0(this.$entryUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda(this.this$0__1, this.$entryUid_1, completion); }; function ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda_0(this$0, $entryUid, resultContinuation) { var i = new ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda(this$0, $entryUid, resultContinuation); var l = function ($completion) { return i.invoke_kokezk_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$129(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$129).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryPicture_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$130(_this__u8e3s4, ContentEntryPicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.ContentEntryPicture_1 = ContentEntryPicture; } protoOf($updateAsyncCOROUTINE$130).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE ContentEntryPicture SET cepContentEntryUid = ?, cepUri = ?, cepMd5 = ?, cepFileSize = ?, cepTimestamp = ?, cepMimeType = ?, cepActive = ? WHERE cepUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, ContentEntryPictureDao_JdbcImpl$updateAsync$slambda_0(this.ContentEntryPicture_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryPictureDao_JdbcImpl(_db) { ContentEntryPictureDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryPicture_abort_1 = new ContentEntryPictureDao_JdbcImpl$_insertAdapterContentEntryPicture_abort$1(this); } protoOf(ContentEntryPictureDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryPictureDao_JdbcImpl).get__insertAdapterContentEntryPicture_abort_pigt2u_k$ = function () { return this._insertAdapterContentEntryPicture_abort_1; }; protoOf(ContentEntryPictureDao_JdbcImpl).insert_qr2mj1_k$ = function (entity) { var _retVal = this._insertAdapterContentEntryPicture_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentEntryPictureDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_qr2mj1_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; protoOf(ContentEntryPictureDao_JdbcImpl).insertAsync_wsif3g_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$129(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_wsif3g_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_JdbcImpl).insertList_5ec1sz_k$ = function (entityList) { this._insertAdapterContentEntryPicture_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentEntryPictureDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_5ec1sz_k$(entityList); }; protoOf(ContentEntryPictureDao_JdbcImpl).updateAsync_5l7uos_k$ = function (ContentEntryPicture, $completion) { var tmp = new $updateAsyncCOROUTINE$130(this, ContentEntryPicture, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_JdbcImpl).update_lt0w4t_k$ = function (entity) { var _sql = 'UPDATE ContentEntryPicture SET cepContentEntryUid = ?, cepUri = ?, cepMd5 = ?, cepFileSize = ?, cepTimestamp = ?, cepMimeType = ?, cepActive = ? WHERE cepUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentEntryPictureDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentEntryPictureDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_lt0w4t_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; protoOf(ContentEntryPictureDao_JdbcImpl).findByContentEntryUidAsync_8n2iwx_k$ = function (entryUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM ContentEntryPicture \n WHERE cepContentEntryUid = CAST(? AS BIGINT)\n AND cepActive\n ORDER BY cepTimestamp DESC \n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM ContentEntryPicture \n WHERE cepContentEntryUid = ?\n AND cepActive\n ORDER BY cepTimestamp DESC \n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidAsync$slambda_0(entryUid, null), $completion); }; protoOf(ContentEntryPictureDao_JdbcImpl).findByContentEntryUidLive_2lnsmz_k$ = function (entryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryPicture']; return doorFlow(this._db_1, tmp, ContentEntryPictureDao_JdbcImpl$findByContentEntryUidLive$slambda_0(this, entryUid, null)); }; function ContentEntryPictureDao_Repo$updateAsync$slambda(this$0, $ContentEntryPicture, resultContinuation) { this.this$0__1 = this$0; this.$ContentEntryPicture_1 = $ContentEntryPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryPictureDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_5l7uos_k$(this.$ContentEntryPicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryPictureDao_Repo$updateAsync$slambda(this.this$0__1, this.$ContentEntryPicture_1, completion); }; function ContentEntryPictureDao_Repo$updateAsync$slambda_0(this$0, $ContentEntryPicture, resultContinuation) { var i = new ContentEntryPictureDao_Repo$updateAsync$slambda(this$0, $ContentEntryPicture, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryPictureDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryPictureDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryPictureDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryPictureDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ContentEntryPictureDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByContentEntryUidAsyncCOROUTINE$131(_this__u8e3s4, entryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entryUid_1 = entryUid; } protoOf($findByContentEntryUidAsyncCOROUTINE$131).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByContentEntryUidAsync_8n2iwx_k$(this.entryUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$132(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$132).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryPictureDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentEntryPictureDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryPictureDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryPictureDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryPictureDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryPictureDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryPictureDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryPictureDao_Repo).findByContentEntryUidAsync_8n2iwx_k$ = function (entryUid, $completion) { var tmp = new $findByContentEntryUidAsyncCOROUTINE$131(this, entryUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_Repo).findByContentEntryUidLive_2lnsmz_k$ = function (entryUid) { var _result = this._dao_1.findByContentEntryUidLive_2lnsmz_k$(entryUid); return _result; }; protoOf(ContentEntryPictureDao_Repo).updateAsync_5l7uos_k$ = function (ContentEntryPicture, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$updateAsync$slambda_0(this, ContentEntryPicture, null), $completion); }; protoOf(ContentEntryPictureDao_Repo).insert_qr2mj1_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentEntryPictureDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_qr2mj1_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; protoOf(ContentEntryPictureDao_Repo).insertAsync_wsif3g_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$132(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryPictureDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_wsif3g_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryPictureDao_Repo).insertList_5ec1sz_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentEntryPictureDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_5ec1sz_k$(entityList); }; protoOf(ContentEntryPictureDao_Repo).update_lt0w4t_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentEntryPicture', ContentEntryPictureDao_Repo$update$lambda(this, entity)); }; protoOf(ContentEntryPictureDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_lt0w4t_k$(entity instanceof ContentEntryPicture ? entity : THROW_CCE()); }; function ContentEntryRelatedEntryJoinDao() { } function _get__db__e63s44_14($this) { return $this._db_1; } function _get__dao__d2kw60_12($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$133(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$133).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cerejUid_qso5ic_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(8, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cerejUid_7ydsfu_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cerejLct_ewzix_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cerejUid_qso5ic_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryRelatedEntryJoinDao_DoorWrapper(_db, _dao) { ContentEntryRelatedEntryJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).publicContentEntryRelatedEntryJoins_9bs04g_k$ = function () { throw IllegalStateException_init_$Create$('publicContentEntryRelatedEntryJoins: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).findPrimaryByTranslation_bssdvn_k$ = function (contentEntryUid) { throw IllegalStateException_init_$Create$('findPrimaryByTranslation: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).findAllTranslationsForContentEntryAsync_60ovvz_k$ = function (contentEntryUid, $completion) { return this._dao_1.findAllTranslationsForContentEntryAsync_60ovvz_k$(contentEntryUid, $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).findAllTranslationsWithContentEntryUid_ghspi1_k$ = function (contentEntryUid) { return this._dao_1.findAllTranslationsWithContentEntryUid_ghspi1_k$(contentEntryUid); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).update_tsi7hy_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_tsi7hy_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insert_xb92dm_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_xb92dm_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertAsync_3xnupx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$133(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_3xnupx_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertList_3p9x6e_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ContentEntryRelatedEntryJoinDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_3p9x6e_k$(entityList); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda$lambda(_result) { return mapRows(_result, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda$lambda$lambda(_result)); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cerejContentEntryUid = $_result.getLong_3wgf2g_k$('cerejContentEntryUid'); var _tmp_cerejRelatedEntryUid = $_result.getLong_3wgf2g_k$('cerejRelatedEntryUid'); var _tmp_languageName = $_result.getString_gb1pt9_k$('languageName'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryRelatedEntryJoinWithLangName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryRelatedEntryJoinDao_JdbcImpl.findAllTranslationsForContentEntryAsync....' call this_0.set_cerejContentEntryUid_rteom9_k$(_tmp_cerejContentEntryUid); this_0.set_cerejRelatedEntryUid_jaf6nh_k$(_tmp_cerejRelatedEntryUid); this_0.set_languageName_mn7rs9_k$(_tmp_languageName); return this_0; }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda$lambda$lambda(_result)); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cerejUid = $_result.getLong_3wgf2g_k$('cerejUid'); var _tmp_cerejContentEntryUid = $_result.getLong_3wgf2g_k$('cerejContentEntryUid'); var _tmp_cerejRelatedEntryUid = $_result.getLong_3wgf2g_k$('cerejRelatedEntryUid'); var _tmp_cerejLastChangedBy = $_result.getInt_npc9pd_k$('cerejLastChangedBy'); var _tmp_relType = $_result.getInt_npc9pd_k$('relType'); var _tmp_comment = $_result.getString_gb1pt9_k$('comment'); var _tmp_cerejRelLanguageUid = $_result.getLong_3wgf2g_k$('cerejRelLanguageUid'); var _tmp_cerejLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejLocalChangeSeqNum'); var _tmp_cerejMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejMasterChangeSeqNum'); var _tmp_cerejLct = $_result.getLong_3wgf2g_k$('cerejLct'); var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_name = $_result.getString_gb1pt9_k$('name'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new ContentEntryRelatedEntryJoinWithLanguage(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_cerejUid_7ydsfu_k$(_tmp_cerejUid); this_0.set_cerejContentEntryUid_rteom9_k$(_tmp_cerejContentEntryUid); this_0.set_cerejRelatedEntryUid_jaf6nh_k$(_tmp_cerejRelatedEntryUid); this_0.set_cerejLastChangedBy_feg7mz_k$(_tmp_cerejLastChangedBy); this_0.set_relType_w0aqq6_k$(_tmp_relType); this_0.set_comment_aa11d7_k$(_tmp_comment); this_0.set_cerejRelLanguageUid_qernnd_k$(_tmp_cerejRelLanguageUid); this_0.set_cerejLocalChangeSeqNum_vujpkc_k$(_tmp_cerejLocalChangeSeqNum); this_0.set_cerejMasterChangeSeqNum_7dshbn_k$(_tmp_cerejMasterChangeSeqNum); this_0.set_cerejLct_ewzix_k$(_tmp_cerejLct); if (!_tmp_Language_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_langUid_ci1fyx_k$(_tmp_langUid); this_1.set_name_wkmnld_k$(_tmp_name); this_1.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_1.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_1.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_1.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_1.set_languageActive_33gxtm_k$(_tmp_languageActive); this_1.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_1.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_1.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_1.set_langLct_kvc7xo_k$(_tmp_langLct); this_0.set_language_k1j0e9_k$(this_1); } return this_0; }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda$lambda$lambda(_result)); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda($contentEntryUid, $_limit, $_offset, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda).invoke_glyb4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_glyb4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda(this.$contentEntryUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda_0($contentEntryUid, $_limit, $_offset, resultContinuation) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda($contentEntryUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_glyb4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).bindPreparedStmtToEntity_scchsb_k$ = function (stmt, entity) { if (entity.get_cerejUid_qso5ic_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cerejUid_qso5ic_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cerejContentEntryUid_r7339x_k$()); stmt.setLong_j1sybo_k$(3, entity.get_cerejRelatedEntryUid_z3n04d_k$()); stmt.setInt_c72a8z_k$(4, entity.get_cerejLastChangedBy_i25bg7_k$()); stmt.setInt_c72a8z_k$(5, entity.get_relType_jaktca_k$()); stmt.setString_2gt7ua_k$(6, entity.get_comment_gzea9i_k$()); stmt.setLong_j1sybo_k$(7, entity.get_cerejRelLanguageUid_rv382d_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cerejLocalChangeSeqNum_10nkly_k$()); stmt.setLong_j1sybo_k$(9, entity.get_cerejMasterChangeSeqNum_e38q91_k$()); stmt.setLong_j1sybo_k$(10, entity.get_cerejLct_qsnypd_k$()); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_scchsb_k$(stmt, entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_cerejContentEntryUid_r7339x_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_cerejRelatedEntryUid_z3n04d_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_cerejLastChangedBy_i25bg7_k$()); _stmt.setInt_c72a8z_k$(4, $entity.get_relType_jaktca_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_comment_gzea9i_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_cerejRelLanguageUid_rv382d_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_cerejLocalChangeSeqNum_10nkly_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_cerejMasterChangeSeqNum_e38q91_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_cerejLct_qsnypd_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_cerejUid_qso5ic_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda$lambda); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda$lambda(_result) { return mapRows(_result, ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda$lambda$lambda(_result)); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cerejUid = $_result.getLong_3wgf2g_k$('cerejUid'); var _tmp_cerejContentEntryUid = $_result.getLong_3wgf2g_k$('cerejContentEntryUid'); var _tmp_cerejRelatedEntryUid = $_result.getLong_3wgf2g_k$('cerejRelatedEntryUid'); var _tmp_cerejLastChangedBy = $_result.getInt_npc9pd_k$('cerejLastChangedBy'); var _tmp_relType = $_result.getInt_npc9pd_k$('relType'); var _tmp_comment = $_result.getString_gb1pt9_k$('comment'); var _tmp_cerejRelLanguageUid = $_result.getLong_3wgf2g_k$('cerejRelLanguageUid'); var _tmp_cerejLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejLocalChangeSeqNum'); var _tmp_cerejMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejMasterChangeSeqNum'); var _tmp_cerejLct = $_result.getLong_3wgf2g_k$('cerejLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryRelatedEntryJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryRelatedEntryJoinDao_JdbcImpl.publicContentEntryRelatedEntryJoins....' call this_0.set_cerejUid_7ydsfu_k$(_tmp_cerejUid); this_0.set_cerejContentEntryUid_rteom9_k$(_tmp_cerejContentEntryUid); this_0.set_cerejRelatedEntryUid_jaf6nh_k$(_tmp_cerejRelatedEntryUid); this_0.set_cerejLastChangedBy_feg7mz_k$(_tmp_cerejLastChangedBy); this_0.set_relType_w0aqq6_k$(_tmp_relType); this_0.set_comment_aa11d7_k$(_tmp_comment); this_0.set_cerejRelLanguageUid_qernnd_k$(_tmp_cerejRelLanguageUid); this_0.set_cerejLocalChangeSeqNum_vujpkc_k$(_tmp_cerejLocalChangeSeqNum); this_0.set_cerejMasterChangeSeqNum_7dshbn_k$(_tmp_cerejMasterChangeSeqNum); this_0.set_cerejLct_ewzix_k$(_tmp_cerejLct); return this_0; }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda$lambda$lambda(_result)); } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cerejUid = $_result.getLong_3wgf2g_k$('cerejUid'); var _tmp_cerejContentEntryUid = $_result.getLong_3wgf2g_k$('cerejContentEntryUid'); var _tmp_cerejRelatedEntryUid = $_result.getLong_3wgf2g_k$('cerejRelatedEntryUid'); var _tmp_cerejLastChangedBy = $_result.getInt_npc9pd_k$('cerejLastChangedBy'); var _tmp_relType = $_result.getInt_npc9pd_k$('relType'); var _tmp_comment = $_result.getString_gb1pt9_k$('comment'); var _tmp_cerejRelLanguageUid = $_result.getLong_3wgf2g_k$('cerejRelLanguageUid'); var _tmp_cerejLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejLocalChangeSeqNum'); var _tmp_cerejMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('cerejMasterChangeSeqNum'); var _tmp_cerejLct = $_result.getLong_3wgf2g_k$('cerejLct'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryRelatedEntryJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryRelatedEntryJoinDao_JdbcImpl.findPrimaryByTranslation....' call this_0.set_cerejUid_7ydsfu_k$(_tmp_cerejUid); this_0.set_cerejContentEntryUid_rteom9_k$(_tmp_cerejContentEntryUid); this_0.set_cerejRelatedEntryUid_jaf6nh_k$(_tmp_cerejRelatedEntryUid); this_0.set_cerejLastChangedBy_feg7mz_k$(_tmp_cerejLastChangedBy); this_0.set_relType_w0aqq6_k$(_tmp_relType); this_0.set_comment_aa11d7_k$(_tmp_comment); this_0.set_cerejRelLanguageUid_qernnd_k$(_tmp_cerejRelLanguageUid); this_0.set_cerejLocalChangeSeqNum_vujpkc_k$(_tmp_cerejLocalChangeSeqNum); this_0.set_cerejMasterChangeSeqNum_7dshbn_k$(_tmp_cerejMasterChangeSeqNum); this_0.set_cerejLct_ewzix_k$(_tmp_cerejLct); return this_0; }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda($contentEntryUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $contentEntryUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda$lambda); }; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda).invoke_dffte9_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dffte9_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dffte9_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1(this$0, $contentEntryUid) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Language', 'ContentEntryRelatedEntryJoin']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1).loadRows_zf0yxv_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = CAST(? AS BIGINT)\n OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = CAST(? AS BIGINT)))\n AND ContentEntryRelatedEntryJoin.relType = 1\n ORDER BY Language.name) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ?\n OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?))\n AND ContentEntryRelatedEntryJoin.relType = 1\n ORDER BY Language.name) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$loadRows$slambda_0(this.$contentEntryUid_1, _limit, _offset, null), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_zf0yxv_k$(_limit, _offset, $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = CAST(? AS BIGINT)\n OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = CAST(? AS BIGINT)))\n AND ContentEntryRelatedEntryJoin.relType = 1\n ORDER BY Language.name) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ?\n OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?))\n AND ContentEntryRelatedEntryJoin.relType = 1\n ORDER BY Language.name) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$o$countRows$slambda_0(this.$contentEntryUid_1, null), $completion); }; function $insertAsyncCOROUTINE$134(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$134).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryRelatedEntryJoin_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryRelatedEntryJoinDao_JdbcImpl(_db) { ContentEntryRelatedEntryJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryRelatedEntryJoin_abort_1 = new ContentEntryRelatedEntryJoinDao_JdbcImpl$_insertAdapterContentEntryRelatedEntryJoin_abort$1(this); } protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).get__insertAdapterContentEntryRelatedEntryJoin_abort_y40n8b_k$ = function () { return this._insertAdapterContentEntryRelatedEntryJoin_abort_1; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insert_xb92dm_k$ = function (entity) { var _retVal = this._insertAdapterContentEntryRelatedEntryJoin_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_xb92dm_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertAsync_3xnupx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$134(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_3xnupx_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertList_3p9x6e_k$ = function (entityList) { this._insertAdapterContentEntryRelatedEntryJoin_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_3p9x6e_k$(entityList); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).update_tsi7hy_k$ = function (entity) { var _sql = 'UPDATE ContentEntryRelatedEntryJoin SET cerejContentEntryUid = ?, cerejRelatedEntryUid = ?, cerejLastChangedBy = ?, relType = ?, comment = ?, cerejRelLanguageUid = ?, cerejLocalChangeSeqNum = ?, cerejMasterChangeSeqNum = ?, cerejLct = ? WHERE cerejUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ContentEntryRelatedEntryJoinDao_JdbcImpl$update$lambda(entity)); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_tsi7hy_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).publicContentEntryRelatedEntryJoins_9bs04g_k$ = function () { var tmp = new PreparedStatementConfig('SELECT ContentEntryRelatedEntryJoin.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntry ON ContentEntryRelatedEntryJoin.cerejRelatedEntryUid = ContentEntry.contentEntryUid WHERE ContentEntry.publik', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$publicContentEntryRelatedEntryJoins$lambda); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).findPrimaryByTranslation_bssdvn_k$ = function (contentEntryUid) { var tmp = new PreparedStatementConfig('SELECT * FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ? LIMIT 1\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$findPrimaryByTranslation$lambda(contentEntryUid)); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).findAllTranslationsForContentEntryAsync_60ovvz_k$ = function (contentEntryUid, $completion) { var tmp = new PreparedStatementConfig('SELECT ContentEntryRelatedEntryJoin.cerejContentEntryUid, ContentEntryRelatedEntryJoin.cerejRelatedEntryUid, CASE ContentEntryRelatedEntryJoin.cerejRelatedEntryUid WHEN CAST(? AS BIGINT) THEN (SELECT name FROM Language WHERE langUid = (SELECT primaryLanguageUid FROM ContentEntry WHERE contentEntryUid = ContentEntryRelatedEntryJoin.cerejContentEntryUid)) ELSE Language.name END languageName FROM ContentEntryRelatedEntryJoin LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = CAST(? AS BIGINT) OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = CAST(? AS BIGINT))) AND ContentEntryRelatedEntryJoin.relType = 1', VOID, VOID, VOID, 'SELECT ContentEntryRelatedEntryJoin.cerejContentEntryUid, ContentEntryRelatedEntryJoin.cerejRelatedEntryUid, CASE ContentEntryRelatedEntryJoin.cerejRelatedEntryUid WHEN ? THEN (SELECT name FROM Language WHERE langUid = (SELECT primaryLanguageUid FROM ContentEntry WHERE contentEntryUid = ContentEntryRelatedEntryJoin.cerejContentEntryUid)) ELSE Language.name END languageName FROM ContentEntryRelatedEntryJoin LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ? OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?)) AND ContentEntryRelatedEntryJoin.relType = 1\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsForContentEntryAsync$slambda_0(contentEntryUid, null), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_JdbcImpl).findAllTranslationsWithContentEntryUid_ghspi1_k$ = function (contentEntryUid) { return new ContentEntryRelatedEntryJoinDao_JdbcImpl$findAllTranslationsWithContentEntryUid$1(this, contentEntryUid); }; function ContentEntryRelatedEntryJoinDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_tsi7hy_k$($entity); return Unit_getInstance(); }; } function ContentEntryRelatedEntryJoinDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryRelatedEntryJoinDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function $findAllTranslationsForContentEntryAsyncCOROUTINE$135(_this__u8e3s4, contentEntryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; } protoOf($findAllTranslationsForContentEntryAsyncCOROUTINE$135).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllTranslationsForContentEntryAsync_60ovvz_k$(this.contentEntryUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$136(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$136).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryRelatedEntryJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryRelatedEntryJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).publicContentEntryRelatedEntryJoins_9bs04g_k$ = function () { var _result = this._dao_1.publicContentEntryRelatedEntryJoins_9bs04g_k$(); return _result; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).findPrimaryByTranslation_bssdvn_k$ = function (contentEntryUid) { var _result = this._dao_1.findPrimaryByTranslation_bssdvn_k$(contentEntryUid); return _result; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).findAllTranslationsForContentEntryAsync_60ovvz_k$ = function (contentEntryUid, $completion) { var tmp = new $findAllTranslationsForContentEntryAsyncCOROUTINE$135(this, contentEntryUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).findAllTranslationsWithContentEntryUid_ghspi1_k$ = function (contentEntryUid) { var _result = this._dao_1.findAllTranslationsWithContentEntryUid_ghspi1_k$(contentEntryUid); return _result; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).update_tsi7hy_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$update$lambda(this, entity)); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_tsi7hy_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insert_xb92dm_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_xb92dm_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE()); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertAsync_3xnupx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$136(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_3xnupx_k$(entity instanceof ContentEntryRelatedEntryJoin ? entity : THROW_CCE(), $completion); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertList_3p9x6e_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'ContentEntryRelatedEntryJoin', ContentEntryRelatedEntryJoinDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ContentEntryRelatedEntryJoinDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_3p9x6e_k$(entityList); }; function ContentEntryVersionDao() { } function _get__db__e63s44_15($this) { return $this._db_1; } function _get__dao__d2kw60_13($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$137(_this__u8e3s4, contentEntryVersion, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryVersion_1 = contentEntryVersion; } protoOf($insertAsyncCOROUTINE$137).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.contentEntryVersion_1.get_cevUid_but2lh_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(738, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.contentEntryVersion_1.set_cevUid_qq3grf_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.contentEntryVersion_1.set_cevLct_icsoso_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_h0ls56_k$(this.contentEntryVersion_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.contentEntryVersion_1.get_cevUid_but2lh_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryVersionDao_DoorWrapper(_db, _dao) { ContentEntryVersionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ContentEntryVersionDao_DoorWrapper).findByUidAsync_kabggw_k$ = function (cevUid, $completion) { return this._dao_1.findByUidAsync_kabggw_k$(cevUid, $completion); }; protoOf(ContentEntryVersionDao_DoorWrapper).insertAsync_h0ls56_k$ = function (contentEntryVersion, $completion) { var tmp = new $insertAsyncCOROUTINE$137(this, contentEntryVersion, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_DoorWrapper).findLatestVersionUidByContentEntryUidEntity_a61tgv_k$ = function (contentEntryUid, $completion) { return this._dao_1.findLatestVersionUidByContentEntryUidEntity_a61tgv_k$(contentEntryUid, $completion); }; protoOf(ContentEntryVersionDao_DoorWrapper).findLatestByContentEntryUidAsFlow_l9rxde_k$ = function (contentEntryUid) { return this._dao_1.findLatestByContentEntryUidAsFlow_l9rxde_k$(contentEntryUid); }; protoOf(ContentEntryVersionDao_DoorWrapper).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { return this._dao_1.updateTransferJobItemEtag_i6qxic_k$(entityUid, transferJobItemUid, $completion); }; protoOf(ContentEntryVersionDao_DoorWrapper).findContentEntryVersionsWithoutCacheLock_2p1swl_k$ = function ($completion) { return this._dao_1.findContentEntryVersionsWithoutCacheLock_2p1swl_k$($completion); }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.getLong_3wgf2g_k$('cevUid'); var _tmp_cevContentEntryUid = $_result.getLong_3wgf2g_k$('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.getString_gb1pt9_k$('cevOpenUri'); var _tmp_cevContentType = $_result.getString_gb1pt9_k$('cevContentType'); var _tmp_cevManifestUrl = $_result.getString_gb1pt9_k$('cevManifestUrl'); var _tmp_cevSize = $_result.getLong_3wgf2g_k$('cevSize'); var _tmp_cevInActive = $_result.getBoolean_xz3hoo_k$('cevInActive'); var _tmp_cevLastModified = $_result.getLong_3wgf2g_k$('cevLastModified'); var _tmp_cevLct = $_result.getLong_3wgf2g_k$('cevLct'); var _tmp_cevStorageSize = $_result.getLong_3wgf2g_k$('cevStorageSize'); var _tmp_cevOriginalSize = $_result.getLong_3wgf2g_k$('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findByUidAsync....' call this_0.set_cevUid_qq3grf_k$(_tmp_cevUid); this_0.set_cevContentEntryUid_7jgl4y_k$(_tmp_cevContentEntryUid); this_0.set_cevOpenUri_pcvf0_k$(_tmp_cevOpenUri); this_0.set_cevContentType_ideg79_k$(_tmp_cevContentType); this_0.set_cevManifestUrl_j9gcjy_k$(_tmp_cevManifestUrl); this_0.set_cevSize_6z2zqy_k$(_tmp_cevSize); this_0.set_cevInActive_fcf9u5_k$(_tmp_cevInActive); this_0.set_cevLastModified_av83s_k$(_tmp_cevLastModified); this_0.set_cevLct_icsoso_k$(_tmp_cevLct); this_0.set_cevStorageSize_l6q8m1_k$(_tmp_cevStorageSize); this_0.set_cevOriginalSize_ehp645_k$(_tmp_cevOriginalSize); return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.getLong_3wgf2g_k$('cevUid'); var _tmp_cevContentEntryUid = $_result.getLong_3wgf2g_k$('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.getString_gb1pt9_k$('cevOpenUri'); var _tmp_cevContentType = $_result.getString_gb1pt9_k$('cevContentType'); var _tmp_cevManifestUrl = $_result.getString_gb1pt9_k$('cevManifestUrl'); var _tmp_cevSize = $_result.getLong_3wgf2g_k$('cevSize'); var _tmp_cevInActive = $_result.getBoolean_xz3hoo_k$('cevInActive'); var _tmp_cevLastModified = $_result.getLong_3wgf2g_k$('cevLastModified'); var _tmp_cevLct = $_result.getLong_3wgf2g_k$('cevLct'); var _tmp_cevStorageSize = $_result.getLong_3wgf2g_k$('cevStorageSize'); var _tmp_cevOriginalSize = $_result.getLong_3wgf2g_k$('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestVersionUidByContentEntryUidEntity....' call this_0.set_cevUid_qq3grf_k$(_tmp_cevUid); this_0.set_cevContentEntryUid_7jgl4y_k$(_tmp_cevContentEntryUid); this_0.set_cevOpenUri_pcvf0_k$(_tmp_cevOpenUri); this_0.set_cevContentType_ideg79_k$(_tmp_cevContentType); this_0.set_cevManifestUrl_j9gcjy_k$(_tmp_cevManifestUrl); this_0.set_cevSize_6z2zqy_k$(_tmp_cevSize); this_0.set_cevInActive_fcf9u5_k$(_tmp_cevInActive); this_0.set_cevLastModified_av83s_k$(_tmp_cevLastModified); this_0.set_cevLct_icsoso_k$(_tmp_cevLct); this_0.set_cevStorageSize_l6q8m1_k$(_tmp_cevStorageSize); this_0.set_cevOriginalSize_ehp645_k$(_tmp_cevOriginalSize); return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.getLong_3wgf2g_k$('cevUid'); var _tmp_cevContentEntryUid = $_result.getLong_3wgf2g_k$('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.getString_gb1pt9_k$('cevOpenUri'); var _tmp_cevContentType = $_result.getString_gb1pt9_k$('cevContentType'); var _tmp_cevManifestUrl = $_result.getString_gb1pt9_k$('cevManifestUrl'); var _tmp_cevSize = $_result.getLong_3wgf2g_k$('cevSize'); var _tmp_cevInActive = $_result.getBoolean_xz3hoo_k$('cevInActive'); var _tmp_cevLastModified = $_result.getLong_3wgf2g_k$('cevLastModified'); var _tmp_cevLct = $_result.getLong_3wgf2g_k$('cevLct'); var _tmp_cevStorageSize = $_result.getLong_3wgf2g_k$('cevStorageSize'); var _tmp_cevOriginalSize = $_result.getLong_3wgf2g_k$('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findLatestByContentEntryUidAsFlow.....' call this_0.set_cevUid_qq3grf_k$(_tmp_cevUid); this_0.set_cevContentEntryUid_7jgl4y_k$(_tmp_cevContentEntryUid); this_0.set_cevOpenUri_pcvf0_k$(_tmp_cevOpenUri); this_0.set_cevContentType_ideg79_k$(_tmp_cevContentType); this_0.set_cevManifestUrl_j9gcjy_k$(_tmp_cevManifestUrl); this_0.set_cevSize_6z2zqy_k$(_tmp_cevSize); this_0.set_cevInActive_fcf9u5_k$(_tmp_cevInActive); this_0.set_cevLastModified_av83s_k$(_tmp_cevLastModified); this_0.set_cevLct_icsoso_k$(_tmp_cevLct); this_0.set_cevStorageSize_l6q8m1_k$(_tmp_cevStorageSize); this_0.set_cevOriginalSize_ehp645_k$(_tmp_cevOriginalSize); return this_0; }; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).invoke_uguvmi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_uguvmi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_uguvmi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda$lambda(_result) { return mapRows(_result, ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda$lambda$lambda(_result)); } function ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cevUid = $_result.getLong_3wgf2g_k$('cevUid'); var _tmp_cevContentEntryUid = $_result.getLong_3wgf2g_k$('cevContentEntryUid'); var _tmp_cevOpenUri = $_result.getString_gb1pt9_k$('cevOpenUri'); var _tmp_cevContentType = $_result.getString_gb1pt9_k$('cevContentType'); var _tmp_cevManifestUrl = $_result.getString_gb1pt9_k$('cevManifestUrl'); var _tmp_cevSize = $_result.getLong_3wgf2g_k$('cevSize'); var _tmp_cevInActive = $_result.getBoolean_xz3hoo_k$('cevInActive'); var _tmp_cevLastModified = $_result.getLong_3wgf2g_k$('cevLastModified'); var _tmp_cevLct = $_result.getLong_3wgf2g_k$('cevLct'); var _tmp_cevStorageSize = $_result.getLong_3wgf2g_k$('cevStorageSize'); var _tmp_cevOriginalSize = $_result.getLong_3wgf2g_k$('cevOriginalSize'); // Inline function 'kotlin.apply' call var this_0 = new ContentEntryVersion(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ContentEntryVersionDao_JdbcImpl.findContentEntryVersionsWithoutCacheLock....' call this_0.set_cevUid_qq3grf_k$(_tmp_cevUid); this_0.set_cevContentEntryUid_7jgl4y_k$(_tmp_cevContentEntryUid); this_0.set_cevOpenUri_pcvf0_k$(_tmp_cevOpenUri); this_0.set_cevContentType_ideg79_k$(_tmp_cevContentType); this_0.set_cevManifestUrl_j9gcjy_k$(_tmp_cevManifestUrl); this_0.set_cevSize_6z2zqy_k$(_tmp_cevSize); this_0.set_cevInActive_fcf9u5_k$(_tmp_cevInActive); this_0.set_cevLastModified_av83s_k$(_tmp_cevLastModified); this_0.set_cevLct_icsoso_k$(_tmp_cevLct); this_0.set_cevStorageSize_l6q8m1_k$(_tmp_cevStorageSize); this_0.set_cevOriginalSize_ehp645_k$(_tmp_cevOriginalSize); return this_0; }; } function ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ContentEntryVersion (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).bindPreparedStmtToEntity_xapx3c_k$ = function (stmt, entity) { if (entity.get_cevUid_but2lh_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cevUid_but2lh_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cevContentEntryUid_2e4tyk_k$()); stmt.setString_2gt7ua_k$(3, entity.get_cevOpenUri_oavmw9_k$()); stmt.setString_2gt7ua_k$(4, entity.get_cevContentType_gzbvyw_k$()); stmt.setString_2gt7ua_k$(5, entity.get_cevManifestUrl_71wl63_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cevSize_cdfp8s_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_cevInActive_lko4nq_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cevLastModified_aeeiuu_k$()); stmt.setLong_j1sybo_k$(9, entity.get_cevLct_busvsi_k$()); stmt.setLong_j1sybo_k$(10, entity.get_cevStorageSize_j8l0wf_k$()); stmt.setLong_j1sybo_k$(11, entity.get_cevOriginalSize_7fv18j_k$()); }; protoOf(ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xapx3c_k$(stmt, entity instanceof ContentEntryVersion ? entity : THROW_CCE()); }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation) { this.$cevUid_1 = $cevUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).invoke_uguvmi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_uguvmi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cevUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda(this.$cevUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0($cevUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda($cevUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_uguvmi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).invoke_uguvmi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_uguvmi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda(this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0($contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda($contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_uguvmi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).invoke_1ndkcm_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1ndkcm_k$($completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda$slambda_0(this.$contentEntryUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this.this$0__1, this.$contentEntryUid_1, completion); }; function ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_1ndkcm_k$($completion); }; l.$arity = 0; return l; } function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) { this.$entityUid_1 = $entityUid; this.$transferJobItemUid_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entityUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$transferJobItemUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.$entityUid_1, this.$transferJobItemUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda).invoke_6812a7_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6812a7_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda_0(resultContinuation) { var i = new ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6812a7_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$138(_this__u8e3s4, contentEntryVersion, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryVersion_1 = contentEntryVersion; } protoOf($insertAsyncCOROUTINE$138).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterContentEntryVersion_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.contentEntryVersion_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateTransferJobItemEtagCOROUTINE$139(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityUid_1 = entityUid; this.transferJobItemUid_1 = transferJobItemUid; } protoOf($updateTransferJobItemEtagCOROUTINE$139).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT cevLct\n FROM ContentEntryVersion\n WHERE cevUid = CAST(? AS BIGINT))\n WHERE tjiUid = ?\n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT cevLct\n FROM ContentEntryVersion\n WHERE cevUid = ?)\n WHERE tjiUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ContentEntryVersionDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.entityUid_1, this.transferJobItemUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryVersionDao_JdbcImpl(_db) { ContentEntryVersionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterContentEntryVersion_abort_1 = new ContentEntryVersionDao_JdbcImpl$_insertAdapterContentEntryVersion_abort$1(this); } protoOf(ContentEntryVersionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryVersionDao_JdbcImpl).get__insertAdapterContentEntryVersion_abort_kp81ao_k$ = function () { return this._insertAdapterContentEntryVersion_abort_1; }; protoOf(ContentEntryVersionDao_JdbcImpl).insertAsync_h0ls56_k$ = function (contentEntryVersion, $completion) { var tmp = new $insertAsyncCOROUTINE$138(this, contentEntryVersion, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl).findByUidAsync_kabggw_k$ = function (cevUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE cevUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE cevUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryVersionDao_JdbcImpl$findByUidAsync$slambda_0(cevUid, null), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl).findLatestVersionUidByContentEntryUidEntity_a61tgv_k$ = function (contentEntryUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT)\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?\n ORDER BY ContentEntryVersion.cevLastModified DESC\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestVersionUidByContentEntryUidEntity$slambda_0(contentEntryUid, null), $completion); }; protoOf(ContentEntryVersionDao_JdbcImpl).findLatestByContentEntryUidAsFlow_l9rxde_k$ = function (contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryVersion']; return doorFlow(this._db_1, tmp, ContentEntryVersionDao_JdbcImpl$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null)); }; protoOf(ContentEntryVersionDao_JdbcImpl).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { var tmp = new $updateTransferJobItemEtagCOROUTINE$139(this, entityUid, transferJobItemUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_JdbcImpl).findContentEntryVersionsWithoutCacheLock_2p1swl_k$ = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT ContentEntryVersion.*\n FROM ContentEntryVersion\n WHERE NOT EXISTS(\n SELECT CacheLockJoin.cljId\n FROM CacheLockJoin\n WHERE CacheLockJoin.cljTableId = 738\n AND CacheLockJoin.cljEntityUid = ContentEntryVersion.cevUid\n AND CacheLockJoin.cljUrl = ContentEntryVersion.cevManifestUrl) \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ContentEntryVersionDao_JdbcImpl$findContentEntryVersionsWithoutCacheLock$slambda_0(null), $completion); }; function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryVersionDao_Repo$insertAsync$slambda(this$0, $contentEntryVersion, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryVersion_1 = $contentEntryVersion; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ContentEntryVersionDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_h0ls56_k$(this.$contentEntryVersion_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryVersionDao_Repo$insertAsync$slambda(this.this$0__1, this.$contentEntryVersion_1, completion); }; function ContentEntryVersionDao_Repo$insertAsync$slambda_0(this$0, $contentEntryVersion, resultContinuation) { var i = new ContentEntryVersionDao_Repo$insertAsync$slambda(this$0, $contentEntryVersion, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ContentEntryVersionDao/findLatestByContentEntryUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this.this$0__1, this.$contentEntryUid_1, completion); }; function ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this$0, $contentEntryUid, resultContinuation) { var i = new ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda(this$0, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) { this.this$0__1 = this$0; this.$entityUid_1 = $entityUid; this.$transferJobItemUid_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateTransferJobItemEtag_i6qxic_k$(this.$entityUid_1, this.$transferJobItemUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda).create_d196fn_k$ = function (completion) { return new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this.this$0__1, this.$entityUid_1, this.$transferJobItemUid_1, completion); }; function ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) { var i = new ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$140(_this__u8e3s4, cevUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cevUid_1 = cevUid; } protoOf($findByUidAsyncCOROUTINE$140).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_kabggw_k$(this.cevUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$141(_this__u8e3s4, contentEntryVersion, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryVersion_1 = contentEntryVersion; } protoOf($insertAsyncCOROUTINE$141).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ContentEntryVersion', ContentEntryVersionDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.contentEntryVersion_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(_this__u8e3s4, contentEntryUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; } protoOf($findLatestVersionUidByContentEntryUidEntityCOROUTINE$142).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ContentEntryVersionDao/findLatestVersionUidByContentEntryUidEntity'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.contentEntryUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ContentEntryVersionDao_Repo$findLatestVersionUidByContentEntryUidEntity$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findLatestVersionUidByContentEntryUidEntity_a61tgv_k$(this.contentEntryUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findContentEntryVersionsWithoutCacheLockCOROUTINE$143(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($findContentEntryVersionsWithoutCacheLockCOROUTINE$143).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findContentEntryVersionsWithoutCacheLock_2p1swl_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ContentEntryVersionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ContentEntryVersionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(ContentEntryVersionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ContentEntryVersionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ContentEntryVersionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ContentEntryVersionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ContentEntryVersionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ContentEntryVersionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ContentEntryVersionDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(ContentEntryVersionDao_Repo).findByUidAsync_kabggw_k$ = function (cevUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$140(this, cevUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo).insertAsync_h0ls56_k$ = function (contentEntryVersion, $completion) { var tmp = new $insertAsyncCOROUTINE$141(this, contentEntryVersion, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo).findLatestVersionUidByContentEntryUidEntity_a61tgv_k$ = function (contentEntryUid, $completion) { var tmp = new $findLatestVersionUidByContentEntryUidEntityCOROUTINE$142(this, contentEntryUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ContentEntryVersionDao_Repo).findLatestByContentEntryUidAsFlow_l9rxde_k$ = function (contentEntryUid) { var tmp = this._dao_1.findLatestByContentEntryUidAsFlow_l9rxde_k$(contentEntryUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, ContentEntryVersionDao_Repo$findLatestByContentEntryUidAsFlow$slambda_0(this, contentEntryUid, null)); }; protoOf(ContentEntryVersionDao_Repo).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'TransferJobItem', ContentEntryVersionDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion); }; protoOf(ContentEntryVersionDao_Repo).findContentEntryVersionsWithoutCacheLock_2p1swl_k$ = function ($completion) { var tmp = new $findContentEntryVersionsWithoutCacheLockCOROUTINE$143(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function CourseAssignmentMarkDao() { } function _get__db__e63s44_16($this) { return $this._db_1; } function _get__dao__d2kw60_14($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$144(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$144).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_camUid_bsg5ca_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(523, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_camUid_ejfae8_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_camLct_mwq2cz_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_camUid_bsg5ca_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentMarkDao_DoorWrapper(_db, _dao) { CourseAssignmentMarkDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseAssignmentMarkDao_DoorWrapper).checkNoSubmissionsMarked_2ffp0k_k$ = function (assignmentUid) { return this._dao_1.checkNoSubmissionsMarked_2ffp0k_k$(assignmentUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getMarkOfAssignmentForSubmitterLiveData_w92w3_k$ = function (assignmentUid, submitterUid) { return this._dao_1.getMarkOfAssignmentForSubmitterLiveData_w92w3_k$(assignmentUid, submitterUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getAllMarksForUserAsFlow_x6aw07_k$ = function (accountPersonUid, assignmentUid) { return this._dao_1.getAllMarksForUserAsFlow_x6aw07_k$(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getAllMarksForSubmitterAsFlow_hpag2j_k$ = function (submitterUid, assignmentUid) { return this._dao_1.getAllMarksForSubmitterAsFlow_hpag2j_k$(submitterUid, assignmentUid); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getAllMarksForSubmitterAsFlowMarkerPersons_afijiu_k$ = function (submitterUid, assignmentUid, $completion) { return this._dao_1.getAllMarksForSubmitterAsFlowMarkerPersons_afijiu_k$(submitterUid, assignmentUid, $completion); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getAllMarksOfAssignmentForSubmitter_nyj0ih_k$ = function (assignmentUid, submitterUid, filter) { return this._dao_1.getAllMarksOfAssignmentForSubmitter_nyj0ih_k$(assignmentUid, submitterUid, filter); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).getMarkOfAssignmentForStudent_2szfuh_k$ = function (assignmentUid, submitterUid) { throw IllegalStateException_init_$Create$('getMarkOfAssignmentForStudent: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).findNextSubmitterToMarkForAssignment_4299te_k$ = function (assignmentUid, submitterUid, markerUid, $completion) { return this._dao_1.findNextSubmitterToMarkForAssignment_4299te_k$(assignmentUid, submitterUid, markerUid, $completion); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insert_adjd5t_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_adjd5t_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insertAsync_9yk1tm_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$144(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_9yk1tm_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insertList_39gou7_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_39gou7_k$(entityList); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).update_57v1b_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentMarkDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_57v1b_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_averageScore = $_result.getFloat_1jlp7w_k$('averageScore'); var _tmp_averagePenalty = $_result.getInt_npc9pd_k$('averagePenalty'); // Inline function 'kotlin.apply' call var this_0 = new AverageCourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getMarkOfAssignmentForSubmitterLiveData.....' call this_0.set_averageScore_9emdai_k$(_tmp_averageScore); this_0.set_averagePenalty_87iz7l_k$(_tmp_averagePenalty); return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda).invoke_n74p0n_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n74p0n_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n74p0n_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_markerFirstNames = $_result.getString_gb1pt9_k$('markerFirstNames'); var _tmp_markerLastName = $_result.getString_gb1pt9_k$('markerLastName'); var _tmp_markerPictureUri = $_result.getString_gb1pt9_k$('markerPictureUri'); var _tmp_CourseAssignmentMark_nullCount = 0; var _tmp_camUid = $_result.getLong_3wgf2g_k$('camUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_camAssignmentUid = $_result.getLong_3wgf2g_k$('camAssignmentUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_camSubmitterUid = $_result.getLong_3wgf2g_k$('camSubmitterUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_camMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('camMarkerSubmitterUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_camMarkerPersonUid = $_result.getLong_3wgf2g_k$('camMarkerPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_camMarkerComment = $_result.getString_gb1pt9_k$('camMarkerComment'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_camMark = $_result.getFloat_1jlp7w_k$('camMark'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_camMaxMark = $_result.getFloat_1jlp7w_k$('camMaxMark'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_camPenalty = $_result.getFloat_1jlp7w_k$('camPenalty'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_camLct = $_result.getLong_3wgf2g_k$('camLct'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_camClazzUid = $_result.getLong_3wgf2g_k$('camClazzUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMarkAndMarkerName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow.....' call this_0.set_markerFirstNames_lbldq0_k$(_tmp_markerFirstNames); this_0.set_markerLastName_e1vwe9_k$(_tmp_markerLastName); this_0.set_markerPictureUri_hh7eia_k$(_tmp_markerPictureUri); if (!_tmp_CourseAssignmentMark_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForUserAsFlow......' call this_1.set_camUid_ejfae8_k$(_tmp_camUid); this_1.set_camAssignmentUid_j3ay0j_k$(_tmp_camAssignmentUid); this_1.set_camSubmitterUid_kl6od7_k$(_tmp_camSubmitterUid); this_1.set_camMarkerSubmitterUid_eboa5x_k$(_tmp_camMarkerSubmitterUid); this_1.set_camMarkerPersonUid_xbe3hr_k$(_tmp_camMarkerPersonUid); this_1.set_camMarkerComment_by6xyc_k$(_tmp_camMarkerComment); this_1.set_camMark_87svl5_k$(_tmp_camMark); this_1.set_camMaxMark_ahvi6h_k$(_tmp_camMaxMark); this_1.set_camPenalty_f53gbz_k$(_tmp_camPenalty); this_1.set_camLct_mwq2cz_k$(_tmp_camLct); this_1.set_camClazzUid_408elw_k$(_tmp_camClazzUid); this_0.set_courseAssignmentMark_imci8v_k$(this_1); } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).invoke_ha6y3g_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ha6y3g_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ha6y3g_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_markerFirstNames = $_result.getString_gb1pt9_k$('markerFirstNames'); var _tmp_markerLastName = $_result.getString_gb1pt9_k$('markerLastName'); var _tmp_markerPictureUri = $_result.getString_gb1pt9_k$('markerPictureUri'); var _tmp_CourseAssignmentMark_nullCount = 0; var _tmp_camUid = $_result.getLong_3wgf2g_k$('camUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_camAssignmentUid = $_result.getLong_3wgf2g_k$('camAssignmentUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_camSubmitterUid = $_result.getLong_3wgf2g_k$('camSubmitterUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_camMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('camMarkerSubmitterUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_camMarkerPersonUid = $_result.getLong_3wgf2g_k$('camMarkerPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_camMarkerComment = $_result.getString_gb1pt9_k$('camMarkerComment'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_camMark = $_result.getFloat_1jlp7w_k$('camMark'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_camMaxMark = $_result.getFloat_1jlp7w_k$('camMaxMark'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_camPenalty = $_result.getFloat_1jlp7w_k$('camPenalty'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_camLct = $_result.getLong_3wgf2g_k$('camLct'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_camClazzUid = $_result.getLong_3wgf2g_k$('camClazzUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentMark_nullCount = _tmp_CourseAssignmentMark_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_CourseAssignmentMark_isAllNull = _tmp_CourseAssignmentMark_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMarkAndMarkerName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow.....' call this_0.set_markerFirstNames_lbldq0_k$(_tmp_markerFirstNames); this_0.set_markerLastName_e1vwe9_k$(_tmp_markerLastName); this_0.set_markerPictureUri_hh7eia_k$(_tmp_markerPictureUri); if (!_tmp_CourseAssignmentMark_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlow......' call this_1.set_camUid_ejfae8_k$(_tmp_camUid); this_1.set_camAssignmentUid_j3ay0j_k$(_tmp_camAssignmentUid); this_1.set_camSubmitterUid_kl6od7_k$(_tmp_camSubmitterUid); this_1.set_camMarkerSubmitterUid_eboa5x_k$(_tmp_camMarkerSubmitterUid); this_1.set_camMarkerPersonUid_xbe3hr_k$(_tmp_camMarkerPersonUid); this_1.set_camMarkerComment_by6xyc_k$(_tmp_camMarkerComment); this_1.set_camMark_87svl5_k$(_tmp_camMark); this_1.set_camMaxMark_ahvi6h_k$(_tmp_camMaxMark); this_1.set_camPenalty_f53gbz_k$(_tmp_camPenalty); this_1.set_camLct_mwq2cz_k$(_tmp_camLct); this_1.set_camClazzUid_408elw_k$(_tmp_camClazzUid); this_0.set_courseAssignmentMark_imci8v_k$(this_1); } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).invoke_ha6y3g_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ha6y3g_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ha6y3g_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlowMarkerPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlowMarkerPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getAllMarksForSubmitterAsFlowMarkerPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_isGroup = $_result.getBoolean_xz3hoo_k$('isGroup'); var _tmp_camUid = $_result.getLong_3wgf2g_k$('camUid'); var _tmp_camAssignmentUid = $_result.getLong_3wgf2g_k$('camAssignmentUid'); var _tmp_camSubmitterUid = $_result.getLong_3wgf2g_k$('camSubmitterUid'); var _tmp_camMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('camMarkerSubmitterUid'); var _tmp_camMarkerPersonUid = $_result.getLong_3wgf2g_k$('camMarkerPersonUid'); var _tmp_camMarkerComment = $_result.getString_gb1pt9_k$('camMarkerComment'); var _tmp_camMark = $_result.getFloat_1jlp7w_k$('camMark'); var _tmp_camMaxMark = $_result.getFloat_1jlp7w_k$('camMaxMark'); var _tmp_camPenalty = $_result.getFloat_1jlp7w_k$('camPenalty'); var _tmp_camLct = $_result.getLong_3wgf2g_k$('camLct'); var _tmp_camClazzUid = $_result.getLong_3wgf2g_k$('camClazzUid'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMarkWithPersonMarker(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_isGroup_i7r0zn_k$(_tmp_isGroup); this_0.set_camUid_ejfae8_k$(_tmp_camUid); this_0.set_camAssignmentUid_j3ay0j_k$(_tmp_camAssignmentUid); this_0.set_camSubmitterUid_kl6od7_k$(_tmp_camSubmitterUid); this_0.set_camMarkerSubmitterUid_eboa5x_k$(_tmp_camMarkerSubmitterUid); this_0.set_camMarkerPersonUid_xbe3hr_k$(_tmp_camMarkerPersonUid); this_0.set_camMarkerComment_by6xyc_k$(_tmp_camMarkerComment); this_0.set_camMark_87svl5_k$(_tmp_camMark); this_0.set_camMaxMark_ahvi6h_k$(_tmp_camMaxMark); this_0.set_camPenalty_f53gbz_k$(_tmp_camPenalty); this_0.set_camLct_mwq2cz_k$(_tmp_camLct); this_0.set_camClazzUid_408elw_k$(_tmp_camClazzUid); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_marker_onle6y_k$(this_1); } return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda($assignmentUid, $submitterUid, $filter, $_limit, $_offset, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; this.$filter_1 = $filter; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda).invoke_tg9u26_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_tg9u26_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setInt_c72a8z_k$(7, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(8, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda(this.$assignmentUid_1, this.$submitterUid_1, this.$filter_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda_0($assignmentUid, $submitterUid, $filter, $_limit, $_offset, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda($assignmentUid, $submitterUid, $filter, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_tg9u26_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda($assignmentUid, $submitterUid, $filter, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; this.$filter_1 = $filter; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda(this.$assignmentUid_1, this.$submitterUid_1, this.$filter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda_0($assignmentUid, $submitterUid, $filter, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda($assignmentUid, $submitterUid, $filter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).bindPreparedStmtToEntity_i6f6tm_k$ = function (stmt, entity) { if (entity.get_camUid_bsg5ca_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_camUid_bsg5ca_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_camAssignmentUid_se0bjx_k$()); stmt.setLong_j1sybo_k$(3, entity.get_camSubmitterUid_ghcel_k$()); stmt.setLong_j1sybo_k$(4, entity.get_camMarkerSubmitterUid_4ixg61_k$()); stmt.setLong_j1sybo_k$(5, entity.get_camMarkerPersonUid_g7yjbv_k$()); stmt.setString_2gt7ua_k$(6, entity.get_camMarkerComment_fhxt6n_k$()); stmt.setFloat_dia6lm_k$(7, entity.get_camMark_ac72ab_k$()); stmt.setFloat_dia6lm_k$(8, entity.get_camMaxMark_cropvv_k$()); stmt.setFloat_dia6lm_k$(9, entity.get_camPenalty_ch6xtp_k$()); stmt.setLong_j1sybo_k$(10, entity.get_camLct_bsfyjb_k$()); stmt.setLong_j1sybo_k$(11, entity.get_camClazzUid_p8wqsi_k$()); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_i6f6tm_k$(stmt, entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; function CourseAssignmentMarkDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_camAssignmentUid_se0bjx_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_camSubmitterUid_ghcel_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_camMarkerSubmitterUid_4ixg61_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_camMarkerPersonUid_g7yjbv_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_camMarkerComment_fhxt6n_k$()); _stmt.setFloat_dia6lm_k$(6, $entity.get_camMark_ac72ab_k$()); _stmt.setFloat_dia6lm_k$(7, $entity.get_camMaxMark_cropvv_k$()); _stmt.setFloat_dia6lm_k$(8, $entity.get_camPenalty_ch6xtp_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_camLct_bsfyjb_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_camClazzUid_p8wqsi_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_camUid_bsg5ca_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n LIMIT 1)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda$slambda_0(this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda).invoke_gb7kgj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_gb7kgj_k$($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n WITH ScoreByMarker (averageScore, averagePenalty) AS (\n SELECT AVG(camMark), AVG(camPenalty)\n FROM courseAssignmentMark\n JOIN ClazzAssignment\n ON caUid = courseAssignmentMark.camAssignmentUid \n AND camAssignmentUid = CAST(? AS BIGINT)\n AND camSubmitterUid = CAST(? AS BIGINT)\n WHERE camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = CAST(? AS BIGINT)\n AND mark.camSubmitterUid = CAST(? AS BIGINT)\n AND (caMarkingType = 1\n OR mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid))\n ) \n\n SELECT COALESCE(averageScore, -1) AS averageScore, COALESCE(averagePenalty, -1) AS averagePenalty\n FROM ScoreByMarker\n ', VOID, VOID, VOID, '\n WITH ScoreByMarker (averageScore, averagePenalty) AS (\n SELECT AVG(camMark), AVG(camPenalty)\n FROM courseAssignmentMark\n JOIN ClazzAssignment\n ON caUid = courseAssignmentMark.camAssignmentUid \n AND camAssignmentUid = ?\n AND camSubmitterUid = ?\n WHERE camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = ?\n AND mark.camSubmitterUid = ?\n AND (caMarkingType = 1\n OR mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid))\n ) \n\n SELECT COALESCE(averageScore, -1) AS averageScore, COALESCE(averagePenalty, -1) AS averagePenalty\n FROM ScoreByMarker\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda(this.this$0__1, this.$assignmentUid_1, this.$submitterUid_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.invoke_gb7kgj_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).invoke_ysa094_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_ysa094_k$($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ) > 0\n AND CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentMark.camLct DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ) > 0\n AND CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentMark.camLct DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this.this$0__1, this.$assignmentUid_1, this.$accountPersonUid_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_ysa094_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).invoke_ysa094_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_ysa094_k$($completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = CAST(? AS BIGINT)\n ORDER BY CourseAssignmentMark.camLct DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentMark.*,\n Person.firstNames AS markerFirstNames,\n Person.lastName AS markerLastName,\n PersonPicture.personPictureThumbnailUri AS markerPictureUri\n FROM CourseAssignmentMark\n LEFT JOIN Person\n ON Person.personUid = CourseAssignmentMark.camMarkerPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CourseAssignmentMark.camMarkerPersonUid\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = ?\n ORDER BY CourseAssignmentMark.camLct DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this.this$0__1, this.$assignmentUid_1, this.$submitterUid_1, completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.invoke_ysa094_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda).invoke_dgsx6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dgsx6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dgsx6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1(this$0, $assignmentUid, $submitterUid, $filter) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; this.$filter_1 = $filter; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['courseAssignmentMark', 'ClazzAssignment']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1).loadRows_gxlzid_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH ScoreByMarker AS (\n SELECT *\n FROM courseAssignmentMark \n WHERE camAssignmentUid = CAST(? AS BIGINT)\n AND camSubmitterUid = CAST(? AS BIGINT)\n AND (? = 0 OR camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = CAST(? AS BIGINT)\n AND mark.camSubmitterUid = CAST(? AS BIGINT)\n AND mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid\n )) \n ORDER BY camLct DESC) \n \n SELECT marker.*, ScoreByMarker.*, (ClazzAssignment.caGroupUid != 0) AS isGroup\n FROM ScoreByMarker\n JOIN Person As marker\n ON Marker.personUid = ScoreByMarker.camMarkerPersonUid\n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH ScoreByMarker AS (\n SELECT *\n FROM courseAssignmentMark \n WHERE camAssignmentUid = ?\n AND camSubmitterUid = ?\n AND (? = 0 OR camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = ?\n AND mark.camSubmitterUid = ?\n AND mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid\n )) \n ORDER BY camLct DESC) \n \n SELECT marker.*, ScoreByMarker.*, (ClazzAssignment.caGroupUid != 0) AS isGroup\n FROM ScoreByMarker\n JOIN Person As marker\n ON Marker.personUid = ScoreByMarker.camMarkerPersonUid\n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = ?\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$loadRows$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, this.$filter_1, _limit, _offset, null), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_gxlzid_k$(_limit, _offset, $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH ScoreByMarker AS (\n SELECT *\n FROM courseAssignmentMark \n WHERE camAssignmentUid = CAST(? AS BIGINT)\n AND camSubmitterUid = CAST(? AS BIGINT)\n AND (? = 0 OR camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = CAST(? AS BIGINT)\n AND mark.camSubmitterUid = CAST(? AS BIGINT)\n AND mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid\n )) \n ORDER BY camLct DESC) \n \n SELECT marker.*, ScoreByMarker.*, (ClazzAssignment.caGroupUid != 0) AS isGroup\n FROM ScoreByMarker\n JOIN Person As marker\n ON Marker.personUid = ScoreByMarker.camMarkerPersonUid\n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = CAST(? AS BIGINT)\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH ScoreByMarker AS (\n SELECT *\n FROM courseAssignmentMark \n WHERE camAssignmentUid = ?\n AND camSubmitterUid = ?\n AND (? = 0 OR camLct = (SELECT MAX(mark.camLct) \n FROM CourseAssignmentMark As mark\n WHERE mark.camAssignmentUid = ?\n AND mark.camSubmitterUid = ?\n AND mark.camMarkerSubmitterUid = courseAssignmentMark.camMarkerSubmitterUid\n )) \n ORDER BY camLct DESC) \n \n SELECT marker.*, ScoreByMarker.*, (ClazzAssignment.caGroupUid != 0) AS isGroup\n FROM ScoreByMarker\n JOIN Person As marker\n ON Marker.personUid = ScoreByMarker.camMarkerPersonUid\n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = ?\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$o$countRows$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, this.$filter_1, null), $completion); }; function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda$lambda(_result) { return mapNextRow(_result, null, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda$lambda$lambda(_result)); } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda$lambda$lambda($_result) { return function (it) { var _tmp_camUid = $_result.getLong_3wgf2g_k$('camUid'); var _tmp_camAssignmentUid = $_result.getLong_3wgf2g_k$('camAssignmentUid'); var _tmp_camSubmitterUid = $_result.getLong_3wgf2g_k$('camSubmitterUid'); var _tmp_camMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('camMarkerSubmitterUid'); var _tmp_camMarkerPersonUid = $_result.getLong_3wgf2g_k$('camMarkerPersonUid'); var _tmp_camMarkerComment = $_result.getString_gb1pt9_k$('camMarkerComment'); var _tmp_camMark = $_result.getFloat_1jlp7w_k$('camMark'); var _tmp_camMaxMark = $_result.getFloat_1jlp7w_k$('camMaxMark'); var _tmp_camPenalty = $_result.getFloat_1jlp7w_k$('camPenalty'); var _tmp_camLct = $_result.getLong_3wgf2g_k$('camLct'); var _tmp_camClazzUid = $_result.getLong_3wgf2g_k$('camClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentMarkDao_JdbcImpl.getMarkOfAssignmentForStudent....' call this_0.set_camUid_ejfae8_k$(_tmp_camUid); this_0.set_camAssignmentUid_j3ay0j_k$(_tmp_camAssignmentUid); this_0.set_camSubmitterUid_kl6od7_k$(_tmp_camSubmitterUid); this_0.set_camMarkerSubmitterUid_eboa5x_k$(_tmp_camMarkerSubmitterUid); this_0.set_camMarkerPersonUid_xbe3hr_k$(_tmp_camMarkerPersonUid); this_0.set_camMarkerComment_by6xyc_k$(_tmp_camMarkerComment); this_0.set_camMark_87svl5_k$(_tmp_camMark); this_0.set_camMaxMark_ahvi6h_k$(_tmp_camMaxMark); this_0.set_camPenalty_f53gbz_k$(_tmp_camPenalty); this_0.set_camLct_mwq2cz_k$(_tmp_camLct); this_0.set_camClazzUid_408elw_k$(_tmp_camClazzUid); return this_0; }; } function CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda($assignmentUid, $submitterUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $assignmentUid); _stmt.setLong_j1sybo_k$(2, $submitterUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda$lambda); }; } function CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda($submitterUid, $markerUid, $assignmentUid, resultContinuation) { this.$submitterUid_1 = $submitterUid; this.$markerUid_1 = $markerUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$markerUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$markerUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda(this.$submitterUid_1, this.$markerUid_1, this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda_0($submitterUid, $markerUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda($submitterUid, $markerUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$145(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$145).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseAssignmentMark_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentMarkDao_JdbcImpl(_db) { CourseAssignmentMarkDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseAssignmentMark_abort_1 = new CourseAssignmentMarkDao_JdbcImpl$_insertAdapterCourseAssignmentMark_abort$1(this); } protoOf(CourseAssignmentMarkDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentMarkDao_JdbcImpl).get__insertAdapterCourseAssignmentMark_abort_6qn26y_k$ = function () { return this._insertAdapterCourseAssignmentMark_abort_1; }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insert_adjd5t_k$ = function (entity) { var _retVal = this._insertAdapterCourseAssignmentMark_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_adjd5t_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insertAsync_9yk1tm_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$145(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_9yk1tm_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insertList_39gou7_k$ = function (entityList) { this._insertAdapterCourseAssignmentMark_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_39gou7_k$(entityList); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).update_57v1b_k$ = function (entity) { var _sql = 'UPDATE CourseAssignmentMark SET camAssignmentUid = ?, camSubmitterUid = ?, camMarkerSubmitterUid = ?, camMarkerPersonUid = ?, camMarkerComment = ?, camMark = ?, camMaxMark = ?, camPenalty = ?, camLct = ?, camClazzUid = ? WHERE camUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseAssignmentMarkDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_57v1b_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).checkNoSubmissionsMarked_2ffp0k_k$ = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentMark']; return doorFlow(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$checkNoSubmissionsMarked$slambda_0(this, assignmentUid, null)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getMarkOfAssignmentForSubmitterLiveData_w92w3_k$ = function (assignmentUid, submitterUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'CourseAssignmentMark', 'courseAssignmentMark']; return doorFlow(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForSubmitterLiveData$slambda_0(this, assignmentUid, submitterUid, null)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getAllMarksForUserAsFlow_x6aw07_k$ = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentMark', 'Person', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment', 'PersonPicture']; return doorFlow(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForUserAsFlow$slambda_0(this, assignmentUid, accountPersonUid, null)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getAllMarksForSubmitterAsFlow_hpag2j_k$ = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentMark', 'Person', 'PersonPicture']; return doorFlow(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getAllMarksForSubmitterAsFlowMarkerPersons_afijiu_k$ = function (submitterUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE PersonUid IN\n (SELECT CourseAssignmentMark.camMarkerPersonUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE PersonUid IN\n (SELECT CourseAssignmentMark.camMarkerPersonUid\n FROM CourseAssignmentMark\n WHERE CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getAllMarksForSubmitterAsFlowMarkerPersons$slambda_0(assignmentUid, submitterUid, null), $completion); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getAllMarksOfAssignmentForSubmitter_nyj0ih_k$ = function (assignmentUid, submitterUid, filter) { return new CourseAssignmentMarkDao_JdbcImpl$getAllMarksOfAssignmentForSubmitter$1(this, assignmentUid, submitterUid, filter); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).getMarkOfAssignmentForStudent_2szfuh_k$ = function (assignmentUid, submitterUid) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseAssignmentMark\n WHERE camAssignmentUid = CAST(? AS BIGINT)\n AND camSubmitterUid = CAST(? AS BIGINT)\n ORDER BY camLct DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseAssignmentMark\n WHERE camAssignmentUid = ?\n AND camSubmitterUid = ?\n ORDER BY camLct DESC\n LIMIT 1\n \n', true); return prepareAndUseStatement_0(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$getMarkOfAssignmentForStudent$lambda(assignmentUid, submitterUid)); }; protoOf(CourseAssignmentMarkDao_JdbcImpl).findNextSubmitterToMarkForAssignment_4299te_k$ = function (assignmentUid, submitterUid, markerUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE((\n SELECT casSubmitterUid\n FROM CourseAssignmentSubmission\n \n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = CourseAssignmentSubmission.casAssignmentUid\n \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camSubmitterUid = CourseAssignmentSubmission.casSubmitterUid\n AND CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n \n LEFT JOIN PeerReviewerAllocation\n ON praAssignmentUid = ClazzAssignment.caUid\n AND praToMarkerSubmitterUid = CAST(? AS BIGINT)\n \n WHERE CourseAssignmentSubmission.casSubmitterUid != CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid != CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camUid IS NULL\n AND (ClazzAssignment.caMarkingType = 1 \n OR PeerReviewerAllocation.praMarkerSubmitterUid = CAST(? AS BIGINT))\n GROUP BY casSubmitterUid\n LIMIT 1),0)\n ', VOID, VOID, VOID, '\n SELECT COALESCE((\n SELECT casSubmitterUid\n FROM CourseAssignmentSubmission\n \n JOIN ClazzAssignment\n ON ClazzAssignment.caUid = CourseAssignmentSubmission.casAssignmentUid\n \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camSubmitterUid = CourseAssignmentSubmission.casSubmitterUid\n AND CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n \n LEFT JOIN PeerReviewerAllocation\n ON praAssignmentUid = ClazzAssignment.caUid\n AND praToMarkerSubmitterUid = ?\n \n WHERE CourseAssignmentSubmission.casSubmitterUid != ?\n AND CourseAssignmentSubmission.casSubmitterUid != ?\n AND CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentMark.camUid IS NULL\n AND (ClazzAssignment.caMarkingType = 1 \n OR PeerReviewerAllocation.praMarkerSubmitterUid = ?)\n GROUP BY casSubmitterUid\n LIMIT 1),0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentMarkDao_JdbcImpl$findNextSubmitterToMarkForAssignment$slambda_0(submitterUid, markerUid, assignmentUid, null), $completion); }; function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentMarkDao/getAllMarksForUserAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentMarkDao/getAllMarksForSubmitterAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submitterUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this.this$0__1, this.$submitterUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentMarkDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentMarkDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentMarkDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseAssignmentMarkDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $getAllMarksForSubmitterAsFlowMarkerPersonsCOROUTINE$146(_this__u8e3s4, submitterUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.submitterUid_1 = submitterUid; this.assignmentUid_1 = assignmentUid; } protoOf($getAllMarksForSubmitterAsFlowMarkerPersonsCOROUTINE$146).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAllMarksForSubmitterAsFlowMarkerPersons_afijiu_k$(this.submitterUid_1, this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findNextSubmitterToMarkForAssignmentCOROUTINE$147(_this__u8e3s4, assignmentUid, submitterUid, markerUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.submitterUid_1 = submitterUid; this.markerUid_1 = markerUid; } protoOf($findNextSubmitterToMarkForAssignmentCOROUTINE$147).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findNextSubmitterToMarkForAssignment_4299te_k$(this.assignmentUid_1, this.submitterUid_1, this.markerUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$148(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$148).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentMarkDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentMarkDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CourseAssignmentMarkDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentMarkDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseAssignmentMarkDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseAssignmentMarkDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseAssignmentMarkDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseAssignmentMarkDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseAssignmentMarkDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CourseAssignmentMarkDao_Repo).checkNoSubmissionsMarked_2ffp0k_k$ = function (assignmentUid) { var _result = this._dao_1.checkNoSubmissionsMarked_2ffp0k_k$(assignmentUid); return _result; }; protoOf(CourseAssignmentMarkDao_Repo).getMarkOfAssignmentForSubmitterLiveData_w92w3_k$ = function (assignmentUid, submitterUid) { var _result = this._dao_1.getMarkOfAssignmentForSubmitterLiveData_w92w3_k$(assignmentUid, submitterUid); return _result; }; protoOf(CourseAssignmentMarkDao_Repo).getAllMarksForUserAsFlow_x6aw07_k$ = function (accountPersonUid, assignmentUid) { var tmp = this._dao_1.getAllMarksForUserAsFlow_x6aw07_k$(accountPersonUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForUserAsFlow$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentMarkDao_Repo).getAllMarksForSubmitterAsFlow_hpag2j_k$ = function (submitterUid, assignmentUid) { var tmp = this._dao_1.getAllMarksForSubmitterAsFlow_hpag2j_k$(submitterUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentMarkDao_Repo$getAllMarksForSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentMarkDao_Repo).getAllMarksForSubmitterAsFlowMarkerPersons_afijiu_k$ = function (submitterUid, assignmentUid, $completion) { var tmp = new $getAllMarksForSubmitterAsFlowMarkerPersonsCOROUTINE$146(this, submitterUid, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo).getAllMarksOfAssignmentForSubmitter_nyj0ih_k$ = function (assignmentUid, submitterUid, filter) { var _result = this._dao_1.getAllMarksOfAssignmentForSubmitter_nyj0ih_k$(assignmentUid, submitterUid, filter); return _result; }; protoOf(CourseAssignmentMarkDao_Repo).getMarkOfAssignmentForStudent_2szfuh_k$ = function (assignmentUid, submitterUid) { var _result = this._dao_1.getMarkOfAssignmentForStudent_2szfuh_k$(assignmentUid, submitterUid); return _result; }; protoOf(CourseAssignmentMarkDao_Repo).findNextSubmitterToMarkForAssignment_4299te_k$ = function (assignmentUid, submitterUid, markerUid, $completion) { var tmp = new $findNextSubmitterToMarkForAssignmentCOROUTINE$147(this, assignmentUid, submitterUid, markerUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo).insert_adjd5t_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseAssignmentMarkDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_adjd5t_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; protoOf(CourseAssignmentMarkDao_Repo).insertAsync_9yk1tm_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$148(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentMarkDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_9yk1tm_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentMarkDao_Repo).insertList_39gou7_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseAssignmentMarkDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_39gou7_k$(entityList); }; protoOf(CourseAssignmentMarkDao_Repo).update_57v1b_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentMark', CourseAssignmentMarkDao_Repo$update$lambda(this, entity)); }; protoOf(CourseAssignmentMarkDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_57v1b_k$(entity instanceof CourseAssignmentMark ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionDao() { } function _get__db__e63s44_17($this) { return $this._db_1; } function _get__dao__d2kw60_15($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$149(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$149).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_casUid_bsjz9g_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(522, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_casUid_fvrm92_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_casTimestamp_rwaz4w_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_bl16xh_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$150(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$150).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_casUid_bsjz9g_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(522, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_casUid_fvrm92_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_casTimestamp_rwaz4w_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_casUid_bsjz9g_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionDao_DoorWrapper(_db, _dao) { CourseAssignmentSubmissionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertListAsync_bl16xh_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$149(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).getAllSubmissionsFromSubmitter_ik9l7n_k$ = function (assignmentUid, submitterUid) { return this._dao_1.getAllSubmissionsFromSubmitter_ik9l7n_k$(assignmentUid, submitterUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).getAllSubmissionsForUser_79zdns_k$ = function (accountPersonUid, assignmentUid) { return this._dao_1.getAllSubmissionsForUser_79zdns_k$(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).getAllSubmissionsFromSubmitterAsFlow_7bm519_k$ = function (submitterUid, assignmentUid) { return this._dao_1.getAllSubmissionsFromSubmitterAsFlow_7bm519_k$(submitterUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).getLatestSubmissionForUserAsync_5vwiju_k$ = function (accountPersonUid, assignmentUid, $completion) { return this._dao_1.getLatestSubmissionForUserAsync_5vwiju_k$(accountPersonUid, assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).doesUserHaveSubmissions_taptgb_k$ = function (accountPersonUid, assignmentUid, $completion) { return this._dao_1.doesUserHaveSubmissions_taptgb_k$(accountPersonUid, assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).countFileSubmissionFromStudent_2ab17l_k$ = function (assignmentUid, submitterUid, $completion) { return this._dao_1.countFileSubmissionFromStudent_2ab17l_k$(assignmentUid, submitterUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).countSubmissionsFromSubmitter_oawmnm_k$ = function (assignmentUid, submitterUid, $completion) { return this._dao_1.countSubmissionsFromSubmitter_oawmnm_k$(assignmentUid, submitterUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).getStatusOfAssignmentForSubmitter_z7y9m4_k$ = function (assignmentUid, submitterUid) { return this._dao_1.getStatusOfAssignmentForSubmitter_z7y9m4_k$(assignmentUid, submitterUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).findLastSubmissionFromStudent_n5eub3_k$ = function (submitterUid, assignmentUid, $completion) { return this._dao_1.findLastSubmissionFromStudent_n5eub3_k$(submitterUid, assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).checkNoSubmissionsMade_5s6ew5_k$ = function (assignmentUid) { return this._dao_1.checkNoSubmissionsMade_5s6ew5_k$(assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).checkNoSubmissionsMadeAsync_wzh4fv_k$ = function (assignmentUid, $completion) { return this._dao_1.checkNoSubmissionsMadeAsync_wzh4fv_k$(assignmentUid, $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).checkNoSubmissionsMadeFlow_jyb7jn_k$ = function (assignmentUid) { return this._dao_1.checkNoSubmissionsMadeFlow_jyb7jn_k$(assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).findByUidAsFlow_fzg2cy_k$ = function (submissionUid) { return this._dao_1.findByUidAsFlow_fzg2cy_k$(submissionUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).findByAssignmentUidAndAccountPersonUid_6sz576_k$ = function (accountPersonUid, assignmentUid) { return this._dao_1.findByAssignmentUidAndAccountPersonUid_6sz576_k$(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insert_v1x3i8_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_v1x3i8_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertAsync_qx8t6t_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$150(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_qx8t6t_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertList_79u1c0_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_79u1c0_k$(entityList); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).update_na4uv4_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_na4uv4_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda($assignmentUid, $submitterUid, $_limit, $_offset, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda).invoke_foiv6s_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_foiv6s_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda(this.$assignmentUid_1, this.$submitterUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda_0($assignmentUid, $submitterUid, $_limit, $_offset, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda($assignmentUid, $submitterUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_foiv6s_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.getAllSubmissionsForUser.....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda).invoke_foiv6s_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_foiv6s_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_foiv6s_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.getAllSubmissionsFromSubmitterAsFlow.....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).invoke_foiv6s_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_foiv6s_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_foiv6s_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.getLatestSubmissionForUserAsync....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda$lambda(_result) { return mapNextRow(_result, null, CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.findLastSubmissionFromStudent....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda($submissionUid, resultContinuation) { this.$submissionUid_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_1kmdln_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1kmdln_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submissionUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$submissionUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda($submissionUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1kmdln_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_casUid = $_result.getLong_3wgf2g_k$('casUid'); var _tmp_casAssignmentUid = $_result.getLong_3wgf2g_k$('casAssignmentUid'); var _tmp_casSubmitterUid = $_result.getLong_3wgf2g_k$('casSubmitterUid'); var _tmp_casSubmitterPersonUid = $_result.getLong_3wgf2g_k$('casSubmitterPersonUid'); var _tmp_casText = $_result.getString_gb1pt9_k$('casText'); var _tmp_casType = $_result.getInt_npc9pd_k$('casType'); var _tmp_casTimestamp = $_result.getLong_3wgf2g_k$('casTimestamp'); var _tmp_casClazzUid = $_result.getLong_3wgf2g_k$('casClazzUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionDao_JdbcImpl.findByAssignmentUidAndAccountPersonUid.....' call this_0.set_casUid_fvrm92_k$(_tmp_casUid); this_0.set_casAssignmentUid_munb2r_k$(_tmp_casAssignmentUid); this_0.set_casSubmitterUid_oas9nj_k$(_tmp_casSubmitterUid); this_0.set_casSubmitterPersonUid_ow553o_k$(_tmp_casSubmitterPersonUid); this_0.set_casText_o0fpqq_k$(_tmp_casText); this_0.set_casType_8ly6iy_k$(_tmp_casType); this_0.set_casTimestamp_rwaz4w_k$(_tmp_casTimestamp); this_0.set_casClazzUid_apjj5a_k$(_tmp_casClazzUid); return this_0; }; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).invoke_foiv6s_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_foiv6s_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_foiv6s_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).bindPreparedStmtToEntity_d2ytn9_k$ = function (stmt, entity) { if (entity.get_casUid_bsjz9g_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_casUid_bsjz9g_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_casAssignmentUid_lryxmx_k$()); stmt.setLong_j1sybo_k$(3, entity.get_casSubmitterUid_snmiul_k$()); stmt.setLong_j1sybo_k$(4, entity.get_casSubmitterPersonUid_fp4ypu_k$()); stmt.setString_2gt7ua_k$(5, entity.get_casText_afmdvd_k$()); stmt.setInt_c72a8z_k$(6, entity.get_casType_afmshy_k$()); stmt.setLong_j1sybo_k$(7, entity.get_casTimestamp_n6jb3q_k$()); stmt.setLong_j1sybo_k$(8, entity.get_casClazzUid_8hraec_k$()); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_d2ytn9_k$(stmt, entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_casAssignmentUid_lryxmx_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_casSubmitterUid_snmiul_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_casSubmitterPersonUid_fp4ypu_k$()); _stmt.setString_2gt7ua_k$(4, $entity.get_casText_afmdvd_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_casType_afmshy_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_casTimestamp_n6jb3q_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_casClazzUid_8hraec_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_casUid_bsjz9g_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1(this$0, $assignmentUid, $submitterUid) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['CourseAssignmentSubmission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1).loadRows_5575td_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = CAST(? AS BIGINT)\n AND casSubmitterUid = CAST(? AS BIGINT)\n ORDER BY casTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = ?\n AND casSubmitterUid = ?\n ORDER BY casTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$loadRows$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, _limit, _offset, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_5575td_k$(_limit, _offset, $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = CAST(? AS BIGINT)\n AND casSubmitterUid = CAST(? AS BIGINT)\n ORDER BY casTimestamp DESC\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = ?\n AND casSubmitterUid = ?\n ORDER BY casTimestamp DESC\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$o$countRows$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, null), $completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda).invoke_w4bo3s_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_w4bo3s_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda(this.this$0__1, this.$assignmentUid_1, this.$accountPersonUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_w4bo3s_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).invoke_w4bo3s_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_w4bo3s_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = CAST(? AS BIGINT)\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = ?\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this.this$0__1, this.$assignmentUid_1, this.$submitterUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.invoke_w4bo3s_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda).invoke_1kmdln_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1kmdln_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1kmdln_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT COALESCE((\n SELECT (CASE WHEN CourseAssignmentMark.camAssignmentUid IS NOT NULL \n THEN 2\n ELSE 1 \n END) AS status\n FROM CourseAssignmentSubmission\n \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentMark.camSubmitterUid = CAST(? AS BIGINT)\n \n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = CAST(? AS BIGINT)\n LIMIT 1\n ),0) AS Status\n ', VOID, VOID, VOID, '\n SELECT COALESCE((\n SELECT (CASE WHEN CourseAssignmentMark.camAssignmentUid IS NOT NULL \n THEN 2\n ELSE 1 \n END) AS status\n FROM CourseAssignmentSubmission\n \n LEFT JOIN CourseAssignmentMark\n ON CourseAssignmentMark.camAssignmentUid = ?\n AND CourseAssignmentMark.camSubmitterUid = ?\n \n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = ?\n LIMIT 1\n ),0) AS Status\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda$slambda_0(this.$assignmentUid_1, this.$submitterUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda(this.this$0__1, this.$assignmentUid_1, this.$submitterUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda_0(this$0, $assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda(this$0, $assignmentUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda($assignmentUid, $submitterUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda).invoke_1kmdln_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1kmdln_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$submitterUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda(this.$assignmentUid_1, this.$submitterUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda_0($assignmentUid, $submitterUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda($assignmentUid, $submitterUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1kmdln_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n LIMIT 1)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda$slambda_0(this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0($assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n LIMIT 1)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda$slambda_0(this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $submissionUid, resultContinuation) { this.this$0__1 = this$0; this.$submissionUid_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda).invoke_7tbqa9_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_7tbqa9_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$submissionUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$submissionUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $submissionUid, resultContinuation); var l = function ($completion) { return i.invoke_7tbqa9_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).invoke_w4bo3s_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_w4bo3s_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ORDER BY CourseAssignmentSubmission.casTimestamp DESC\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this.this$0__1, this.$assignmentUid_1, this.$accountPersonUid_1, completion); }; function CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_w4bo3s_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$151(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$151).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseAssignmentSubmission_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionDao_JdbcImpl(_db) { CourseAssignmentSubmissionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseAssignmentSubmission_abort_1 = new CourseAssignmentSubmissionDao_JdbcImpl$_insertAdapterCourseAssignmentSubmission_abort$1(this); } protoOf(CourseAssignmentSubmissionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).get__insertAdapterCourseAssignmentSubmission_abort_ebzvqd_k$ = function () { return this._insertAdapterCourseAssignmentSubmission_abort_1; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertListAsync_bl16xh_k$ = function (entityList, $completion) { return this._insertAdapterCourseAssignmentSubmission_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insert_v1x3i8_k$ = function (entity) { var _retVal = this._insertAdapterCourseAssignmentSubmission_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_v1x3i8_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertAsync_qx8t6t_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$151(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_qx8t6t_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertList_79u1c0_k$ = function (entityList) { this._insertAdapterCourseAssignmentSubmission_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_79u1c0_k$(entityList); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).update_na4uv4_k$ = function (entity) { var _sql = 'UPDATE CourseAssignmentSubmission SET casAssignmentUid = ?, casSubmitterUid = ?, casSubmitterPersonUid = ?, casText = ?, casType = ?, casTimestamp = ?, casClazzUid = ? WHERE casUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseAssignmentSubmissionDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_na4uv4_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).getAllSubmissionsFromSubmitter_ik9l7n_k$ = function (assignmentUid, submitterUid) { return new CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitter$1(this, assignmentUid, submitterUid); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).getAllSubmissionsForUser_79zdns_k$ = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsForUser$slambda_0(this, assignmentUid, accountPersonUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).getAllSubmissionsFromSubmitterAsFlow_7bm519_k$ = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, assignmentUid, submitterUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).getLatestSubmissionForUserAsync_5vwiju_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n ORDER BY casTimestamp DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmission.*\n FROM CourseAssignmentSubmission\n WHERE casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = ?\n ORDER BY casTimestamp DESC\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getLatestSubmissionForUserAsync$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).doesUserHaveSubmissions_taptgb_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT EXISTS\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casSubmitterUid = (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n AND CourseAssignmentSubmission.casAssignmentUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$doesUserHaveSubmissions$slambda_0(assignmentUid, accountPersonUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).countFileSubmissionFromStudent_2ab17l_k$ = function (assignmentUid, submitterUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Count(casUid)\n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = CAST(? AS BIGINT)\n AND casSubmitterUid = CAST(? AS BIGINT)\n AND casType = 2\n ', VOID, VOID, VOID, '\n SELECT Count(casUid)\n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = ?\n AND casSubmitterUid = ?\n AND casType = 2\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$countFileSubmissionFromStudent$slambda_0(assignmentUid, submitterUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).countSubmissionsFromSubmitter_oawmnm_k$ = function (assignmentUid, submitterUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Count(casUid)\n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = CAST(? AS BIGINT)\n AND casSubmitterUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Count(casUid)\n FROM CourseAssignmentSubmission\n WHERE casAssignmentUid = ?\n AND casSubmitterUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$countSubmissionsFromSubmitter$slambda_0(assignmentUid, submitterUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).getStatusOfAssignmentForSubmitter_z7y9m4_k$ = function (assignmentUid, submitterUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'CourseAssignmentMark']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$getStatusOfAssignmentForSubmitter$slambda_0(this, assignmentUid, submitterUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).findLastSubmissionFromStudent_n5eub3_k$ = function (submitterUid, assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = CAST(? AS BIGINT)\n ORDER BY casTimestamp DESC\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = ?\n ORDER BY casTimestamp DESC\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$findLastSubmissionFromStudent$slambda_0(assignmentUid, submitterUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).checkNoSubmissionsMade_5s6ew5_k$ = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMade$slambda_0(this, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).checkNoSubmissionsMadeAsync_wzh4fv_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n LIMIT 1)\n ', VOID, VOID, VOID, '\n SELECT NOT EXISTS(SELECT 1\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n LIMIT 1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeAsync$slambda_0(assignmentUid, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).checkNoSubmissionsMadeFlow_jyb7jn_k$ = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$checkNoSubmissionsMadeFlow$slambda_0(this, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).findByUidAsFlow_fzg2cy_k$ = function (submissionUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$findByUidAsFlow$slambda_0(this, submissionUid, null)); }; protoOf(CourseAssignmentSubmissionDao_JdbcImpl).findByAssignmentUidAndAccountPersonUid_6sz576_k$ = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'CourseGroupMember', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionDao_JdbcImpl$findByAssignmentUidAndAccountPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null)); }; function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_bl16xh_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionDao/getAllSubmissionsFromSubmitterAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submitterUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this.this$0__1, this.$submitterUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$getLatestSubmissionForUserAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda(this$0, $submissionUid, resultContinuation) { this.this$0__1 = this$0; this.$submissionUid_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionDao/findByUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionDao/findByUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submissionUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submissionUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda(this.this$0__1, this.$submissionUid_1, completion); }; function CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda_0(this$0, $submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda(this$0, $submissionUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionDao/findByAssignmentUidAndAccountPersonUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this.this$0__1, this.$accountPersonUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentSubmissionDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseAssignmentSubmissionDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $getLatestSubmissionForUserAsyncCOROUTINE$152(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.assignmentUid_1 = assignmentUid; } protoOf($getLatestSubmissionForUserAsyncCOROUTINE$152).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionDao/getLatestSubmissionForUserAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionDao/getLatestSubmissionForUserAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'assignmentUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseAssignmentSubmissionDao_Repo$getLatestSubmissionForUserAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getLatestSubmissionForUserAsync_5vwiju_k$(this.accountPersonUid_1, this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $doesUserHaveSubmissionsCOROUTINE$153(_this__u8e3s4, accountPersonUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.assignmentUid_1 = assignmentUid; } protoOf($doesUserHaveSubmissionsCOROUTINE$153).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.doesUserHaveSubmissions_taptgb_k$(this.accountPersonUid_1, this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $countFileSubmissionFromStudentCOROUTINE$154(_this__u8e3s4, assignmentUid, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.submitterUid_1 = submitterUid; } protoOf($countFileSubmissionFromStudentCOROUTINE$154).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.countFileSubmissionFromStudent_2ab17l_k$(this.assignmentUid_1, this.submitterUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $countSubmissionsFromSubmitterCOROUTINE$155(_this__u8e3s4, assignmentUid, submitterUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; this.submitterUid_1 = submitterUid; } protoOf($countSubmissionsFromSubmitterCOROUTINE$155).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.countSubmissionsFromSubmitter_oawmnm_k$(this.assignmentUid_1, this.submitterUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findLastSubmissionFromStudentCOROUTINE$156(_this__u8e3s4, submitterUid, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.submitterUid_1 = submitterUid; this.assignmentUid_1 = assignmentUid; } protoOf($findLastSubmissionFromStudentCOROUTINE$156).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findLastSubmissionFromStudent_n5eub3_k$(this.submitterUid_1, this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $checkNoSubmissionsMadeAsyncCOROUTINE$157(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($checkNoSubmissionsMadeAsyncCOROUTINE$157).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.checkNoSubmissionsMadeAsync_wzh4fv_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$158(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$158).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentSubmissionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CourseAssignmentSubmissionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CourseAssignmentSubmissionDao_Repo).insertListAsync_bl16xh_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseAssignmentSubmissionDao_Repo).getAllSubmissionsFromSubmitter_ik9l7n_k$ = function (assignmentUid, submitterUid) { var _result = this._dao_1.getAllSubmissionsFromSubmitter_ik9l7n_k$(assignmentUid, submitterUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).getAllSubmissionsForUser_79zdns_k$ = function (accountPersonUid, assignmentUid) { var _result = this._dao_1.getAllSubmissionsForUser_79zdns_k$(accountPersonUid, assignmentUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).getAllSubmissionsFromSubmitterAsFlow_7bm519_k$ = function (submitterUid, assignmentUid) { var tmp = this._dao_1.getAllSubmissionsFromSubmitterAsFlow_7bm519_k$(submitterUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentSubmissionDao_Repo$getAllSubmissionsFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_Repo).getLatestSubmissionForUserAsync_5vwiju_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new $getLatestSubmissionForUserAsyncCOROUTINE$152(this, accountPersonUid, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).doesUserHaveSubmissions_taptgb_k$ = function (accountPersonUid, assignmentUid, $completion) { var tmp = new $doesUserHaveSubmissionsCOROUTINE$153(this, accountPersonUid, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).countFileSubmissionFromStudent_2ab17l_k$ = function (assignmentUid, submitterUid, $completion) { var tmp = new $countFileSubmissionFromStudentCOROUTINE$154(this, assignmentUid, submitterUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).countSubmissionsFromSubmitter_oawmnm_k$ = function (assignmentUid, submitterUid, $completion) { var tmp = new $countSubmissionsFromSubmitterCOROUTINE$155(this, assignmentUid, submitterUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).getStatusOfAssignmentForSubmitter_z7y9m4_k$ = function (assignmentUid, submitterUid) { var _result = this._dao_1.getStatusOfAssignmentForSubmitter_z7y9m4_k$(assignmentUid, submitterUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).findLastSubmissionFromStudent_n5eub3_k$ = function (submitterUid, assignmentUid, $completion) { var tmp = new $findLastSubmissionFromStudentCOROUTINE$156(this, submitterUid, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).checkNoSubmissionsMade_5s6ew5_k$ = function (assignmentUid) { var _result = this._dao_1.checkNoSubmissionsMade_5s6ew5_k$(assignmentUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).checkNoSubmissionsMadeAsync_wzh4fv_k$ = function (assignmentUid, $completion) { var tmp = new $checkNoSubmissionsMadeAsyncCOROUTINE$157(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).checkNoSubmissionsMadeFlow_jyb7jn_k$ = function (assignmentUid) { var _result = this._dao_1.checkNoSubmissionsMadeFlow_jyb7jn_k$(assignmentUid); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).findByUidAsFlow_fzg2cy_k$ = function (submissionUid) { var tmp = this._dao_1.findByUidAsFlow_fzg2cy_k$(submissionUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentSubmissionDao_Repo$findByUidAsFlow$slambda_0(this, submissionUid, null)); }; protoOf(CourseAssignmentSubmissionDao_Repo).findByAssignmentUidAndAccountPersonUid_6sz576_k$ = function (accountPersonUid, assignmentUid) { var tmp = this._dao_1.findByAssignmentUidAndAccountPersonUid_6sz576_k$(accountPersonUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentSubmissionDao_Repo$findByAssignmentUidAndAccountPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionDao_Repo).insert_v1x3i8_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseAssignmentSubmissionDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_v1x3i8_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionDao_Repo).insertAsync_qx8t6t_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$158(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_qx8t6t_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionDao_Repo).insertList_79u1c0_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseAssignmentSubmissionDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_79u1c0_k$(entityList); }; protoOf(CourseAssignmentSubmissionDao_Repo).update_na4uv4_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmission', CourseAssignmentSubmissionDao_Repo$update$lambda(this, entity)); }; protoOf(CourseAssignmentSubmissionDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_na4uv4_k$(entity instanceof CourseAssignmentSubmission ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionFileDao() { } function _get__db__e63s44_18($this) { return $this._db_1; } function _get__dao__d2kw60_16($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$159(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$159).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_casaUid_afucgr_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_casaUid_b6pf3d_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_casaTimestamp_t9qtg1_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_fqfk1z_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$160(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$160).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_casaUid_afucgr_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(90, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_casaUid_b6pf3d_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_casaTimestamp_t9qtg1_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_casaUid_afucgr_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionFileDao_DoorWrapper(_db, _dao) { CourseAssignmentSubmissionFileDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertListAsync_fqfk1z_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$159(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).getBySubmissionUid_umttft_k$ = function (submissionUid) { return this._dao_1.getBySubmissionUid_umttft_k$(submissionUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).getByAssignmentUidAndPersonUid_3hqs56_k$ = function (accountPersonUid, assignmentUid) { return this._dao_1.getByAssignmentUidAndPersonUid_3hqs56_k$(accountPersonUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).getAllSubmissionFilesFromSubmitterAsFlow_h3tgh_k$ = function (submitterUid, assignmentUid) { return this._dao_1.getAllSubmissionFilesFromSubmitterAsFlow_h3tgh_k$(submitterUid, assignmentUid); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).updateUri_d6wgvc_k$ = function (casaUid, uri, updateTime, $completion) { return this._dao_1.updateUri_d6wgvc_k$(casaUid, uri, updateTime, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).setDeleted_fijhxl_k$ = function (casaUid, deleted, updateTime, $completion) { return this._dao_1.setDeleted_fijhxl_k$(casaUid, deleted, updateTime, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insert_11thlw_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_11thlw_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertAsync_35cyxt_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$160(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_35cyxt_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertList_gn0rhg_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_gn0rhg_k$(entityList); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).update_o2lf38_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseAssignmentSubmissionFileDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_o2lf38_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.getLong_3wgf2g_k$('casaUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_casaSubmissionUid = $_result.getLong_3wgf2g_k$('casaSubmissionUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_casaSubmitterUid = $_result.getLong_3wgf2g_k$('casaSubmitterUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_casaCaUid = $_result.getLong_3wgf2g_k$('casaCaUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_casaClazzUid = $_result.getLong_3wgf2g_k$('casaClazzUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_casaMimeType = $_result.getString_gb1pt9_k$('casaMimeType'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_casaFileName = $_result.getString_gb1pt9_k$('casaFileName'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_casaUri = $_result.getString_gb1pt9_k$('casaUri'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_casaSize = $_result.getInt_npc9pd_k$('casaSize'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_casaTimestamp = $_result.getLong_3wgf2g_k$('casaTimestamp'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_casaDeleted = $_result.getBoolean_xz3hoo_k$('casaDeleted'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid......' call this_1.set_casaUid_b6pf3d_k$(_tmp_casaUid); this_1.set_casaSubmissionUid_kkikcj_k$(_tmp_casaSubmissionUid); this_1.set_casaSubmitterUid_nijjm6_k$(_tmp_casaSubmitterUid); this_1.set_casaCaUid_8pcmej_k$(_tmp_casaCaUid); this_1.set_casaClazzUid_1l6qu5_k$(_tmp_casaClazzUid); this_1.set_casaMimeType_fnm5kw_k$(_tmp_casaMimeType); this_1.set_casaFileName_wj90dj_k$(_tmp_casaFileName); this_1.set_casaUri_f6f9po_k$(_tmp_casaUri); this_1.set_casaSize_heel36_k$(_tmp_casaSize); this_1.set_casaTimestamp_t9qtg1_k$(_tmp_casaTimestamp); this_1.set_casaDeleted_xf74yt_k$(_tmp_casaDeleted); this_0.set_submissionFile_2jf413_k$(this_1); } if (!_tmp_TransferJobItem_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getBySubmissionUid......' call this_2.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_2.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_2.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_2.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_2.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_2.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_2.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_2.set_tjiType_zua7c_k$(_tmp_tjiType); this_2.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_2.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_2.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_2.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_2.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_2.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); this_0.set_transferJobItem_1laoav_k$(this_2); } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation) { this.$submissionUid_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).invoke_9i3sq0_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9i3sq0_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submissionUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda(this.$submissionUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0($submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda($submissionUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9i3sq0_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.getLong_3wgf2g_k$('casaUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_casaSubmissionUid = $_result.getLong_3wgf2g_k$('casaSubmissionUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_casaSubmitterUid = $_result.getLong_3wgf2g_k$('casaSubmitterUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_casaCaUid = $_result.getLong_3wgf2g_k$('casaCaUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_casaClazzUid = $_result.getLong_3wgf2g_k$('casaClazzUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_casaMimeType = $_result.getString_gb1pt9_k$('casaMimeType'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_casaFileName = $_result.getString_gb1pt9_k$('casaFileName'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_casaUri = $_result.getString_gb1pt9_k$('casaUri'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_casaSize = $_result.getInt_npc9pd_k$('casaSize'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_casaTimestamp = $_result.getLong_3wgf2g_k$('casaTimestamp'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_casaDeleted = $_result.getBoolean_xz3hoo_k$('casaDeleted'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid......' call this_1.set_casaUid_b6pf3d_k$(_tmp_casaUid); this_1.set_casaSubmissionUid_kkikcj_k$(_tmp_casaSubmissionUid); this_1.set_casaSubmitterUid_nijjm6_k$(_tmp_casaSubmitterUid); this_1.set_casaCaUid_8pcmej_k$(_tmp_casaCaUid); this_1.set_casaClazzUid_1l6qu5_k$(_tmp_casaClazzUid); this_1.set_casaMimeType_fnm5kw_k$(_tmp_casaMimeType); this_1.set_casaFileName_wj90dj_k$(_tmp_casaFileName); this_1.set_casaUri_f6f9po_k$(_tmp_casaUri); this_1.set_casaSize_heel36_k$(_tmp_casaSize); this_1.set_casaTimestamp_t9qtg1_k$(_tmp_casaTimestamp); this_1.set_casaDeleted_xf74yt_k$(_tmp_casaDeleted); this_0.set_submissionFile_2jf413_k$(this_1); } if (!_tmp_TransferJobItem_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getByAssignmentUidAndPersonUid......' call this_2.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_2.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_2.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_2.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_2.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_2.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_2.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_2.set_tjiType_zua7c_k$(_tmp_tjiType); this_2.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_2.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_2.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_2.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_2.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_2.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); this_0.set_transferJobItem_1laoav_k$(this_2); } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).invoke_9i3sq0_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9i3sq0_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0($assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda($assignmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9i3sq0_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseAssignmentSubmissionFile_nullCount = 0; var _tmp_casaUid = $_result.getLong_3wgf2g_k$('casaUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_casaSubmissionUid = $_result.getLong_3wgf2g_k$('casaSubmissionUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_casaSubmitterUid = $_result.getLong_3wgf2g_k$('casaSubmitterUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_casaCaUid = $_result.getLong_3wgf2g_k$('casaCaUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_casaClazzUid = $_result.getLong_3wgf2g_k$('casaClazzUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_casaMimeType = $_result.getString_gb1pt9_k$('casaMimeType'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_casaFileName = $_result.getString_gb1pt9_k$('casaFileName'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_casaUri = $_result.getString_gb1pt9_k$('casaUri'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_casaSize = $_result.getInt_npc9pd_k$('casaSize'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_casaTimestamp = $_result.getLong_3wgf2g_k$('casaTimestamp'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_casaDeleted = $_result.getBoolean_xz3hoo_k$('casaDeleted'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseAssignmentSubmissionFile_nullCount = _tmp_CourseAssignmentSubmissionFile_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_CourseAssignmentSubmissionFile_isAllNull = _tmp_CourseAssignmentSubmissionFile_nullCount === 11; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CourseAssignmentSubmissionFileAndTransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow.....' call if (!_tmp_CourseAssignmentSubmissionFile_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseAssignmentSubmissionFile(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow......' call this_1.set_casaUid_b6pf3d_k$(_tmp_casaUid); this_1.set_casaSubmissionUid_kkikcj_k$(_tmp_casaSubmissionUid); this_1.set_casaSubmitterUid_nijjm6_k$(_tmp_casaSubmitterUid); this_1.set_casaCaUid_8pcmej_k$(_tmp_casaCaUid); this_1.set_casaClazzUid_1l6qu5_k$(_tmp_casaClazzUid); this_1.set_casaMimeType_fnm5kw_k$(_tmp_casaMimeType); this_1.set_casaFileName_wj90dj_k$(_tmp_casaFileName); this_1.set_casaUri_f6f9po_k$(_tmp_casaUri); this_1.set_casaSize_heel36_k$(_tmp_casaSize); this_1.set_casaTimestamp_t9qtg1_k$(_tmp_casaTimestamp); this_1.set_casaDeleted_xf74yt_k$(_tmp_casaDeleted); this_0.set_submissionFile_2jf413_k$(this_1); } if (!_tmp_TransferJobItem_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseAssignmentSubmissionFileDao_JdbcImpl.getAllSubmissionFilesFromSubmitterAsFlow......' call this_2.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_2.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_2.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_2.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_2.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_2.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_2.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_2.set_tjiType_zua7c_k$(_tmp_tjiType); this_2.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_2.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_2.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_2.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_2.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_2.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); this_0.set_transferJobItem_1laoav_k$(this_2); } return this_0; }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation) { this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).invoke_9i3sq0_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9i3sq0_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda(this.$submitterUid_1, this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0($submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda($submitterUid, $assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9i3sq0_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseAssignmentSubmissionFile (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).bindPreparedStmtToEntity_474b01_k$ = function (stmt, entity) { if (entity.get_casaUid_afucgr_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_casaUid_afucgr_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_casaSubmissionUid_1x308f_k$()); stmt.setLong_j1sybo_k$(3, entity.get_casaSubmitterUid_1el2fw_k$()); stmt.setLong_j1sybo_k$(4, entity.get_casaCaUid_ha5di5_k$()); stmt.setLong_j1sybo_k$(5, entity.get_casaClazzUid_vuz2xf_k$()); stmt.setString_2gt7ua_k$(6, entity.get_casaMimeType_4l2wpv_k$()); stmt.setString_2gt7ua_k$(7, entity.get_casaFileName_ffvt18_k$()); stmt.setString_2gt7ua_k$(8, entity.get_casaUri_afucon_k$()); stmt.setInt_c72a8z_k$(9, entity.get_casaSize_vigstm_k$()); stmt.setLong_j1sybo_k$(10, entity.get_casaTimestamp_4es7c1_k$()); stmt.setBoolean_pzdm1v_k$(11, entity.get_casaDeleted_3maiuc_k$()); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_474b01_k$(stmt, entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_casaSubmissionUid_1x308f_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_casaSubmitterUid_1el2fw_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_casaCaUid_ha5di5_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_casaClazzUid_vuz2xf_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_casaMimeType_4l2wpv_k$()); _stmt.setString_2gt7ua_k$(6, $entity.get_casaFileName_ffvt18_k$()); _stmt.setString_2gt7ua_k$(7, $entity.get_casaUri_afucon_k$()); _stmt.setInt_c72a8z_k$(8, $entity.get_casaSize_vigstm_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_casaTimestamp_4es7c1_k$()); _stmt.setBoolean_pzdm1v_k$(10, $entity.get_casaDeleted_3maiuc_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_casaUid_afucgr_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation) { this.this$0__1 = this$0; this.$submissionUid_1 = $submissionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).invoke_2cplt8_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2cplt8_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = CAST(? AS BIGINT)\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid = ?\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda$slambda_0(this.$submissionUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this.this$0__1, this.$submissionUid_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this$0, $submissionUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda(this$0, $submissionUid, resultContinuation); var l = function ($completion) { return i.invoke_2cplt8_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).invoke_2cplt8_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2cplt8_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n ))\n AND NOT CourseAssignmentSubmissionFile.casaDeleted \n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmissionUid IN\n (SELECT CourseAssignmentSubmission.casUid\n FROM CourseAssignmentSubmission\n WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n AND CourseAssignmentSubmission.casSubmitterUid = \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n ))\n AND NOT CourseAssignmentSubmissionFile.casaDeleted \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this.this$0__1, this.$assignmentUid_1, this.$accountPersonUid_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda(this$0, $assignmentUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_2cplt8_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).invoke_2cplt8_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2cplt8_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = CAST(? AS BIGINT)\n AND CourseAssignmentSubmissionFile.casaCaUid = CAST(? AS BIGINT)\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n ', VOID, VOID, VOID, '\n SELECT CourseAssignmentSubmissionFile.*, TransferJobItem.*\n FROM CourseAssignmentSubmissionFile\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiEntityUid = CourseAssignmentSubmissionFile.casaUid\n AND TransferJobItem.tjiTableId = 90\n WHERE CourseAssignmentSubmissionFile.casaSubmitterUid = ?\n AND CourseAssignmentSubmissionFile.casaCaUid = ?\n AND NOT CourseAssignmentSubmissionFile.casaDeleted\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda$slambda_0(this.$submitterUid_1, this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.this$0__1, this.$submitterUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_2cplt8_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation) { this.$uri_1 = $uri; this.$updateTime_1 = $updateTime; this.$casaUid_1 = $casaUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$uri_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$casaUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda(this.$uri_1, this.$updateTime_1, this.$casaUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0($uri, $updateTime, $casaUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda($uri, $updateTime, $casaUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation) { this.$deleted_1 = $deleted; this.$updateTime_1 = $updateTime; this.$casaUid_1 = $casaUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$deleted_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$casaUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda(this.$deleted_1, this.$updateTime_1, this.$casaUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0($deleted, $updateTime, $casaUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda($deleted, $updateTime, $casaUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$161(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$161).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseAssignmentSubmissionFile_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateUriCOROUTINE$162(_this__u8e3s4, casaUid, uri, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.casaUid_1 = casaUid; this.uri_1 = uri; this.updateTime_1 = updateTime; } protoOf($updateUriCOROUTINE$162).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseAssignmentSubmissionFile\n SET casaUri = ?,\n casaTimestamp = CAST(? AS BIGINT)\n WHERE casaUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE CourseAssignmentSubmissionFile\n SET casaUri = ?,\n casaTimestamp = ?\n WHERE casaUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$updateUri$slambda_0(this.uri_1, this.updateTime_1, this.casaUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $setDeletedCOROUTINE$163(_this__u8e3s4, casaUid, deleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.casaUid_1 = casaUid; this.deleted_1 = deleted; this.updateTime_1 = updateTime; } protoOf($setDeletedCOROUTINE$163).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseAssignmentSubmissionFile\n SET casaDeleted = ?,\n casaTimestamp = CAST(? AS BIGINT)\n WHERE casaUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE CourseAssignmentSubmissionFile\n SET casaDeleted = ?,\n casaTimestamp = ?\n WHERE casaUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CourseAssignmentSubmissionFileDao_JdbcImpl$setDeleted$slambda_0(this.deleted_1, this.updateTime_1, this.casaUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionFileDao_JdbcImpl(_db) { CourseAssignmentSubmissionFileDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseAssignmentSubmissionFile_abort_1 = new CourseAssignmentSubmissionFileDao_JdbcImpl$_insertAdapterCourseAssignmentSubmissionFile_abort$1(this); } protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).get__insertAdapterCourseAssignmentSubmissionFile_abort_bfkflr_k$ = function () { return this._insertAdapterCourseAssignmentSubmissionFile_abort_1; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertListAsync_fqfk1z_k$ = function (entityList, $completion) { return this._insertAdapterCourseAssignmentSubmissionFile_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insert_11thlw_k$ = function (entity) { var _retVal = this._insertAdapterCourseAssignmentSubmissionFile_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_11thlw_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertAsync_35cyxt_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$161(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_35cyxt_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertList_gn0rhg_k$ = function (entityList) { this._insertAdapterCourseAssignmentSubmissionFile_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_gn0rhg_k$(entityList); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).update_o2lf38_k$ = function (entity) { var _sql = 'UPDATE CourseAssignmentSubmissionFile SET casaSubmissionUid = ?, casaSubmitterUid = ?, casaCaUid = ?, casaClazzUid = ?, casaMimeType = ?, casaFileName = ?, casaUri = ?, casaSize = ?, casaTimestamp = ?, casaDeleted = ? WHERE casaUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseAssignmentSubmissionFileDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_o2lf38_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).getBySubmissionUid_umttft_k$ = function (submissionUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getBySubmissionUid$slambda_0(this, submissionUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).getByAssignmentUidAndPersonUid_3hqs56_k$ = function (accountPersonUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseAssignmentSubmission', 'ClazzAssignment', 'TransferJobItem', 'CourseGroupMember', 'CourseAssignmentSubmissionFile', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getByAssignmentUidAndPersonUid$slambda_0(this, assignmentUid, accountPersonUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).getAllSubmissionFilesFromSubmitterAsFlow_h3tgh_k$ = function (submitterUid, assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJobItem', 'CourseAssignmentSubmissionFile']; return doorFlow(this._db_1, tmp, CourseAssignmentSubmissionFileDao_JdbcImpl$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).updateUri_d6wgvc_k$ = function (casaUid, uri, updateTime, $completion) { var tmp = new $updateUriCOROUTINE$162(this, casaUid, uri, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_JdbcImpl).setDeleted_fijhxl_k$ = function (casaUid, deleted, updateTime, $completion) { var tmp = new $setDeletedCOROUTINE$163(this, casaUid, deleted, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_fqfk1z_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionFileDao/getByAssignmentUidAndPersonUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this.this$0__1, this.$accountPersonUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda(this$0, $accountPersonUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$submitterUid_1 = $submitterUid; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseAssignmentSubmissionFileDao/getAllSubmissionFilesFromSubmitterAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'submitterUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submitterUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this.this$0__1, this.$submitterUid_1, this.$assignmentUid_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this$0, $submitterUid, $assignmentUid, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda(this$0, $submitterUid, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$casaUid_1 = $casaUid; this.$uri_1 = $uri; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUri_d6wgvc_k$(this.$casaUid_1, this.$uri_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this.this$0__1, this.$casaUid_1, this.$uri_1, this.$updateTime_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this$0, $casaUid, $uri, $updateTime, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda(this$0, $casaUid, $uri, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$casaUid_1 = $casaUid; this.$deleted_1 = $deleted; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.setDeleted_fijhxl_k$(this.$casaUid_1, this.$deleted_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this.this$0__1, this.$casaUid_1, this.$deleted_1, this.$updateTime_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this$0, $casaUid, $deleted, $updateTime, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda(this$0, $casaUid, $deleted, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseAssignmentSubmissionFileDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseAssignmentSubmissionFileDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $insertAsyncCOROUTINE$164(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$164).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseAssignmentSubmissionFileDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseAssignmentSubmissionFileDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CourseAssignmentSubmissionFileDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertListAsync_fqfk1z_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).getBySubmissionUid_umttft_k$ = function (submissionUid) { var _result = this._dao_1.getBySubmissionUid_umttft_k$(submissionUid); return _result; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).getByAssignmentUidAndPersonUid_3hqs56_k$ = function (accountPersonUid, assignmentUid) { var tmp = this._dao_1.getByAssignmentUidAndPersonUid_3hqs56_k$(accountPersonUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentSubmissionFileDao_Repo$getByAssignmentUidAndPersonUid$slambda_0(this, accountPersonUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).getAllSubmissionFilesFromSubmitterAsFlow_h3tgh_k$ = function (submitterUid, assignmentUid) { var tmp = this._dao_1.getAllSubmissionFilesFromSubmitterAsFlow_h3tgh_k$(submitterUid, assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseAssignmentSubmissionFileDao_Repo$getAllSubmissionFilesFromSubmitterAsFlow$slambda_0(this, submitterUid, assignmentUid, null)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).updateUri_d6wgvc_k$ = function (casaUid, uri, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$updateUri$slambda_0(this, casaUid, uri, updateTime, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).setDeleted_fijhxl_k$ = function (casaUid, deleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$setDeleted$slambda_0(this, casaUid, deleted, updateTime, null), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insert_11thlw_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_11thlw_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertAsync_35cyxt_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$164(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_35cyxt_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE(), $completion); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertList_gn0rhg_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_gn0rhg_k$(entityList); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).update_o2lf38_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseAssignmentSubmissionFile', CourseAssignmentSubmissionFileDao_Repo$update$lambda(this, entity)); }; protoOf(CourseAssignmentSubmissionFileDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_o2lf38_k$(entity instanceof CourseAssignmentSubmissionFile ? entity : THROW_CCE()); }; function CourseBlockDao() { } function _get__db__e63s44_19($this) { return $this._db_1; } function _get__dao__d2kw60_17($this) { return $this._dao_1; } function $replaceListAsyncCOROUTINE$165(_this__u8e3s4, list, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.list_1 = list; } protoOf($replaceListAsyncCOROUTINE$165).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.list_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cbUid_qoojw6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cbLct_ibdrxf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.replaceListAsync_744a8s_k$(this.list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListAsyncCOROUTINE$166(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($upsertListAsyncCOROUTINE$166).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cbUid_qoojw6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cbLct_ibdrxf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_z3hvvl_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$167(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$167).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cbUid_qoojw6_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cbLct_ibdrxf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cbUid_iplgso_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertListAsyncCOROUTINE$168(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$168).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(124, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cbUid_qoojw6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cbLct_ibdrxf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_it2cbm_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseBlockDao_DoorWrapper(_db, _dao) { CourseBlockDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseBlockDao_DoorWrapper).findByUidAsync_agzh7x_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_agzh7x_k$(uid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).existsByUid_ozlemp_k$ = function (cbUid, $completion) { return this._dao_1.existsByUid_ozlemp_k$(cbUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).updateAsync_26dpir_k$ = function (entity, $completion) { entity.set_cbLct_ibdrxf_k$(systemTimeInMillis()); return this._dao_1.updateAsync_26dpir_k$(entity, $completion); }; protoOf(CourseBlockDao_DoorWrapper).replaceListAsync_744a8s_k$ = function (list, $completion) { var tmp = new $replaceListAsyncCOROUTINE$165(this, list, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_DoorWrapper).findByUidAsyncAsFlow_4g6kz6_k$ = function (uid) { return this._dao_1.findByUidAsyncAsFlow_4g6kz6_k$(uid); }; protoOf(CourseBlockDao_DoorWrapper).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { return this._dao_1.findByUidWithPictureAsFlow_n0b42e_k$(uid); }; protoOf(CourseBlockDao_DoorWrapper).findAllCourseBlockByClazzUidAsync_etr9jl_k$ = function (clazzUid, includeInactive, $completion) { return this._dao_1.findAllCourseBlockByClazzUidAsync_etr9jl_k$(clazzUid, includeInactive, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findAllCourseBlockByClazzUidAsFlow_kcp6ff_k$ = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { return this._dao_1.findAllCourseBlockByClazzUidAsFlow_kcp6ff_k$(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); }; protoOf(CourseBlockDao_DoorWrapper).findAllCourseBlockByClazzUidAsPagingSource_i1uome_k$ = function (clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { return this._dao_1.findAllCourseBlockByClazzUidAsPagingSource_i1uome_k$(clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); }; protoOf(CourseBlockDao_DoorWrapper).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return this._dao_1.updateActiveByUid_i0tn2u_k$(cbUid, active, changeTime, $completion); }; protoOf(CourseBlockDao_DoorWrapper).upsertListAsync_z3hvvl_k$ = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$166(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_DoorWrapper).getTitleByAssignmentUid_cchnuk_k$ = function (assignmentUid) { return this._dao_1.getTitleByAssignmentUid_cchnuk_k$(assignmentUid); }; protoOf(CourseBlockDao_DoorWrapper).findByUidAsFlow_fzg2cy_k$ = function (courseBlockUid) { return this._dao_1.findByUidAsFlow_fzg2cy_k$(courseBlockUid); }; protoOf(CourseBlockDao_DoorWrapper).findCourseBlockAndClazzUidByDiscussionPostUid_r9l7tw_k$ = function (postUid, $completion) { return this._dao_1.findCourseBlockAndClazzUidByDiscussionPostUid_r9l7tw_k$(postUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findCourseBlockByDiscussionPostUid_rqoasv_k$ = function (postUid, $completion) { return this._dao_1.findCourseBlockByDiscussionPostUid_rqoasv_k$(postUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findClazzUidByCourseBlockUid_z7hesn_k$ = function (courseBlockUid, $completion) { return this._dao_1.findClazzUidByCourseBlockUid_z7hesn_k$(courseBlockUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findCourseBlockByAssignmentUid_b29grf_k$ = function (assignmentUid) { return this._dao_1.findCourseBlockByAssignmentUid_b29grf_k$(assignmentUid); }; protoOf(CourseBlockDao_DoorWrapper).findBySourcedId_y8kobh_k$ = function (sourcedId, accountPersonUid, $completion) { return this._dao_1.findBySourcedId_y8kobh_k$(sourcedId, accountPersonUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findByClazzUid_778hqu_k$ = function (clazzUid, $completion) { return this._dao_1.findByClazzUid_778hqu_k$(clazzUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findByClazzUidAsFlow_dhqahm_k$ = function (clazzUid) { return this._dao_1.findByClazzUidAsFlow_dhqahm_k$(clazzUid); }; protoOf(CourseBlockDao_DoorWrapper).updateFromLineItem_eg7myu_k$ = function (cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, $completion) { return this._dao_1.updateFromLineItem_eg7myu_k$(cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, $completion); }; protoOf(CourseBlockDao_DoorWrapper).findCourseBlockAndClazzUidByCbUid_itwlx1_k$ = function (cbUid, accountPersonUid, $completion) { return this._dao_1.findCourseBlockAndClazzUidByCbUid_itwlx1_k$(cbUid, accountPersonUid, $completion); }; protoOf(CourseBlockDao_DoorWrapper).insert_revdds_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseBlockDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_revdds_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_DoorWrapper).insertAsync_mo749z_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$167(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_mo749z_k$(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_DoorWrapper).insertList_4szak0_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseBlockDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4szak0_k$(entityList); }; protoOf(CourseBlockDao_DoorWrapper).update_ova2zk_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseBlockDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_ova2zk_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_DoorWrapper).insertListAsync_ixpmjt_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$168(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_DoorWrapper).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_ixpmjt_k$(entityList, $completion); }; protoOf(CourseBlockDao_DoorWrapper).updateListAsync_rftsop_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_DoorWrapper.updateListAsync.' call element.set_cbLct_ibdrxf_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_mdh99q_k$(entityList, $completion); }; protoOf(CourseBlockDao_DoorWrapper).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_rftsop_k$(entityList, $completion); }; function CourseBlockDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidAsync....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$existsByUid$slambda$lambda(_result) { return mapNextRow(_result, false, CourseBlockDao_JdbcImpl$existsByUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$existsByUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidAsyncAsFlow.....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda).invoke_ey861l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ey861l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ey861l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_block_ew53te_k$(this_1); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_2.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_2.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_2.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_2.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_picture_c40yux_k$(this_2); } return this_0; }; } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).invoke_wp4icr_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_wp4icr_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_wp4icr_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_assignmentCourseGroupSetName = $_result.getString_gb1pt9_k$('assignmentCourseGroupSetName'); var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_name = $_result.getString_gb1pt9_k$('name'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var tmp_57; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_57 = Unit_getInstance(); } var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var tmp_58; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_58 = Unit_getInstance(); } var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var tmp_59; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_59 = Unit_getInstance(); } var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var tmp_60; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_60 = Unit_getInstance(); } var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var tmp_61; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_61 = Unit_getInstance(); } var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var tmp_62; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_62 = Unit_getInstance(); } var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); var tmp_63; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_63 = Unit_getInstance(); } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var tmp_64; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_64 = Unit_getInstance(); } var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var tmp_65; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_65 = Unit_getInstance(); } var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var tmp_66; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_66 = Unit_getInstance(); } var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var tmp_67; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_67 = Unit_getInstance(); } var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var tmp_68; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_68 = Unit_getInstance(); } var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var tmp_69; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_69 = Unit_getInstance(); } var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var tmp_70; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_70 = Unit_getInstance(); } var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var tmp_71; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_71 = Unit_getInstance(); } var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var tmp_72; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_72 = Unit_getInstance(); } var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var tmp_73; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_73 = Unit_getInstance(); } var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var tmp_74; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_74 = Unit_getInstance(); } var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var tmp_75; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_75 = Unit_getInstance(); } var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var tmp_76; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_76 = Unit_getInstance(); } var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var tmp_77; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_77 = Unit_getInstance(); } var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var tmp_78; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_78 = Unit_getInstance(); } var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var tmp_79; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_79 = Unit_getInstance(); } var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var tmp_80; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_80 = Unit_getInstance(); } var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var tmp_81; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_81 = Unit_getInstance(); } var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var tmp_82; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_82 = Unit_getInstance(); } var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var tmp_83; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_83 = Unit_getInstance(); } var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var tmp_84; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_84 = Unit_getInstance(); } var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var tmp_85; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_85 = Unit_getInstance(); } var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var tmp_86; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_86 = Unit_getInstance(); } var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); var tmp_87; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_87 = Unit_getInstance(); } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndDbEntities(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync....' call this_0.set_assignmentCourseGroupSetName_nn2mzg_k$(_tmp_assignmentCourseGroupSetName); if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_courseBlock_x7q8yb_k$(this_1); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_2.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_2.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_2.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_2.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_courseBlockPicture_pbyd35_k$(this_2); } if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_3.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_3.set_title_ceyuu4_k$(_tmp_title); this_3.set_description_s1386w_k$(_tmp_description); this_3.set_entryId_b4l6o7_k$(_tmp_entryId); this_3.set_author_btovnz_k$(_tmp_author); this_3.set_publisher_u973bc_k$(_tmp_publisher); this_3.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_3.set_licenseName_gyoh54_k$(_tmp_licenseName); this_3.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_3.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_3.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_3.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_3.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_3.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_3.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_3.set_leaf_nt94be_k$(_tmp_leaf); this_3.set_publik_bkafrt_k$(_tmp_publik); this_3.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_3.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_3.set_minScore_d3l9dh_k$(_tmp_minScore); this_3.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_3.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_3.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_3.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_3.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_3.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_3.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_3); } if (!_tmp_Language_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_4.set_langUid_ci1fyx_k$(_tmp_langUid); this_4.set_name_wkmnld_k$(_tmp_name); this_4.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_4.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_4.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_4.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_4.set_languageActive_33gxtm_k$(_tmp_languageActive); this_4.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_4.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_4.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_4.set_langLct_kvc7xo_k$(_tmp_langLct); this_0.set_contentEntryLang_4hi70w_k$(this_4); } if (!_tmp_ClazzAssignment_isAllNull) { // Inline function 'kotlin.apply' call var this_5 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsync.....' call this_5.set_caUid_qwqlvb_k$(_tmp_caUid); this_5.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_5.set_caDescription_trgpu2_k$(_tmp_caDescription); this_5.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_5.set_caActive_hd63bg_k$(_tmp_caActive); this_5.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_5.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_5.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_5.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_5.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_5.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_5.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_5.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_5.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_5.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_5.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_5.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_5.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_5.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_5.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_5.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_5.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_5.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_5.set_caLct_ijftwk_k$(_tmp_caLct); this_0.set_assignment_6aqel7_k$(this_5); } return this_0; }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_courseBlock_x7q8yb_k$(this_1); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_2.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_2.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_2.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_2.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_courseBlockPicture_pbyd35_k$(this_2); } if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_3.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_3.set_title_ceyuu4_k$(_tmp_title); this_3.set_description_s1386w_k$(_tmp_description); this_3.set_entryId_b4l6o7_k$(_tmp_entryId); this_3.set_author_btovnz_k$(_tmp_author); this_3.set_publisher_u973bc_k$(_tmp_publisher); this_3.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_3.set_licenseName_gyoh54_k$(_tmp_licenseName); this_3.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_3.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_3.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_3.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_3.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_3.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_3.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_3.set_leaf_nt94be_k$(_tmp_leaf); this_3.set_publik_bkafrt_k$(_tmp_publik); this_3.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_3.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_3.set_minScore_d3l9dh_k$(_tmp_minScore); this_3.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_3.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_3.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_3.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_3.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_3.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_3.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_3); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findAllCourseBlockByClazzUidAsFlow......' call this_4.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_4.set_cepLct_jp50ni_k$(_tmp_cepLct); this_4.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_4.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_contentEntryPicture2_lwy733_k$(this_4); } return this_0; }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).invoke_2czlxe_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_2czlxe_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeInactive_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeHidden_1); this._stmt_1.setLong_j1sybo_k$(4, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(5, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda(this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda($clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_2czlxe_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_courseBlock_x7q8yb_k$(this_1); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_2.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_2.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_2.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_courseBlockPicture_pbyd35_k$(this_2); } if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_3.set_title_ceyuu4_k$(_tmp_title); this_3.set_description_s1386w_k$(_tmp_description); this_3.set_entryId_b4l6o7_k$(_tmp_entryId); this_3.set_author_btovnz_k$(_tmp_author); this_3.set_publisher_u973bc_k$(_tmp_publisher); this_3.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_3.set_licenseName_gyoh54_k$(_tmp_licenseName); this_3.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_3.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_3.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_3.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_3.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_3.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_3.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_3.set_leaf_nt94be_k$(_tmp_leaf); this_3.set_publik_bkafrt_k$(_tmp_publik); this_3.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_3.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_3.set_minScore_d3l9dh_k$(_tmp_minScore); this_3.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_3.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_3.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_3.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_3.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_3.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_3.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_3); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_4.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_4.set_cepLct_jp50ni_k$(_tmp_cepLct); this_4.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_4.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_contentEntryPicture2_lwy733_k$(this_4); } return this_0; }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, $_limit, $_offset, resultContinuation) { this.$collapseList_1 = $collapseList; this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda).invoke_2czlxe_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_2czlxe_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$collapseList_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); var tmp_1 = this._stmt_1.getConnection_hr2oto_k$(); var this_1 = this.$collapseList_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$includeInactive_1); this._stmt_1.setBoolean_pzdm1v_k$(5, this.$includeHidden_1); this._stmt_1.setLong_j1sybo_k$(6, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(7, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(10, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(11, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda(this.$collapseList_1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda_0($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, $_limit, $_offset, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_2czlxe_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.$collapseList_1 = $collapseList; this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$collapseList_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); var tmp_1 = this._stmt_1.getConnection_hr2oto_k$(); var this_1 = this.$collapseList_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$includeInactive_1); this._stmt_1.setBoolean_pzdm1v_k$(5, this.$includeHidden_1); this._stmt_1.setLong_j1sybo_k$(6, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(7, this.$hideUntilFilterTime_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda(this.$collapseList_1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda_0($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda($collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda($courseBlockUid, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_ey861l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ey861l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$courseBlockUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($courseBlockUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda($courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ey861l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_courseBlockUid = $_result.getLong_3wgf2g_k$('courseBlockUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlockUidAndClazzUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockAndClazzUidByDiscussionPostUid....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_courseBlockUid_rygvur_k$(_tmp_courseBlockUid); return this_0; }; } function CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByDiscussionPostUid....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_ClazzAssignment_nullCount = 0; var _tmp_caUid = $_result.getLong_3wgf2g_k$('caUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_caTitle = $_result.getString_gb1pt9_k$('caTitle'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_caDescription = $_result.getString_gb1pt9_k$('caDescription'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_caGroupUid = $_result.getLong_3wgf2g_k$('caGroupUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_caActive = $_result.getBoolean_xz3hoo_k$('caActive'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_caClassCommentEnabled = $_result.getBoolean_xz3hoo_k$('caClassCommentEnabled'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_caPrivateCommentsEnabled = $_result.getBoolean_xz3hoo_k$('caPrivateCommentsEnabled'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_caCompletionCriteria = $_result.getInt_npc9pd_k$('caCompletionCriteria'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_caRequireFileSubmission = $_result.getBoolean_xz3hoo_k$('caRequireFileSubmission'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_caFileType = $_result.getInt_npc9pd_k$('caFileType'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_caSizeLimit = $_result.getInt_npc9pd_k$('caSizeLimit'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_caNumberOfFiles = $_result.getInt_npc9pd_k$('caNumberOfFiles'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_caSubmissionPolicy = $_result.getInt_npc9pd_k$('caSubmissionPolicy'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_caMarkingType = $_result.getInt_npc9pd_k$('caMarkingType'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_caRequireTextSubmission = $_result.getBoolean_xz3hoo_k$('caRequireTextSubmission'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_caTextLimitType = $_result.getInt_npc9pd_k$('caTextLimitType'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_caTextLimit = $_result.getInt_npc9pd_k$('caTextLimit'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_caXObjectUid = $_result.getLong_3wgf2g_k$('caXObjectUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_caClazzUid = $_result.getLong_3wgf2g_k$('caClazzUid'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_caPeerReviewerCount = $_result.getInt_npc9pd_k$('caPeerReviewerCount'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_caLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('caLocalChangeSeqNum'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_caMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('caMasterChangeSeqNum'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_caLastChangedBy = $_result.getInt_npc9pd_k$('caLastChangedBy'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_caLct = $_result.getLong_3wgf2g_k$('caLct'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzAssignment_nullCount = _tmp_ClazzAssignment_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_ClazzAssignment_isAllNull = _tmp_ClazzAssignment_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid.....' call if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid......' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_courseBlock_x7q8yb_k$(this_1); } if (!_tmp_ClazzAssignment_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockByAssignmentUid......' call this_2.set_caUid_qwqlvb_k$(_tmp_caUid); this_2.set_caTitle_3qxfdm_k$(_tmp_caTitle); this_2.set_caDescription_trgpu2_k$(_tmp_caDescription); this_2.set_caGroupUid_zfz5m6_k$(_tmp_caGroupUid); this_2.set_caActive_hd63bg_k$(_tmp_caActive); this_2.set_caClassCommentEnabled_p72yl2_k$(_tmp_caClassCommentEnabled); this_2.set_caPrivateCommentsEnabled_dvommo_k$(_tmp_caPrivateCommentsEnabled); this_2.set_caCompletionCriteria_z3wimm_k$(_tmp_caCompletionCriteria); this_2.set_caRequireFileSubmission_9cvgub_k$(_tmp_caRequireFileSubmission); this_2.set_caFileType_gbiz2v_k$(_tmp_caFileType); this_2.set_caSizeLimit_8q851l_k$(_tmp_caSizeLimit); this_2.set_caNumberOfFiles_oglxsc_k$(_tmp_caNumberOfFiles); this_2.set_caSubmissionPolicy_yxt3u9_k$(_tmp_caSubmissionPolicy); this_2.set_caMarkingType_x9hdas_k$(_tmp_caMarkingType); this_2.set_caRequireTextSubmission_31no36_k$(_tmp_caRequireTextSubmission); this_2.set_caTextLimitType_g3o1ut_k$(_tmp_caTextLimitType); this_2.set_caTextLimit_j6mogb_k$(_tmp_caTextLimit); this_2.set_caXObjectUid_q9jbvu_k$(_tmp_caXObjectUid); this_2.set_caClazzUid_5omoyd_k$(_tmp_caClazzUid); this_2.set_caPeerReviewerCount_w0n7sr_k$(_tmp_caPeerReviewerCount); this_2.set_caLocalChangeSeqNum_uzi0dl_k$(_tmp_caLocalChangeSeqNum); this_2.set_caMasterChangeSeqNum_jco7hm_k$(_tmp_caMasterChangeSeqNum); this_2.set_caLastChangedBy_n7nzqm_k$(_tmp_caLastChangedBy); this_2.set_caLct_ijftwk_k$(_tmp_caLct); this_0.set_assignment_6aqel7_k$(this_2); } return this_0; }; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).invoke_6k8eug_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6k8eug_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0($assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6k8eug_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findBySourcedId$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findBySourcedId$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findBySourcedId$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findBySourcedId....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$findByClazzUid$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findByClazzUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUid....' call this_0.set_cbUid_qoojw6_k$(_tmp_cbUid); this_0.set_cbType_tflke_k$(_tmp_cbType); this_0.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_0.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_0.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_0.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_0.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_0.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_0.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_0.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_0.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_0.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_0.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_0.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_0.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_0.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_0.set_cbActive_isa26r_k$(_tmp_cbActive); this_0.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_0.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_0.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_0.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_0.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); return this_0; }; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseBlock_nullCount = 0; var _tmp_cbUid = $_result.getLong_3wgf2g_k$('cbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cbType = $_result.getInt_npc9pd_k$('cbType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cbIndentLevel = $_result.getInt_npc9pd_k$('cbIndentLevel'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cbModuleParentBlockUid = $_result.getLong_3wgf2g_k$('cbModuleParentBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cbTitle = $_result.getString_gb1pt9_k$('cbTitle'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cbDescription = $_result.getString_gb1pt9_k$('cbDescription'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cbCompletionCriteria = $_result.getInt_npc9pd_k$('cbCompletionCriteria'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cbHideUntilDate = $_result.getLong_3wgf2g_k$('cbHideUntilDate'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_cbDeadlineDate = $_result.getLong_3wgf2g_k$('cbDeadlineDate'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_cbLateSubmissionPenalty = $_result.getInt_npc9pd_k$('cbLateSubmissionPenalty'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_cbGracePeriodDate = $_result.getLong_3wgf2g_k$('cbGracePeriodDate'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_cbMaxPoints = getFloatNullable($_result, 'cbMaxPoints'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_cbMinPoints = getFloatNullable($_result, 'cbMinPoints'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_cbIndex = $_result.getInt_npc9pd_k$('cbIndex'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_cbClazzUid = $_result.getLong_3wgf2g_k$('cbClazzUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_cbClazzSourcedId = $_result.getString_gb1pt9_k$('cbClazzSourcedId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_cbActive = $_result.getBoolean_xz3hoo_k$('cbActive'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_cbHidden = $_result.getBoolean_xz3hoo_k$('cbHidden'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_cbEntityUid = $_result.getLong_3wgf2g_k$('cbEntityUid'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_cbLct = $_result.getLong_3wgf2g_k$('cbLct'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_cbMetadata = $_result.getString_gb1pt9_k$('cbMetadata'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_cbCreatedByAppId = $_result.getString_gb1pt9_k$('cbCreatedByAppId'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlock_nullCount = _tmp_CourseBlock_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_CourseBlock_isAllNull = _tmp_CourseBlock_nullCount === 23; var _tmp_CourseBlockPicture_nullCount = 0; var _tmp_cbpUid = $_result.getLong_3wgf2g_k$('cbpUid'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_cbpLct = $_result.getLong_3wgf2g_k$('cbpLct'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_cbpPictureUri = $_result.getString_gb1pt9_k$('cbpPictureUri'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_cbpThumbnailUri = $_result.getString_gb1pt9_k$('cbpThumbnailUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseBlockPicture_nullCount = _tmp_CourseBlockPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_CourseBlockPicture_isAllNull = _tmp_CourseBlockPicture_nullCount === 4; var _tmp_ContentEntry_nullCount = 0; var _tmp_contentEntryUid = $_result.getLong_3wgf2g_k$('contentEntryUid'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_title = $_result.getString_gb1pt9_k$('title'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_description = $_result.getString_gb1pt9_k$('description'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_entryId = $_result.getString_gb1pt9_k$('entryId'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_author = $_result.getString_gb1pt9_k$('author'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_publisher = $_result.getString_gb1pt9_k$('publisher'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_licenseType = $_result.getInt_npc9pd_k$('licenseType'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_licenseName = $_result.getString_gb1pt9_k$('licenseName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_licenseUrl = $_result.getString_gb1pt9_k$('licenseUrl'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_sourceUrl = $_result.getString_gb1pt9_k$('sourceUrl'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_thumbnailUrl = $_result.getString_gb1pt9_k$('thumbnailUrl'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_lastModified = $_result.getLong_3wgf2g_k$('lastModified'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_primaryLanguageUid = $_result.getLong_3wgf2g_k$('primaryLanguageUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_languageVariantUid = $_result.getLong_3wgf2g_k$('languageVariantUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_contentFlags = $_result.getInt_npc9pd_k$('contentFlags'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_leaf = $_result.getBoolean_xz3hoo_k$('leaf'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_publik = $_result.getBoolean_xz3hoo_k$('publik'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_ceInactive = $_result.getBoolean_xz3hoo_k$('ceInactive'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_completionCriteria = $_result.getInt_npc9pd_k$('completionCriteria'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_minScore = $_result.getInt_npc9pd_k$('minScore'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_contentTypeFlag = $_result.getInt_npc9pd_k$('contentTypeFlag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_contentOwner = $_result.getLong_3wgf2g_k$('contentOwner'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_contentOwnerType = $_result.getInt_npc9pd_k$('contentOwnerType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_contentEntryLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryLocalChangeSeqNum'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_contentEntryMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('contentEntryMasterChangeSeqNum'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_contentEntryLastChangedBy = $_result.getInt_npc9pd_k$('contentEntryLastChangedBy'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_contentEntryLct = $_result.getLong_3wgf2g_k$('contentEntryLct'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntry_nullCount = _tmp_ContentEntry_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_ContentEntry_isAllNull = _tmp_ContentEntry_nullCount === 27; var _tmp_ContentEntryPicture2_nullCount = 0; var _tmp_cepUid = $_result.getLong_3wgf2g_k$('cepUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_cepLct = $_result.getLong_3wgf2g_k$('cepLct'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_cepPictureUri = $_result.getString_gb1pt9_k$('cepPictureUri'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_cepThumbnailUri = $_result.getString_gb1pt9_k$('cepThumbnailUri'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_ContentEntryPicture2_nullCount = _tmp_ContentEntryPicture2_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_ContentEntryPicture2_isAllNull = _tmp_ContentEntryPicture2_nullCount === 4; // Inline function 'kotlin.apply' call var this_0 = new CourseBlockAndGradebookDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow.....' call if (!_tmp_CourseBlock_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseBlock(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_1.set_cbUid_qoojw6_k$(_tmp_cbUid); this_1.set_cbType_tflke_k$(_tmp_cbType); this_1.set_cbIndentLevel_b0ddcc_k$(_tmp_cbIndentLevel); this_1.set_cbModuleParentBlockUid_5us6sp_k$(_tmp_cbModuleParentBlockUid); this_1.set_cbTitle_bruk91_k$(_tmp_cbTitle); this_1.set_cbDescription_l0w0bt_k$(_tmp_cbDescription); this_1.set_cbCompletionCriteria_jl4izz_k$(_tmp_cbCompletionCriteria); this_1.set_cbHideUntilDate_jhoca8_k$(_tmp_cbHideUntilDate); this_1.set_cbDeadlineDate_j15nic_k$(_tmp_cbDeadlineDate); this_1.set_cbLateSubmissionPenalty_spbtzh_k$(_tmp_cbLateSubmissionPenalty); this_1.set_cbGracePeriodDate_ynrpub_k$(_tmp_cbGracePeriodDate); this_1.set_cbMaxPoints_fbqjqu_k$(_tmp_cbMaxPoints); this_1.set_cbMinPoints_5fzt3w_k$(_tmp_cbMinPoints); this_1.set_cbIndex_grlur6_k$(_tmp_cbIndex); this_1.set_cbClazzUid_79ru4q_k$(_tmp_cbClazzUid); this_1.set_cbClazzSourcedId_wwkfjj_k$(_tmp_cbClazzSourcedId); this_1.set_cbActive_isa26r_k$(_tmp_cbActive); this_1.set_cbHidden_de3tzl_k$(_tmp_cbHidden); this_1.set_cbEntityUid_m0t7oz_k$(_tmp_cbEntityUid); this_1.set_cbLct_ibdrxf_k$(_tmp_cbLct); this_1.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); this_1.set_cbMetadata_bvbmlo_k$(_tmp_cbMetadata); this_1.set_cbCreatedByAppId_3wodr6_k$(_tmp_cbCreatedByAppId); this_0.set_block_ew53te_k$(this_1); } if (!_tmp_CourseBlockPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CourseBlockPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_2.set_cbpUid_m5d5ky_k$(_tmp_cbpUid); this_2.set_cbpLct_uinxjp_k$(_tmp_cbpLct); this_2.set_cbpPictureUri_1ihaej_k$(_tmp_cbpPictureUri); this_2.set_cbpThumbnailUri_omc7nn_k$(_tmp_cbpThumbnailUri); this_0.set_courseBlockPicture_pbyd35_k$(this_2); } if (!_tmp_ContentEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_3.set_contentEntryUid_82c9uk_k$(_tmp_contentEntryUid); this_3.set_title_ceyuu4_k$(_tmp_title); this_3.set_description_s1386w_k$(_tmp_description); this_3.set_entryId_b4l6o7_k$(_tmp_entryId); this_3.set_author_btovnz_k$(_tmp_author); this_3.set_publisher_u973bc_k$(_tmp_publisher); this_3.set_licenseType_n5xz3q_k$(_tmp_licenseType); this_3.set_licenseName_gyoh54_k$(_tmp_licenseName); this_3.set_licenseUrl_1fxkks_k$(_tmp_licenseUrl); this_3.set_sourceUrl_nz40kg_k$(_tmp_sourceUrl); this_3.set_thumbnailUrl_m15vw7_k$(_tmp_thumbnailUrl); this_3.set_lastModified_2tc4ma_k$(_tmp_lastModified); this_3.set_primaryLanguageUid_mnu87f_k$(_tmp_primaryLanguageUid); this_3.set_languageVariantUid_j38ahq_k$(_tmp_languageVariantUid); this_3.set_contentFlags_bzqxgd_k$(_tmp_contentFlags); this_3.set_leaf_nt94be_k$(_tmp_leaf); this_3.set_publik_bkafrt_k$(_tmp_publik); this_3.set_ceInactive_jm4757_k$(_tmp_ceInactive); this_3.set_completionCriteria_r963w0_k$(_tmp_completionCriteria); this_3.set_minScore_d3l9dh_k$(_tmp_minScore); this_3.set_contentTypeFlag_c07dx6_k$(_tmp_contentTypeFlag); this_3.set_contentOwner_87csqv_k$(_tmp_contentOwner); this_3.set_contentOwnerType_rj9ic7_k$(_tmp_contentOwnerType); this_3.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_tmp_contentEntryLocalChangeSeqNum); this_3.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_tmp_contentEntryMasterChangeSeqNum); this_3.set_contentEntryLastChangedBy_5d0hdj_k$(_tmp_contentEntryLastChangedBy); this_3.set_contentEntryLct_ayi47_k$(_tmp_contentEntryLct); this_0.set_contentEntry_b75rdr_k$(this_3); } if (!_tmp_ContentEntryPicture2_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new ContentEntryPicture2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findByClazzUidAsFlow......' call this_4.set_cepUid_s2fsm9_k$(_tmp_cepUid); this_4.set_cepLct_jp50ni_k$(_tmp_cepLct); this_4.set_cepPictureUri_op8u48_k$(_tmp_cepPictureUri); this_4.set_cepThumbnailUri_vrexy_k$(_tmp_cepThumbnailUri); this_0.set_contentEntryPicture2_lwy733_k$(this_4); } return this_0; }; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).invoke_vsvjeg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vsvjeg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0($clazzUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vsvjeg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda$lambda(_result) { return mapNextRow(_result, null, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda$lambda$lambda(_result)); } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); var _tmp_courseBlockUid = $_result.getLong_3wgf2g_k$('courseBlockUid'); // Inline function 'kotlin.apply' call var this_0 = new CourseBlockUidAndClazzUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseBlockDao_JdbcImpl.findCourseBlockAndClazzUidByCbUid....' call this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); this_0.set_courseBlockUid_rygvur_k$(_tmp_courseBlockUid); return this_0; }; } function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).bindPreparedStmtToEntity_12oogl_k$ = function (stmt, entity) { if (entity.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cbUid_iplgso_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_cbType_bskq4i_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cbIndentLevel_ss1m8_k$()); stmt.setLong_j1sybo_k$(4, entity.get_cbModuleParentBlockUid_kgmwbj_k$()); stmt.setString_2gt7ua_k$(5, entity.get_cbTitle_ag03f4_k$()); stmt.setString_2gt7ua_k$(6, entity.get_cbDescription_asqepg_k$()); stmt.setInt_c72a8z_k$(7, entity.get_cbCompletionCriteria_u1vf4z_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cbHideUntilDate_7s19tu_k$()); stmt.setLong_j1sybo_k$(9, entity.get_cbDeadlineDate_nvh1aq_k$()); stmt.setInt_c72a8z_k$(10, entity.get_cbLateSubmissionPenalty_1lsxv5_k$()); stmt.setLong_j1sybo_k$(11, entity.get_cbGracePeriodDate_kapsrj_k$()); setFloatNullable(stmt, 12, entity.get_cbMaxPoints_s83kbl_k$()); setFloatNullable(stmt, 13, entity.get_cbMinPoints_fg6o1f_k$()); stmt.setInt_c72a8z_k$(14, entity.get_cbIndex_aa17t6_k$()); stmt.setLong_j1sybo_k$(15, entity.get_cbClazzUid_8ps9nk_k$()); stmt.setString_2gt7ua_k$(16, entity.get_cbClazzSourcedId_4wy0j8_k$()); stmt.setBoolean_pzdm1v_k$(17, entity.get_cbActive_ukh3bi_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_cbHidden_xysvqq_k$()); stmt.setLong_j1sybo_k$(19, entity.get_cbEntityUid_tffl3v_k$()); stmt.setLong_j1sybo_k$(20, entity.get_cbLct_ipl9zp_k$()); stmt.setString_2gt7ua_k$(21, entity.get_cbSourcedId_pret24_k$()); stmt.setString_2gt7ua_k$(22, entity.get_cbMetadata_aacz49_k$()); stmt.setString_2gt7ua_k$(23, entity.get_cbCreatedByAppId_1p8i63_k$()); }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_12oogl_k$(stmt, entity instanceof CourseBlock ? entity : THROW_CCE()); }; function CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).bindPreparedStmtToEntity_12oogl_k$ = function (stmt, entity) { if (entity.get_cbUid_iplgso_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cbUid_iplgso_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_cbType_bskq4i_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cbIndentLevel_ss1m8_k$()); stmt.setLong_j1sybo_k$(4, entity.get_cbModuleParentBlockUid_kgmwbj_k$()); stmt.setString_2gt7ua_k$(5, entity.get_cbTitle_ag03f4_k$()); stmt.setString_2gt7ua_k$(6, entity.get_cbDescription_asqepg_k$()); stmt.setInt_c72a8z_k$(7, entity.get_cbCompletionCriteria_u1vf4z_k$()); stmt.setLong_j1sybo_k$(8, entity.get_cbHideUntilDate_7s19tu_k$()); stmt.setLong_j1sybo_k$(9, entity.get_cbDeadlineDate_nvh1aq_k$()); stmt.setInt_c72a8z_k$(10, entity.get_cbLateSubmissionPenalty_1lsxv5_k$()); stmt.setLong_j1sybo_k$(11, entity.get_cbGracePeriodDate_kapsrj_k$()); setFloatNullable(stmt, 12, entity.get_cbMaxPoints_s83kbl_k$()); setFloatNullable(stmt, 13, entity.get_cbMinPoints_fg6o1f_k$()); stmt.setInt_c72a8z_k$(14, entity.get_cbIndex_aa17t6_k$()); stmt.setLong_j1sybo_k$(15, entity.get_cbClazzUid_8ps9nk_k$()); stmt.setString_2gt7ua_k$(16, entity.get_cbClazzSourcedId_4wy0j8_k$()); stmt.setBoolean_pzdm1v_k$(17, entity.get_cbActive_ukh3bi_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_cbHidden_xysvqq_k$()); stmt.setLong_j1sybo_k$(19, entity.get_cbEntityUid_tffl3v_k$()); stmt.setLong_j1sybo_k$(20, entity.get_cbLct_ipl9zp_k$()); stmt.setString_2gt7ua_k$(21, entity.get_cbSourcedId_pret24_k$()); stmt.setString_2gt7ua_k$(22, entity.get_cbMetadata_aacz49_k$()); stmt.setString_2gt7ua_k$(23, entity.get_cbCreatedByAppId_1p8i63_k$()); }; protoOf(CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_12oogl_k$(stmt, entity instanceof CourseBlock ? entity : THROW_CCE()); }; function CourseBlockDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$entity_1.get_cbType_bskq4i_k$()); this._stmt_1.setInt_c72a8z_k$(2, this.$entity_1.get_cbIndentLevel_ss1m8_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$entity_1.get_cbModuleParentBlockUid_kgmwbj_k$()); this._stmt_1.setString_2gt7ua_k$(4, this.$entity_1.get_cbTitle_ag03f4_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$entity_1.get_cbDescription_asqepg_k$()); this._stmt_1.setInt_c72a8z_k$(6, this.$entity_1.get_cbCompletionCriteria_u1vf4z_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_cbHideUntilDate_7s19tu_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_cbDeadlineDate_nvh1aq_k$()); this._stmt_1.setInt_c72a8z_k$(9, this.$entity_1.get_cbLateSubmissionPenalty_1lsxv5_k$()); this._stmt_1.setLong_j1sybo_k$(10, this.$entity_1.get_cbGracePeriodDate_kapsrj_k$()); setFloatNullable(this._stmt_1, 11, this.$entity_1.get_cbMaxPoints_s83kbl_k$()); setFloatNullable(this._stmt_1, 12, this.$entity_1.get_cbMinPoints_fg6o1f_k$()); this._stmt_1.setInt_c72a8z_k$(13, this.$entity_1.get_cbIndex_aa17t6_k$()); this._stmt_1.setLong_j1sybo_k$(14, this.$entity_1.get_cbClazzUid_8ps9nk_k$()); this._stmt_1.setString_2gt7ua_k$(15, this.$entity_1.get_cbClazzSourcedId_4wy0j8_k$()); this._stmt_1.setBoolean_pzdm1v_k$(16, this.$entity_1.get_cbActive_ukh3bi_k$()); this._stmt_1.setBoolean_pzdm1v_k$(17, this.$entity_1.get_cbHidden_xysvqq_k$()); this._stmt_1.setLong_j1sybo_k$(18, this.$entity_1.get_cbEntityUid_tffl3v_k$()); this._stmt_1.setLong_j1sybo_k$(19, this.$entity_1.get_cbLct_ipl9zp_k$()); this._stmt_1.setString_2gt7ua_k$(20, this.$entity_1.get_cbSourcedId_pret24_k$()); this._stmt_1.setString_2gt7ua_k$(21, this.$entity_1.get_cbMetadata_aacz49_k$()); this._stmt_1.setString_2gt7ua_k$(22, this.$entity_1.get_cbCreatedByAppId_1p8i63_k$()); this._stmt_1.setLong_j1sybo_k$(23, this.$entity_1.get_cbUid_iplgso_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setInt_c72a8z_k$(1, $entity.get_cbType_bskq4i_k$()); _stmt.setInt_c72a8z_k$(2, $entity.get_cbIndentLevel_ss1m8_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_cbModuleParentBlockUid_kgmwbj_k$()); _stmt.setString_2gt7ua_k$(4, $entity.get_cbTitle_ag03f4_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_cbDescription_asqepg_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_cbCompletionCriteria_u1vf4z_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_cbHideUntilDate_7s19tu_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_cbDeadlineDate_nvh1aq_k$()); _stmt.setInt_c72a8z_k$(9, $entity.get_cbLateSubmissionPenalty_1lsxv5_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_cbGracePeriodDate_kapsrj_k$()); setFloatNullable(_stmt, 11, $entity.get_cbMaxPoints_s83kbl_k$()); setFloatNullable(_stmt, 12, $entity.get_cbMinPoints_fg6o1f_k$()); _stmt.setInt_c72a8z_k$(13, $entity.get_cbIndex_aa17t6_k$()); _stmt.setLong_j1sybo_k$(14, $entity.get_cbClazzUid_8ps9nk_k$()); _stmt.setString_2gt7ua_k$(15, $entity.get_cbClazzSourcedId_4wy0j8_k$()); _stmt.setBoolean_pzdm1v_k$(16, $entity.get_cbActive_ukh3bi_k$()); _stmt.setBoolean_pzdm1v_k$(17, $entity.get_cbHidden_xysvqq_k$()); _stmt.setLong_j1sybo_k$(18, $entity.get_cbEntityUid_tffl3v_k$()); _stmt.setLong_j1sybo_k$(19, $entity.get_cbLct_ipl9zp_k$()); _stmt.setString_2gt7ua_k$(20, $entity.get_cbSourcedId_pret24_k$()); _stmt.setString_2gt7ua_k$(21, $entity.get_cbMetadata_aacz49_k$()); _stmt.setString_2gt7ua_k$(22, $entity.get_cbCreatedByAppId_1p8i63_k$()); _stmt.setLong_j1sybo_k$(23, $entity.get_cbUid_iplgso_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseBlockDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation) { this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entityList_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setInt_c72a8z_k$(1, this._entity1__1.get_cbType_bskq4i_k$()); this._stmt_1.setInt_c72a8z_k$(2, this._entity1__1.get_cbIndentLevel_ss1m8_k$()); this._stmt_1.setLong_j1sybo_k$(3, this._entity1__1.get_cbModuleParentBlockUid_kgmwbj_k$()); this._stmt_1.setString_2gt7ua_k$(4, this._entity1__1.get_cbTitle_ag03f4_k$()); this._stmt_1.setString_2gt7ua_k$(5, this._entity1__1.get_cbDescription_asqepg_k$()); this._stmt_1.setInt_c72a8z_k$(6, this._entity1__1.get_cbCompletionCriteria_u1vf4z_k$()); this._stmt_1.setLong_j1sybo_k$(7, this._entity1__1.get_cbHideUntilDate_7s19tu_k$()); this._stmt_1.setLong_j1sybo_k$(8, this._entity1__1.get_cbDeadlineDate_nvh1aq_k$()); this._stmt_1.setInt_c72a8z_k$(9, this._entity1__1.get_cbLateSubmissionPenalty_1lsxv5_k$()); this._stmt_1.setLong_j1sybo_k$(10, this._entity1__1.get_cbGracePeriodDate_kapsrj_k$()); setFloatNullable(this._stmt_1, 11, this._entity1__1.get_cbMaxPoints_s83kbl_k$()); setFloatNullable(this._stmt_1, 12, this._entity1__1.get_cbMinPoints_fg6o1f_k$()); this._stmt_1.setInt_c72a8z_k$(13, this._entity1__1.get_cbIndex_aa17t6_k$()); this._stmt_1.setLong_j1sybo_k$(14, this._entity1__1.get_cbClazzUid_8ps9nk_k$()); this._stmt_1.setString_2gt7ua_k$(15, this._entity1__1.get_cbClazzSourcedId_4wy0j8_k$()); this._stmt_1.setBoolean_pzdm1v_k$(16, this._entity1__1.get_cbActive_ukh3bi_k$()); this._stmt_1.setBoolean_pzdm1v_k$(17, this._entity1__1.get_cbHidden_xysvqq_k$()); this._stmt_1.setLong_j1sybo_k$(18, this._entity1__1.get_cbEntityUid_tffl3v_k$()); this._stmt_1.setLong_j1sybo_k$(19, this._entity1__1.get_cbLct_ipl9zp_k$()); this._stmt_1.setString_2gt7ua_k$(20, this._entity1__1.get_cbSourcedId_pret24_k$()); this._stmt_1.setString_2gt7ua_k$(21, this._entity1__1.get_cbMetadata_aacz49_k$()); this._stmt_1.setString_2gt7ua_k$(22, this._entity1__1.get_cbCreatedByAppId_1p8i63_k$()); this._stmt_1.setLong_j1sybo_k$(23, this._entity1__1.get_cbUid_iplgso_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$updateListAsync$slambda(this.$entityList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$updateListAsync$slambda_0($entityList, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidAsync$slambda).invoke_ey861l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ey861l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ey861l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$existsByUid$slambda($cbUid, resultContinuation) { this.$cbUid_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$existsByUid$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$existsByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$existsByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$existsByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$existsByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$existsByUid$slambda(this.$cbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$existsByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$existsByUid$slambda_0($cbUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$existsByUid$slambda($cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda).invoke_netssz_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_netssz_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM CourseBlock WHERE cbUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM CourseBlock WHERE cbUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_netssz_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).invoke_k3c5oh_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_k3c5oh_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, CourseBlockPicture.*\n FROM CourseBlock\n LEFT JOIN CourseBlockPicture \n ON CourseBlockPicture.cbpUid = CAST(? AS BIGINT)\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, CourseBlockPicture.*\n FROM CourseBlock\n LEFT JOIN CourseBlockPicture \n ON CourseBlockPicture.cbpUid = ?\n WHERE CourseBlock.cbUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_k3c5oh_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).invoke_fj5mox_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_fj5mox_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeInactive_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda(this.$clazzUid_1, this.$includeInactive_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0($clazzUid, $includeInactive, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda($clazzUid, $includeInactive, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_fj5mox_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).invoke_n6k3yq_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_n6k3yq_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (CAST(? AS BIGINT) >= CourseBlock.cbHideUntilDate)\n AND (CAST(? AS BIGINT) >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300)\n AND CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ORDER BY CourseBlock.cbIndex \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (? >= CourseBlock.cbHideUntilDate)\n AND (? >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300)\n AND ? = ? \n ORDER BY CourseBlock.cbIndex \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda$slambda_0(this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, completion); }; function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_n6k3yq_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1(this$0, $collapseList, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid) { this.this$0__1 = this$0; this.$collapseList_1 = $collapseList; this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1).loadRows_gwsc51_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*,\n CourseBlock.cbUid NOT IN(?) AS expanded\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CourseBlock.cbModuleParentBlockUid NOT IN(?)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (CAST(? AS BIGINT) >= CourseBlock.cbHideUntilDate)\n AND (CAST(? AS BIGINT) >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300) \n AND CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ORDER BY CourseBlock.cbIndex \n ) AS _PagingData LIMIT ? OFFSET ?', true, VOID, VOID, 'SELECT * FROM (\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*,\n CourseBlock.cbUid NOT IN(?) AS expanded\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND CourseBlock.cbModuleParentBlockUid NOT IN(?)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (? >= CourseBlock.cbHideUntilDate)\n AND (? >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300) \n AND ? = ? \n ORDER BY CourseBlock.cbIndex \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$loadRows$slambda_0(this.$collapseList_1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, _limit, _offset, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_gwsc51_k$(_limit, _offset, $completion); }; protoOf(CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*,\n CourseBlock.cbUid NOT IN(?) AS expanded\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CourseBlock.cbModuleParentBlockUid NOT IN(?)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (CAST(? AS BIGINT) >= CourseBlock.cbHideUntilDate)\n AND (CAST(? AS BIGINT) >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300) \n AND CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ORDER BY CourseBlock.cbIndex \n ) AS _PagingCount', true, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*,\n CourseBlock.cbUid NOT IN(?) AS expanded\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND CourseBlock.cbModuleParentBlockUid NOT IN(?)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CAST(? AS INTEGER) = 1 OR NOT CourseBlock.cbHidden)\n AND (? >= CourseBlock.cbHideUntilDate)\n AND (? >= COALESCE(\n (SELECT CourseBlockParent.cbHideUntilDate\n FROM CourseBlock CourseBlockParent\n WHERE CourseBlockParent.cbUid = CourseBlock.cbModuleParentBlockUid), 0))\n AND (CourseBlock.cbType != 300) \n AND ? = ? \n ORDER BY CourseBlock.cbIndex \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$o$countRows$slambda_0(this.$collapseList_1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, null), $completion); }; function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$cbUid_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda(this.$active_1, this.$changeTime_1, this.$cbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$updateActiveByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda).invoke_723mci_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_723mci_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.cbTitle\n FROM CourseBlock \n WHERE CourseBlock.cbEntityUid = CAST(? AS BIGINT)\n AND CourseBlock.cbType = 103\n ', VOID, VOID, VOID, '\n SELECT CourseBlock.cbTitle\n FROM CourseBlock \n WHERE CourseBlock.cbEntityUid = ?\n AND CourseBlock.cbType = 103\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda$slambda_0(this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_723mci_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $courseBlockUid, resultContinuation) { this.this$0__1 = this$0; this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda).invoke_netssz_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_netssz_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$courseBlockUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$courseBlockUid_1, completion); }; function CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $courseBlockUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $courseBlockUid, resultContinuation); var l = function ($completion) { return i.invoke_netssz_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation) { this.$postUid_1 = $postUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).invoke_6govz1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6govz1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda(this.$postUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0($postUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda($postUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6govz1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda($postUid, resultContinuation) { this.$postUid_1 = $postUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda).invoke_ey861l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ey861l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda(this.$postUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda_0($postUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda($postUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ey861l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda(this.$courseBlockUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0($courseBlockUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda($courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).invoke_2tpp1g_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_2tpp1g_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ClazzAssignment.*, CourseBlock.* \n FROM ClazzAssignment\n JOIN CourseBlock \n ON CourseBlock.cbEntityUid = CAST(? AS BIGINT)\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT)\n LIMIT 1 \n ', VOID, VOID, VOID, '\n SELECT ClazzAssignment.*, CourseBlock.* \n FROM ClazzAssignment\n JOIN CourseBlock \n ON CourseBlock.cbEntityUid = ?\n WHERE ClazzAssignment.caUid = ?\n LIMIT 1 \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda$slambda_0(this.$assignmentUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_2tpp1g_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$findBySourcedId$slambda($sourcedId, $accountPersonUid, resultContinuation) { this.$sourcedId_1 = $sourcedId; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findBySourcedId$slambda).invoke_ey861l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findBySourcedId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ey861l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findBySourcedId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$sourcedId_1); this._stmt_1.setString_2gt7ua_k$(2, this.$sourcedId_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findBySourcedId$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findBySourcedId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findBySourcedId$slambda(this.$sourcedId_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findBySourcedId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findBySourcedId$slambda_0($sourcedId, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findBySourcedId$slambda($sourcedId, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ey861l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByClazzUid$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByClazzUid$slambda).invoke_i3413w_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_i3413w_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findByClazzUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findByClazzUid$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findByClazzUid$slambda_0($clazzUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByClazzUid$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_i3413w_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).invoke_qwpxl8_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_qwpxl8_k$($completion); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n ORDER BY CourseBlock.cbIndex\n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, ContentEntry.*, CourseBlockPicture.*, ContentEntryPicture2.*\n FROM CourseBlock\n LEFT JOIN ContentEntry\n ON CourseBlock.cbType = 104\n AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n LEFT JOIN ContentEntryPicture2\n ON CourseBlock.cbType = 104\n AND ContentEntryPicture2.cepUid = CourseBlock.cbEntityUid\n WHERE CourseBlock.cbClazzUid = ?\n AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n ORDER BY CourseBlock.cbIndex\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda$slambda_0(this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_qwpxl8_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_JdbcImpl$updateFromLineItem$slambda($active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, $cbUid, resultContinuation) { this.$active_1 = $active; this.$dateLastModified_1 = $dateLastModified; this.$title_1 = $title; this.$description_1 = $description; this.$assignDate_1 = $assignDate; this.$dueDate_1 = $dueDate; this.$resultValueMin_1 = $resultValueMin; this.$resultValueMax_1 = $resultValueMax; this.$cbUid_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$dateLastModified_1); this._stmt_1.setString_2gt7ua_k$(3, this.$title_1); this._stmt_1.setString_2gt7ua_k$(4, this.$description_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignDate_1); this._stmt_1.setLong_j1sybo_k$(6, this.$dueDate_1); this._stmt_1.setFloat_dia6lm_k$(7, this.$resultValueMin_1); this._stmt_1.setFloat_dia6lm_k$(8, this.$resultValueMax_1); this._stmt_1.setLong_j1sybo_k$(9, this.$cbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$updateFromLineItem$slambda(this.$active_1, this.$dateLastModified_1, this.$title_1, this.$description_1, this.$assignDate_1, this.$dueDate_1, this.$resultValueMin_1, this.$resultValueMax_1, this.$cbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$updateFromLineItem$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$updateFromLineItem$slambda_0($active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, $cbUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$updateFromLineItem$slambda($active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda($cbUid, $accountPersonUid, resultContinuation) { this.$cbUid_1 = $cbUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda).invoke_6govz1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6govz1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cbUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda(this.$cbUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda_0($cbUid, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda($cbUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6govz1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$169(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$169).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseBlock_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$170(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$170).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbClazzSourcedId = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ?, cbSourcedId = ?, cbMetadata = ?, cbCreatedByAppId = ? WHERE cbUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, CourseBlockDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByUidCOROUTINE$171(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$171).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseBlock \n SET cbActive = ?, \n cbLct = CAST(? AS BIGINT)\n WHERE cbUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE CourseBlock \n SET cbActive = ?, \n cbLct = ?\n WHERE cbUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$updateActiveByUid$slambda_0(this.active_1, this.changeTime_1, this.cbUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateFromLineItemCOROUTINE$172(_this__u8e3s4, cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; this.active_1 = active; this.dateLastModified_1 = dateLastModified; this.title_1 = title; this.description_1 = description; this.assignDate_1 = assignDate; this.dueDate_1 = dueDate; this.resultValueMin_1 = resultValueMin; this.resultValueMax_1 = resultValueMax; } protoOf($updateFromLineItemCOROUTINE$172).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseBlock\n SET cbActive = ?,\n cbLct = CAST(? AS BIGINT),\n cbTitle = ?,\n cbDescription = ?,\n cbHideUntilDate = CAST(? AS BIGINT),\n cbDeadlineDate = CAST(? AS BIGINT),\n cbMinPoints = ?,\n cbMaxPoints = ?\n WHERE cbUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CourseBlock\n SET cbActive = ?,\n cbLct = ?,\n cbTitle = ?,\n cbDescription = ?,\n cbHideUntilDate = ?,\n cbDeadlineDate = ?,\n cbMinPoints = ?,\n cbMaxPoints = ?\n WHERE cbUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CourseBlockDao_JdbcImpl$updateFromLineItem$slambda_0(this.active_1, this.dateLastModified_1, this.title_1, this.description_1, this.assignDate_1, this.dueDate_1, this.resultValueMin_1, this.resultValueMax_1, this.cbUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseBlockDao_JdbcImpl(_db) { CourseBlockDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseBlock_upsert_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterCourseBlock_abort_1 = new CourseBlockDao_JdbcImpl$_insertAdapterCourseBlock_abort$1(this); } protoOf(CourseBlockDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseBlockDao_JdbcImpl).get__insertAdapterCourseBlock_upsert_j70uqs_k$ = function () { return this._insertAdapterCourseBlock_upsert_1; }; protoOf(CourseBlockDao_JdbcImpl).get__insertAdapterCourseBlock_abort_a3hkt9_k$ = function () { return this._insertAdapterCourseBlock_abort_1; }; protoOf(CourseBlockDao_JdbcImpl).replaceListAsync_744a8s_k$ = function (list, $completion) { return this._insertAdapterCourseBlock_upsert_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(CourseBlockDao_JdbcImpl).upsertListAsync_z3hvvl_k$ = function (entities, $completion) { return this._insertAdapterCourseBlock_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(CourseBlockDao_JdbcImpl).insert_revdds_k$ = function (entity) { var _retVal = this._insertAdapterCourseBlock_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseBlockDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_revdds_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_JdbcImpl).insertAsync_mo749z_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$169(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_mo749z_k$(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_JdbcImpl).insertList_4szak0_k$ = function (entityList) { this._insertAdapterCourseBlock_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseBlockDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4szak0_k$(entityList); }; protoOf(CourseBlockDao_JdbcImpl).insertListAsync_ixpmjt_k$ = function (entityList, $completion) { return this._insertAdapterCourseBlock_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(CourseBlockDao_JdbcImpl).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_ixpmjt_k$(entityList, $completion); }; protoOf(CourseBlockDao_JdbcImpl).updateAsync_26dpir_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$170(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl).update_ova2zk_k$ = function (entity) { var _sql = 'UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbClazzSourcedId = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ?, cbSourcedId = ?, cbMetadata = ?, cbCreatedByAppId = ? WHERE cbUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseBlockDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseBlockDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_ova2zk_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_JdbcImpl).updateListAsync_rftsop_k$ = function (entityList, $completion) { var _sql = 'UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbClazzSourcedId = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ?, cbSourcedId = ?, cbMetadata = ?, cbCreatedByAppId = ? WHERE cbUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, CourseBlockDao_JdbcImpl$updateListAsync$slambda_0(entityList, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_rftsop_k$(entityList, $completion); }; protoOf(CourseBlockDao_JdbcImpl).findByUidAsync_agzh7x_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM CourseBlock WHERE cbUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM CourseBlock WHERE cbUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).existsByUid_ozlemp_k$ = function (cbUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT CourseBlock.cbUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT CourseBlock.cbUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$existsByUid$slambda_0(cbUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findByUidAsyncAsFlow_4g6kz6_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseBlock']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByUidAsyncAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseBlock', 'CourseBlockPicture']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findAllCourseBlockByClazzUidAsync_etr9jl_k$ = function (clazzUid, includeInactive, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n (SELECT CourseGroupSet.cgsName\n FROM CourseGroupSet\n WHERE CourseBlock.cbType = 103\n AND assignment.caGroupUid != 0\n AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n FROM CourseBlock \n LEFT JOIN ClazzAssignment AS Assignment\n ON assignment.caUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 103\n LEFT JOIN ContentEntry AS Entry\n ON entry.contentEntryUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 104\n LEFT JOIN Language\n ON Language.langUid = Entry.primaryLanguageUid\n AND CourseBlock.cbType = 104\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CourseBlock.cbType != 300)\n ORDER BY CourseBlock.cbIndex\n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*, Assignment.*, Entry.*, Language.*, CourseBlockPicture.*,\n (SELECT CourseGroupSet.cgsName\n FROM CourseGroupSet\n WHERE CourseBlock.cbType = 103\n AND assignment.caGroupUid != 0\n AND CourseGroupSet.cgsUid = assignment.caGroupUid) AS assignmentCourseGroupSetName\n FROM CourseBlock \n LEFT JOIN ClazzAssignment AS Assignment\n ON assignment.caUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 103\n LEFT JOIN ContentEntry AS Entry\n ON entry.contentEntryUid = CourseBlock.cbEntityUid\n AND CourseBlock.cbType = 104\n LEFT JOIN Language\n ON Language.langUid = Entry.primaryLanguageUid\n AND CourseBlock.cbType = 104\n LEFT JOIN CourseBlockPicture\n ON CourseBlockPicture.cbpUid = CourseBlock.cbUid \n WHERE CourseBlock.cbClazzUid = ?\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive)\n AND (CourseBlock.cbType != 300)\n ORDER BY CourseBlock.cbIndex\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsync$slambda_0(clazzUid, includeInactive, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findAllCourseBlockByClazzUidAsFlow_kcp6ff_k$ = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findAllCourseBlockByClazzUidAsPagingSource_i1uome_k$ = function (clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { return new CourseBlockDao_JdbcImpl$findAllCourseBlockByClazzUidAsPagingSource$1(this, collapseList, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); }; protoOf(CourseBlockDao_JdbcImpl).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$171(this, cbUid, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl).getTitleByAssignmentUid_cchnuk_k$ = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseBlock']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$getTitleByAssignmentUid$slambda_0(this, assignmentUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findByUidAsFlow_fzg2cy_k$ = function (courseBlockUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseBlock']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByUidAsFlow$slambda_0(this, courseBlockUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findCourseBlockAndClazzUidByDiscussionPostUid_r9l7tw_k$ = function (postUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT))\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT COALESCE(CourseBlock.cbUid, 0) AS courseBlockUid,\n COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?)\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByDiscussionPostUid$slambda_0(postUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findCourseBlockByDiscussionPostUid_rqoasv_k$ = function (postUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)) \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbUid = \n (SELECT DiscussionPost.discussionPostCourseBlockUid \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockByDiscussionPostUid$slambda_0(postUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findClazzUidByCourseBlockUid_z7hesn_k$ = function (courseBlockUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT COALESCE(CourseBlock.cbClazzUid, 0) AS clazzUid\n FROM CourseBlock\n WHERE CourseBlock.cbUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findClazzUidByCourseBlockUid$slambda_0(courseBlockUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findCourseBlockByAssignmentUid_b29grf_k$ = function (assignmentUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'CourseBlock']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).findBySourcedId_y8kobh_k$ = function (sourcedId, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CAST(cbUid AS TEXT) = ?\n OR cbSourcedId = ?\n AND CAST(? AS BIGINT) != 0 \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CAST(cbUid AS TEXT) = ?\n OR cbSourcedId = ?\n AND ? != 0 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findBySourcedId$slambda_0(sourcedId, accountPersonUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findByClazzUid_778hqu_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.*\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByClazzUid$slambda_0(clazzUid, null), $completion); }; protoOf(CourseBlockDao_JdbcImpl).findByClazzUidAsFlow_dhqahm_k$ = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntry', 'CourseBlock', 'CourseBlockPicture', 'ContentEntryPicture2']; return doorFlow(this._db_1, tmp, CourseBlockDao_JdbcImpl$findByClazzUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(CourseBlockDao_JdbcImpl).updateFromLineItem_eg7myu_k$ = function (cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, $completion) { var tmp = new $updateFromLineItemCOROUTINE$172(this, cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_JdbcImpl).findCourseBlockAndClazzUidByCbUid_itwlx1_k$ = function (cbUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseBlock.cbUid AS courseBlockUid, \n CourseBlock.cbClazzUid AS clazzUid\n FROM CourseBlock\n WHERE cbUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) != 0 \n ', VOID, VOID, VOID, '\n SELECT CourseBlock.cbUid AS courseBlockUid, \n CourseBlock.cbClazzUid AS clazzUid\n FROM CourseBlock\n WHERE cbUid = ?\n AND ? != 0 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseBlockDao_JdbcImpl$findCourseBlockAndClazzUidByCbUid$slambda_0(cbUid, accountPersonUid, null), $completion); }; function CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(CourseBlockDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_26dpir_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseBlockDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseBlockDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$replaceListAsync$slambda(this$0, $list, resultContinuation) { this.this$0__1 = this$0; this.$list_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$replaceListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$replaceListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$replaceListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.replaceListAsync_744a8s_k$(this.$list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$replaceListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$replaceListAsync$slambda(this.this$0__1, this.$list_1, completion); }; function CourseBlockDao_Repo$replaceListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new CourseBlockDao_Repo$replaceListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findByUidAsyncAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findByUidAsyncAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findByUidWithPictureAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findByUidWithPictureAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'includeInactive', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeInactive_1)); parameter(this_0, 'includeHidden', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeHidden_1)); parameter(this_0, 'hideUntilFilterTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$hideUntilFilterTime_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, completion); }; function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda(this$0, $clazzUid, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $collapseList, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$collapseList_1 = $collapseList; this.$includeInactive_1 = $includeInactive; this.$includeHidden_1 = $includeHidden; this.$hideUntilFilterTime_1 = $hideUntilFilterTime; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'collapseList', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer(Companion_getInstance())), this.$collapseList_1)); parameter(this_0, 'includeInactive', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeInactive_1)); parameter(this_0, 'includeHidden', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeHidden_1)); parameter(this_0, 'hideUntilFilterTime', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$hideUntilFilterTime_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda(this.this$0__1, this.$clazzUid_1, this.$collapseList_1, this.$includeInactive_1, this.$includeHidden_1, this.$hideUntilFilterTime_1, this.$accountPersonUid_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda_0(this$0, $clazzUid, $collapseList, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation) { var i = new CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $collapseList, $includeInactive, $includeHidden, $hideUntilFilterTime, $accountPersonUid, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$cbUid_1 = $cbUid; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByUid_i0tn2u_k$(this.$cbUid_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$updateActiveByUid$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$updateActiveByUid$slambda(this.this$0__1, this.$cbUid_1, this.$active_1, this.$changeTime_1, completion); }; function CourseBlockDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) { var i = new CourseBlockDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_z3hvvl_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function CourseBlockDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new CourseBlockDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findByUidAsFlow$slambda(this$0, $courseBlockUid, resultContinuation) { this.this$0__1 = this$0; this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findByUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findByUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'courseBlockUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$courseBlockUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findByUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findByUidAsFlow$slambda(this.this$0__1, this.$courseBlockUid_1, completion); }; function CourseBlockDao_Repo$findByUidAsFlow$slambda_0(this$0, $courseBlockUid, resultContinuation) { var i = new CourseBlockDao_Repo$findByUidAsFlow$slambda(this$0, $courseBlockUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findCourseBlockByAssignmentUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findCourseBlockByAssignmentUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this.this$0__1, this.$assignmentUid_1, completion); }; function CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this$0, $assignmentUid, resultContinuation) { var i = new CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda(this$0, $assignmentUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$findBySourcedId$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findByClazzUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findByClazzUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseBlockDao_Repo$findByClazzUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseBlockDao_Repo$findByClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new CourseBlockDao_Repo$findByClazzUidAsFlow$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$updateFromLineItem$slambda(this$0, $cbUid, $active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, resultContinuation) { this.this$0__1 = this$0; this.$cbUid_1 = $cbUid; this.$active_1 = $active; this.$dateLastModified_1 = $dateLastModified; this.$title_1 = $title; this.$description_1 = $description; this.$assignDate_1 = $assignDate; this.$dueDate_1 = $dueDate; this.$resultValueMin_1 = $resultValueMin; this.$resultValueMax_1 = $resultValueMax; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$updateFromLineItem$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$updateFromLineItem$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$updateFromLineItem$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateFromLineItem_eg7myu_k$(this.$cbUid_1, this.$active_1, this.$dateLastModified_1, this.$title_1, this.$description_1, this.$assignDate_1, this.$dueDate_1, this.$resultValueMin_1, this.$resultValueMax_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$updateFromLineItem$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$updateFromLineItem$slambda(this.this$0__1, this.$cbUid_1, this.$active_1, this.$dateLastModified_1, this.$title_1, this.$description_1, this.$assignDate_1, this.$dueDate_1, this.$resultValueMin_1, this.$resultValueMax_1, completion); }; function CourseBlockDao_Repo$updateFromLineItem$slambda_0(this$0, $cbUid, $active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, resultContinuation) { var i = new CourseBlockDao_Repo$updateFromLineItem$slambda(this$0, $cbUid, $active, $dateLastModified, $title, $description, $assignDate, $dueDate, $resultValueMin, $resultValueMax, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseBlockDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseBlockDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseBlockDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function CourseBlockDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_it2cbm_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseBlockDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseBlockDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_mdh99q_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseBlockDao_Repo$updateListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseBlockDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$173(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$173).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_agzh7x_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $existsByUidCOROUTINE$174(_this__u8e3s4, cbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; } protoOf($existsByUidCOROUTINE$174).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.existsByUid_ozlemp_k$(this.cbUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$175(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$175).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseBlock', CourseBlockDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.includeInactive_1 = includeInactive; } protoOf($findAllCourseBlockByClazzUidAsyncCOROUTINE$176).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findAllCourseBlockByClazzUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findAllCourseBlockByClazzUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'includeInactive', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.includeInactive_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findAllCourseBlockByClazzUidAsync_etr9jl_k$(this.clazzUid_1, this.includeInactive_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(_this__u8e3s4, postUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.postUid_1 = postUid; } protoOf($findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findCourseBlockAndClazzUidByDiscussionPostUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'postUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.postUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseBlockDao_Repo$findCourseBlockAndClazzUidByDiscussionPostUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findCourseBlockAndClazzUidByDiscussionPostUid_r9l7tw_k$(this.postUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findCourseBlockByDiscussionPostUidCOROUTINE$178(_this__u8e3s4, postUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.postUid_1 = postUid; } protoOf($findCourseBlockByDiscussionPostUidCOROUTINE$178).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findCourseBlockByDiscussionPostUid_rqoasv_k$(this.postUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findClazzUidByCourseBlockUidCOROUTINE$179(_this__u8e3s4, courseBlockUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.courseBlockUid_1 = courseBlockUid; } protoOf($findClazzUidByCourseBlockUidCOROUTINE$179).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findClazzUidByCourseBlockUid_z7hesn_k$(this.courseBlockUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findBySourcedIdCOROUTINE$180(_this__u8e3s4, sourcedId, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.sourcedId_1 = sourcedId; this.accountPersonUid_1 = accountPersonUid; } protoOf($findBySourcedIdCOROUTINE$180).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseBlockDao/findBySourcedId'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseBlockDao/findBySourcedId'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'sourcedId', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.sourcedId_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseBlockDao_Repo$findBySourcedId$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findBySourcedId_y8kobh_k$(this.sourcedId_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByClazzUidCOROUTINE$181(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($findByClazzUidCOROUTINE$181).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzUid_778hqu_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findCourseBlockAndClazzUidByCbUidCOROUTINE$182(_this__u8e3s4, cbUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findCourseBlockAndClazzUidByCbUidCOROUTINE$182).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findCourseBlockAndClazzUidByCbUid_itwlx1_k$(this.cbUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$183(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$183).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseBlock', CourseBlockDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseBlockDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseBlockDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CourseBlockDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseBlockDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseBlockDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseBlockDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseBlockDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseBlockDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseBlockDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CourseBlockDao_Repo).findByUidAsync_agzh7x_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$173(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).existsByUid_ozlemp_k$ = function (cbUid, $completion) { var tmp = new $existsByUidCOROUTINE$174(this, cbUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).updateAsync_26dpir_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$175(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).replaceListAsync_744a8s_k$ = function (list, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$replaceListAsync$slambda_0(this, list, null), $completion); }; protoOf(CourseBlockDao_Repo).findByUidAsyncAsFlow_4g6kz6_k$ = function (uid) { var tmp = this._dao_1.findByUidAsyncAsFlow_4g6kz6_k$(uid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findByUidAsyncAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_Repo).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { var tmp = this._dao_1.findByUidWithPictureAsFlow_n0b42e_k$(uid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(CourseBlockDao_Repo).findAllCourseBlockByClazzUidAsync_etr9jl_k$ = function (clazzUid, includeInactive, $completion) { var tmp = new $findAllCourseBlockByClazzUidAsyncCOROUTINE$176(this, clazzUid, includeInactive, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findAllCourseBlockByClazzUidAsFlow_kcp6ff_k$ = function (clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { var tmp = this._dao_1.findAllCourseBlockByClazzUidAsFlow_kcp6ff_k$(clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsFlow$slambda_0(this, clazzUid, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null)); }; protoOf(CourseBlockDao_Repo).findAllCourseBlockByClazzUidAsPagingSource_i1uome_k$ = function (clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid) { var tmp = this._dao_1.findAllCourseBlockByClazzUidAsPagingSource_i1uome_k$(clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CourseBlockDao/findAllCourseBlockByClazzUidAsPagingSource', tmp, CourseBlockDao_Repo$findAllCourseBlockByClazzUidAsPagingSource$slambda_0(this, clazzUid, collapseList, includeInactive, includeHidden, hideUntilFilterTime, accountPersonUid, null)); }; protoOf(CourseBlockDao_Repo).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion); }; protoOf(CourseBlockDao_Repo).upsertListAsync_z3hvvl_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(CourseBlockDao_Repo).getTitleByAssignmentUid_cchnuk_k$ = function (assignmentUid) { var _result = this._dao_1.getTitleByAssignmentUid_cchnuk_k$(assignmentUid); return _result; }; protoOf(CourseBlockDao_Repo).findByUidAsFlow_fzg2cy_k$ = function (courseBlockUid) { var tmp = this._dao_1.findByUidAsFlow_fzg2cy_k$(courseBlockUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findByUidAsFlow$slambda_0(this, courseBlockUid, null)); }; protoOf(CourseBlockDao_Repo).findCourseBlockAndClazzUidByDiscussionPostUid_r9l7tw_k$ = function (postUid, $completion) { var tmp = new $findCourseBlockAndClazzUidByDiscussionPostUidCOROUTINE$177(this, postUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findCourseBlockByDiscussionPostUid_rqoasv_k$ = function (postUid, $completion) { var tmp = new $findCourseBlockByDiscussionPostUidCOROUTINE$178(this, postUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findClazzUidByCourseBlockUid_z7hesn_k$ = function (courseBlockUid, $completion) { var tmp = new $findClazzUidByCourseBlockUidCOROUTINE$179(this, courseBlockUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findCourseBlockByAssignmentUid_b29grf_k$ = function (assignmentUid) { var tmp = this._dao_1.findCourseBlockByAssignmentUid_b29grf_k$(assignmentUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findCourseBlockByAssignmentUid$slambda_0(this, assignmentUid, null)); }; protoOf(CourseBlockDao_Repo).findBySourcedId_y8kobh_k$ = function (sourcedId, accountPersonUid, $completion) { var tmp = new $findBySourcedIdCOROUTINE$180(this, sourcedId, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findByClazzUid_778hqu_k$ = function (clazzUid, $completion) { var tmp = new $findByClazzUidCOROUTINE$181(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).findByClazzUidAsFlow_dhqahm_k$ = function (clazzUid) { var tmp = this._dao_1.findByClazzUidAsFlow_dhqahm_k$(clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseBlockDao_Repo$findByClazzUidAsFlow$slambda_0(this, clazzUid, null)); }; protoOf(CourseBlockDao_Repo).updateFromLineItem_eg7myu_k$ = function (cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$updateFromLineItem$slambda_0(this, cbUid, active, dateLastModified, title, description, assignDate, dueDate, resultValueMin, resultValueMax, null), $completion); }; protoOf(CourseBlockDao_Repo).findCourseBlockAndClazzUidByCbUid_itwlx1_k$ = function (cbUid, accountPersonUid, $completion) { var tmp = new $findCourseBlockAndClazzUidByCbUidCOROUTINE$182(this, cbUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).insert_revdds_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseBlockDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_revdds_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_Repo).insertAsync_mo749z_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$183(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_mo749z_k$(entity instanceof CourseBlock ? entity : THROW_CCE(), $completion); }; protoOf(CourseBlockDao_Repo).insertList_4szak0_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseBlockDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4szak0_k$(entityList); }; protoOf(CourseBlockDao_Repo).update_ova2zk_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$update$lambda(this, entity)); }; protoOf(CourseBlockDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_ova2zk_k$(entity instanceof CourseBlock ? entity : THROW_CCE()); }; protoOf(CourseBlockDao_Repo).insertListAsync_ixpmjt_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseBlockDao_Repo).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_ixpmjt_k$(entityList, $completion); }; protoOf(CourseBlockDao_Repo).updateListAsync_rftsop_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlock', CourseBlockDao_Repo$updateListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseBlockDao_Repo).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_rftsop_k$(entityList, $completion); }; function CourseBlockPictureDao() { } protoOf(CourseBlockPictureDao).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return Unit_getInstance(); }; function _get__db__e63s44_20($this) { return $this._db_1; } function _get__dao__d2kw60_18($this) { return $this._dao_1; } function CourseBlockPictureDao_DoorWrapper(_db, _dao) { CourseBlockPictureDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseBlockPictureDao_DoorWrapper).upsertListAsync_wzra55_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.CourseBlockPictureDao_DoorWrapper.upsertListAsync.' call element.set_cbpLct_uinxjp_k$(systemTimeInMillis()); } return this._dao_1.upsertListAsync_wzra55_k$(entities, $completion); }; protoOf(CourseBlockPictureDao_DoorWrapper).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return this._dao_1.updateUri_m1qgqu_k$(uid, uri, thumbnailUri, time, $completion); }; function CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CourseBlockPicture (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) VALUES(?, ?, ?, ?)'; }; protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).bindPreparedStmtToEntity_azqugj_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_cbpUid_bt1uw8_k$()); stmt.setLong_j1sybo_k$(2, entity.get_cbpLct_bt1o39_k$()); stmt.setString_2gt7ua_k$(3, entity.get_cbpPictureUri_stohti_k$()); stmt.setString_2gt7ua_k$(4, entity.get_cbpThumbnailUri_5hy4js_k$()); }; protoOf(CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_azqugj_k$(stmt, entity instanceof CourseBlockPicture ? entity : THROW_CCE()); }; function CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$uri_1); this._stmt_1.setString_2gt7ua_k$(2, this.$thumbnailUri_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda(this.$uri_1, this.$thumbnailUri_1, this.$time_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseBlockPictureDao_JdbcImpl$updateUri$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new CourseBlockPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$184(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.uri_1 = uri; this.thumbnailUri_1 = thumbnailUri; this.time_1 = time; } protoOf($updateUriCOROUTINE$184).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CourseBlockPicture\n SET cbpPictureUri = ?,\n cbpThumbnailUri = ?,\n cbpLct = CAST(? AS BIGINT)\n WHERE cbpUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CourseBlockPicture\n SET cbpPictureUri = ?,\n cbpThumbnailUri = ?,\n cbpLct = ?\n WHERE cbpUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CourseBlockPictureDao_JdbcImpl$updateUri$slambda_0(this.uri_1, this.thumbnailUri_1, this.time_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseBlockPictureDao_JdbcImpl(_db) { CourseBlockPictureDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseBlockPicture_upsert_1 = new CourseBlockPictureDao_JdbcImpl$_insertAdapterCourseBlockPicture_upsert$1(this); } protoOf(CourseBlockPictureDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseBlockPictureDao_JdbcImpl).get__insertAdapterCourseBlockPicture_upsert_fbhdcy_k$ = function () { return this._insertAdapterCourseBlockPicture_upsert_1; }; protoOf(CourseBlockPictureDao_JdbcImpl).upsertListAsync_wzra55_k$ = function (entities, $completion) { return this._insertAdapterCourseBlockPicture_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(CourseBlockPictureDao_JdbcImpl).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$184(this, uid, uri, thumbnailUri, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_wzra55_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockPictureDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new CourseBlockPictureDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUri_m1qgqu_k$(this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseBlockPictureDao_Repo$updateUri$slambda).create_d196fn_k$ = function (completion) { return new CourseBlockPictureDao_Repo$updateUri$slambda(this.this$0__1, this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, completion); }; function CourseBlockPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new CourseBlockPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseBlockPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseBlockPictureDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(CourseBlockPictureDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseBlockPictureDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseBlockPictureDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseBlockPictureDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseBlockPictureDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseBlockPictureDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseBlockPictureDao_Repo).upsertListAsync_wzra55_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(CourseBlockPictureDao_Repo).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseBlockPicture', CourseBlockPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function CourseGroupMemberDao() { } function _get__db__e63s44_21($this) { return $this._db_1; } function _get__dao__d2kw60_19($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$185(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$185).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cgmUid_bvqwwg_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cgmUid_ev2k12_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cgmLct_6hrs2b_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_kuua2l_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListAsyncCOROUTINE$186(_this__u8e3s4, list, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.list_1 = list; } protoOf($upsertListAsyncCOROUTINE$186).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.list_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_cgmUid_bvqwwg_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_cgmUid_ev2k12_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_cgmLct_6hrs2b_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_5ptt71_k$(this.list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$187(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$187).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cgmUid_bvqwwg_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(243, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cgmUid_ev2k12_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cgmLct_6hrs2b_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cgmUid_bvqwwg_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupMemberDao_DoorWrapper(_db, _dao) { CourseGroupMemberDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseGroupMemberDao_DoorWrapper).findByGroupSetUidAsync_udihxv_k$ = function (groupSetUid, $completion) { return this._dao_1.findByGroupSetUidAsync_udihxv_k$(groupSetUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByPersonUid_83a57q_k$ = function (groupSetUid, studentUid, $completion) { return this._dao_1.findByPersonUid_83a57q_k$(groupSetUid, studentUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertListAsync_kuua2l_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$185(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_DoorWrapper).updateListAsync_ild7qr_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_DoorWrapper.updateListAsync.' call element.set_cgmLct_6hrs2b_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_ild7qr_k$(entityList, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByCourseGroupSetAndClazz_7y65w5_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { return this._dao_1.findByCourseGroupSetAndClazz_7y65w5_k$(cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByCourseGroupSetAndClazzAsFlow_4ra83v_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { return this._dao_1.findByCourseGroupSetAndClazzAsFlow_4ra83v_k$(cgsUid, clazzUid, time, activeFilter, accountPersonUid); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByCourseGroupSetAndClazzAsFlowPersons_1ng1wk_k$ = function (clazzUid, cgsUid, $completion) { return this._dao_1.findByCourseGroupSetAndClazzAsFlowPersons_1ng1wk_k$(clazzUid, cgsUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByCourseGroupSetAndClazzAsFlowEnrolments_v8chra_k$ = function (clazzUid, cgsUid, $completion) { return this._dao_1.findByCourseGroupSetAndClazzAsFlowEnrolments_v8chra_k$(clazzUid, cgsUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).upsertListAsync_5ptt71_k$ = function (list, $completion) { var tmp = new $upsertListAsyncCOROUTINE$186(this, list, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_DoorWrapper).findByCourseGroupSetAndGroupNumAsync_fmld87_k$ = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { return this._dao_1.findByCourseGroupSetAndGroupNumAsync_fmld87_k$(courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).insert_589i3w_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupMemberDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_589i3w_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertAsync_yvjuo5_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$187(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_yvjuo5_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertList_iaxcn8_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupMemberDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iaxcn8_k$(entityList); }; protoOf(CourseGroupMemberDao_DoorWrapper).update_c7xeq4_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupMemberDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_c7xeq4_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByGroupSetUidAsync....' call this_0.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_0.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_0.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_0.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_0.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda$lambda(_result) { return mapNextRow(_result, null, CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByPersonUid....' call this_0.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_0.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_0.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_0.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_0.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_enrolmentIsActive = $_result.getBoolean_xz3hoo_k$('enrolmentIsActive'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz....' call this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_enrolmentIsActive_qmxdoi_k$(_tmp_enrolmentIsActive); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); if (!_tmp_CourseGroupMember_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazz.....' call this_1.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_1.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_1.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_1.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_1.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); this_0.set_cgm_8hk7qi_k$(this_1); } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_enrolmentIsActive = $_result.getBoolean_xz3hoo_k$('enrolmentIsActive'); var _tmp_pictureUri = $_result.getString_gb1pt9_k$('pictureUri'); var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow.....' call this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_enrolmentIsActive_qmxdoi_k$(_tmp_enrolmentIsActive); this_0.set_pictureUri_ldxxh0_k$(_tmp_pictureUri); if (!_tmp_CourseGroupMember_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlow......' call this_1.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_1.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_1.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_1.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_1.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); this_0.set_cgm_8hk7qi_k$(this_1); } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.$time_1 = $time; this.$clazzUid_1 = $clazzUid; this.$cgsUid_1 = $cgsUid; this.$activeFilter_1 = $activeFilter; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).invoke_n5aq5o_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n5aq5o_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$time_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cgsUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$cgsUid_1); this._stmt_1.setInt_c72a8z_k$(6, this.$activeFilter_1); this._stmt_1.setInt_c72a8z_k$(7, this.$activeFilter_1); this._stmt_1.setLong_j1sybo_k$(8, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda(this.$time_1, this.$clazzUid_1, this.$cgsUid_1, this.$activeFilter_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n5aq5o_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlowPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlowPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlowPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda$lambda$lambda($_result) { return function (it) { var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); // Inline function 'kotlin.apply' call var this_0 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndClazzAsFlowEnrolments....' call this_0.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_0.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_0.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_0.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); return this_0; }; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda(_result) { return mapRows(_result, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda(_result)); } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CourseGroupMember_nullCount = 0; var _tmp_cgmUid = $_result.getLong_3wgf2g_k$('cgmUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cgmSetUid = $_result.getLong_3wgf2g_k$('cgmSetUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cgmGroupNumber = $_result.getInt_npc9pd_k$('cgmGroupNumber'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cgmPersonUid = $_result.getLong_3wgf2g_k$('cgmPersonUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cgmLct = $_result.getLong_3wgf2g_k$('cgmLct'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CourseGroupMember_nullCount = _tmp_CourseGroupMember_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_CourseGroupMember_isAllNull = _tmp_CourseGroupMember_nullCount === 5; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new CourseGroupMemberAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync....' call if (!_tmp_CourseGroupMember_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.....' call this_1.set_cgmUid_ev2k12_k$(_tmp_cgmUid); this_1.set_cgmSetUid_59g4u4_k$(_tmp_cgmSetUid); this_1.set_cgmGroupNumber_dn01qs_k$(_tmp_cgmGroupNumber); this_1.set_cgmPersonUid_6dl15b_k$(_tmp_cgmPersonUid); this_1.set_cgmLct_6hrs2b_k$(_tmp_cgmLct); this_0.set_courseGroupMember_5bezor_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupMemberDao_JdbcImpl.findByCourseGroupSetAndGroupNumAsync.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_2); } return this_0; }; } function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).bindPreparedStmtToEntity_xtbbkn_k$ = function (stmt, entity) { if (entity.get_cgmUid_bvqwwg_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cgmUid_bvqwwg_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cgmSetUid_p0svym_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cgmGroupNumber_t9dymw_k$()); stmt.setLong_j1sybo_k$(4, entity.get_cgmPersonUid_qqbtdx_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cgmLct_bvqq3h_k$()); }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xtbbkn_k$(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).bindPreparedStmtToEntity_xtbbkn_k$ = function (stmt, entity) { if (entity.get_cgmUid_bvqwwg_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cgmUid_bvqwwg_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cgmSetUid_p0svym_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cgmGroupNumber_t9dymw_k$()); stmt.setLong_j1sybo_k$(4, entity.get_cgmPersonUid_qqbtdx_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cgmLct_bvqq3h_k$()); }; protoOf(CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xtbbkn_k$(stmt, entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation) { this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entityList_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setLong_j1sybo_k$(1, this._entity1__1.get_cgmSetUid_p0svym_k$()); this._stmt_1.setInt_c72a8z_k$(2, this._entity1__1.get_cgmGroupNumber_t9dymw_k$()); this._stmt_1.setLong_j1sybo_k$(3, this._entity1__1.get_cgmPersonUid_qqbtdx_k$()); this._stmt_1.setLong_j1sybo_k$(4, this._entity1__1.get_cgmLct_bvqq3h_k$()); this._stmt_1.setLong_j1sybo_k$(5, this._entity1__1.get_cgmUid_bvqwwg_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda(this.$entityList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda_0($entityList, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_cgmSetUid_p0svym_k$()); _stmt.setInt_c72a8z_k$(2, $entity.get_cgmGroupNumber_t9dymw_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_cgmPersonUid_qqbtdx_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_cgmLct_bvqq3h_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_cgmUid_bvqwwg_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda($groupSetUid, resultContinuation) { this.$groupSetUid_1 = $groupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda).invoke_j1t8vk_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j1t8vk_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupSetUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda(this.$groupSetUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda_0($groupSetUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda($groupSetUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j1t8vk_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda($studentUid, $groupSetUid, resultContinuation) { this.$studentUid_1 = $studentUid; this.$groupSetUid_1 = $groupSetUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda).invoke_216dtx_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_216dtx_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$studentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$groupSetUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda(this.$studentUid_1, this.$groupSetUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda_0($studentUid, $groupSetUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda($studentUid, $groupSetUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_216dtx_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.$time_1 = $time; this.$clazzUid_1 = $clazzUid; this.$cgsUid_1 = $cgsUid; this.$activeFilter_1 = $activeFilter; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).invoke_n5aq5o_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n5aq5o_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$time_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cgsUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$cgsUid_1); this._stmt_1.setInt_c72a8z_k$(6, this.$activeFilter_1); this._stmt_1.setInt_c72a8z_k$(7, this.$activeFilter_1); this._stmt_1.setLong_j1sybo_k$(8, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda(this.$time_1, this.$clazzUid_1, this.$cgsUid_1, this.$activeFilter_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda($time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n5aq5o_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$time_1 = $time; this.$clazzUid_1 = $clazzUid; this.$cgsUid_1 = $cgsUid; this.$activeFilter_1 = $activeFilter; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).invoke_vi0wo_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_vi0wo_k$($completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig("\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n ", VOID, VOID, VOID, "\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = ? \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n \n", true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda$slambda_0(this.$time_1, this.$clazzUid_1, this.$cgsUid_1, this.$activeFilter_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this.this$0__1, this.$time_1, this.$clazzUid_1, this.$cgsUid_1, this.$activeFilter_1, this.$accountPersonUid_1, completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $time, $clazzUid, $cgsUid, $activeFilter, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_vi0wo_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda($clazzUid, $cgsUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$cgsUid_1 = $cgsUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda).invoke_dgsx6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dgsx6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$cgsUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda(this.$clazzUid_1, this.$cgsUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda_0($clazzUid, $cgsUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda($clazzUid, $cgsUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dgsx6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda($clazzUid, $cgsUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$cgsUid_1 = $cgsUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda).invoke_rvgn58_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rvgn58_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$cgsUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda(this.$clazzUid_1, this.$cgsUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda_0($clazzUid, $cgsUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda($clazzUid, $cgsUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rvgn58_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) { this.$courseGroupSetUid_1 = $courseGroupSetUid; this.$groupNum_1 = $groupNum; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).invoke_g6xexh_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_g6xexh_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseGroupSetUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$groupNum_1); this._stmt_1.setLong_j1sybo_k$(3, this.$courseGroupSetUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$assignmentUid_1); this._stmt_1.setInt_c72a8z_k$(6, this.$groupNum_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda(this.$courseGroupSetUid_1, this.$groupNum_1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation) { var i = new CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda($courseGroupSetUid, $groupNum, $accountPersonUid, $assignmentUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_g6xexh_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$188(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$188).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseGroupMember_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupMemberDao_JdbcImpl(_db) { CourseGroupMemberDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseGroupMember_abort_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterCourseGroupMember_upsert_1 = new CourseGroupMemberDao_JdbcImpl$_insertAdapterCourseGroupMember_upsert$1(this); } protoOf(CourseGroupMemberDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseGroupMemberDao_JdbcImpl).get__insertAdapterCourseGroupMember_abort_pjbswf_k$ = function () { return this._insertAdapterCourseGroupMember_abort_1; }; protoOf(CourseGroupMemberDao_JdbcImpl).get__insertAdapterCourseGroupMember_upsert_jzl4q8_k$ = function () { return this._insertAdapterCourseGroupMember_upsert_1; }; protoOf(CourseGroupMemberDao_JdbcImpl).insertListAsync_kuua2l_k$ = function (entityList, $completion) { return this._insertAdapterCourseGroupMember_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).upsertListAsync_5ptt71_k$ = function (list, $completion) { return this._insertAdapterCourseGroupMember_upsert_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).insert_589i3w_k$ = function (entity) { var _retVal = this._insertAdapterCourseGroupMember_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseGroupMemberDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_589i3w_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; protoOf(CourseGroupMemberDao_JdbcImpl).insertAsync_yvjuo5_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$188(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_yvjuo5_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).insertList_iaxcn8_k$ = function (entityList) { this._insertAdapterCourseGroupMember_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseGroupMemberDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iaxcn8_k$(entityList); }; protoOf(CourseGroupMemberDao_JdbcImpl).updateListAsync_ild7qr_k$ = function (entityList, $completion) { var _sql = 'UPDATE CourseGroupMember SET cgmSetUid = ?, cgmGroupNumber = ?, cgmPersonUid = ?, cgmLct = ? WHERE cgmUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, CourseGroupMemberDao_JdbcImpl$updateListAsync$slambda_0(entityList, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).update_c7xeq4_k$ = function (entity) { var _sql = 'UPDATE CourseGroupMember SET cgmSetUid = ?, cgmGroupNumber = ?, cgmPersonUid = ?, cgmLct = ? WHERE cgmUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseGroupMemberDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseGroupMemberDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_c7xeq4_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByGroupSetUidAsync_udihxv_k$ = function (groupSetUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE cgmSetUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CourseGroupMember.*\n FROM CourseGroupMember\n WHERE cgmSetUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByGroupSetUidAsync$slambda_0(groupSetUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByPersonUid_83a57q_k$ = function (groupSetUid, studentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseGroupMember\n WHERE cgmPersonUid = CAST(? AS BIGINT) \n AND cgmSetUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseGroupMember\n WHERE cgmPersonUid = ? \n AND cgmSetUid = ?\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByPersonUid$slambda_0(studentUid, groupSetUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByCourseGroupSetAndClazz_7y65w5_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig("\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = CAST(? AS BIGINT) \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = CAST(? AS BIGINT)\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n ", VOID, VOID, VOID, "\n --First get a list of all enrolments - this may contains duplicates for students who leave and re-enrol\n WITH AllEnrollmentsAndActiveStatus(enrolledPersonUid, isActive) AS \n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid AS enrolledPersonUid,\n (? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) AS isActive\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n \n AND ClazzEnrolment.clazzEnrolmentRole = 1000),\n --Consolidate and removes any duplicates\n EnrolledStudentPersonUids(enrolledPersonUid, isActive) AS\n (SELECT DISTINCT AllEnrollmentsAndActiveStatus.enrolledPersonUid,\n (SELECT CAST(AllEnrollmentsInner.isActive AS INTEGER)\n FROM AllEnrollmentsAndActiveStatus AllEnrollmentsInner\n WHERE AllEnrollmentsInner.enrolledPersonUid = AllEnrollmentsAndActiveStatus.enrolledPersonUid\n ORDER BY AllEnrollmentsInner.isActive DESC\n LIMIT 1) AS isActive\n FROM AllEnrollmentsAndActiveStatus)\n \n -- Now create a list with each students name, the coursegroupmember object if any and active status \n SELECT (Person.firstNames || ' ' || Person.lastName) AS name,\n Person.personUid,\n CourseGroupMember.*,\n PersonPicture.*,\n EnrolledStudentPersonUids.isActive AS enrolmentIsActive,\n PersonPicture.personPictureThumbnailUri AS pictureUri\n FROM EnrolledStudentPersonUids\n JOIN Person\n ON Person.personUid = EnrolledStudentPersonUids.enrolledPersonUid \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid \n -- LEFT JOIN will use the most recent member in case of duplicate assignments eg if \n LEFT JOIN CourseGroupMember\n ON CourseGroupMember.cgmUid = \n (SELECT CourseGroupMember.cgmUid\n FROM CourseGroupMember\n WHERE CourseGroupMember.cgmPersonUid = EnrolledStudentPersonUids.enrolledPersonUid\n AND CourseGroupMember.cgmSetUid = ? \n ORDER BY CourseGroupMember.cgmLct DESC \n LIMIT 1)\n WHERE (? = 0 OR ? = EnrolledStudentPersonUids.isActive) \n /* \n * Begin permission check - must have course view members permission, or active \n * user must be in the same group \n */ \n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n )\n OR EXISTS(\n SELECT 1\n FROM CourseGroupMember _CourseGroupMemberForActivePerson\n WHERE _CourseGroupMemberForActivePerson.cgmPersonUid = ?\n AND _CourseGroupMemberForActivePerson.cgmGroupNumber = CourseGroupMember.cgmGroupNumber) \n )\n ORDER BY Person.firstNames, Person.lastName ASC\n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazz$slambda_0(time, clazzUid, cgsUid, activeFilter, accountPersonUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByCourseGroupSetAndClazzAsFlow_4ra83v_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzEnrolment', 'Person', 'PersonPicture', 'CourseGroupMember', 'CourseGroupSet']; return doorFlow(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, time, clazzUid, cgsUid, activeFilter, accountPersonUid, null)); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByCourseGroupSetAndClazzAsFlowPersons_1ng1wk_k$ = function (clazzUid, cgsUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n )\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n )\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowPersons$slambda_0(clazzUid, cgsUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByCourseGroupSetAndClazzAsFlowEnrolments_v8chra_k$ = function (clazzUid, cgsUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(CAST(? AS BIGINT))\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = CAST(? AS BIGINT))\n ELSE CAST(? AS BIGINT)\n END\n \n ', VOID, VOID, VOID, '\n SELECT ClazzEnrolment.*\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = \n CASE(?)\n WHEN 0 THEN \n (SELECT CourseGroupSet.cgsClazzUid\n FROM CourseGroupSet\n WHERE CourseGroupSet.cgsUid = ?)\n ELSE ?\n END\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndClazzAsFlowEnrolments$slambda_0(clazzUid, cgsUid, null), $completion); }; protoOf(CourseGroupMemberDao_JdbcImpl).findByCourseGroupSetAndGroupNumAsync_fmld87_k$ = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseGroupMember.*, Person.*\n FROM CourseGroupMember\n JOIN Person \n ON Person.personUid = CourseGroupMember.cgmPersonUid\n WHERE ( CourseGroupMember.cgmSetUid = CAST(? AS BIGINT)\n AND CourseGroupMember.cgmGroupNumber = ?)\n AND ( /* Grant permission where the active person is in the group */ \n EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = CAST(? AS BIGINT)\n AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))\n /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n OR EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n AND EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n AND CourseGroupMemberInternal.cgmPersonUid = CAST(? AS BIGINT))) \n /* Grant permission where the active person has the select person permission for the class */ \n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n ) \n )\n \n ', VOID, VOID, VOID, '\n SELECT CourseGroupMember.*, Person.*\n FROM CourseGroupMember\n JOIN Person \n ON Person.personUid = CourseGroupMember.cgmPersonUid\n WHERE ( CourseGroupMember.cgmSetUid = ?\n AND CourseGroupMember.cgmGroupNumber = ?)\n AND ( /* Grant permission where the active person is in the group */ \n EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = ?\n AND CourseGroupMemberInternal.cgmPersonUid = ?)\n /* Grant permission where the activepersonuid is in a group assigned to mark this group */\n OR EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = ?\n AND PeerReviewerAllocation.praMarkerSubmitterUid = ?\n AND EXISTS(SELECT 1\n FROM CourseGroupMember CourseGroupMemberInternal\n WHERE CourseGroupMemberInternal.cgmSetUid = PeerReviewerAllocation.praMarkerSubmitterUid\n AND CourseGroupMemberInternal.cgmPersonUid = ?)) \n /* Grant permission where the active person has the select person permission for the class */ \n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 8192\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 8192\n \n ) > 0)\n )\n ) \n )\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupMemberDao_JdbcImpl$findByCourseGroupSetAndGroupNumAsync$slambda_0(courseGroupSetUid, groupNum, accountPersonUid, assignmentUid, clazzUid, null), $completion); }; function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseGroupMemberDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_kuua2l_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseGroupMemberDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseGroupMemberDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseGroupMemberDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_ild7qr_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function CourseGroupMemberDao_Repo$updateListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new CourseGroupMemberDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$cgsUid_1 = $cgsUid; this.$clazzUid_1 = $clazzUid; this.$time_1 = $time; this.$activeFilter_1 = $activeFilter; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazzAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'cgsUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$cgsUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'time', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$time_1)); parameter(this_0, 'activeFilter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$activeFilter_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this.this$0__1, this.$cgsUid_1, this.$clazzUid_1, this.$time_1, this.$activeFilter_1, this.$accountPersonUid_1, completion); }; function CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation) { var i = new CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda(this$0, $cgsUid, $clazzUid, $time, $activeFilter, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) { this.this$0__1 = this$0; this.$list_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_5ptt71_k$(this.$list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$list_1, completion); }; function CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new CourseGroupMemberDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupMemberDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupMemberDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupMemberDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseGroupMemberDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseGroupMemberDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByGroupSetUidAsyncCOROUTINE$189(_this__u8e3s4, groupSetUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupSetUid_1 = groupSetUid; } protoOf($findByGroupSetUidAsyncCOROUTINE$189).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByGroupSetUidAsync_udihxv_k$(this.groupSetUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByPersonUidCOROUTINE$190(_this__u8e3s4, groupSetUid, studentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupSetUid_1 = groupSetUid; this.studentUid_1 = studentUid; } protoOf($findByPersonUidCOROUTINE$190).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPersonUid_83a57q_k$(this.groupSetUid_1, this.studentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByCourseGroupSetAndClazzCOROUTINE$191(_this__u8e3s4, cgsUid, clazzUid, time, activeFilter, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cgsUid_1 = cgsUid; this.clazzUid_1 = clazzUid; this.time_1 = time; this.activeFilter_1 = activeFilter; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByCourseGroupSetAndClazzCOROUTINE$191).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseGroupMemberDao/findByCourseGroupSetAndClazz'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseGroupMemberDao/findByCourseGroupSetAndClazz'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'cgsUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.cgsUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'time', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.time_1)); parameter(this_0, 'activeFilter', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.activeFilter_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazz$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByCourseGroupSetAndClazz_7y65w5_k$(this.cgsUid_1, this.clazzUid_1, this.time_1, this.activeFilter_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByCourseGroupSetAndClazzAsFlowPersonsCOROUTINE$192(_this__u8e3s4, clazzUid, cgsUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.cgsUid_1 = cgsUid; } protoOf($findByCourseGroupSetAndClazzAsFlowPersonsCOROUTINE$192).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByCourseGroupSetAndClazzAsFlowPersons_1ng1wk_k$(this.clazzUid_1, this.cgsUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByCourseGroupSetAndClazzAsFlowEnrolmentsCOROUTINE$193(_this__u8e3s4, clazzUid, cgsUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.cgsUid_1 = cgsUid; } protoOf($findByCourseGroupSetAndClazzAsFlowEnrolmentsCOROUTINE$193).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByCourseGroupSetAndClazzAsFlowEnrolments_v8chra_k$(this.clazzUid_1, this.cgsUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(_this__u8e3s4, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.courseGroupSetUid_1 = courseGroupSetUid; this.groupNum_1 = groupNum; this.clazzUid_1 = clazzUid; this.assignmentUid_1 = assignmentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseGroupMemberDao/findByCourseGroupSetAndGroupNumAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'courseGroupSetUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.courseGroupSetUid_1)); parameter(this_0, 'groupNum', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.groupNum_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'assignmentUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.assignmentUid_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseGroupMemberDao_Repo$findByCourseGroupSetAndGroupNumAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByCourseGroupSetAndGroupNumAsync_fmld87_k$(this.courseGroupSetUid_1, this.groupNum_1, this.clazzUid_1, this.assignmentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$195(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$195).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseGroupMemberDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CourseGroupMemberDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseGroupMemberDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseGroupMemberDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseGroupMemberDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseGroupMemberDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseGroupMemberDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseGroupMemberDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CourseGroupMemberDao_Repo).findByGroupSetUidAsync_udihxv_k$ = function (groupSetUid, $completion) { var tmp = new $findByGroupSetUidAsyncCOROUTINE$189(this, groupSetUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).findByPersonUid_83a57q_k$ = function (groupSetUid, studentUid, $completion) { var tmp = new $findByPersonUidCOROUTINE$190(this, groupSetUid, studentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).insertListAsync_kuua2l_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseGroupMemberDao_Repo).updateListAsync_ild7qr_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$updateListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(CourseGroupMemberDao_Repo).findByCourseGroupSetAndClazz_7y65w5_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion) { var tmp = new $findByCourseGroupSetAndClazzCOROUTINE$191(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).findByCourseGroupSetAndClazzAsFlow_4ra83v_k$ = function (cgsUid, clazzUid, time, activeFilter, accountPersonUid) { var tmp = this._dao_1.findByCourseGroupSetAndClazzAsFlow_4ra83v_k$(cgsUid, clazzUid, time, activeFilter, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CourseGroupMemberDao_Repo$findByCourseGroupSetAndClazzAsFlow$slambda_0(this, cgsUid, clazzUid, time, activeFilter, accountPersonUid, null)); }; protoOf(CourseGroupMemberDao_Repo).findByCourseGroupSetAndClazzAsFlowPersons_1ng1wk_k$ = function (clazzUid, cgsUid, $completion) { var tmp = new $findByCourseGroupSetAndClazzAsFlowPersonsCOROUTINE$192(this, clazzUid, cgsUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).findByCourseGroupSetAndClazzAsFlowEnrolments_v8chra_k$ = function (clazzUid, cgsUid, $completion) { var tmp = new $findByCourseGroupSetAndClazzAsFlowEnrolmentsCOROUTINE$193(this, clazzUid, cgsUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).upsertListAsync_5ptt71_k$ = function (list, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion); }; protoOf(CourseGroupMemberDao_Repo).findByCourseGroupSetAndGroupNumAsync_fmld87_k$ = function (courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion) { var tmp = new $findByCourseGroupSetAndGroupNumAsyncCOROUTINE$194(this, courseGroupSetUid, groupNum, clazzUid, assignmentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).insert_589i3w_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseGroupMemberDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_589i3w_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; protoOf(CourseGroupMemberDao_Repo).insertAsync_yvjuo5_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$195(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupMemberDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_yvjuo5_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupMemberDao_Repo).insertList_iaxcn8_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseGroupMemberDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iaxcn8_k$(entityList); }; protoOf(CourseGroupMemberDao_Repo).update_c7xeq4_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseGroupMember', CourseGroupMemberDao_Repo$update$lambda(this, entity)); }; protoOf(CourseGroupMemberDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_c7xeq4_k$(entity instanceof CourseGroupMember ? entity : THROW_CCE()); }; function CourseGroupSetDao() { } function _get__db__e63s44_22($this) { return $this._db_1; } function _get__dao__d2kw60_20($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$196(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$196).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cgsUid_bvuqtm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cgsUid_diq868_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cgsLct_55fg7h_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_eds9cj_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$197(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$197).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_cgsUid_bvuqtm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(242, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_cgsUid_diq868_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_cgsLct_55fg7h_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_cgsUid_bvuqtm_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupSetDao_DoorWrapper(_db, _dao) { CourseGroupSetDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseGroupSetDao_DoorWrapper).updateAsync_sorslz_k$ = function (entity, $completion) { entity.set_cgsLct_55fg7h_k$(systemTimeInMillis()); return this._dao_1.updateAsync_sorslz_k$(entity, $completion); }; protoOf(CourseGroupSetDao_DoorWrapper).findAllCourseGroupSetForClazz_4klmtz_k$ = function (clazzUid, searchText, sortOrder) { return this._dao_1.findAllCourseGroupSetForClazz_4klmtz_k$(clazzUid, searchText, sortOrder); }; protoOf(CourseGroupSetDao_DoorWrapper).findAllCourseGroupSetForClazzList_1txbln_k$ = function (clazzUid) { throw IllegalStateException_init_$Create$('findAllCourseGroupSetForClazzList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupSetDao_DoorWrapper).findAllCourseGroupSetForClazzListAsync_3syu2n_k$ = function (clazzUid, $completion) { return this._dao_1.findAllCourseGroupSetForClazzListAsync_3syu2n_k$(clazzUid, $completion); }; protoOf(CourseGroupSetDao_DoorWrapper).findByUidAsync_1hmhhx_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_1hmhhx_k$(uid, $completion); }; protoOf(CourseGroupSetDao_DoorWrapper).findByUidAsFlow_fzg2cy_k$ = function (uid) { return this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); }; protoOf(CourseGroupSetDao_DoorWrapper).upsertAsync_eds9cj_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$196(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_DoorWrapper).insert_xky72u_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupSetDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_xky72u_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; protoOf(CourseGroupSetDao_DoorWrapper).insertAsync_eugcx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$197(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_eugcx_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_DoorWrapper).insertList_jm3m3u_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupSetDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_jm3m3u_k$(entityList); }; protoOf(CourseGroupSetDao_DoorWrapper).update_dfb3py_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseGroupSetDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_dfb3py_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_cgsUid_diq868_k$(_tmp_cgsUid); this_0.set_cgsName_c89ibq_k$(_tmp_cgsName); this_0.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_0.set_cgsActive_il46il_k$(_tmp_cgsActive); this_0.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_0.set_cgsLct_55fg7h_k$(_tmp_cgsLct); return this_0; }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).invoke_ujdn7q_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ujdn7q_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setString_2gt7ua_k$(2, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(3, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(4, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(5, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(6, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(7, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda(this.$clazzUid_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda($clazzUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ujdn7q_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setString_2gt7ua_k$(2, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(3, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(4, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(5, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda(this.$clazzUid_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0($clazzUid, $searchText, $sortOrder, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda($clazzUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda$lambda(_result) { return mapRows(_result, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findAllCourseGroupSetForClazzListAsync....' call this_0.set_cgsUid_diq868_k$(_tmp_cgsUid); this_0.set_cgsName_c89ibq_k$(_tmp_cgsName); this_0.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_0.set_cgsActive_il46il_k$(_tmp_cgsActive); this_0.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_0.set_cgsLct_55fg7h_k$(_tmp_cgsLct); return this_0; }; } function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsync....' call this_0.set_cgsUid_diq868_k$(_tmp_cgsUid); this_0.set_cgsName_c89ibq_k$(_tmp_cgsName); this_0.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_0.set_cgsActive_il46il_k$(_tmp_cgsActive); this_0.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_0.set_cgsLct_55fg7h_k$(_tmp_cgsLct); return this_0; }; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_cgsUid_diq868_k$(_tmp_cgsUid); this_0.set_cgsName_c89ibq_k$(_tmp_cgsName); this_0.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_0.set_cgsActive_il46il_k$(_tmp_cgsActive); this_0.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_0.set_cgsLct_55fg7h_k$(_tmp_cgsLct); return this_0; }; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_xn5z9r_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_xn5z9r_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_xn5z9r_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).bindPreparedStmtToEntity_oxpupr_k$ = function (stmt, entity) { if (entity.get_cgsUid_bvuqtm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cgsUid_bvuqtm_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_cgsName_d9s72p_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cgsTotalGroups_qhxh6a_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_cgsActive_xi666k_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cgsClazzUid_b08ici_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cgsLct_bvuk0n_k$()); }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_oxpupr_k$(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).bindPreparedStmtToEntity_oxpupr_k$ = function (stmt, entity) { if (entity.get_cgsUid_bvuqtm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cgsUid_bvuqtm_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_cgsName_d9s72p_k$()); stmt.setInt_c72a8z_k$(3, entity.get_cgsTotalGroups_qhxh6a_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_cgsActive_xi666k_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cgsClazzUid_b08ici_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cgsLct_bvuk0n_k$()); }; protoOf(CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_oxpupr_k$(stmt, entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CourseGroupSetDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_cgsName_d9s72p_k$()); this._stmt_1.setInt_c72a8z_k$(2, this.$entity_1.get_cgsTotalGroups_qhxh6a_k$()); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$entity_1.get_cgsActive_xi666k_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_cgsClazzUid_b08ici_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_cgsLct_bvuk0n_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$entity_1.get_cgsUid_bvuqtm_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_cgsName_d9s72p_k$()); _stmt.setInt_c72a8z_k$(2, $entity.get_cgsTotalGroups_qhxh6a_k$()); _stmt.setBoolean_pzdm1v_k$(3, $entity.get_cgsActive_xi666k_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_cgsClazzUid_b08ici_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_cgsLct_bvuk0n_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_cgsUid_bvuqtm_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this$0, $clazzUid, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['CourseGroupSet']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).loadRows_yjoak9_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$loadRows$slambda_0(this.$clazzUid_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_yjoak9_k$(_limit, _offset, $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n AND ((? = '%') OR (cgsName LIKE ?))\n ORDER BY CASE(?)\n WHEN 1 THEN cgsName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN cgsName\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$o$countRows$slambda_0(this.$clazzUid_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda$lambda(_result) { return mapRows(_result, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda$lambda$lambda(_result)); } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_cgsUid = $_result.getLong_3wgf2g_k$('cgsUid'); var _tmp_cgsName = $_result.getString_gb1pt9_k$('cgsName'); var _tmp_cgsTotalGroups = $_result.getInt_npc9pd_k$('cgsTotalGroups'); var _tmp_cgsActive = $_result.getBoolean_xz3hoo_k$('cgsActive'); var _tmp_cgsClazzUid = $_result.getLong_3wgf2g_k$('cgsClazzUid'); var _tmp_cgsLct = $_result.getLong_3wgf2g_k$('cgsLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseGroupSetDao_JdbcImpl.findAllCourseGroupSetForClazzList....' call this_0.set_cgsUid_diq868_k$(_tmp_cgsUid); this_0.set_cgsName_c89ibq_k$(_tmp_cgsName); this_0.set_cgsTotalGroups_ytmo82_k$(_tmp_cgsTotalGroups); this_0.set_cgsActive_il46il_k$(_tmp_cgsActive); this_0.set_cgsClazzUid_5es9x0_k$(_tmp_cgsClazzUid); this_0.set_cgsLct_55fg7h_k$(_tmp_cgsLct); return this_0; }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda($clazzUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $clazzUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda$lambda); }; } function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda).invoke_ujdn7q_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ujdn7q_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda_0($clazzUid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ujdn7q_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).invoke_xn5z9r_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_xn5z9r_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_xn5z9r_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).invoke_b78jk5_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_b78jk5_k$($completion); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_b78jk5_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$198(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$198).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseGroupSet_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$199(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$199).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE CourseGroupSet SET cgsName = ?, cgsTotalGroups = ?, cgsActive = ?, cgsClazzUid = ?, cgsLct = ? WHERE cgsUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, CourseGroupSetDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupSetDao_JdbcImpl(_db) { CourseGroupSetDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseGroupSet_upsert_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterCourseGroupSet_abort_1 = new CourseGroupSetDao_JdbcImpl$_insertAdapterCourseGroupSet_abort$1(this); } protoOf(CourseGroupSetDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseGroupSetDao_JdbcImpl).get__insertAdapterCourseGroupSet_upsert_frkuj4_k$ = function () { return this._insertAdapterCourseGroupSet_upsert_1; }; protoOf(CourseGroupSetDao_JdbcImpl).get__insertAdapterCourseGroupSet_abort_ekhbn5_k$ = function () { return this._insertAdapterCourseGroupSet_abort_1; }; protoOf(CourseGroupSetDao_JdbcImpl).upsertAsync_eds9cj_k$ = function (entity, $completion) { return this._insertAdapterCourseGroupSet_upsert_1.insertAsync_kic9b7_k$(entity, $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).insert_xky72u_k$ = function (entity) { var _retVal = this._insertAdapterCourseGroupSet_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseGroupSetDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_xky72u_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; protoOf(CourseGroupSetDao_JdbcImpl).insertAsync_eugcx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$198(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_eugcx_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).insertList_jm3m3u_k$ = function (entityList) { this._insertAdapterCourseGroupSet_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseGroupSetDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_jm3m3u_k$(entityList); }; protoOf(CourseGroupSetDao_JdbcImpl).updateAsync_sorslz_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$199(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_JdbcImpl).update_dfb3py_k$ = function (entity) { var _sql = 'UPDATE CourseGroupSet SET cgsName = ?, cgsTotalGroups = ?, cgsActive = ?, cgsClazzUid = ?, cgsLct = ? WHERE cgsUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseGroupSetDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseGroupSetDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_dfb3py_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; protoOf(CourseGroupSetDao_JdbcImpl).findAllCourseGroupSetForClazz_4klmtz_k$ = function (clazzUid, searchText, sortOrder) { return new CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazz$1(this, clazzUid, searchText, sortOrder); }; protoOf(CourseGroupSetDao_JdbcImpl).findAllCourseGroupSetForClazzList_1txbln_k$ = function (clazzUid) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n ORDER BY cgsName \n ', VOID, VOID, VOID, '\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n ORDER BY cgsName \n \n', true); return prepareAndUseStatement_0(this._db_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzList$lambda(clazzUid)); }; protoOf(CourseGroupSetDao_JdbcImpl).findAllCourseGroupSetForClazzListAsync_3syu2n_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = CAST(? AS BIGINT)\n ORDER BY cgsName \n ', VOID, VOID, VOID, '\n SELECT *\n FROM CourseGroupSet\n WHERE cgsActive\n AND cgsClazzUid = ?\n ORDER BY cgsName \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupSetDao_JdbcImpl$findAllCourseGroupSetForClazzListAsync$slambda_0(clazzUid, null), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).findByUidAsync_1hmhhx_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseGroupSet \n WHERE cgsUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(CourseGroupSetDao_JdbcImpl).findByUidAsFlow_fzg2cy_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CourseGroupSet']; return doorFlow(this._db_1, tmp, CourseGroupSetDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null)); }; function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupSetDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(CourseGroupSetDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_sorslz_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupSetDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseGroupSetDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupSetDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CourseGroupSetDao/findAllCourseGroupSetForClazz'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseGroupSetDao/findAllCourseGroupSetForClazz'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchText_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this.this$0__1, this.$clazzUid_1, this.$searchText_1, this.$sortOrder_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation) { var i = new CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda(this$0, $clazzUid, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CourseGroupSetDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_eds9cj_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupSetDao_Repo$upsertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseGroupSetDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupSetDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CourseGroupSetDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseGroupSetDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseGroupSetDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseGroupSetDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseGroupSetDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseGroupSetDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseGroupSetDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $updateAsyncCOROUTINE$200(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$200).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllCourseGroupSetForClazzListAsyncCOROUTINE$201(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($findAllCourseGroupSetForClazzListAsyncCOROUTINE$201).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllCourseGroupSetForClazzListAsync_3syu2n_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$202(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$202).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseGroupSetDao/findByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseGroupSetDao/findByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseGroupSetDao_Repo$findByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_1hmhhx_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$203(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$203).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupSetDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseGroupSetDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(CourseGroupSetDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseGroupSetDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseGroupSetDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseGroupSetDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseGroupSetDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseGroupSetDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseGroupSetDao_Repo).updateAsync_sorslz_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$200(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo).findAllCourseGroupSetForClazz_4klmtz_k$ = function (clazzUid, searchText, sortOrder) { var tmp = this._dao_1.findAllCourseGroupSetForClazz_4klmtz_k$(clazzUid, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CourseGroupSetDao/findAllCourseGroupSetForClazz', tmp, CourseGroupSetDao_Repo$findAllCourseGroupSetForClazz$slambda_0(this, clazzUid, searchText, sortOrder, null)); }; protoOf(CourseGroupSetDao_Repo).findAllCourseGroupSetForClazzList_1txbln_k$ = function (clazzUid) { var _result = this._dao_1.findAllCourseGroupSetForClazzList_1txbln_k$(clazzUid); return _result; }; protoOf(CourseGroupSetDao_Repo).findAllCourseGroupSetForClazzListAsync_3syu2n_k$ = function (clazzUid, $completion) { var tmp = new $findAllCourseGroupSetForClazzListAsyncCOROUTINE$201(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo).findByUidAsync_1hmhhx_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$202(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo).findByUidAsFlow_fzg2cy_k$ = function (uid) { var _result = this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); return _result; }; protoOf(CourseGroupSetDao_Repo).upsertAsync_eds9cj_k$ = function (entity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(CourseGroupSetDao_Repo).insert_xky72u_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseGroupSetDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_xky72u_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; protoOf(CourseGroupSetDao_Repo).insertAsync_eugcx_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$203(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseGroupSetDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_eugcx_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE(), $completion); }; protoOf(CourseGroupSetDao_Repo).insertList_jm3m3u_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseGroupSetDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_jm3m3u_k$(entityList); }; protoOf(CourseGroupSetDao_Repo).update_dfb3py_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseGroupSet', CourseGroupSetDao_Repo$update$lambda(this, entity)); }; protoOf(CourseGroupSetDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_dfb3py_k$(entity instanceof CourseGroupSet ? entity : THROW_CCE()); }; function CoursePermissionDao() { } function _get__db__e63s44_23($this) { return $this._db_1; } function _get__dao__d2kw60_21($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$204(_this__u8e3s4, coursePermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.coursePermission_1 = coursePermission; } protoOf($upsertAsyncCOROUTINE$204).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.coursePermission_1.get_cpUid_ipuem2_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(10012, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.coursePermission_1.set_cpUid_njvs88_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.coursePermission_1.set_cpLastModified_21i6ut_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_hy84ux_k$(this.coursePermission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CoursePermissionDao_DoorWrapper(_db, _dao) { CoursePermissionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CoursePermissionDao_DoorWrapper).findByClazzUidAsPagingSource_nzywk8_k$ = function (clazzUid, includeDeleted) { return this._dao_1.findByClazzUidAsPagingSource_nzywk8_k$(clazzUid, includeDeleted); }; protoOf(CoursePermissionDao_DoorWrapper).findByUidAndClazzUid_eeyf7i_k$ = function (uid, clazzUid, $completion) { return this._dao_1.findByUidAndClazzUid_eeyf7i_k$(uid, clazzUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { return this._dao_1.findByUidAndClazzUidAsFlow_nrf1o1_k$(uid, clazzUid); }; protoOf(CoursePermissionDao_DoorWrapper).upsertAsync_hy84ux_k$ = function (coursePermission, $completion) { var tmp = new $upsertAsyncCOROUTINE$204(this, coursePermission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_DoorWrapper).setDeleted_fijhxl_k$ = function (cpUid, isDeleted, updateTime, $completion) { return this._dao_1.setDeleted_fijhxl_k$(cpUid, isDeleted, updateTime, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzByEnrolmentUidEntities2_leqwy0_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { return this._dao_1.personHasPermissionWithClazzByEnrolmentUidEntities2_leqwy0_k$(accountPersonUid, clazzEnrolmentUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).userHasEnrolmentEditPermission_xp854e_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { return this._dao_1.userHasEnrolmentEditPermission_xp854e_k$(accountPersonUid, clazzEnrolmentUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzEntities2_44vvmj_k$ = function (accountPersonUid, clazzUid, $completion) { return this._dao_1.personHasPermissionWithClazzEntities2_44vvmj_k$(accountPersonUid, clazzUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzAsFlow2_ih3l4q_k$ = function (accountPersonUid, clazzUid, permission) { return this._dao_1.personHasPermissionWithClazzAsFlow2_ih3l4q_k$(accountPersonUid, clazzUid, permission); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzPairAsFlow_gv7o5k_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { return this._dao_1.personHasPermissionWithClazzPairAsFlow_gv7o5k_k$(accountPersonUid, clazzUid, firstPermission, secondPermission); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzPairAsync_lowfqo_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { return this._dao_1.personHasPermissionWithClazzPairAsync_lowfqo_k$(accountPersonUid, clazzUid, firstPermission, secondPermission, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzTripleAsFlow_8uozny_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { return this._dao_1.personHasPermissionWithClazzTripleAsFlow_8uozny_k$(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission); }; protoOf(CoursePermissionDao_DoorWrapper).personHasPermissionWithClazzAsync2_6hwhkq_k$ = function (accountPersonUid, clazzUid, permission, $completion) { return this._dao_1.personHasPermissionWithClazzAsync2_6hwhkq_k$(accountPersonUid, clazzUid, permission, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).findApplicableCoursePermissionEntitiesForAccountPerson_170fyw_k$ = function (accountPersonUid, $completion) { return this._dao_1.findApplicableCoursePermissionEntitiesForAccountPerson_170fyw_k$(accountPersonUid, $completion); }; protoOf(CoursePermissionDao_DoorWrapper).userPermissionsForAssignmentSubmitterUid_6yih9g_k$ = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { return this._dao_1.userPermissionsForAssignmentSubmitterUid_6yih9g_k$(accountPersonUid, assignmentUid, clazzUid, submitterUid); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CoursePermission_nullCount = 0; var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_CoursePermission_isAllNull = _tmp_CoursePermission_nullCount === 8; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new CoursePermissionAndListDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_CoursePermission_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_cpUid_njvs88_k$(_tmp_cpUid); this_1.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_1.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_1.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_1.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_1.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_1.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_1.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); this_0.set_coursePermission_6v7szl_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_2); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_3.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_3.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_3.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_3.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_3.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_3); } return this_0; }; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).invoke_oevzp5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oevzp5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda(this.$clazzUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda($clazzUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oevzp5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda(this.$clazzUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0($clazzUid, $includeDeleted, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda($clazzUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda(_result) { return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUid....' call this_0.set_cpUid_njvs88_k$(_tmp_cpUid); this_0.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_0.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_0.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_0.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_0.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_0.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_0.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); return this_0; }; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findByUidAndClazzUidAsFlow.....' call this_0.set_cpUid_njvs88_k$(_tmp_cpUid); this_0.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_0.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_0.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_0.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_0.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_0.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_0.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); return this_0; }; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation) { this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).invoke_bg1qv9_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bg1qv9_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda(this.$uid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0($uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bg1qv9_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda$lambda(_result) { return mapRows(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CoursePermission_nullCount = 0; var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_CoursePermission_isAllNull = _tmp_CoursePermission_nullCount === 8; var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CoursePermissionAndEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzByEnrolmentUidEntities2....' call if (!_tmp_CoursePermission_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzByEnrolmentUidEntities2.....' call this_1.set_cpUid_njvs88_k$(_tmp_cpUid); this_1.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_1.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_1.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_1.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_1.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_1.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_1.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); this_0.set_coursePermission_6v7szl_k$(this_1); } if (!_tmp_ClazzEnrolment_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzByEnrolmentUidEntities2.....' call this_2.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_2.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_2.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_2.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_2.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_2.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_2.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_2.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_2.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_2.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_2.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_2.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_2.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_2.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); this_0.set_clazzEnrolment_sfi2bj_k$(this_2); } return this_0; }; } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda$lambda(_result) { return mapRows(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda$lambda$lambda($_result) { return function (it) { var _tmp_CoursePermission_nullCount = 0; var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePermission_nullCount = _tmp_CoursePermission_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_CoursePermission_isAllNull = _tmp_CoursePermission_nullCount === 8; var _tmp_ClazzEnrolment_nullCount = 0; var _tmp_clazzEnrolmentUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_clazzEnrolmentPersonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentPersonUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_clazzEnrolmentClazzUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentClazzUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateJoined = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateJoined'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_clazzEnrolmentDateLeft = $_result.getLong_3wgf2g_k$('clazzEnrolmentDateLeft'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_clazzEnrolmentRole = $_result.getInt_npc9pd_k$('clazzEnrolmentRole'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_clazzEnrolmentAttendancePercentage = $_result.getFloat_1jlp7w_k$('clazzEnrolmentAttendancePercentage'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_clazzEnrolmentActive = $_result.getBoolean_xz3hoo_k$('clazzEnrolmentActive'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_clazzEnrolmentLeavingReasonUid = $_result.getLong_3wgf2g_k$('clazzEnrolmentLeavingReasonUid'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_clazzEnrolmentOutcome = $_result.getInt_npc9pd_k$('clazzEnrolmentOutcome'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_clazzEnrolmentLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentLocalChangeSeqNum'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_clazzEnrolmentMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('clazzEnrolmentMasterChangeSeqNum'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_clazzEnrolmentLastChangedBy = $_result.getInt_npc9pd_k$('clazzEnrolmentLastChangedBy'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_clazzEnrolmentLct = $_result.getLong_3wgf2g_k$('clazzEnrolmentLct'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_ClazzEnrolment_nullCount = _tmp_ClazzEnrolment_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_ClazzEnrolment_isAllNull = _tmp_ClazzEnrolment_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new CoursePermissionAndEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzEntities2....' call if (!_tmp_CoursePermission_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzEntities2.....' call this_1.set_cpUid_njvs88_k$(_tmp_cpUid); this_1.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_1.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_1.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_1.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_1.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_1.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_1.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); this_0.set_coursePermission_6v7szl_k$(this_1); } if (!_tmp_ClazzEnrolment_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ClazzEnrolment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzEntities2.....' call this_2.set_clazzEnrolmentUid_ymgyw9_k$(_tmp_clazzEnrolmentUid); this_2.set_clazzEnrolmentPersonUid_qntlsc_k$(_tmp_clazzEnrolmentPersonUid); this_2.set_clazzEnrolmentClazzUid_1nipul_k$(_tmp_clazzEnrolmentClazzUid); this_2.set_clazzEnrolmentDateJoined_miq3em_k$(_tmp_clazzEnrolmentDateJoined); this_2.set_clazzEnrolmentDateLeft_8szytc_k$(_tmp_clazzEnrolmentDateLeft); this_2.set_clazzEnrolmentRole_38vbyv_k$(_tmp_clazzEnrolmentRole); this_2.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_tmp_clazzEnrolmentAttendancePercentage); this_2.set_clazzEnrolmentActive_rmas2i_k$(_tmp_clazzEnrolmentActive); this_2.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_tmp_clazzEnrolmentLeavingReasonUid); this_2.set_clazzEnrolmentOutcome_dmmssf_k$(_tmp_clazzEnrolmentOutcome); this_2.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_tmp_clazzEnrolmentLocalChangeSeqNum); this_2.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_tmp_clazzEnrolmentMasterChangeSeqNum); this_2.set_clazzEnrolmentLastChangedBy_i735xg_k$(_tmp_clazzEnrolmentLastChangedBy); this_2.set_clazzEnrolmentLct_q966xi_k$(_tmp_clazzEnrolmentLct); this_0.set_clazzEnrolment_sfi2bj_k$(this_2); } return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$permission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.getBoolean_xz3hoo_k$('firstPermission'); var _tmp_secondPermission = $_result.getBoolean_xz3hoo_k$('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsFlow.....' call this_0.set_firstPermission_2e6v8t_k$(_tmp_firstPermission); this_0.set_secondPermission_lj81xn_k$(_tmp_secondPermission); return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).invoke_acelx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_acelx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$secondPermission_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$secondPermission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_acelx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.getBoolean_xz3hoo_k$('firstPermission'); var _tmp_secondPermission = $_result.getBoolean_xz3hoo_k$('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzPairAsync....' call this_0.set_firstPermission_2e6v8t_k$(_tmp_firstPermission); this_0.set_secondPermission_lj81xn_k$(_tmp_secondPermission); return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.getBoolean_xz3hoo_k$('firstPermission'); var _tmp_secondPermission = $_result.getBoolean_xz3hoo_k$('secondPermission'); var _tmp_thirdPermission = $_result.getBoolean_xz3hoo_k$('thirdPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionTriple(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.personHasPermissionWithClazzTripleAsFlow.....' call this_0.set_firstPermission_2e6v8t_k$(_tmp_firstPermission); this_0.set_secondPermission_lj81xn_k$(_tmp_secondPermission); this_0.set_thirdPermission_4i0vuk_k$(_tmp_thirdPermission); return this_0; }; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; this.$thirdPermission_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).invoke_wbicos_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_wbicos_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$secondPermission_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$secondPermission_1); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(23, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(24, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(25, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(26, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(27, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(28, this.$thirdPermission_1); this._stmt_1.setLong_j1sybo_k$(29, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(30, this.$thirdPermission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, this.$thirdPermission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_wbicos_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda(_result) { return mapNextRow(_result, false, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda$lambda(_result) { return mapRows(_result, CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cpUid = $_result.getLong_3wgf2g_k$('cpUid'); var _tmp_cpLastModified = $_result.getLong_3wgf2g_k$('cpLastModified'); var _tmp_cpClazzUid = $_result.getLong_3wgf2g_k$('cpClazzUid'); var _tmp_cpToEnrolmentRole = $_result.getInt_npc9pd_k$('cpToEnrolmentRole'); var _tmp_cpToPersonUid = $_result.getLong_3wgf2g_k$('cpToPersonUid'); var _tmp_cpToGroupUid = $_result.getLong_3wgf2g_k$('cpToGroupUid'); var _tmp_cpPermissionsFlag = $_result.getLong_3wgf2g_k$('cpPermissionsFlag'); var _tmp_cpIsDeleted = $_result.getBoolean_xz3hoo_k$('cpIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new CoursePermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.findApplicableCoursePermissionEntitiesForAccountPerson....' call this_0.set_cpUid_njvs88_k$(_tmp_cpUid); this_0.set_cpLastModified_21i6ut_k$(_tmp_cpLastModified); this_0.set_cpClazzUid_ofwwlg_k$(_tmp_cpClazzUid); this_0.set_cpToEnrolmentRole_ahoetp_k$(_tmp_cpToEnrolmentRole); this_0.set_cpToPersonUid_ux78ig_k$(_tmp_cpToPersonUid); this_0.set_cpToGroupUid_6p3obs_k$(_tmp_cpToGroupUid); this_0.set_cpPermissionsFlag_uajiqg_k$(_tmp_cpPermissionsFlag); this_0.set_cpIsDeleted_b36gj4_k$(_tmp_cpIsDeleted); return this_0; }; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda(_result)); } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_canMark = $_result.getBoolean_xz3hoo_k$('canMark'); var _tmp_canView = $_result.getBoolean_xz3hoo_k$('canView'); var _tmp_canModerate = $_result.getBoolean_xz3hoo_k$('canModerate'); var _tmp_activeUserSubmitterUid = $_result.getLong_3wgf2g_k$('activeUserSubmitterUid'); // Inline function 'kotlin.apply' call var this_0 = new AssignmentPermissionAndActiveUserSubmitterUid(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CoursePermissionDao_JdbcImpl.userPermissionsForAssignmentSubmitterUid.....' call this_0.set_canMark_la8v05_k$(_tmp_canMark); this_0.set_canView_ysrnkt_k$(_tmp_canView); this_0.set_canModerate_fiqm81_k$(_tmp_canModerate); this_0.set_activeUserSubmitterUid_htx8ev_k$(_tmp_activeUserSubmitterUid); return this_0; }; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; this.$submitterUid_1 = $submitterUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).invoke_8th2ry_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_8th2ry_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(23, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(24, this.$assignmentUid_1); this._stmt_1.setLong_j1sybo_k$(25, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(26, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(27, this.$submitterUid_1); this._stmt_1.setLong_j1sybo_k$(28, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(29, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(30, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(31, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(32, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(33, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(34, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(35, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(36, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(37, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(38, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(39, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda(this.$assignmentUid_1, this.$accountPersonUid_1, this.$submitterUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda($assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_8th2ry_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CoursePermission (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).bindPreparedStmtToEntity_9alk45_k$ = function (stmt, entity) { if (entity.get_cpUid_ipuem2_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_cpUid_ipuem2_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_cpLastModified_o65ugb_k$()); stmt.setLong_j1sybo_k$(3, entity.get_cpClazzUid_gewage_k$()); stmt.setInt_c72a8z_k$(4, entity.get_cpToEnrolmentRole_8h904p_k$()); stmt.setLong_j1sybo_k$(5, entity.get_cpToPersonUid_1zvcmi_k$()); stmt.setLong_j1sybo_k$(6, entity.get_cpToGroupUid_h7ylj2_k$()); stmt.setLong_j1sybo_k$(7, entity.get_cpPermissionsFlag_9dskau_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_cpIsDeleted_oej5tl_k$()); }; protoOf(CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_9alk45_k$(stmt, entity instanceof CoursePermission ? entity : THROW_CCE()); }; function CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this$0, $clazzUid, $includeDeleted) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).loadRows_lr5tju_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = ? \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$loadRows$slambda_0(this.$clazzUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_lr5tju_k$(_limit, _offset, $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT CoursePermission.*, Person.*, PersonPicture.*\n FROM CoursePermission\n LEFT JOIN Person\n ON Person.personUid = CoursePermission.cpToPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE CoursePermission.cpClazzUid = ? \n AND (CAST(? AS INTEGER) = 1 OR NOT CoursePermission.cpIsDeleted) \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$o$countRows$slambda_0(this.$clazzUid_1, this.$includeDeleted_1, null), $completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation) { this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).invoke_bg1qv9_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bg1qv9_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda(this.$uid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0($uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda($uid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bg1qv9_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).invoke_8pmw9z_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_8pmw9z_k$($completion); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n AND CoursePermission.cpClazzUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = ?\n AND CoursePermission.cpClazzUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda$slambda_0(this.$uid_1, this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this.this$0__1, this.$uid_1, this.$clazzUid_1, completion); }; function CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_8pmw9z_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation) { this.$isDeleted_1 = $isDeleted; this.$updateTime_1 = $updateTime; this.$cpUid_1 = $cpUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$isDeleted_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cpUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda(this.$isDeleted_1, this.$updateTime_1, this.$cpUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$setDeleted$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$setDeleted$slambda_0($isDeleted, $updateTime, $cpUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$setDeleted$slambda($isDeleted, $updateTime, $cpUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda($accountPersonUid, $clazzEnrolmentUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$clazzEnrolmentUid_1 = $clazzEnrolmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda).invoke_ao44c4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ao44c4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzEnrolmentUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda(this.$accountPersonUid_1, this.$clazzEnrolmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda_0($accountPersonUid, $clazzEnrolmentUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda($accountPersonUid, $clazzEnrolmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ao44c4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation) { this.$clazzEnrolmentUid_1 = $clazzEnrolmentUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzEnrolmentUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzEnrolmentUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$clazzEnrolmentUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzEnrolmentUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzEnrolmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda(this.$clazzEnrolmentUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0($clazzEnrolmentUid, $accountPersonUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda($clazzEnrolmentUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda($accountPersonUid, $clazzUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda).invoke_ao44c4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ao44c4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda(this.$accountPersonUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda_0($accountPersonUid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda($accountPersonUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ao44c4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n ) \n ', VOID, VOID, VOID, '\n SELECT (? != 0 AND ? != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n ) \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$permission_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, this.$permission_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda(this$0, $clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).invoke_k3c9uk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_k3c9uk_k$($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.invoke_k3c9uk_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).invoke_acelx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_acelx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(11, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$secondPermission_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$secondPermission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda($clazzUid, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_acelx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; this.$thirdPermission_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).invoke_obt508_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_obt508_k$($completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS thirdPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS thirdPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda$slambda_0(this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, this.$thirdPermission_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, this.$thirdPermission_1, completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $clazzUid, $accountPersonUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function ($completion) { return i.invoke_obt508_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$permission_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$permission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda(this.$clazzUid_1, this.$accountPersonUid_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0($clazzUid, $accountPersonUid, $permission, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda($clazzUid, $accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda).invoke_t062b6_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_t062b6_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda_0($accountPersonUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_t062b6_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$assignmentUid_1 = $assignmentUid; this.$accountPersonUid_1 = $accountPersonUid; this.$submitterUid_1 = $submitterUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).invoke_eytya_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_eytya_k$($completion); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n WITH \n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT)) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = CAST(? AS BIGINT))\n AND CourseGroupMember.cgmPersonUid = CAST(? AS BIGINT)\n LIMIT 1), -1)\n END\n )\n ,\n CanMarkSubmitter(canMark) AS\n (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT))\n WHEN 2 THEN \n EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = CAST(? AS BIGINT)\n AND PeerReviewerAllocation.praMarkerSubmitterUid =\n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n ELSE ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 256\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 256\n \n ) > 0)\n )\n )\n END)\n\n \n /* Can edit */\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (SELECT CanMarkSubmitter.canMark \n FROM CanMarkSubmitter)) AS canMark,\n /* can view */ \n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ( (SELECT CanMarkSubmitter.canMark\n FROM CanMarkSubmitter)\n OR (SELECT CAST(? AS BIGINT) = \n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )) \n ) AS canView,\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n \n ) AS canModerate,\n (SELECT accountSubmitterUid\n FROM AccountSubmitterUid) AS activeUserSubmitterUid\n \n ', VOID, VOID, VOID, '\n WITH \n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = ?)\n AND CourseGroupMember.cgmPersonUid = ?\n LIMIT 1), -1)\n END\n )\n ,\n CanMarkSubmitter(canMark) AS\n (SELECT CASE (SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = ?)\n WHEN 2 THEN \n EXISTS(SELECT 1\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praToMarkerSubmitterUid = ?\n AND PeerReviewerAllocation.praMarkerSubmitterUid =\n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n ELSE ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 256\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 256\n \n ) > 0)\n )\n )\n END)\n\n \n /* Can edit */\n SELECT ( (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n AND (SELECT CanMarkSubmitter.canMark \n FROM CanMarkSubmitter)) AS canMark,\n /* can view */ \n ( (? != 0 AND ? != 0 AND ? != 0 AND ? != 0)\n AND ( (SELECT CanMarkSubmitter.canMark\n FROM CanMarkSubmitter)\n OR (SELECT ? = \n (SELECT AccountSubmitterUid.accountSubmitterUid\n FROM AccountSubmitterUid))\n OR ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )) \n ) AS canView,\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 4\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 4\n \n ) > 0)\n )\n \n ) AS canModerate,\n (SELECT accountSubmitterUid\n FROM AccountSubmitterUid) AS activeUserSubmitterUid\n \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda$slambda_0(this.$assignmentUid_1, this.$accountPersonUid_1, this.$submitterUid_1, this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this.this$0__1, this.$assignmentUid_1, this.$accountPersonUid_1, this.$submitterUid_1, this.$clazzUid_1, completion); }; function CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $assignmentUid, $accountPersonUid, $submitterUid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_eytya_k$($completion); }; l.$arity = 0; return l; } function $setDeletedCOROUTINE$205(_this__u8e3s4, cpUid, isDeleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cpUid_1 = cpUid; this.isDeleted_1 = isDeleted; this.updateTime_1 = updateTime; } protoOf($setDeletedCOROUTINE$205).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CoursePermission\n SET cpIsDeleted = ?,\n cpLastModified = CAST(? AS BIGINT)\n WHERE cpUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CoursePermission\n SET cpIsDeleted = ?,\n cpLastModified = ?\n WHERE cpUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CoursePermissionDao_JdbcImpl$setDeleted$slambda_0(this.isDeleted_1, this.updateTime_1, this.cpUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CoursePermissionDao_JdbcImpl(_db) { CoursePermissionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCoursePermission_upsert_1 = new CoursePermissionDao_JdbcImpl$_insertAdapterCoursePermission_upsert$1(this); } protoOf(CoursePermissionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CoursePermissionDao_JdbcImpl).get__insertAdapterCoursePermission_upsert_64mu6c_k$ = function () { return this._insertAdapterCoursePermission_upsert_1; }; protoOf(CoursePermissionDao_JdbcImpl).upsertAsync_hy84ux_k$ = function (coursePermission, $completion) { return this._insertAdapterCoursePermission_upsert_1.insertAsync_kic9b7_k$(coursePermission, $completion); }; protoOf(CoursePermissionDao_JdbcImpl).findByClazzUidAsPagingSource_nzywk8_k$ = function (clazzUid, includeDeleted) { return new CoursePermissionDao_JdbcImpl$findByClazzUidAsPagingSource$1(this, clazzUid, includeDeleted); }; protoOf(CoursePermissionDao_JdbcImpl).findByUidAndClazzUid_eeyf7i_k$ = function (uid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = CAST(? AS BIGINT)\n AND CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpUid = ?\n AND CoursePermission.cpClazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUid$slambda_0(uid, clazzUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['CoursePermission']; return doorFlow(this._db_1, tmp, CoursePermissionDao_JdbcImpl$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(CoursePermissionDao_JdbcImpl).setDeleted_fijhxl_k$ = function (cpUid, isDeleted, updateTime, $completion) { var tmp = new $setDeletedCOROUTINE$205(this, cpUid, isDeleted, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzByEnrolmentUidEntities2_leqwy0_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CoursePermission.*, ClazzEnrolment_ForAccountPerson.*\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n )\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*, ClazzEnrolment_ForAccountPerson.*\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n )\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzByEnrolmentUidEntities2$slambda_0(accountPersonUid, clazzEnrolmentUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).userHasEnrolmentEditPermission_xp854e_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CASE CAST(? AS BIGINT) \n WHEN 0 THEN (SELECT EXISTS(\n SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & 2048) > 0\n AND NOT SystemPermission.spIsDeleted))\n ELSE (\n SELECT (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n )), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = CAST(? AS BIGINT)), 0)\n )\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT) \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = CAST(? AS BIGINT) \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n )\n \n )\n END \n ', VOID, VOID, VOID, '\n SELECT CASE ? \n WHEN 0 THEN (SELECT EXISTS(\n SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & 2048) > 0\n AND NOT SystemPermission.spIsDeleted))\n ELSE (\n SELECT (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n )), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = (\n SELECT COALESCE(\n (SELECT _ClazzEnrolment_ForClazzUid.clazzEnrolmentClazzUid\n FROM ClazzEnrolment _ClazzEnrolment_ForClazzUid\n WHERE _ClazzEnrolment_ForClazzUid.clazzEnrolmentUid = ?), 0)\n )\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = ? \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n \n (\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = ? \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n )\n \n ) > 0)\n )\n \n )\n END \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$userHasEnrolmentEditPermission$slambda_0(clazzEnrolmentUid, accountPersonUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzEntities2_44vvmj_k$ = function (accountPersonUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CoursePermission.*, ClazzEnrolment_ForAccountPerson.*\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE (CAST(? AS BIGINT) = 0 OR CoursePermission.cpClazzUid = CAST(? AS BIGINT))\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n ', VOID, VOID, VOID, '\n SELECT CoursePermission.*, ClazzEnrolment_ForAccountPerson.*\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE (? = 0 OR CoursePermission.cpClazzUid = ?)\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzEntities2$slambda_0(accountPersonUid, clazzUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzAsFlow2_ih3l4q_k$ = function (accountPersonUid, clazzUid, permission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment']; return doorFlow(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsFlow2$slambda_0(this, clazzUid, accountPersonUid, permission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzPairAsFlow_gv7o5k_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzPairAsync_lowfqo_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n )\n ) AS secondPermission\n ', VOID, VOID, VOID, '\n SELECT ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS firstPermission,\n ( (? != 0 AND ? != 0)\n AND ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n )\n ) AS secondPermission\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzPairAsync$slambda_0(clazzUid, accountPersonUid, firstPermission, secondPermission, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzTripleAsFlow_8uozny_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Clazz', 'CoursePermission', 'ClazzEnrolment', 'SystemPermission']; return doorFlow(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, clazzUid, accountPersonUid, firstPermission, secondPermission, thirdPermission, null)); }; protoOf(CoursePermissionDao_JdbcImpl).personHasPermissionWithClazzAsync2_6hwhkq_k$ = function (accountPersonUid, clazzUid, permission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT (CAST(? AS BIGINT) != 0 AND CAST(? AS BIGINT) != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n CAST(? AS BIGINT)\n \n ) > 0)\n )\n \n ) \n ', VOID, VOID, VOID, '\n SELECT (? != 0 AND ? != 0)\n AND (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n ?\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n ?\n \n ) > 0)\n )\n \n ) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$personHasPermissionWithClazzAsync2$slambda_0(clazzUid, accountPersonUid, permission, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).findApplicableCoursePermissionEntitiesForAccountPerson_170fyw_k$ = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT) \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n /* Get CoursePermissions given to the active user based on their enrolment role*/\n SELECT CoursePermission.*\n FROM ClazzEnrolment ClazzEnrolment_ActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ActiveUser.clazzEnrolmentRole\n WHERE ClazzEnrolment_ActiveUser.clazzEnrolmentPersonUid = ? \n UNION\n /* Get ClazzUids where the active user can view members based a grant directly to them */\n SELECT CoursePermission.*\n FROM CoursePermission\n WHERE CoursePermission.cpToPersonUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CoursePermissionDao_JdbcImpl$findApplicableCoursePermissionEntitiesForAccountPerson$slambda_0(accountPersonUid, null), $completion); }; protoOf(CoursePermissionDao_JdbcImpl).userPermissionsForAssignmentSubmitterUid_6yih9g_k$ = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'ClazzEnrolment', 'CourseGroupMember', 'PeerReviewerAllocation', 'CoursePermission', 'SystemPermission']; return doorFlow(this._db_1, tmp, CoursePermissionDao_JdbcImpl$userPermissionsForAssignmentSubmitterUid$slambda_0(this, assignmentUid, accountPersonUid, submitterUid, clazzUid, null)); }; function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CoursePermissionDao/findByClazzUidAsPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/findByClazzUidAsPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this.this$0__1, this.$clazzUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this$0, $clazzUid, $includeDeleted, resultContinuation) { var i = new CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda(this$0, $clazzUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CoursePermissionDao_Repo$findByUidAndClazzUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/findByUidAndClazzUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/findByUidAndClazzUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this.this$0__1, this.$uid_1, this.$clazzUid_1, completion); }; function CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this$0, $uid, $clazzUid, resultContinuation) { var i = new CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda(this$0, $uid, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation) { this.this$0__1 = this$0; this.$coursePermission_1 = $coursePermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_hy84ux_k$(this.$coursePermission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$upsertAsync$slambda(this.this$0__1, this.$coursePermission_1, completion); }; function CoursePermissionDao_Repo$upsertAsync$slambda_0(this$0, $coursePermission, resultContinuation) { var i = new CoursePermissionDao_Repo$upsertAsync$slambda(this$0, $coursePermission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$cpUid_1 = $cpUid; this.$isDeleted_1 = $isDeleted; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$setDeleted$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.setDeleted_fijhxl_k$(this.$cpUid_1, this.$isDeleted_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePermissionDao_Repo$setDeleted$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$setDeleted$slambda(this.this$0__1, this.$cpUid_1, this.$isDeleted_1, this.$updateTime_1, completion); }; function CoursePermissionDao_Repo$setDeleted$slambda_0(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation) { var i = new CoursePermissionDao_Repo$setDeleted$slambda(this$0, $cpUid, $isDeleted, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/personHasPermissionWithClazzAsFlow2'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'permission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$permission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this.this$0__1, this.$accountPersonUid_1, this.$clazzUid_1, this.$permission_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda(this$0, $accountPersonUid, $clazzUid, $permission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'firstPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$firstPermission_1)); parameter(this_0, 'secondPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$secondPermission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$clazzUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; this.$thirdPermission_1 = $thirdPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/personHasPermissionWithClazzTripleAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'firstPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$firstPermission_1)); parameter(this_0, 'secondPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$secondPermission_1)); parameter(this_0, 'thirdPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$thirdPermission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$clazzUid_1, this.$firstPermission_1, this.$secondPermission_1, this.$thirdPermission_1, completion); }; function CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation) { var i = new CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda(this$0, $accountPersonUid, $clazzUid, $firstPermission, $secondPermission, $thirdPermission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$assignmentUid_1 = $assignmentUid; this.$clazzUid_1 = $clazzUid; this.$submitterUid_1 = $submitterUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/userPermissionsForAssignmentSubmitterUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'assignmentUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$assignmentUid_1)); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'submitterUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$submitterUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda).create_d196fn_k$ = function (completion) { return new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this.this$0__1, this.$accountPersonUid_1, this.$assignmentUid_1, this.$clazzUid_1, this.$submitterUid_1, completion); }; function CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation) { var i = new CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda(this$0, $accountPersonUid, $assignmentUid, $clazzUid, $submitterUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidAndClazzUidCOROUTINE$206(_this__u8e3s4, uid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.clazzUid_1 = clazzUid; } protoOf($findByUidAndClazzUidCOROUTINE$206).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/findByUidAndClazzUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/findByUidAndClazzUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CoursePermissionDao_Repo$findByUidAndClazzUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAndClazzUid_eeyf7i_k$(this.uid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasPermissionWithClazzByEnrolmentUidEntities2COROUTINE$207(_this__u8e3s4, accountPersonUid, clazzEnrolmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzEnrolmentUid_1 = clazzEnrolmentUid; } protoOf($personHasPermissionWithClazzByEnrolmentUidEntities2COROUTINE$207).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.personHasPermissionWithClazzByEnrolmentUidEntities2_leqwy0_k$(this.accountPersonUid_1, this.clazzEnrolmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $userHasEnrolmentEditPermissionCOROUTINE$208(_this__u8e3s4, accountPersonUid, clazzEnrolmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzEnrolmentUid_1 = clazzEnrolmentUid; } protoOf($userHasEnrolmentEditPermissionCOROUTINE$208).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/userHasEnrolmentEditPermission'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/userHasEnrolmentEditPermission'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'clazzEnrolmentUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzEnrolmentUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CoursePermissionDao_Repo$userHasEnrolmentEditPermission$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.userHasEnrolmentEditPermission_xp854e_k$(this.accountPersonUid_1, this.clazzEnrolmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasPermissionWithClazzEntities2COROUTINE$209(_this__u8e3s4, accountPersonUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzUid_1 = clazzUid; } protoOf($personHasPermissionWithClazzEntities2COROUTINE$209).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.personHasPermissionWithClazzEntities2_44vvmj_k$(this.accountPersonUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasPermissionWithClazzPairAsyncCOROUTINE$210(_this__u8e3s4, accountPersonUid, clazzUid, firstPermission, secondPermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzUid_1 = clazzUid; this.firstPermission_1 = firstPermission; this.secondPermission_1 = secondPermission; } protoOf($personHasPermissionWithClazzPairAsyncCOROUTINE$210).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/personHasPermissionWithClazzPairAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/personHasPermissionWithClazzPairAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'firstPermission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.firstPermission_1)); parameter(this_0, 'secondPermission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.secondPermission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.personHasPermissionWithClazzPairAsync_lowfqo_k$(this.accountPersonUid_1, this.clazzUid_1, this.firstPermission_1, this.secondPermission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasPermissionWithClazzAsync2COROUTINE$211(_this__u8e3s4, accountPersonUid, clazzUid, permission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.clazzUid_1 = clazzUid; this.permission_1 = permission; } protoOf($personHasPermissionWithClazzAsync2COROUTINE$211).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CoursePermissionDao/personHasPermissionWithClazzAsync2'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CoursePermissionDao/personHasPermissionWithClazzAsync2'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'permission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.permission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CoursePermissionDao_Repo$personHasPermissionWithClazzAsync2$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.personHasPermissionWithClazzAsync2_6hwhkq_k$(this.accountPersonUid_1, this.clazzUid_1, this.permission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findApplicableCoursePermissionEntitiesForAccountPersonCOROUTINE$212(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; } protoOf($findApplicableCoursePermissionEntitiesForAccountPersonCOROUTINE$212).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findApplicableCoursePermissionEntitiesForAccountPerson_170fyw_k$(this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CoursePermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CoursePermissionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(CoursePermissionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CoursePermissionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CoursePermissionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CoursePermissionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CoursePermissionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CoursePermissionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CoursePermissionDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(CoursePermissionDao_Repo).findByClazzUidAsPagingSource_nzywk8_k$ = function (clazzUid, includeDeleted) { var tmp = this._dao_1.findByClazzUidAsPagingSource_nzywk8_k$(clazzUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CoursePermissionDao/findByClazzUidAsPagingSource', tmp, CoursePermissionDao_Repo$findByClazzUidAsPagingSource$slambda_0(this, clazzUid, includeDeleted, null)); }; protoOf(CoursePermissionDao_Repo).findByUidAndClazzUid_eeyf7i_k$ = function (uid, clazzUid, $completion) { var tmp = new $findByUidAndClazzUidCOROUTINE$206(this, uid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).findByUidAndClazzUidAsFlow_nrf1o1_k$ = function (uid, clazzUid) { var tmp = this._dao_1.findByUidAndClazzUidAsFlow_nrf1o1_k$(uid, clazzUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CoursePermissionDao_Repo$findByUidAndClazzUidAsFlow$slambda_0(this, uid, clazzUid, null)); }; protoOf(CoursePermissionDao_Repo).upsertAsync_hy84ux_k$ = function (coursePermission, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CoursePermission', CoursePermissionDao_Repo$upsertAsync$slambda_0(this, coursePermission, null), $completion); }; protoOf(CoursePermissionDao_Repo).setDeleted_fijhxl_k$ = function (cpUid, isDeleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CoursePermission', CoursePermissionDao_Repo$setDeleted$slambda_0(this, cpUid, isDeleted, updateTime, null), $completion); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzByEnrolmentUidEntities2_leqwy0_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new $personHasPermissionWithClazzByEnrolmentUidEntities2COROUTINE$207(this, accountPersonUid, clazzEnrolmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).userHasEnrolmentEditPermission_xp854e_k$ = function (accountPersonUid, clazzEnrolmentUid, $completion) { var tmp = new $userHasEnrolmentEditPermissionCOROUTINE$208(this, accountPersonUid, clazzEnrolmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzEntities2_44vvmj_k$ = function (accountPersonUid, clazzUid, $completion) { var tmp = new $personHasPermissionWithClazzEntities2COROUTINE$209(this, accountPersonUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzAsFlow2_ih3l4q_k$ = function (accountPersonUid, clazzUid, permission) { var tmp = this._dao_1.personHasPermissionWithClazzAsFlow2_ih3l4q_k$(accountPersonUid, clazzUid, permission); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzAsFlow2$slambda_0(this, accountPersonUid, clazzUid, permission, null)); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzPairAsFlow_gv7o5k_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission) { var tmp = this._dao_1.personHasPermissionWithClazzPairAsFlow_gv7o5k_k$(accountPersonUid, clazzUid, firstPermission, secondPermission); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzPairAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, null)); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzPairAsync_lowfqo_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, $completion) { var tmp = new $personHasPermissionWithClazzPairAsyncCOROUTINE$210(this, accountPersonUid, clazzUid, firstPermission, secondPermission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzTripleAsFlow_8uozny_k$ = function (accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission) { var tmp = this._dao_1.personHasPermissionWithClazzTripleAsFlow_8uozny_k$(accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CoursePermissionDao_Repo$personHasPermissionWithClazzTripleAsFlow$slambda_0(this, accountPersonUid, clazzUid, firstPermission, secondPermission, thirdPermission, null)); }; protoOf(CoursePermissionDao_Repo).personHasPermissionWithClazzAsync2_6hwhkq_k$ = function (accountPersonUid, clazzUid, permission, $completion) { var tmp = new $personHasPermissionWithClazzAsync2COROUTINE$211(this, accountPersonUid, clazzUid, permission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).findApplicableCoursePermissionEntitiesForAccountPerson_170fyw_k$ = function (accountPersonUid, $completion) { var tmp = new $findApplicableCoursePermissionEntitiesForAccountPersonCOROUTINE$212(this, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePermissionDao_Repo).userPermissionsForAssignmentSubmitterUid_6yih9g_k$ = function (accountPersonUid, assignmentUid, clazzUid, submitterUid) { var tmp = this._dao_1.userPermissionsForAssignmentSubmitterUid_6yih9g_k$(accountPersonUid, assignmentUid, clazzUid, submitterUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, CoursePermissionDao_Repo$userPermissionsForAssignmentSubmitterUid$slambda_0(this, accountPersonUid, assignmentUid, clazzUid, submitterUid, null)); }; function CoursePictureDao() { } function _get__db__e63s44_24($this) { return $this._db_1; } function _get__dao__d2kw60_22($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$213(_this__u8e3s4, coursePicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.coursePicture_1 = coursePicture; } protoOf($upsertAsyncCOROUTINE$213).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.coursePicture_1.get_coursePictureUid_ji6jli_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(125, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.coursePicture_1.set_coursePictureUid_cmj704_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.coursePicture_1.set_coursePictureLct_kztyyv_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_h5b318_k$(this.coursePicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CoursePictureDao_DoorWrapper(_db, _dao) { CoursePictureDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CoursePictureDao_DoorWrapper).upsertAsync_h5b318_k$ = function (coursePicture, $completion) { var tmp = new $upsertAsyncCOROUTINE$213(this, coursePicture, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePictureDao_DoorWrapper).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return this._dao_1.updateUri_m1qgqu_k$(uid, uri, thumbnailUri, time, $completion); }; function CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CoursePicture (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) VALUES(?, ?, ?, ?, ?)'; }; protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).bindPreparedStmtToEntity_cx2rk4_k$ = function (stmt, entity) { if (entity.get_coursePictureUid_ji6jli_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_coursePictureUid_ji6jli_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_coursePictureLct_ji6csj_k$()); stmt.setString_2gt7ua_k$(3, entity.get_coursePictureUri_ji6jte_k$()); stmt.setString_2gt7ua_k$(4, entity.get_coursePictureThumbnailUri_wo1oli_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_coursePictureActive_wkfnxc_k$()); }; protoOf(CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_cx2rk4_k$(stmt, entity instanceof CoursePicture ? entity : THROW_CCE()); }; function CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$uri_1); this._stmt_1.setString_2gt7ua_k$(2, this.$thumbnailUri_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CoursePictureDao_JdbcImpl$updateUri$slambda(this.$uri_1, this.$thumbnailUri_1, this.$time_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CoursePictureDao_JdbcImpl$updateUri$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CoursePictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new CoursePictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateUriCOROUTINE$214(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.uri_1 = uri; this.thumbnailUri_1 = thumbnailUri; this.time_1 = time; } protoOf($updateUriCOROUTINE$214).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE CoursePicture\n SET coursePictureUri = ?,\n coursePictureThumbnailUri = ?,\n coursePictureLct = CAST(? AS BIGINT)\n WHERE coursePictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE CoursePicture\n SET coursePictureUri = ?,\n coursePictureThumbnailUri = ?,\n coursePictureLct = ?\n WHERE coursePictureUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, CoursePictureDao_JdbcImpl$updateUri$slambda_0(this.uri_1, this.thumbnailUri_1, this.time_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CoursePictureDao_JdbcImpl(_db) { CoursePictureDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCoursePicture_upsert_1 = new CoursePictureDao_JdbcImpl$_insertAdapterCoursePicture_upsert$1(this); } protoOf(CoursePictureDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CoursePictureDao_JdbcImpl).get__insertAdapterCoursePicture_upsert_3yw0z9_k$ = function () { return this._insertAdapterCoursePicture_upsert_1; }; protoOf(CoursePictureDao_JdbcImpl).upsertAsync_h5b318_k$ = function (coursePicture, $completion) { return this._insertAdapterCoursePicture_upsert_1.insertAsync_kic9b7_k$(coursePicture, $completion); }; protoOf(CoursePictureDao_JdbcImpl).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$214(this, uid, uri, thumbnailUri, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation) { this.this$0__1 = this$0; this.$coursePicture_1 = $coursePicture; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_h5b318_k$(this.$coursePicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePictureDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new CoursePictureDao_Repo$upsertAsync$slambda(this.this$0__1, this.$coursePicture_1, completion); }; function CoursePictureDao_Repo$upsertAsync$slambda_0(this$0, $coursePicture, resultContinuation) { var i = new CoursePictureDao_Repo$upsertAsync$slambda(this$0, $coursePicture, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(CoursePictureDao_Repo$updateUri$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUri_m1qgqu_k$(this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CoursePictureDao_Repo$updateUri$slambda).create_d196fn_k$ = function (completion) { return new CoursePictureDao_Repo$updateUri$slambda(this.this$0__1, this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, completion); }; function CoursePictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new CoursePictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function CoursePictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CoursePictureDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(CoursePictureDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CoursePictureDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CoursePictureDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CoursePictureDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CoursePictureDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CoursePictureDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CoursePictureDao_Repo).upsertAsync_h5b318_k$ = function (coursePicture, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CoursePicture', CoursePictureDao_Repo$upsertAsync$slambda_0(this, coursePicture, null), $completion); }; protoOf(CoursePictureDao_Repo).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'CoursePicture', CoursePictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; function CourseTerminologyDao() { } function _get__db__e63s44_25($this) { return $this._db_1; } function _get__dao__d2kw60_23($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$215(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$215).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_ctUid_ipwyk6_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_ctUid_mnnkbo_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_ctLct_eacscx_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_ilthfb_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_ctUid_ipwyk6_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$216(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$216).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_ctUid_ipwyk6_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(450, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_ctUid_mnnkbo_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_ctLct_eacscx_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_ctUid_ipwyk6_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseTerminologyDao_DoorWrapper(_db, _dao) { CourseTerminologyDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(CourseTerminologyDao_DoorWrapper).findAllCourseTerminologyPagingSource_idosaf_k$ = function () { return this._dao_1.findAllCourseTerminologyPagingSource_idosaf_k$(); }; protoOf(CourseTerminologyDao_DoorWrapper).findAllCourseTerminologyList_lgadqm_k$ = function () { throw IllegalStateException_init_$Create$('findAllCourseTerminologyList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseTerminologyDao_DoorWrapper).getTerminologyForClazz_jhzbsn_k$ = function (clazzUid, $completion) { return this._dao_1.getTerminologyForClazz_jhzbsn_k$(clazzUid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).getTerminologyForAssignment_794t4m_k$ = function (assignmentUid, $completion) { return this._dao_1.getTerminologyForAssignment_794t4m_k$(assignmentUid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).findByUidAsync_kys5x5_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_kys5x5_k$(uid, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).updateAsync_h8kjx5_k$ = function (entity, $completion) { entity.set_ctLct_eacscx_k$(systemTimeInMillis()); return this._dao_1.updateAsync_h8kjx5_k$(entity, $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).upsertAsync_ilthfb_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$215(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_DoorWrapper).insert_up5nh6_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseTerminologyDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_up5nh6_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; protoOf(CourseTerminologyDao_DoorWrapper).insertAsync_vm5d1b_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$216(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_vm5d1b_k$(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_DoorWrapper).insertList_k7n8ju_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseTerminologyDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k7n8ju_k$(entityList); }; protoOf(CourseTerminologyDao_DoorWrapper).update_osrpae_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(CourseTerminologyDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_osrpae_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_0.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_0.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_0.set_ctLct_eacscx_k$(_tmp_ctLct); return this_0; }; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).invoke_p6mnxy_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_p6mnxy_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda(this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_p6mnxy_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForClazz....' call this_0.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_0.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_0.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_0.set_ctLct_eacscx_k$(_tmp_ctLct); return this_0; }; } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.getTerminologyForAssignment....' call this_0.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_0.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_0.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_0.set_ctLct_eacscx_k$(_tmp_ctLct); return this_0; }; } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.findByUidAsync....' call this_0.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_0.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_0.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_0.set_ctLct_eacscx_k$(_tmp_ctLct); return this_0; }; } function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)'; }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).bindPreparedStmtToEntity_omyfu7_k$ = function (stmt, entity) { if (entity.get_ctUid_ipwyk6_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_ctUid_ipwyk6_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_ctTitle_iytaim_k$()); stmt.setString_2gt7ua_k$(3, entity.get_ctTerminology_oszxd3_k$()); stmt.setLong_j1sybo_k$(4, entity.get_ctLct_ipwrr7_k$()); }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_omyfu7_k$(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)'; }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).bindPreparedStmtToEntity_omyfu7_k$ = function (stmt, entity) { if (entity.get_ctUid_ipwyk6_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_ctUid_ipwyk6_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_ctTitle_iytaim_k$()); stmt.setString_2gt7ua_k$(3, entity.get_ctTerminology_oszxd3_k$()); stmt.setLong_j1sybo_k$(4, entity.get_ctLct_ipwrr7_k$()); }; protoOf(CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_omyfu7_k$(stmt, entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function CourseTerminologyDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_ctTitle_iytaim_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_ctTerminology_oszxd3_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$entity_1.get_ctLct_ipwrr7_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_ctUid_ipwyk6_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_ctTitle_iytaim_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_ctTerminology_oszxd3_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_ctLct_ipwrr7_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_ctUid_ipwyk6_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this$0) { this.this$0__1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['CourseTerminology']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).loadRows_jczscp_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT *\n FROM CourseTerminology\n ORDER BY ctTitle \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_jczscp_k$(_limit, _offset, $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT *\n FROM CourseTerminology\n ORDER BY ctTitle \n ) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$o$countRows$slambda_0(null), $completion); }; function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda$lambda); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda$lambda(_result) { return mapRows(_result, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda$lambda$lambda(_result)); } function CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_ctUid = $_result.getLong_3wgf2g_k$('ctUid'); var _tmp_ctTitle = $_result.getString_gb1pt9_k$('ctTitle'); var _tmp_ctTerminology = $_result.getString_gb1pt9_k$('ctTerminology'); var _tmp_ctLct = $_result.getLong_3wgf2g_k$('ctLct'); // Inline function 'kotlin.apply' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.CourseTerminologyDao_JdbcImpl.findAllCourseTerminologyList....' call this_0.set_ctUid_mnnkbo_k$(_tmp_ctUid); this_0.set_ctTitle_71e5o3_k$(_tmp_ctTitle); this_0.set_ctTerminology_932opa_k$(_tmp_ctTerminology); this_0.set_ctLct_eacscx_k$(_tmp_ctLct); return this_0; }; } function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).invoke_43n18h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_43n18h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0($clazzUid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_43n18h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).invoke_43n18h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_43n18h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$assignmentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0($assignmentUid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_43n18h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).invoke_43n18h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_43n18h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_43n18h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertAsyncCOROUTINE$217(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$217).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseTerminology_upsert_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$218(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$218).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterCourseTerminology_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$219(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$219).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE CourseTerminology SET ctTitle = ?, ctTerminology = ?, ctLct = ? WHERE ctUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, CourseTerminologyDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseTerminologyDao_JdbcImpl(_db) { CourseTerminologyDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterCourseTerminology_upsert_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterCourseTerminology_abort_1 = new CourseTerminologyDao_JdbcImpl$_insertAdapterCourseTerminology_abort$1(this); } protoOf(CourseTerminologyDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseTerminologyDao_JdbcImpl).get__insertAdapterCourseTerminology_upsert_lng2iy_k$ = function () { return this._insertAdapterCourseTerminology_upsert_1; }; protoOf(CourseTerminologyDao_JdbcImpl).get__insertAdapterCourseTerminology_abort_85k4zt_k$ = function () { return this._insertAdapterCourseTerminology_abort_1; }; protoOf(CourseTerminologyDao_JdbcImpl).upsertAsync_ilthfb_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$217(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl).insert_up5nh6_k$ = function (entity) { var _retVal = this._insertAdapterCourseTerminology_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(CourseTerminologyDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_up5nh6_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; protoOf(CourseTerminologyDao_JdbcImpl).insertAsync_vm5d1b_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$218(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_vm5d1b_k$(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).insertList_k7n8ju_k$ = function (entityList) { this._insertAdapterCourseTerminology_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(CourseTerminologyDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k7n8ju_k$(entityList); }; protoOf(CourseTerminologyDao_JdbcImpl).updateAsync_h8kjx5_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$219(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_JdbcImpl).update_osrpae_k$ = function (entity) { var _sql = 'UPDATE CourseTerminology SET ctTitle = ?, ctTerminology = ?, ctLct = ? WHERE ctUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, CourseTerminologyDao_JdbcImpl$update$lambda(entity)); }; protoOf(CourseTerminologyDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_osrpae_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; protoOf(CourseTerminologyDao_JdbcImpl).findAllCourseTerminologyPagingSource_idosaf_k$ = function () { return new CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyPagingSource$1(this); }; protoOf(CourseTerminologyDao_JdbcImpl).findAllCourseTerminologyList_lgadqm_k$ = function () { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM CourseTerminology\n ORDER BY ctTitle \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, CourseTerminologyDao_JdbcImpl$findAllCourseTerminologyList$lambda); }; protoOf(CourseTerminologyDao_JdbcImpl).getTerminologyForClazz_jhzbsn_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM CourseTerminology\n JOIN Clazz \n ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n WHERE Clazz.clazzUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT *\n FROM CourseTerminology\n JOIN Clazz \n ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n WHERE Clazz.clazzUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForClazz$slambda_0(clazzUid, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).getTerminologyForAssignment_794t4m_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT CourseTerminology.*\n FROM ClazzAssignment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE ClazzAssignment.caUid = CAST(? AS BIGINT) \n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT CourseTerminology.*\n FROM ClazzAssignment\n JOIN Clazz \n ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n JOIN CourseTerminology\n ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n WHERE ClazzAssignment.caUid = ? \n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseTerminologyDao_JdbcImpl$getTerminologyForAssignment$slambda_0(assignmentUid, null), $completion); }; protoOf(CourseTerminologyDao_JdbcImpl).findByUidAsync_kys5x5_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM CourseTerminology \n WHERE ctUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM CourseTerminology \n WHERE ctUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, CourseTerminologyDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'CourseTerminologyDao/findAllCourseTerminologyPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'CourseTerminologyDao/findAllCourseTerminologyPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this.this$0__1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this$0, resultContinuation) { var i = new CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda(this$0, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function CourseTerminologyDao_Repo$getTerminologyForClazz$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function CourseTerminologyDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(CourseTerminologyDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_h8kjx5_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseTerminologyDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseTerminologyDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseTerminologyDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_ilthfb_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseTerminologyDao_Repo$upsertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseTerminologyDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseTerminologyDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseTerminologyDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(CourseTerminologyDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new CourseTerminologyDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function CourseTerminologyDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new CourseTerminologyDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function CourseTerminologyDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function CourseTerminologyDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $getTerminologyForClazzCOROUTINE$220(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($getTerminologyForClazzCOROUTINE$220).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseTerminologyDao/getTerminologyForClazz'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseTerminologyDao/getTerminologyForClazz'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseTerminologyDao_Repo$getTerminologyForClazz$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getTerminologyForClazz_jhzbsn_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getTerminologyForAssignmentCOROUTINE$221(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($getTerminologyForAssignmentCOROUTINE$221).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getTerminologyForAssignment_794t4m_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$222(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$222).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'CourseTerminologyDao/findByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'CourseTerminologyDao/findByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, CourseTerminologyDao_Repo$findByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_kys5x5_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$223(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$223).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertAsyncCOROUTINE$224(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$224).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$upsertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$225(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$225).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseTerminologyDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { CourseTerminologyDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(CourseTerminologyDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(CourseTerminologyDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(CourseTerminologyDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(CourseTerminologyDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(CourseTerminologyDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(CourseTerminologyDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(CourseTerminologyDao_Repo).findAllCourseTerminologyPagingSource_idosaf_k$ = function () { var tmp = this._dao_1.findAllCourseTerminologyPagingSource_idosaf_k$(); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'CourseTerminologyDao/findAllCourseTerminologyPagingSource', tmp, CourseTerminologyDao_Repo$findAllCourseTerminologyPagingSource$slambda_0(this, null)); }; protoOf(CourseTerminologyDao_Repo).findAllCourseTerminologyList_lgadqm_k$ = function () { var _result = this._dao_1.findAllCourseTerminologyList_lgadqm_k$(); return _result; }; protoOf(CourseTerminologyDao_Repo).getTerminologyForClazz_jhzbsn_k$ = function (clazzUid, $completion) { var tmp = new $getTerminologyForClazzCOROUTINE$220(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).getTerminologyForAssignment_794t4m_k$ = function (assignmentUid, $completion) { var tmp = new $getTerminologyForAssignmentCOROUTINE$221(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).findByUidAsync_kys5x5_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$222(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).updateAsync_h8kjx5_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$223(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).upsertAsync_ilthfb_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$224(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).insert_up5nh6_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(CourseTerminologyDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_up5nh6_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; protoOf(CourseTerminologyDao_Repo).insertAsync_vm5d1b_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$225(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(CourseTerminologyDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_vm5d1b_k$(entity instanceof CourseTerminology ? entity : THROW_CCE(), $completion); }; protoOf(CourseTerminologyDao_Repo).insertList_k7n8ju_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$insertList$lambda(this, entityList)); }; protoOf(CourseTerminologyDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k7n8ju_k$(entityList); }; protoOf(CourseTerminologyDao_Repo).update_osrpae_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'CourseTerminology', CourseTerminologyDao_Repo$update$lambda(this, entity)); }; protoOf(CourseTerminologyDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_osrpae_k$(entity instanceof CourseTerminology ? entity : THROW_CCE()); }; function DeletedItemDao() { } function DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda(_result) { return mapRows(_result, DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda$lambda(_result)); } function DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_delItemUid = $_result.getLong_3wgf2g_k$('delItemUid'); var _tmp_delItemName = $_result.getString_gb1pt9_k$('delItemName'); var _tmp_delItemIconUri = $_result.getString_gb1pt9_k$('delItemIconUri'); var _tmp_delItemLastModTime = $_result.getLong_3wgf2g_k$('delItemLastModTime'); var _tmp_delItemTimeDeleted = $_result.getLong_3wgf2g_k$('delItemTimeDeleted'); var _tmp_delItemEntityTable = $_result.getInt_npc9pd_k$('delItemEntityTable'); var _tmp_delItemEntityUid = $_result.getLong_3wgf2g_k$('delItemEntityUid'); var _tmp_delItemDeletedByPersonUid = $_result.getLong_3wgf2g_k$('delItemDeletedByPersonUid'); var _tmp_delItemStatus = $_result.getInt_npc9pd_k$('delItemStatus'); var _tmp_delItemIsFolder = $_result.getBoolean_xz3hoo_k$('delItemIsFolder'); // Inline function 'kotlin.apply' call var this_0 = new DeletedItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DeletedItemDao_JdbcImpl.findByTableIdAndEntityUid....' call this_0.set_delItemUid_osnaz3_k$(_tmp_delItemUid); this_0.set_delItemName_kojwl1_k$(_tmp_delItemName); this_0.set_delItemIconUri_w3skvv_k$(_tmp_delItemIconUri); this_0.set_delItemLastModTime_861diy_k$(_tmp_delItemLastModTime); this_0.set_delItemTimeDeleted_beu0d_k$(_tmp_delItemTimeDeleted); this_0.set_delItemEntityTable_ky5s8u_k$(_tmp_delItemEntityTable); this_0.set_delItemEntityUid_6z98fi_k$(_tmp_delItemEntityUid); this_0.set_delItemDeletedByPersonUid_s127hq_k$(_tmp_delItemDeletedByPersonUid); this_0.set_delItemStatus_n3hm9h_k$(_tmp_delItemStatus); this_0.set_delItemIsFolder_8arhks_k$(_tmp_delItemIsFolder); return this_0; }; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda(_result)); } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_delItemUid = $_result.getLong_3wgf2g_k$('delItemUid'); var _tmp_delItemName = $_result.getString_gb1pt9_k$('delItemName'); var _tmp_delItemIconUri = $_result.getString_gb1pt9_k$('delItemIconUri'); var _tmp_delItemLastModTime = $_result.getLong_3wgf2g_k$('delItemLastModTime'); var _tmp_delItemTimeDeleted = $_result.getLong_3wgf2g_k$('delItemTimeDeleted'); var _tmp_delItemEntityTable = $_result.getInt_npc9pd_k$('delItemEntityTable'); var _tmp_delItemEntityUid = $_result.getLong_3wgf2g_k$('delItemEntityUid'); var _tmp_delItemDeletedByPersonUid = $_result.getLong_3wgf2g_k$('delItemDeletedByPersonUid'); var _tmp_delItemStatus = $_result.getInt_npc9pd_k$('delItemStatus'); var _tmp_delItemIsFolder = $_result.getBoolean_xz3hoo_k$('delItemIsFolder'); // Inline function 'kotlin.apply' call var this_0 = new DeletedItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_delItemUid_osnaz3_k$(_tmp_delItemUid); this_0.set_delItemName_kojwl1_k$(_tmp_delItemName); this_0.set_delItemIconUri_w3skvv_k$(_tmp_delItemIconUri); this_0.set_delItemLastModTime_861diy_k$(_tmp_delItemLastModTime); this_0.set_delItemTimeDeleted_beu0d_k$(_tmp_delItemTimeDeleted); this_0.set_delItemEntityTable_ky5s8u_k$(_tmp_delItemEntityTable); this_0.set_delItemEntityUid_6z98fi_k$(_tmp_delItemEntityUid); this_0.set_delItemDeletedByPersonUid_s127hq_k$(_tmp_delItemDeletedByPersonUid); this_0.set_delItemStatus_n3hm9h_k$(_tmp_delItemStatus); this_0.set_delItemIsFolder_8arhks_k$(_tmp_delItemIsFolder); return this_0; }; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda(_result)); } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) { this.$includeActionedItems_1 = $includeActionedItems; this.$personUid_1 = $personUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).invoke_c8v6bi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_c8v6bi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$includeActionedItems_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda(this.$includeActionedItems_1, this.$personUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda($includeActionedItems, $personUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_c8v6bi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation) { this.$includeActionedItems_1 = $includeActionedItems; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$includeActionedItems_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda(this.$includeActionedItems_1, this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0($includeActionedItems, $personUid, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda($includeActionedItems, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation) { this.$cepcjUid_1 = $cepcjUid; this.$time_1 = $time; this.$deletedByPersonUid_1 = $deletedByPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$cepcjUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$time_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$cepcjUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$deletedByPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$cepcjUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda(this.$cepcjUid_1, this.$time_1, this.$deletedByPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0($cepcjUid, $time, $deletedByPersonUid, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda($cepcjUid, $time, $deletedByPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda($tableId, $entityUid, resultContinuation) { this.$tableId_1 = $tableId; this.$entityUid_1 = $entityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda).invoke_c8v6bi_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_c8v6bi_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$tableId_1); this._stmt_1.setLong_j1sybo_k$(2, this.$entityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda(this.$tableId_1, this.$entityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda_0($tableId, $entityUid, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda($tableId, $entityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_c8v6bi_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this$0, $includeActionedItems, $personUid) { this.this$0__1 = this$0; this.$includeActionedItems_1 = $includeActionedItems; this.$personUid_1 = $personUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['DeletedItem']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).loadRows_yx7cwl_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT) \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = ? \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$loadRows$slambda_0(this.$includeActionedItems_1, this.$personUid_1, _limit, _offset, null), $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_yx7cwl_k$(_limit, _offset, $completion); }; protoOf(DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = CAST(? AS BIGINT) \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE ( (CAST(? AS INTEGER) = 1)\n OR DeletedItem.delItemStatus = 1)\n AND DeletedItem.delItemDeletedByPersonUid = ? \n ORDER BY DeletedItem.delItemTimeDeleted DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DeletedItemDao_JdbcImpl$findDeletedItemsForUser$o$countRows$slambda_0(this.$includeActionedItems_1, this.$personUid_1, null), $completion); }; function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation) { this.$newStatus_1 = $newStatus; this.$updateTime_1 = $updateTime; this.$uidList_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$newStatus_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$uidList_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda(this.$newStatus_1, this.$updateTime_1, this.$uidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DeletedItemDao_JdbcImpl$updateStatusByUids$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0($newStatus, $updateTime, $uidList, resultContinuation) { var i = new DeletedItemDao_JdbcImpl$updateStatusByUids$slambda($newStatus, $updateTime, $uidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(_this__u8e3s4, cepcjUid, time, deletedByPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cepcjUid_1 = cepcjUid; this.time_1 = time; this.deletedByPersonUid_1 = deletedByPersonUid; } protoOf($insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n SELECT (SELECT ContentEntry.title\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemName,\n NULL as delItemIconUri,\n CAST(? AS BIGINT) AS delItemLastModTime,\n CAST(? AS BIGINT) AS delItemTimeDeleted,\n 7 AS delItemEntityTable,\n CAST(? AS BIGINT) AS delItemEntityUid,\n CAST(? AS BIGINT) AS delItemDeletedByPersonUid,\n 1 AS delItemStatus,\n (SELECT NOT ContentEntry.leaf\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = CAST(? AS BIGINT))) AS delItemIsFolder\n ', VOID, VOID, VOID, '\n INSERT INTO DeletedItem(delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder)\n SELECT (SELECT ContentEntry.title\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemName,\n NULL as delItemIconUri,\n ? AS delItemLastModTime,\n ? AS delItemTimeDeleted,\n 7 AS delItemEntityTable,\n ? AS delItemEntityUid,\n ? AS delItemDeletedByPersonUid,\n 1 AS delItemStatus,\n (SELECT NOT ContentEntry.leaf\n FROM ContentEntry\n WHERE ContentEntry.contentEntryUid = \n (SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjUid = ?)) AS delItemIsFolder\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, DeletedItemDao_JdbcImpl$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this.cepcjUid_1, this.time_1, this.deletedByPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateStatusByUidsCOROUTINE$227(_this__u8e3s4, uidList, newStatus, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; this.newStatus_1 = newStatus; this.updateTime_1 = updateTime; } protoOf($updateStatusByUidsCOROUTINE$227).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE DeletedItem\n SET delItemStatus = ?,\n delItemLastModTime = CAST(? AS BIGINT)\n WHERE delItemUid IN (?)\n ', true, VOID, VOID, '\n UPDATE DeletedItem\n SET delItemStatus = ?,\n delItemLastModTime = ?\n WHERE delItemUid IN (?)\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, DeletedItemDao_JdbcImpl$updateStatusByUids$slambda_0(this.newStatus_1, this.updateTime_1, this.uidList_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function DeletedItemDao_JdbcImpl(_db) { DeletedItemDao.call(this); this._db_1 = _db; } protoOf(DeletedItemDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(DeletedItemDao_JdbcImpl).insertDeletedItemForContentEntryParentChildJoin_hkseye_k$ = function (cepcjUid, time, deletedByPersonUid, $completion) { var tmp = new $insertDeletedItemForContentEntryParentChildJoinCOROUTINE$226(this, cepcjUid, time, deletedByPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_JdbcImpl).findByTableIdAndEntityUid_1atu2t_k$ = function (tableId, entityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE DeletedItem.delItemEntityTable = ?\n AND DeletedItem.delItemEntityUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT DeletedItem.*\n FROM DeletedItem\n WHERE DeletedItem.delItemEntityTable = ?\n AND DeletedItem.delItemEntityUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DeletedItemDao_JdbcImpl$findByTableIdAndEntityUid$slambda_0(tableId, entityUid, null), $completion); }; protoOf(DeletedItemDao_JdbcImpl).findDeletedItemsForUser_vsak1h_k$ = function (personUid, includeActionedItems) { return new DeletedItemDao_JdbcImpl$findDeletedItemsForUser$1(this, includeActionedItems, personUid); }; protoOf(DeletedItemDao_JdbcImpl).updateStatusByUids_yhmfku_k$ = function (uidList, newStatus, updateTime, $completion) { var tmp = new $updateStatusByUidsCOROUTINE$227(this, uidList, newStatus, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$cepcjUid_1 = $cepcjUid; this.$time_1 = $time; this.$deletedByPersonUid_1 = $deletedByPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertDeletedItemForContentEntryParentChildJoin_hkseye_k$(this.$cepcjUid_1, this.$time_1, this.$deletedByPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda).create_d196fn_k$ = function (completion) { return new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this.this$0__1, this.$cepcjUid_1, this.$time_1, this.$deletedByPersonUid_1, completion); }; function DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation) { var i = new DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda(this$0, $cepcjUid, $time, $deletedByPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$includeActionedItems_1 = $includeActionedItems; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'DeletedItemDao/findDeletedItemsForUser'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'DeletedItemDao/findDeletedItemsForUser'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$personUid_1)); parameter(this_0, 'includeActionedItems', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeActionedItems_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, DeletedItemDao_Repo$findDeletedItemsForUser$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this.this$0__1, this.$personUid_1, this.$includeActionedItems_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(DeletedItemDao_Repo$findDeletedItemsForUser$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this$0, $personUid, $includeActionedItems, resultContinuation) { var i = new DeletedItemDao_Repo$findDeletedItemsForUser$slambda(this$0, $personUid, $includeActionedItems, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$uidList_1 = $uidList; this.$newStatus_1 = $newStatus; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateStatusByUids_yhmfku_k$(this.$uidList_1, this.$newStatus_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DeletedItemDao_Repo$updateStatusByUids$slambda).create_d196fn_k$ = function (completion) { return new DeletedItemDao_Repo$updateStatusByUids$slambda(this.this$0__1, this.$uidList_1, this.$newStatus_1, this.$updateTime_1, completion); }; function DeletedItemDao_Repo$updateStatusByUids$slambda_0(this$0, $uidList, $newStatus, $updateTime, resultContinuation) { var i = new DeletedItemDao_Repo$updateStatusByUids$slambda(this$0, $uidList, $newStatus, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByTableIdAndEntityUidCOROUTINE$228(_this__u8e3s4, tableId, entityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.tableId_1 = tableId; this.entityUid_1 = entityUid; } protoOf($findByTableIdAndEntityUidCOROUTINE$228).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByTableIdAndEntityUid_1atu2t_k$(this.tableId_1, this.entityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function DeletedItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { DeletedItemDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(DeletedItemDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(DeletedItemDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(DeletedItemDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(DeletedItemDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(DeletedItemDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(DeletedItemDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(DeletedItemDao_Repo).insertDeletedItemForContentEntryParentChildJoin_hkseye_k$ = function (cepcjUid, time, deletedByPersonUid, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'DeletedItem', DeletedItemDao_Repo$insertDeletedItemForContentEntryParentChildJoin$slambda_0(this, cepcjUid, time, deletedByPersonUid, null), $completion); }; protoOf(DeletedItemDao_Repo).findByTableIdAndEntityUid_1atu2t_k$ = function (tableId, entityUid, $completion) { var tmp = new $findByTableIdAndEntityUidCOROUTINE$228(this, tableId, entityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DeletedItemDao_Repo).findDeletedItemsForUser_vsak1h_k$ = function (personUid, includeActionedItems) { var tmp = this._dao_1.findDeletedItemsForUser_vsak1h_k$(personUid, includeActionedItems); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'DeletedItemDao/findDeletedItemsForUser', tmp, DeletedItemDao_Repo$findDeletedItemsForUser$slambda_0(this, personUid, includeActionedItems, null)); }; protoOf(DeletedItemDao_Repo).updateStatusByUids_yhmfku_k$ = function (uidList, newStatus, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'DeletedItem', DeletedItemDao_Repo$updateStatusByUids$slambda_0(this, uidList, newStatus, updateTime, null), $completion); }; function DiscussionPostDao() { } function _get__db__e63s44_26($this) { return $this._db_1; } function _get__dao__d2kw60_24($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$229(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$229).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_discussionPostUid_6yxxgf_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_discussionPostUid_ufsj71_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_discussionPostLct_m2hr8a_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_g8wcjt_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$230(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$230).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_discussionPostUid_6yxxgf_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(132, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_discussionPostUid_ufsj71_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_discussionPostLct_m2hr8a_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_discussionPostUid_6yxxgf_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function DiscussionPostDao_DoorWrapper(_db, _dao) { DiscussionPostDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(DiscussionPostDao_DoorWrapper).getTopLevelPostsByCourseBlockUid_z1reuy_k$ = function (courseBlockUid, includeDeleted) { return this._dao_1.getTopLevelPostsByCourseBlockUid_z1reuy_k$(courseBlockUid, includeDeleted); }; protoOf(DiscussionPostDao_DoorWrapper).getTopLevelPostsByCourseBlockUidPersons_7z1mqo_k$ = function (courseBlockUid, $completion) { return this._dao_1.getTopLevelPostsByCourseBlockUidPersons_7z1mqo_k$(courseBlockUid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).getTopLevelPostsByCourseBlockUidLatestMessage_1pwj0r_k$ = function (courseBlockUid, $completion) { return this._dao_1.getTopLevelPostsByCourseBlockUidLatestMessage_1pwj0r_k$(courseBlockUid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).getPostTitle_8imgpa_k$ = function (postUid, $completion) { return this._dao_1.getPostTitle_8imgpa_k$(postUid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).findByUid_oqo6x1_k$ = function (uid, $completion) { return this._dao_1.findByUid_oqo6x1_k$(uid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).getTitleByUidAsFlow_bp2lxl_k$ = function (uid) { return this._dao_1.getTitleByUidAsFlow_bp2lxl_k$(uid); }; protoOf(DiscussionPostDao_DoorWrapper).updateAsync_abohv7_k$ = function (entity, $completion) { entity.set_discussionPostLct_m2hr8a_k$(systemTimeInMillis()); return this._dao_1.updateAsync_abohv7_k$(entity, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).findByPostIdWithAllReplies_qj5mpd_k$ = function (postUid, includeDeleted) { return this._dao_1.findByPostIdWithAllReplies_qj5mpd_k$(postUid, includeDeleted); }; protoOf(DiscussionPostDao_DoorWrapper).findByPostIdWithAllRepliesPersons_ovwkq3_k$ = function (postUid, $completion) { return this._dao_1.findByPostIdWithAllRepliesPersons_ovwkq3_k$(postUid, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).upsertAsync_g8wcjt_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$229(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_DoorWrapper).setDeletedAsync_olc1s5_k$ = function (uid, deleted, updateTime, $completion) { return this._dao_1.setDeletedAsync_olc1s5_k$(uid, deleted, updateTime, $completion); }; protoOf(DiscussionPostDao_DoorWrapper).insert_c975cc_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(DiscussionPostDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_c975cc_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; protoOf(DiscussionPostDao_DoorWrapper).insertAsync_29yjk7_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$230(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_29yjk7_k$(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_DoorWrapper).insertList_sehq44_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(DiscussionPostDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_sehq44_k$(entityList); }; protoOf(DiscussionPostDao_DoorWrapper).update_wiq1vw_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(DiscussionPostDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_wiq1vw_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_authorPersonFirstNames = $_result.getString_gb1pt9_k$('authorPersonFirstNames'); var _tmp_authorPersonLastName = $_result.getString_gb1pt9_k$('authorPersonLastName'); var _tmp_authorPictureUri = $_result.getString_gb1pt9_k$('authorPictureUri'); var _tmp_postLatestMessage = $_result.getString_gb1pt9_k$('postLatestMessage'); var _tmp_postRepliesCount = $_result.getInt_npc9pd_k$('postRepliesCount'); var _tmp_postLatestMessageTimestamp = $_result.getLong_3wgf2g_k$('postLatestMessageTimestamp'); var _tmp_discussionPostUid = $_result.getLong_3wgf2g_k$('discussionPostUid'); var _tmp_discussionPostReplyToPostUid = $_result.getLong_3wgf2g_k$('discussionPostReplyToPostUid'); var _tmp_discussionPostTitle = $_result.getString_gb1pt9_k$('discussionPostTitle'); var _tmp_discussionPostMessage = $_result.getString_gb1pt9_k$('discussionPostMessage'); var _tmp_discussionPostStartDate = $_result.getLong_3wgf2g_k$('discussionPostStartDate'); var _tmp_discussionPostCourseBlockUid = $_result.getLong_3wgf2g_k$('discussionPostCourseBlockUid'); var _tmp_dpDeleted = $_result.getBoolean_xz3hoo_k$('dpDeleted'); var _tmp_discussionPostStartedPersonUid = $_result.getLong_3wgf2g_k$('discussionPostStartedPersonUid'); var _tmp_discussionPostClazzUid = $_result.getLong_3wgf2g_k$('discussionPostClazzUid'); var _tmp_discussionPostLct = $_result.getLong_3wgf2g_k$('discussionPostLct'); var _tmp_discussionPostVisible = $_result.getBoolean_xz3hoo_k$('discussionPostVisible'); var _tmp_discussionPostArchive = $_result.getBoolean_xz3hoo_k$('discussionPostArchive'); // Inline function 'kotlin.apply' call var this_0 = new DiscussionPostWithDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_authorPersonFirstNames_ajacce_k$(_tmp_authorPersonFirstNames); this_0.set_authorPersonLastName_3ehjll_k$(_tmp_authorPersonLastName); this_0.set_authorPictureUri_j7q9un_k$(_tmp_authorPictureUri); this_0.set_postLatestMessage_uyky44_k$(_tmp_postLatestMessage); this_0.set_postRepliesCount_67ot7g_k$(_tmp_postRepliesCount); this_0.set_postLatestMessageTimestamp_d9ee2d_k$(_tmp_postLatestMessageTimestamp); this_0.set_discussionPostUid_ufsj71_k$(_tmp_discussionPostUid); this_0.set_discussionPostReplyToPostUid_ev5bbi_k$(_tmp_discussionPostReplyToPostUid); this_0.set_discussionPostTitle_m6nnc4_k$(_tmp_discussionPostTitle); this_0.set_discussionPostMessage_7toqr9_k$(_tmp_discussionPostMessage); this_0.set_discussionPostStartDate_vk83wt_k$(_tmp_discussionPostStartDate); this_0.set_discussionPostCourseBlockUid_9jjim3_k$(_tmp_discussionPostCourseBlockUid); this_0.set_dpDeleted_2r3zwb_k$(_tmp_dpDeleted); this_0.set_discussionPostStartedPersonUid_buzem9_k$(_tmp_discussionPostStartedPersonUid); this_0.set_discussionPostClazzUid_2q88rl_k$(_tmp_discussionPostClazzUid); this_0.set_discussionPostLct_m2hr8a_k$(_tmp_discussionPostLct); this_0.set_discussionPostVisible_8xxgpk_k$(_tmp_discussionPostVisible); this_0.set_discussionPostArchive_wwn57s_k$(_tmp_discussionPostArchive); return this_0; }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).invoke_rzd8zq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rzd8zq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda(this.$courseBlockUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda($courseBlockUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rzd8zq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda(this.$courseBlockUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0($courseBlockUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda($courseBlockUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.getTopLevelPostsByCourseBlockUidPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.getTopLevelPostsByCourseBlockUidPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.getTopLevelPostsByCourseBlockUidPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda$lambda$lambda($_result) { return function (it) { var _tmp_discussionPostUid = $_result.getLong_3wgf2g_k$('discussionPostUid'); var _tmp_discussionPostReplyToPostUid = $_result.getLong_3wgf2g_k$('discussionPostReplyToPostUid'); var _tmp_discussionPostTitle = $_result.getString_gb1pt9_k$('discussionPostTitle'); var _tmp_discussionPostMessage = $_result.getString_gb1pt9_k$('discussionPostMessage'); var _tmp_discussionPostStartDate = $_result.getLong_3wgf2g_k$('discussionPostStartDate'); var _tmp_discussionPostCourseBlockUid = $_result.getLong_3wgf2g_k$('discussionPostCourseBlockUid'); var _tmp_dpDeleted = $_result.getBoolean_xz3hoo_k$('dpDeleted'); var _tmp_discussionPostStartedPersonUid = $_result.getLong_3wgf2g_k$('discussionPostStartedPersonUid'); var _tmp_discussionPostClazzUid = $_result.getLong_3wgf2g_k$('discussionPostClazzUid'); var _tmp_discussionPostLct = $_result.getLong_3wgf2g_k$('discussionPostLct'); var _tmp_discussionPostVisible = $_result.getBoolean_xz3hoo_k$('discussionPostVisible'); var _tmp_discussionPostArchive = $_result.getBoolean_xz3hoo_k$('discussionPostArchive'); // Inline function 'kotlin.apply' call var this_0 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.getTopLevelPostsByCourseBlockUidLatestMessage....' call this_0.set_discussionPostUid_ufsj71_k$(_tmp_discussionPostUid); this_0.set_discussionPostReplyToPostUid_ev5bbi_k$(_tmp_discussionPostReplyToPostUid); this_0.set_discussionPostTitle_m6nnc4_k$(_tmp_discussionPostTitle); this_0.set_discussionPostMessage_7toqr9_k$(_tmp_discussionPostMessage); this_0.set_discussionPostStartDate_vk83wt_k$(_tmp_discussionPostStartDate); this_0.set_discussionPostCourseBlockUid_9jjim3_k$(_tmp_discussionPostCourseBlockUid); this_0.set_dpDeleted_2r3zwb_k$(_tmp_dpDeleted); this_0.set_discussionPostStartedPersonUid_buzem9_k$(_tmp_discussionPostStartedPersonUid); this_0.set_discussionPostClazzUid_2q88rl_k$(_tmp_discussionPostClazzUid); this_0.set_discussionPostLct_m2hr8a_k$(_tmp_discussionPostLct); this_0.set_discussionPostVisible_8xxgpk_k$(_tmp_discussionPostVisible); this_0.set_discussionPostArchive_wwn57s_k$(_tmp_discussionPostArchive); return this_0; }; } function DiscussionPostDao_JdbcImpl$getPostTitle$slambda$lambda(_result) { return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$getPostTitle$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getPostTitle$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_discussionPostUid = $_result.getLong_3wgf2g_k$('discussionPostUid'); var _tmp_discussionPostReplyToPostUid = $_result.getLong_3wgf2g_k$('discussionPostReplyToPostUid'); var _tmp_discussionPostTitle = $_result.getString_gb1pt9_k$('discussionPostTitle'); var _tmp_discussionPostMessage = $_result.getString_gb1pt9_k$('discussionPostMessage'); var _tmp_discussionPostStartDate = $_result.getLong_3wgf2g_k$('discussionPostStartDate'); var _tmp_discussionPostCourseBlockUid = $_result.getLong_3wgf2g_k$('discussionPostCourseBlockUid'); var _tmp_dpDeleted = $_result.getBoolean_xz3hoo_k$('dpDeleted'); var _tmp_discussionPostStartedPersonUid = $_result.getLong_3wgf2g_k$('discussionPostStartedPersonUid'); var _tmp_discussionPostClazzUid = $_result.getLong_3wgf2g_k$('discussionPostClazzUid'); var _tmp_discussionPostLct = $_result.getLong_3wgf2g_k$('discussionPostLct'); var _tmp_discussionPostVisible = $_result.getBoolean_xz3hoo_k$('discussionPostVisible'); var _tmp_discussionPostArchive = $_result.getBoolean_xz3hoo_k$('discussionPostArchive'); // Inline function 'kotlin.apply' call var this_0 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByUid....' call this_0.set_discussionPostUid_ufsj71_k$(_tmp_discussionPostUid); this_0.set_discussionPostReplyToPostUid_ev5bbi_k$(_tmp_discussionPostReplyToPostUid); this_0.set_discussionPostTitle_m6nnc4_k$(_tmp_discussionPostTitle); this_0.set_discussionPostMessage_7toqr9_k$(_tmp_discussionPostMessage); this_0.set_discussionPostStartDate_vk83wt_k$(_tmp_discussionPostStartDate); this_0.set_discussionPostCourseBlockUid_9jjim3_k$(_tmp_discussionPostCourseBlockUid); this_0.set_dpDeleted_2r3zwb_k$(_tmp_dpDeleted); this_0.set_discussionPostStartedPersonUid_buzem9_k$(_tmp_discussionPostStartedPersonUid); this_0.set_discussionPostClazzUid_2q88rl_k$(_tmp_discussionPostClazzUid); this_0.set_discussionPostLct_m2hr8a_k$(_tmp_discussionPostLct); this_0.set_discussionPostVisible_8xxgpk_k$(_tmp_discussionPostVisible); this_0.set_discussionPostArchive_wwn57s_k$(_tmp_discussionPostArchive); return this_0; }; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var _tmp_DiscussionPost_nullCount = 0; var _tmp_discussionPostUid = $_result.getLong_3wgf2g_k$('discussionPostUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_discussionPostReplyToPostUid = $_result.getLong_3wgf2g_k$('discussionPostReplyToPostUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_discussionPostTitle = $_result.getString_gb1pt9_k$('discussionPostTitle'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_discussionPostMessage = $_result.getString_gb1pt9_k$('discussionPostMessage'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_discussionPostStartDate = $_result.getLong_3wgf2g_k$('discussionPostStartDate'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_discussionPostCourseBlockUid = $_result.getLong_3wgf2g_k$('discussionPostCourseBlockUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_dpDeleted = $_result.getBoolean_xz3hoo_k$('dpDeleted'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_discussionPostStartedPersonUid = $_result.getLong_3wgf2g_k$('discussionPostStartedPersonUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_discussionPostClazzUid = $_result.getLong_3wgf2g_k$('discussionPostClazzUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_discussionPostLct = $_result.getLong_3wgf2g_k$('discussionPostLct'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_discussionPostVisible = $_result.getBoolean_xz3hoo_k$('discussionPostVisible'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_discussionPostArchive = $_result.getBoolean_xz3hoo_k$('discussionPostArchive'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_DiscussionPost_nullCount = _tmp_DiscussionPost_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_DiscussionPost_isAllNull = _tmp_DiscussionPost_nullCount === 12; // Inline function 'kotlin.apply' call var this_0 = new DiscussionPostAndPosterNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); if (!_tmp_DiscussionPost_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_discussionPostUid_ufsj71_k$(_tmp_discussionPostUid); this_1.set_discussionPostReplyToPostUid_ev5bbi_k$(_tmp_discussionPostReplyToPostUid); this_1.set_discussionPostTitle_m6nnc4_k$(_tmp_discussionPostTitle); this_1.set_discussionPostMessage_7toqr9_k$(_tmp_discussionPostMessage); this_1.set_discussionPostStartDate_vk83wt_k$(_tmp_discussionPostStartDate); this_1.set_discussionPostCourseBlockUid_9jjim3_k$(_tmp_discussionPostCourseBlockUid); this_1.set_dpDeleted_2r3zwb_k$(_tmp_dpDeleted); this_1.set_discussionPostStartedPersonUid_buzem9_k$(_tmp_discussionPostStartedPersonUid); this_1.set_discussionPostClazzUid_2q88rl_k$(_tmp_discussionPostClazzUid); this_1.set_discussionPostLct_m2hr8a_k$(_tmp_discussionPostLct); this_1.set_discussionPostVisible_8xxgpk_k$(_tmp_discussionPostVisible); this_1.set_discussionPostArchive_wwn57s_k$(_tmp_discussionPostArchive); this_0.set_discussionPost_mkuzpd_k$(this_1); } return this_0; }; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) { this.$postUid_1 = $postUid; this.$includeDeleted_1 = $includeDeleted; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).invoke_lcu5hl_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_lcu5hl_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$postUid_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeDeleted_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(5, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda(this.$postUid_1, this.$includeDeleted_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0($postUid, $includeDeleted, $_limit, $_offset, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda($postUid, $includeDeleted, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_lcu5hl_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation) { this.$postUid_1 = $postUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$postUid_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda(this.$postUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0($postUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda($postUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda$lambda(_result) { return mapRows(_result, DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda$lambda$lambda(_result)); } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByPostIdWithAllRepliesPersons....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByPostIdWithAllRepliesPersons.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.DiscussionPostDao_JdbcImpl.findByPostIdWithAllRepliesPersons.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).bindPreparedStmtToEntity_5uawjt_k$ = function (stmt, entity) { if (entity.get_discussionPostUid_6yxxgf_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_discussionPostUid_6yxxgf_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_discussionPostReplyToPostUid_p5bbhg_k$()); stmt.setString_2gt7ua_k$(3, entity.get_discussionPostTitle_luljhj_k$()); stmt.setString_2gt7ua_k$(4, entity.get_discussionPostMessage_a2j8wm_k$()); stmt.setLong_j1sybo_k$(5, entity.get_discussionPostStartDate_61t9a7_k$()); stmt.setLong_j1sybo_k$(6, entity.get_discussionPostCourseBlockUid_sf5e7_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_dpDeleted_gj0ksk_k$()); stmt.setLong_j1sybo_k$(8, entity.get_discussionPostStartedPersonUid_hirvwr_k$()); stmt.setLong_j1sybo_k$(9, entity.get_discussionPostClazzUid_nrn8d3_k$()); stmt.setLong_j1sybo_k$(10, entity.get_discussionPostLct_6yxqng_k$()); stmt.setBoolean_pzdm1v_k$(11, entity.get_discussionPostVisible_1zvtj5_k$()); stmt.setBoolean_pzdm1v_k$(12, entity.get_discussionPostArchive_i3eir3_k$()); }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_5uawjt_k$(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO DiscussionPost (discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).bindPreparedStmtToEntity_5uawjt_k$ = function (stmt, entity) { if (entity.get_discussionPostUid_6yxxgf_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_discussionPostUid_6yxxgf_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_discussionPostReplyToPostUid_p5bbhg_k$()); stmt.setString_2gt7ua_k$(3, entity.get_discussionPostTitle_luljhj_k$()); stmt.setString_2gt7ua_k$(4, entity.get_discussionPostMessage_a2j8wm_k$()); stmt.setLong_j1sybo_k$(5, entity.get_discussionPostStartDate_61t9a7_k$()); stmt.setLong_j1sybo_k$(6, entity.get_discussionPostCourseBlockUid_sf5e7_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_dpDeleted_gj0ksk_k$()); stmt.setLong_j1sybo_k$(8, entity.get_discussionPostStartedPersonUid_hirvwr_k$()); stmt.setLong_j1sybo_k$(9, entity.get_discussionPostClazzUid_nrn8d3_k$()); stmt.setLong_j1sybo_k$(10, entity.get_discussionPostLct_6yxqng_k$()); stmt.setBoolean_pzdm1v_k$(11, entity.get_discussionPostVisible_1zvtj5_k$()); stmt.setBoolean_pzdm1v_k$(12, entity.get_discussionPostArchive_i3eir3_k$()); }; protoOf(DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_5uawjt_k$(stmt, entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function DiscussionPostDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entity_1.get_discussionPostReplyToPostUid_p5bbhg_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_discussionPostTitle_luljhj_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$entity_1.get_discussionPostMessage_a2j8wm_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_discussionPostStartDate_61t9a7_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_discussionPostCourseBlockUid_sf5e7_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$entity_1.get_dpDeleted_gj0ksk_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_discussionPostStartedPersonUid_hirvwr_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_discussionPostClazzUid_nrn8d3_k$()); this._stmt_1.setLong_j1sybo_k$(9, this.$entity_1.get_discussionPostLct_6yxqng_k$()); this._stmt_1.setBoolean_pzdm1v_k$(10, this.$entity_1.get_discussionPostVisible_1zvtj5_k$()); this._stmt_1.setBoolean_pzdm1v_k$(11, this.$entity_1.get_discussionPostArchive_i3eir3_k$()); this._stmt_1.setLong_j1sybo_k$(12, this.$entity_1.get_discussionPostUid_6yxxgf_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_discussionPostReplyToPostUid_p5bbhg_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_discussionPostTitle_luljhj_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_discussionPostMessage_a2j8wm_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_discussionPostStartDate_61t9a7_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_discussionPostCourseBlockUid_sf5e7_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_dpDeleted_gj0ksk_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_discussionPostStartedPersonUid_hirvwr_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_discussionPostClazzUid_nrn8d3_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_discussionPostLct_6yxqng_k$()); _stmt.setBoolean_pzdm1v_k$(10, $entity.get_discussionPostVisible_1zvtj5_k$()); _stmt.setBoolean_pzdm1v_k$(11, $entity.get_discussionPostArchive_i3eir3_k$()); _stmt.setLong_j1sybo_k$(12, $entity.get_discussionPostUid_6yxxgf_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this$0, $courseBlockUid, $includeDeleted) { this.this$0__1 = this$0; this.$courseBlockUid_1 = $courseBlockUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).loadRows_sykzwt_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$loadRows$slambda_0(this.$courseBlockUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_sykzwt_k$(_limit, _offset, $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames as authorPersonFirstNames,\n Person.lastName as authorPersonLastName,\n PersonPicture.personPictureThumbnailUri AS authorPictureUri,\n MostRecentReply.discussionPostMessage AS postLatestMessage,\n COALESCE(MostRecentReply.discussionPostStartDate, 0) AS postLatestMessageTimestamp,\n (SELECT COUNT(*)\n FROM DiscussionPost DiscussionPostReplies\n WHERE DiscussionPostReplies.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n AND NOT DiscussionPostReplies.dpDeleted\n ) AS postRepliesCount\n FROM DiscussionPost\n LEFT JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n LEFT JOIN Person \n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1)\n ORDER BY DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$o$countRows$slambda_0(this.$courseBlockUid_1, this.$includeDeleted_1, null), $completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda($courseBlockUid, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda).invoke_dgsx6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dgsx6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda(this.$courseBlockUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda_0($courseBlockUid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda($courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dgsx6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda($courseBlockUid, resultContinuation) { this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda).invoke_2p4v8w_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_2p4v8w_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$courseBlockUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda(this.$courseBlockUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda_0($courseBlockUid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda($courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_2p4v8w_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getPostTitle$slambda($postUid, resultContinuation) { this.$postUid_1 = $postUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getPostTitle$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getPostTitle$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$getPostTitle$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$getPostTitle$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getPostTitle$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$getPostTitle$slambda(this.$postUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$getPostTitle$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$getPostTitle$slambda_0($postUid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getPostTitle$slambda($postUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).invoke_engt5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_engt5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_engt5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).invoke_723mci_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_723mci_k$($completion); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT DiscussionPost.discussionPostTitle\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT DiscussionPost.discussionPostTitle\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_723mci_k$($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this$0, $postUid, $includeDeleted) { this.this$0__1 = this$0; this.$postUid_1 = $postUid; this.$includeDeleted_1 = $includeDeleted; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Person', 'PersonPicture', 'DiscussionPost']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).loadRows_z4h69w_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = ?\n OR DiscussionPost.discussionPostReplyToPostUid= ?)\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$loadRows$slambda_0(this.$postUid_1, this.$includeDeleted_1, _limit, _offset, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_z4h69w_k$(_limit, _offset, $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT DiscussionPost.*,\n Person.firstNames,\n Person.lastName,\n PersonPicture.personPictureThumbnailUri AS personPictureUri\n FROM DiscussionPost\n LEFT JOIN Person\n ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = DiscussionPost.discussionPostStartedPersonUid\n WHERE (DiscussionPost.discussionPostUid = ?\n OR DiscussionPost.discussionPostReplyToPostUid= ?)\n AND (NOT DiscussionPost.dpDeleted OR CAST(? AS INTEGER) = 1) \n -- Always get the starting post first, followed by replies\n ORDER BY CASE(DiscussionPost.discussionPostReplyToPostUid)\n WHEN 0 THEN 0\n ELSE 1 END ASC,\n DiscussionPost.discussionPostStartDate DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$o$countRows$slambda_0(this.$postUid_1, this.$includeDeleted_1, null), $completion); }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda($postUid, resultContinuation) { this.$postUid_1 = $postUid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda).invoke_dgsx6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dgsx6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$postUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$postUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda(this.$postUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda_0($postUid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda($postUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dgsx6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation) { this.$deleted_1 = $deleted; this.$updateTime_1 = $updateTime; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$deleted_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda(this.$deleted_1, this.$updateTime_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0($deleted, $updateTime, $uid, resultContinuation) { var i = new DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda($deleted, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$231(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$231).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterDiscussionPost_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$232(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$232).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE DiscussionPost SET discussionPostReplyToPostUid = ?, discussionPostTitle = ?, discussionPostMessage = ?, discussionPostStartDate = ?, discussionPostCourseBlockUid = ?, dpDeleted = ?, discussionPostStartedPersonUid = ?, discussionPostClazzUid = ?, discussionPostLct = ?, discussionPostVisible = ?, discussionPostArchive = ? WHERE discussionPostUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, DiscussionPostDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $setDeletedAsyncCOROUTINE$233(_this__u8e3s4, uid, deleted, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.deleted_1 = deleted; this.updateTime_1 = updateTime; } protoOf($setDeletedAsyncCOROUTINE$233).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE DiscussionPost\n SET dpDeleted = ?,\n discussionPostLct = CAST(? AS BIGINT)\n WHERE discussionPostUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE DiscussionPost\n SET dpDeleted = ?,\n discussionPostLct = ?\n WHERE discussionPostUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, DiscussionPostDao_JdbcImpl$setDeletedAsync$slambda_0(this.deleted_1, this.updateTime_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function DiscussionPostDao_JdbcImpl(_db) { DiscussionPostDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterDiscussionPost_upsert_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterDiscussionPost_abort_1 = new DiscussionPostDao_JdbcImpl$_insertAdapterDiscussionPost_abort$1(this); } protoOf(DiscussionPostDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(DiscussionPostDao_JdbcImpl).get__insertAdapterDiscussionPost_upsert_huqviy_k$ = function () { return this._insertAdapterDiscussionPost_upsert_1; }; protoOf(DiscussionPostDao_JdbcImpl).get__insertAdapterDiscussionPost_abort_1ei8ih_k$ = function () { return this._insertAdapterDiscussionPost_abort_1; }; protoOf(DiscussionPostDao_JdbcImpl).upsertAsync_g8wcjt_k$ = function (entity, $completion) { return this._insertAdapterDiscussionPost_upsert_1.insertAsync_kic9b7_k$(entity, $completion); }; protoOf(DiscussionPostDao_JdbcImpl).insert_c975cc_k$ = function (entity) { var _retVal = this._insertAdapterDiscussionPost_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(DiscussionPostDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_c975cc_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; protoOf(DiscussionPostDao_JdbcImpl).insertAsync_29yjk7_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$231(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_29yjk7_k$(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).insertList_sehq44_k$ = function (entityList) { this._insertAdapterDiscussionPost_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(DiscussionPostDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_sehq44_k$(entityList); }; protoOf(DiscussionPostDao_JdbcImpl).updateAsync_abohv7_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$232(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_JdbcImpl).update_wiq1vw_k$ = function (entity) { var _sql = 'UPDATE DiscussionPost SET discussionPostReplyToPostUid = ?, discussionPostTitle = ?, discussionPostMessage = ?, discussionPostStartDate = ?, discussionPostCourseBlockUid = ?, dpDeleted = ?, discussionPostStartedPersonUid = ?, discussionPostClazzUid = ?, discussionPostLct = ?, discussionPostVisible = ?, discussionPostArchive = ? WHERE discussionPostUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, DiscussionPostDao_JdbcImpl$update$lambda(entity)); }; protoOf(DiscussionPostDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_wiq1vw_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; protoOf(DiscussionPostDao_JdbcImpl).getTopLevelPostsByCourseBlockUid_z1reuy_k$ = function (courseBlockUid, includeDeleted) { return new DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUid$1(this, courseBlockUid, includeDeleted); }; protoOf(DiscussionPostDao_JdbcImpl).getTopLevelPostsByCourseBlockUidPersons_7z1mqo_k$ = function (courseBlockUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT DiscussionPost.discussionPostStartedPersonUid\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT DiscussionPost.discussionPostStartedPersonUid\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidPersons$slambda_0(courseBlockUid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).getTopLevelPostsByCourseBlockUidLatestMessage_1pwj0r_k$ = function (courseBlockUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT MostRecentReply.*\n FROM DiscussionPost\n JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n WHERE DiscussionPost.discussionPostCourseBlockUid = CAST(? AS BIGINT)\n AND DiscussionPost.discussionPostReplyToPostUid = 0 \n ', VOID, VOID, VOID, '\n SELECT MostRecentReply.*\n FROM DiscussionPost\n JOIN DiscussionPost AS MostRecentReply\n ON MostRecentReply.discussionPostUid = \n (SELECT MostRecentReplyInner.discussionPostUid\n FROM DiscussionPost AS MostRecentReplyInner\n WHERE MostRecentReplyInner.discussionPostReplyToPostUid = DiscussionPost.discussionPostUid\n ORDER BY MostRecentReplyInner.discussionPostStartDate DESC\n LIMIT 1 \n )\n WHERE DiscussionPost.discussionPostCourseBlockUid = ?\n AND DiscussionPost.discussionPostReplyToPostUid = 0 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DiscussionPostDao_JdbcImpl$getTopLevelPostsByCourseBlockUidLatestMessage$slambda_0(courseBlockUid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).getPostTitle_8imgpa_k$ = function (postUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DiscussionPost.discussionPostTitle \n FROM DiscussionPost \n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT DiscussionPost.discussionPostTitle \n FROM DiscussionPost \n WHERE DiscussionPost.discussionPostUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DiscussionPostDao_JdbcImpl$getPostTitle$slambda_0(postUid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).findByUid_oqo6x1_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT * \n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DiscussionPostDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).getTitleByUidAsFlow_bp2lxl_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['DiscussionPost']; return doorFlow(this._db_1, tmp, DiscussionPostDao_JdbcImpl$getTitleByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(DiscussionPostDao_JdbcImpl).findByPostIdWithAllReplies_qj5mpd_k$ = function (postUid, includeDeleted) { return new DiscussionPostDao_JdbcImpl$findByPostIdWithAllReplies$1(this, postUid, includeDeleted); }; protoOf(DiscussionPostDao_JdbcImpl).findByPostIdWithAllRepliesPersons_ovwkq3_k$ = function (postUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT DiscussionPost.discussionPostStartedPersonUid\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = CAST(? AS BIGINT)\n OR DiscussionPost.discussionPostReplyToPostUid= CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT DiscussionPost.discussionPostStartedPersonUid\n FROM DiscussionPost\n WHERE DiscussionPost.discussionPostUid = ?\n OR DiscussionPost.discussionPostReplyToPostUid= ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, DiscussionPostDao_JdbcImpl$findByPostIdWithAllRepliesPersons$slambda_0(postUid, null), $completion); }; protoOf(DiscussionPostDao_JdbcImpl).setDeletedAsync_olc1s5_k$ = function (uid, deleted, updateTime, $completion) { var tmp = new $setDeletedAsyncCOROUTINE$233(this, uid, deleted, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$courseBlockUid_1 = $courseBlockUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'courseBlockUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$courseBlockUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this.this$0__1, this.$courseBlockUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this$0, $courseBlockUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda(this$0, $courseBlockUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(DiscussionPostDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_abohv7_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new DiscussionPostDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function DiscussionPostDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new DiscussionPostDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation) { this.this$0__1 = this$0; this.$postUid_1 = $postUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'DiscussionPostDao/findByPostIdWithAllReplies'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'DiscussionPostDao/findByPostIdWithAllReplies'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'postUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$postUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this.this$0__1, this.$postUid_1, this.$includeDeleted_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this$0, $postUid, $includeDeleted, resultContinuation) { var i = new DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda(this$0, $postUid, $includeDeleted, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_g8wcjt_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new DiscussionPostDao_Repo$upsertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function DiscussionPostDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new DiscussionPostDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$deleted_1 = $deleted; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.setDeletedAsync_olc1s5_k$(this.$uid_1, this.$deleted_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_Repo$setDeletedAsync$slambda).create_d196fn_k$ = function (completion) { return new DiscussionPostDao_Repo$setDeletedAsync$slambda(this.this$0__1, this.$uid_1, this.$deleted_1, this.$updateTime_1, completion); }; function DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this$0, $uid, $deleted, $updateTime, resultContinuation) { var i = new DiscussionPostDao_Repo$setDeletedAsync$slambda(this$0, $uid, $deleted, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(DiscussionPostDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(DiscussionPostDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new DiscussionPostDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function DiscussionPostDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new DiscussionPostDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function DiscussionPostDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function DiscussionPostDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $getTopLevelPostsByCourseBlockUidPersonsCOROUTINE$234(_this__u8e3s4, courseBlockUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.courseBlockUid_1 = courseBlockUid; } protoOf($getTopLevelPostsByCourseBlockUidPersonsCOROUTINE$234).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getTopLevelPostsByCourseBlockUidPersons_7z1mqo_k$(this.courseBlockUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getTopLevelPostsByCourseBlockUidLatestMessageCOROUTINE$235(_this__u8e3s4, courseBlockUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.courseBlockUid_1 = courseBlockUid; } protoOf($getTopLevelPostsByCourseBlockUidLatestMessageCOROUTINE$235).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getTopLevelPostsByCourseBlockUidLatestMessage_1pwj0r_k$(this.courseBlockUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getPostTitleCOROUTINE$236(_this__u8e3s4, postUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.postUid_1 = postUid; } protoOf($getPostTitleCOROUTINE$236).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getPostTitle_8imgpa_k$(this.postUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidCOROUTINE$237(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidCOROUTINE$237).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_oqo6x1_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$238(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$238).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByPostIdWithAllRepliesPersonsCOROUTINE$239(_this__u8e3s4, postUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.postUid_1 = postUid; } protoOf($findByPostIdWithAllRepliesPersonsCOROUTINE$239).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPostIdWithAllRepliesPersons_ovwkq3_k$(this.postUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$240(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$240).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function DiscussionPostDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { DiscussionPostDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(DiscussionPostDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(DiscussionPostDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(DiscussionPostDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(DiscussionPostDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(DiscussionPostDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(DiscussionPostDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(DiscussionPostDao_Repo).getTopLevelPostsByCourseBlockUid_z1reuy_k$ = function (courseBlockUid, includeDeleted) { var tmp = this._dao_1.getTopLevelPostsByCourseBlockUid_z1reuy_k$(courseBlockUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'DiscussionPostDao/getTopLevelPostsByCourseBlockUid', tmp, DiscussionPostDao_Repo$getTopLevelPostsByCourseBlockUid$slambda_0(this, courseBlockUid, includeDeleted, null)); }; protoOf(DiscussionPostDao_Repo).getTopLevelPostsByCourseBlockUidPersons_7z1mqo_k$ = function (courseBlockUid, $completion) { var tmp = new $getTopLevelPostsByCourseBlockUidPersonsCOROUTINE$234(this, courseBlockUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).getTopLevelPostsByCourseBlockUidLatestMessage_1pwj0r_k$ = function (courseBlockUid, $completion) { var tmp = new $getTopLevelPostsByCourseBlockUidLatestMessageCOROUTINE$235(this, courseBlockUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).getPostTitle_8imgpa_k$ = function (postUid, $completion) { var tmp = new $getPostTitleCOROUTINE$236(this, postUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).findByUid_oqo6x1_k$ = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$237(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).getTitleByUidAsFlow_bp2lxl_k$ = function (uid) { var _result = this._dao_1.getTitleByUidAsFlow_bp2lxl_k$(uid); return _result; }; protoOf(DiscussionPostDao_Repo).updateAsync_abohv7_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$238(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).findByPostIdWithAllReplies_qj5mpd_k$ = function (postUid, includeDeleted) { var tmp = this._dao_1.findByPostIdWithAllReplies_qj5mpd_k$(postUid, includeDeleted); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'DiscussionPostDao/findByPostIdWithAllReplies', tmp, DiscussionPostDao_Repo$findByPostIdWithAllReplies$slambda_0(this, postUid, includeDeleted, null)); }; protoOf(DiscussionPostDao_Repo).findByPostIdWithAllRepliesPersons_ovwkq3_k$ = function (postUid, $completion) { var tmp = new $findByPostIdWithAllRepliesPersonsCOROUTINE$239(this, postUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).upsertAsync_g8wcjt_k$ = function (entity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$upsertAsync$slambda_0(this, entity, null), $completion); }; protoOf(DiscussionPostDao_Repo).setDeletedAsync_olc1s5_k$ = function (uid, deleted, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$setDeletedAsync$slambda_0(this, uid, deleted, updateTime, null), $completion); }; protoOf(DiscussionPostDao_Repo).insert_c975cc_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(DiscussionPostDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_c975cc_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; protoOf(DiscussionPostDao_Repo).insertAsync_29yjk7_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$240(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(DiscussionPostDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_29yjk7_k$(entity instanceof DiscussionPost ? entity : THROW_CCE(), $completion); }; protoOf(DiscussionPostDao_Repo).insertList_sehq44_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$insertList$lambda(this, entityList)); }; protoOf(DiscussionPostDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_sehq44_k$(entityList); }; protoOf(DiscussionPostDao_Repo).update_wiq1vw_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'DiscussionPost', DiscussionPostDao_Repo$update$lambda(this, entity)); }; protoOf(DiscussionPostDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_wiq1vw_k$(entity instanceof DiscussionPost ? entity : THROW_CCE()); }; function EnrolmentRequestDao() { } function _get__db__e63s44_27($this) { return $this._db_1; } function _get__dao__d2kw60_25($this) { return $this._dao_1; } function $insertCOROUTINE$241(_this__u8e3s4, enrolmentRequest, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.enrolmentRequest_1 = enrolmentRequest; } protoOf($insertCOROUTINE$241).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.enrolmentRequest_1.get_erUid_iqz9ru_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(10070, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.enrolmentRequest_1.set_erUid_9889rc_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.enrolmentRequest_1.set_erLastModified_uzh985_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insert_hl95ea_k$(this.enrolmentRequest_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function EnrolmentRequestDao_DoorWrapper(_db, _dao) { EnrolmentRequestDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(EnrolmentRequestDao_DoorWrapper).insert_hl95ea_k$ = function (enrolmentRequest, $completion) { var tmp = new $insertCOROUTINE$241(this, enrolmentRequest, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_DoorWrapper).findByClazzAndPerson_u5fu9n_k$ = function (personUid, clazzUid, statusFilter, $completion) { return this._dao_1.findByClazzAndPerson_u5fu9n_k$(personUid, clazzUid, statusFilter, $completion); }; protoOf(EnrolmentRequestDao_DoorWrapper).hasPendingRequests_anv16n_k$ = function (personUid, clazzUid, $completion) { return this._dao_1.hasPendingRequests_anv16n_k$(personUid, clazzUid, $completion); }; protoOf(EnrolmentRequestDao_DoorWrapper).findRequestsForUserAsFlow_huzxep_k$ = function (accountPersonUid, statusFilter) { return this._dao_1.findRequestsForUserAsFlow_huzxep_k$(accountPersonUid, statusFilter); }; protoOf(EnrolmentRequestDao_DoorWrapper).updateStatus_14sbte_k$ = function (uid, status, updateTime, $completion) { return this._dao_1.updateStatus_14sbte_k$(uid, status, updateTime, $completion); }; protoOf(EnrolmentRequestDao_DoorWrapper).findPendingEnrolmentsForCourse_y6fpmg_k$ = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { return this._dao_1.findPendingEnrolmentsForCourse_y6fpmg_k$(clazzUid, includeDeleted, statusFilter, searchText, sortOrder); }; function EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda$lambda(_result) { return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_erUid = $_result.getLong_3wgf2g_k$('erUid'); var _tmp_erClazzUid = $_result.getLong_3wgf2g_k$('erClazzUid'); var _tmp_erClazzName = $_result.getString_gb1pt9_k$('erClazzName'); var _tmp_erPersonUid = $_result.getLong_3wgf2g_k$('erPersonUid'); var _tmp_erPersonFullname = $_result.getString_gb1pt9_k$('erPersonFullname'); var _tmp_erPersonPictureUri = $_result.getString_gb1pt9_k$('erPersonPictureUri'); var _tmp_erPersonUsername = $_result.getString_gb1pt9_k$('erPersonUsername'); var _tmp_erRole = $_result.getInt_npc9pd_k$('erRole'); var _tmp_erRequestTime = $_result.getLong_3wgf2g_k$('erRequestTime'); var _tmp_erStatus = $_result.getInt_npc9pd_k$('erStatus'); var _tmp_erStatusSetByPersonUid = $_result.getLong_3wgf2g_k$('erStatusSetByPersonUid'); var _tmp_erDeleted = $_result.getBoolean_xz3hoo_k$('erDeleted'); var _tmp_erStatusSetAuth = $_result.getString_gb1pt9_k$('erStatusSetAuth'); var _tmp_erLastModified = $_result.getLong_3wgf2g_k$('erLastModified'); // Inline function 'kotlin.apply' call var this_0 = new EnrolmentRequest(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findByClazzAndPerson....' call this_0.set_erUid_9889rc_k$(_tmp_erUid); this_0.set_erClazzUid_ndof5o_k$(_tmp_erClazzUid); this_0.set_erClazzName_d7hufy_k$(_tmp_erClazzName); this_0.set_erPersonUid_a4e5f7_k$(_tmp_erPersonUid); this_0.set_erPersonFullname_zbbeke_k$(_tmp_erPersonFullname); this_0.set_erPersonPictureUri_2ybd56_k$(_tmp_erPersonPictureUri); this_0.set_erPersonUsername_bl1r2a_k$(_tmp_erPersonUsername); this_0.set_erRole_tx88fs_k$(_tmp_erRole); this_0.set_erRequestTime_ldn8us_k$(_tmp_erRequestTime); this_0.set_erStatus_xszl58_k$(_tmp_erStatus); this_0.set_erStatusSetByPersonUid_ui1t5s_k$(_tmp_erStatusSetByPersonUid); this_0.set_erDeleted_r0s50a_k$(_tmp_erDeleted); this_0.set_erStatusSetAuth_mgaltj_k$(_tmp_erStatusSetAuth); this_0.set_erLastModified_uzh985_k$(_tmp_erLastModified); return this_0; }; } function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda(_result) { return mapNextRow(_result, false, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_EnrolmentRequest_nullCount = 0; var _tmp_erUid = $_result.getLong_3wgf2g_k$('erUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_erClazzUid = $_result.getLong_3wgf2g_k$('erClazzUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_erClazzName = $_result.getString_gb1pt9_k$('erClazzName'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_erPersonUid = $_result.getLong_3wgf2g_k$('erPersonUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_erPersonFullname = $_result.getString_gb1pt9_k$('erPersonFullname'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_erPersonPictureUri = $_result.getString_gb1pt9_k$('erPersonPictureUri'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_erPersonUsername = $_result.getString_gb1pt9_k$('erPersonUsername'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_erRole = $_result.getInt_npc9pd_k$('erRole'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_erRequestTime = $_result.getLong_3wgf2g_k$('erRequestTime'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_erStatus = $_result.getInt_npc9pd_k$('erStatus'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_erStatusSetByPersonUid = $_result.getLong_3wgf2g_k$('erStatusSetByPersonUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_erDeleted = $_result.getBoolean_xz3hoo_k$('erDeleted'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_erStatusSetAuth = $_result.getString_gb1pt9_k$('erStatusSetAuth'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_erLastModified = $_result.getLong_3wgf2g_k$('erLastModified'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14; var _tmp_CoursePicture_nullCount = 0; var _tmp_coursePictureUid = $_result.getLong_3wgf2g_k$('coursePictureUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_coursePictureLct = $_result.getLong_3wgf2g_k$('coursePictureLct'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_coursePictureUri = $_result.getString_gb1pt9_k$('coursePictureUri'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_coursePictureThumbnailUri = $_result.getString_gb1pt9_k$('coursePictureThumbnailUri'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_coursePictureActive = $_result.getBoolean_xz3hoo_k$('coursePictureActive'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_CoursePicture_nullCount = _tmp_CoursePicture_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_CoursePicture_isAllNull = _tmp_CoursePicture_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new EnrolmentRequestAndCoursePic(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow.....' call if (!_tmp_EnrolmentRequest_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new EnrolmentRequest(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow......' call this_1.set_erUid_9889rc_k$(_tmp_erUid); this_1.set_erClazzUid_ndof5o_k$(_tmp_erClazzUid); this_1.set_erClazzName_d7hufy_k$(_tmp_erClazzName); this_1.set_erPersonUid_a4e5f7_k$(_tmp_erPersonUid); this_1.set_erPersonFullname_zbbeke_k$(_tmp_erPersonFullname); this_1.set_erPersonPictureUri_2ybd56_k$(_tmp_erPersonPictureUri); this_1.set_erPersonUsername_bl1r2a_k$(_tmp_erPersonUsername); this_1.set_erRole_tx88fs_k$(_tmp_erRole); this_1.set_erRequestTime_ldn8us_k$(_tmp_erRequestTime); this_1.set_erStatus_xszl58_k$(_tmp_erStatus); this_1.set_erStatusSetByPersonUid_ui1t5s_k$(_tmp_erStatusSetByPersonUid); this_1.set_erDeleted_r0s50a_k$(_tmp_erDeleted); this_1.set_erStatusSetAuth_mgaltj_k$(_tmp_erStatusSetAuth); this_1.set_erLastModified_uzh985_k$(_tmp_erLastModified); this_0.set_enrolmentRequest_6elsbj_k$(this_1); } if (!_tmp_CoursePicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new CoursePicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.EnrolmentRequestDao_JdbcImpl.findRequestsForUserAsFlow......' call this_2.set_coursePictureUid_cmj704_k$(_tmp_coursePictureUid); this_2.set_coursePictureLct_kztyyv_k$(_tmp_coursePictureLct); this_2.set_coursePictureUri_6vliwf_k$(_tmp_coursePictureUri); this_2.set_coursePictureThumbnailUri_kmahw1_k$(_tmp_coursePictureThumbnailUri); this_2.set_coursePictureActive_8jknmf_k$(_tmp_coursePictureActive); this_0.set_coursePicture_h9sgol_k$(this_2); } return this_0; }; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).invoke_l7qhmo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_l7qhmo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$statusFilter_1); this._stmt_1.setInt_c72a8z_k$(3, this.$statusFilter_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda(this.$accountPersonUid_1, this.$statusFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0($accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda($accountPersonUid, $statusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_l7qhmo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda(_result) { return mapRows(_result, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_EnrolmentRequest_nullCount = 0; var _tmp_erUid = $_result.getLong_3wgf2g_k$('erUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_erClazzUid = $_result.getLong_3wgf2g_k$('erClazzUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_erClazzName = $_result.getString_gb1pt9_k$('erClazzName'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_erPersonUid = $_result.getLong_3wgf2g_k$('erPersonUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_erPersonFullname = $_result.getString_gb1pt9_k$('erPersonFullname'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_erPersonPictureUri = $_result.getString_gb1pt9_k$('erPersonPictureUri'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_erPersonUsername = $_result.getString_gb1pt9_k$('erPersonUsername'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_erRole = $_result.getInt_npc9pd_k$('erRole'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_erRequestTime = $_result.getLong_3wgf2g_k$('erRequestTime'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_erStatus = $_result.getInt_npc9pd_k$('erStatus'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_erStatusSetByPersonUid = $_result.getLong_3wgf2g_k$('erStatusSetByPersonUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_erDeleted = $_result.getBoolean_xz3hoo_k$('erDeleted'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_erStatusSetAuth = $_result.getString_gb1pt9_k$('erStatusSetAuth'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_erLastModified = $_result.getLong_3wgf2g_k$('erLastModified'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_EnrolmentRequest_nullCount = _tmp_EnrolmentRequest_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_EnrolmentRequest_isAllNull = _tmp_EnrolmentRequest_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new EnrolmentRequestAndPersonDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_EnrolmentRequest_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new EnrolmentRequest(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_erUid_9889rc_k$(_tmp_erUid); this_1.set_erClazzUid_ndof5o_k$(_tmp_erClazzUid); this_1.set_erClazzName_d7hufy_k$(_tmp_erClazzName); this_1.set_erPersonUid_a4e5f7_k$(_tmp_erPersonUid); this_1.set_erPersonFullname_zbbeke_k$(_tmp_erPersonFullname); this_1.set_erPersonPictureUri_2ybd56_k$(_tmp_erPersonPictureUri); this_1.set_erPersonUsername_bl1r2a_k$(_tmp_erPersonUsername); this_1.set_erRole_tx88fs_k$(_tmp_erRole); this_1.set_erRequestTime_ldn8us_k$(_tmp_erRequestTime); this_1.set_erStatus_xszl58_k$(_tmp_erStatus); this_1.set_erStatusSetByPersonUid_ui1t5s_k$(_tmp_erStatusSetByPersonUid); this_1.set_erDeleted_r0s50a_k$(_tmp_erDeleted); this_1.set_erStatusSetAuth_mgaltj_k$(_tmp_erStatusSetAuth); this_1.set_erLastModified_uzh985_k$(_tmp_erLastModified); this_0.set_enrolmentRequest_6elsbj_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_personUid_j3idds_k$(_tmp_personUid); this_3.set_username_tgnlmk_k$(_tmp_username); this_3.set_firstNames_audc9u_k$(_tmp_firstNames); this_3.set_lastName_6ukpbb_k$(_tmp_lastName); this_3.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_3.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_3.set_gender_5r7pfa_k$(_tmp_gender); this_3.set_active_nmha5u_k$(_tmp_active); this_3.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_3.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_3.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_3.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_3.set_personLct_aq7lf1_k$(_tmp_personLct); this_3.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_3.set_personType_przf38_k$(_tmp_personType); this_3.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_3.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_3.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_3.set_admin_llzh0j_k$(_tmp_admin); this_3.set_personNotes_4l39dk_k$(_tmp_personNotes); this_3.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_3.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_3.set_motherName_y7zjzg_k$(_tmp_motherName); this_3.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_3); } return this_0; }; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda(_result)); } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$statusFilter_1 = $statusFilter; this.$includeDeleted_1 = $includeDeleted; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).invoke_xmhxz2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_xmhxz2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$statusFilter_1); this._stmt_1.setInt_c72a8z_k$(3, this.$statusFilter_1); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$includeDeleted_1); this._stmt_1.setString_2gt7ua_k$(5, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(6, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(7, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(8, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(9, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(10, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(11, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(12, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda(this.$clazzUid_1, this.$statusFilter_1, this.$includeDeleted_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_xmhxz2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$statusFilter_1 = $statusFilter; this.$includeDeleted_1 = $includeDeleted; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$statusFilter_1); this._stmt_1.setInt_c72a8z_k$(3, this.$statusFilter_1); this._stmt_1.setBoolean_pzdm1v_k$(4, this.$includeDeleted_1); this._stmt_1.setString_2gt7ua_k$(5, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(6, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(7, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(8, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(9, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(10, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda(this.$clazzUid_1, this.$statusFilter_1, this.$includeDeleted_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda($clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO EnrolmentRequest (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).bindPreparedStmtToEntity_gv92gk_k$ = function (stmt, entity) { if (entity.get_erUid_iqz9ru_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_erUid_iqz9ru_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_erClazzUid_l5sd9q_k$()); stmt.setString_2gt7ua_k$(3, entity.get_erClazzName_gpab1p_k$()); stmt.setLong_j1sybo_k$(4, entity.get_erPersonUid_rjywbp_k$()); stmt.setString_2gt7ua_k$(5, entity.get_erPersonFullname_ldr2sl_k$()); stmt.setString_2gt7ua_k$(6, entity.get_erPersonPictureUri_54nc2v_k$()); stmt.setString_2gt7ua_k$(7, entity.get_erPersonUsername_51dasf_k$()); stmt.setInt_c72a8z_k$(8, entity.get_erRole_czf6x8_k$()); stmt.setLong_j1sybo_k$(9, entity.get_erRequestTime_brdcyu_k$()); stmt.setInt_c72a8z_k$(10, entity.get_erStatus_nbnwag_k$()); stmt.setLong_j1sybo_k$(11, entity.get_erStatusSetByPersonUid_tlumve_k$()); stmt.setBoolean_pzdm1v_k$(12, entity.get_erDeleted_qqyjul_k$()); stmt.setString_2gt7ua_k$(13, entity.get_erStatusSetAuth_ell6m6_k$()); stmt.setLong_j1sybo_k$(14, entity.get_erLastModified_kfl61h_k$()); }; protoOf(EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_gv92gk_k$(stmt, entity instanceof EnrolmentRequest ? entity : THROW_CCE()); }; function EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda($personUid, $clazzUid, $statusFilter, resultContinuation) { this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda).invoke_5mhzu5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5mhzu5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$statusFilter_1); this._stmt_1.setInt_c72a8z_k$(4, this.$statusFilter_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda(this.$personUid_1, this.$clazzUid_1, this.$statusFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda_0($personUid, $clazzUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda($personUid, $clazzUid, $statusFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5mhzu5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation) { this.$personUid_1 = $personUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda(this.$personUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0($personUid, $clazzUid, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda($personUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).invoke_o9tugc_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_o9tugc_k$($completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT EnrolmentRequest.*, CoursePicture.*\n FROM EnrolmentRequest\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT) \n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n ', VOID, VOID, VOID, '\n SELECT EnrolmentRequest.*, CoursePicture.*\n FROM EnrolmentRequest\n LEFT JOIN CoursePicture\n ON CoursePicture.coursePictureUid = EnrolmentRequest.erClazzUid\n WHERE EnrolmentRequest.erPersonUid = ? \n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda$slambda_0(this.$accountPersonUid_1, this.$statusFilter_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda).create_d196fn_k$ = function (completion) { return new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$statusFilter_1, completion); }; function EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation); var l = function ($completion) { return i.invoke_o9tugc_k$($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation) { this.$status_1 = $status; this.$updateTime_1 = $updateTime; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda(this.$status_1, this.$updateTime_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(EnrolmentRequestDao_JdbcImpl$updateStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0($status, $updateTime, $uid, resultContinuation) { var i = new EnrolmentRequestDao_JdbcImpl$updateStatus$slambda($status, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this$0, $clazzUid, $statusFilter, $includeDeleted, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$statusFilter_1 = $statusFilter; this.$includeDeleted_1 = $includeDeleted; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['EnrolmentRequest', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).loadRows_c8ku41_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = ?\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$loadRows$slambda_0(this.$clazzUid_1, this.$statusFilter_1, this.$includeDeleted_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_c8ku41_k$(_limit, _offset, $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT EnrolmentRequest.*, PersonPicture.*, Person.*\n FROM EnrolmentRequest\n JOIN Person\n ON Person.personUid = EnrolmentRequest.erPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = EnrolmentRequest.erPersonUid\n WHERE EnrolmentRequest.erClazzUid = ?\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n AND (CAST(? AS INTEGER) = 1 OR NOT EnrolmentRequest.erDeleted)\n AND (? = '%' OR EnrolmentRequest.erPersonFullname LIKE ?)\n ORDER BY CASE(?)\n WHEN 1 THEN EnrolmentRequest.erPersonFullname\n WHEN 3 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN EnrolmentRequest.erPersonFullname\n WHEN 4 THEN EnrolmentRequest.erPersonFullname\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN EnrolmentRequest.erRequestTime\n ELSE 0\n END DESC \n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$o$countRows$slambda_0(this.$clazzUid_1, this.$statusFilter_1, this.$includeDeleted_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function $updateStatusCOROUTINE$242(_this__u8e3s4, uid, status, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.status_1 = status; this.updateTime_1 = updateTime; } protoOf($updateStatusCOROUTINE$242).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE EnrolmentRequest\n SET erStatus = ?,\n erLastModified = CAST(? AS BIGINT)\n WHERE erUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE EnrolmentRequest\n SET erStatus = ?,\n erLastModified = ?\n WHERE erUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, EnrolmentRequestDao_JdbcImpl$updateStatus$slambda_0(this.status_1, this.updateTime_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function EnrolmentRequestDao_JdbcImpl(_db) { EnrolmentRequestDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterEnrolmentRequest_abort_1 = new EnrolmentRequestDao_JdbcImpl$_insertAdapterEnrolmentRequest_abort$1(this); } protoOf(EnrolmentRequestDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(EnrolmentRequestDao_JdbcImpl).get__insertAdapterEnrolmentRequest_abort_wzr530_k$ = function () { return this._insertAdapterEnrolmentRequest_abort_1; }; protoOf(EnrolmentRequestDao_JdbcImpl).insert_hl95ea_k$ = function (enrolmentRequest, $completion) { return this._insertAdapterEnrolmentRequest_abort_1.insertAsync_kic9b7_k$(enrolmentRequest, $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl).findByClazzAndPerson_u5fu9n_k$ = function (personUid, clazzUid, statusFilter, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EnrolmentRequest.*\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT)\n AND EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n ', VOID, VOID, VOID, '\n SELECT EnrolmentRequest.*\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = ?\n AND EnrolmentRequest.erClazzUid = ?\n AND (? = 0 OR EnrolmentRequest.erStatus = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, EnrolmentRequestDao_JdbcImpl$findByClazzAndPerson$slambda_0(personUid, clazzUid, statusFilter, null), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl).hasPendingRequests_anv16n_k$ = function (personUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT EnrolmentRequest.erUid\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = CAST(? AS BIGINT)\n AND EnrolmentRequest.erClazzUid = CAST(? AS BIGINT)\n AND EnrolmentRequest.erStatus = 1)\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT EnrolmentRequest.erUid\n FROM EnrolmentRequest\n WHERE EnrolmentRequest.erPersonUid = ?\n AND EnrolmentRequest.erClazzUid = ?\n AND EnrolmentRequest.erStatus = 1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, EnrolmentRequestDao_JdbcImpl$hasPendingRequests$slambda_0(personUid, clazzUid, null), $completion); }; protoOf(EnrolmentRequestDao_JdbcImpl).findRequestsForUserAsFlow_huzxep_k$ = function (accountPersonUid, statusFilter) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['EnrolmentRequest', 'CoursePicture']; return doorFlow(this._db_1, tmp, EnrolmentRequestDao_JdbcImpl$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null)); }; protoOf(EnrolmentRequestDao_JdbcImpl).updateStatus_14sbte_k$ = function (uid, status, updateTime, $completion) { var tmp = new $updateStatusCOROUTINE$242(this, uid, status, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_JdbcImpl).findPendingEnrolmentsForCourse_y6fpmg_k$ = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { return new EnrolmentRequestDao_JdbcImpl$findPendingEnrolmentsForCourse$1(this, clazzUid, statusFilter, includeDeleted, searchText, sortOrder); }; function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation) { this.this$0__1 = this$0; this.$enrolmentRequest_1 = $enrolmentRequest; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$insert$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insert_hl95ea_k$(this.$enrolmentRequest_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_Repo$insert$slambda).create_d196fn_k$ = function (completion) { return new EnrolmentRequestDao_Repo$insert$slambda(this.this$0__1, this.$enrolmentRequest_1, completion); }; function EnrolmentRequestDao_Repo$insert$slambda_0(this$0, $enrolmentRequest, resultContinuation) { var i = new EnrolmentRequestDao_Repo$insert$slambda(this$0, $enrolmentRequest, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$hasPendingRequests$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$statusFilter_1 = $statusFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'EnrolmentRequestDao/findRequestsForUserAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'EnrolmentRequestDao/findRequestsForUserAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'statusFilter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$statusFilter_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda).create_d196fn_k$ = function (completion) { return new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$statusFilter_1, completion); }; function EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this$0, $accountPersonUid, $statusFilter, resultContinuation) { var i = new EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda(this$0, $accountPersonUid, $statusFilter, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$status_1 = $status; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateStatus_14sbte_k$(this.$uid_1, this.$status_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(EnrolmentRequestDao_Repo$updateStatus$slambda).create_d196fn_k$ = function (completion) { return new EnrolmentRequestDao_Repo$updateStatus$slambda(this.this$0__1, this.$uid_1, this.$status_1, this.$updateTime_1, completion); }; function EnrolmentRequestDao_Repo$updateStatus$slambda_0(this$0, $uid, $status, $updateTime, resultContinuation) { var i = new EnrolmentRequestDao_Repo$updateStatus$slambda(this$0, $uid, $status, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$includeDeleted_1 = $includeDeleted; this.$statusFilter_1 = $statusFilter; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'EnrolmentRequestDao/findPendingEnrolmentsForCourse'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'EnrolmentRequestDao/findPendingEnrolmentsForCourse'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'includeDeleted', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.$includeDeleted_1)); parameter(this_0, 'statusFilter', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$statusFilter_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchText_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this.this$0__1, this.$clazzUid_1, this.$includeDeleted_1, this.$statusFilter_1, this.$searchText_1, this.$sortOrder_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation) { var i = new EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda(this$0, $clazzUid, $includeDeleted, $statusFilter, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function $findByClazzAndPersonCOROUTINE$243(_this__u8e3s4, personUid, clazzUid, statusFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.clazzUid_1 = clazzUid; this.statusFilter_1 = statusFilter; } protoOf($findByClazzAndPersonCOROUTINE$243).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzAndPerson_u5fu9n_k$(this.personUid_1, this.clazzUid_1, this.statusFilter_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $hasPendingRequestsCOROUTINE$244(_this__u8e3s4, personUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.clazzUid_1 = clazzUid; } protoOf($hasPendingRequestsCOROUTINE$244).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'EnrolmentRequestDao/hasPendingRequests'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'EnrolmentRequestDao/hasPendingRequests'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.personUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, EnrolmentRequestDao_Repo$hasPendingRequests$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.hasPendingRequests_anv16n_k$(this.personUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function EnrolmentRequestDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { EnrolmentRequestDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(EnrolmentRequestDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(EnrolmentRequestDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(EnrolmentRequestDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(EnrolmentRequestDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(EnrolmentRequestDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(EnrolmentRequestDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(EnrolmentRequestDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(EnrolmentRequestDao_Repo).insert_hl95ea_k$ = function (enrolmentRequest, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$insert$slambda_0(this, enrolmentRequest, null), $completion); }; protoOf(EnrolmentRequestDao_Repo).findByClazzAndPerson_u5fu9n_k$ = function (personUid, clazzUid, statusFilter, $completion) { var tmp = new $findByClazzAndPersonCOROUTINE$243(this, personUid, clazzUid, statusFilter, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo).hasPendingRequests_anv16n_k$ = function (personUid, clazzUid, $completion) { var tmp = new $hasPendingRequestsCOROUTINE$244(this, personUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(EnrolmentRequestDao_Repo).findRequestsForUserAsFlow_huzxep_k$ = function (accountPersonUid, statusFilter) { var tmp = this._dao_1.findRequestsForUserAsFlow_huzxep_k$(accountPersonUid, statusFilter); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, EnrolmentRequestDao_Repo$findRequestsForUserAsFlow$slambda_0(this, accountPersonUid, statusFilter, null)); }; protoOf(EnrolmentRequestDao_Repo).updateStatus_14sbte_k$ = function (uid, status, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'EnrolmentRequest', EnrolmentRequestDao_Repo$updateStatus$slambda_0(this, uid, status, updateTime, null), $completion); }; protoOf(EnrolmentRequestDao_Repo).findPendingEnrolmentsForCourse_y6fpmg_k$ = function (clazzUid, includeDeleted, statusFilter, searchText, sortOrder) { var tmp = this._dao_1.findPendingEnrolmentsForCourse_y6fpmg_k$(clazzUid, includeDeleted, statusFilter, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'EnrolmentRequestDao/findPendingEnrolmentsForCourse', tmp, EnrolmentRequestDao_Repo$findPendingEnrolmentsForCourse$slambda_0(this, clazzUid, includeDeleted, statusFilter, searchText, sortOrder, null)); }; function ErrorReportDao() { } function _get__db__e63s44_28($this) { return $this._db_1; } function _get__dao__d2kw60_26($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$245(_this__u8e3s4, errorReport, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.errorReport_1 = errorReport; } protoOf($insertAsyncCOROUTINE$245).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.errorReport_1.get_errUid_czz35g_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(419, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.errorReport_1.set_errUid_4heg3u_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.errorReport_1.set_errLct_3vwbux_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_4gdmm5_k$(this.errorReport_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.errorReport_1.get_errUid_czz35g_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ErrorReportDao_DoorWrapper(_db, _dao) { ErrorReportDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ErrorReportDao_DoorWrapper).insertAsync_4gdmm5_k$ = function (errorReport, $completion) { var tmp = new $insertAsyncCOROUTINE$245(this, errorReport, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_DoorWrapper).findByUidAsync_us8x6r_k$ = function (errUid, $completion) { return this._dao_1.findByUidAsync_us8x6r_k$(errUid, $completion); }; protoOf(ErrorReportDao_DoorWrapper).findByErrorCode_1j2xsp_k$ = function (errCode, $completion) { return this._dao_1.findByErrorCode_1j2xsp_k$(errCode, $completion); }; function ErrorReportDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ErrorReportDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ErrorReportDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_errUid = $_result.getLong_3wgf2g_k$('errUid'); var _tmp_errPcsn = $_result.getLong_3wgf2g_k$('errPcsn'); var _tmp_errLcsn = $_result.getLong_3wgf2g_k$('errLcsn'); var _tmp_errLcb = $_result.getInt_npc9pd_k$('errLcb'); var _tmp_errLct = $_result.getLong_3wgf2g_k$('errLct'); var _tmp_severity = $_result.getInt_npc9pd_k$('severity'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_presenterUri = $_result.getString_gb1pt9_k$('presenterUri'); var _tmp_appVersion = $_result.getString_gb1pt9_k$('appVersion'); var _tmp_versionCode = $_result.getInt_npc9pd_k$('versionCode'); var _tmp_errorCode = $_result.getInt_npc9pd_k$('errorCode'); var _tmp_operatingSys = $_result.getString_gb1pt9_k$('operatingSys'); var _tmp_osVersion = $_result.getString_gb1pt9_k$('osVersion'); var _tmp_stackTrace = $_result.getString_gb1pt9_k$('stackTrace'); var _tmp_message = $_result.getString_gb1pt9_k$('message'); // Inline function 'kotlin.apply' call var this_0 = new ErrorReport(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ErrorReportDao_JdbcImpl.findByUidAsync....' call this_0.set_errUid_4heg3u_k$(_tmp_errUid); this_0.set_errPcsn_us2yfs_k$(_tmp_errPcsn); this_0.set_errLcsn_vob6cc_k$(_tmp_errLcsn); this_0.set_errLcb_75u8aj_k$(_tmp_errLcb); this_0.set_errLct_3vwbux_k$(_tmp_errLct); this_0.set_severity_sxrpqm_k$(_tmp_severity); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_presenterUri_dwl37a_k$(_tmp_presenterUri); this_0.set_appVersion_uzlvkt_k$(_tmp_appVersion); this_0.set_versionCode_tfhts0_k$(_tmp_versionCode); this_0.set_errorCode_eejymo_k$(_tmp_errorCode); this_0.set_operatingSys_bf2mcy_k$(_tmp_operatingSys); this_0.set_osVersion_dafw0w_k$(_tmp_osVersion); this_0.set_stackTrace_cs50sj_k$(_tmp_stackTrace); this_0.set_message_488t03_k$(_tmp_message); return this_0; }; } function ErrorReportDao_JdbcImpl$findByErrorCode$slambda$lambda(_result) { return mapRows(_result, ErrorReportDao_JdbcImpl$findByErrorCode$slambda$lambda$lambda(_result)); } function ErrorReportDao_JdbcImpl$findByErrorCode$slambda$lambda$lambda($_result) { return function (it) { var _tmp_errUid = $_result.getLong_3wgf2g_k$('errUid'); var _tmp_errPcsn = $_result.getLong_3wgf2g_k$('errPcsn'); var _tmp_errLcsn = $_result.getLong_3wgf2g_k$('errLcsn'); var _tmp_errLcb = $_result.getInt_npc9pd_k$('errLcb'); var _tmp_errLct = $_result.getLong_3wgf2g_k$('errLct'); var _tmp_severity = $_result.getInt_npc9pd_k$('severity'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_presenterUri = $_result.getString_gb1pt9_k$('presenterUri'); var _tmp_appVersion = $_result.getString_gb1pt9_k$('appVersion'); var _tmp_versionCode = $_result.getInt_npc9pd_k$('versionCode'); var _tmp_errorCode = $_result.getInt_npc9pd_k$('errorCode'); var _tmp_operatingSys = $_result.getString_gb1pt9_k$('operatingSys'); var _tmp_osVersion = $_result.getString_gb1pt9_k$('osVersion'); var _tmp_stackTrace = $_result.getString_gb1pt9_k$('stackTrace'); var _tmp_message = $_result.getString_gb1pt9_k$('message'); // Inline function 'kotlin.apply' call var this_0 = new ErrorReport(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ErrorReportDao_JdbcImpl.findByErrorCode....' call this_0.set_errUid_4heg3u_k$(_tmp_errUid); this_0.set_errPcsn_us2yfs_k$(_tmp_errPcsn); this_0.set_errLcsn_vob6cc_k$(_tmp_errLcsn); this_0.set_errLcb_75u8aj_k$(_tmp_errLcb); this_0.set_errLct_3vwbux_k$(_tmp_errLct); this_0.set_severity_sxrpqm_k$(_tmp_severity); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_presenterUri_dwl37a_k$(_tmp_presenterUri); this_0.set_appVersion_uzlvkt_k$(_tmp_appVersion); this_0.set_versionCode_tfhts0_k$(_tmp_versionCode); this_0.set_errorCode_eejymo_k$(_tmp_errorCode); this_0.set_operatingSys_bf2mcy_k$(_tmp_operatingSys); this_0.set_osVersion_dafw0w_k$(_tmp_osVersion); this_0.set_stackTrace_cs50sj_k$(_tmp_stackTrace); this_0.set_message_488t03_k$(_tmp_message); return this_0; }; } function ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).bindPreparedStmtToEntity_ltsgb9_k$ = function (stmt, entity) { if (entity.get_errUid_czz35g_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_errUid_czz35g_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_errPcsn_n7jx3q_k$()); stmt.setLong_j1sybo_k$(3, entity.get_errLcsn_n7mh1u_k$()); stmt.setInt_c72a8z_k$(4, entity.get_errLcb_czywbz_k$()); stmt.setLong_j1sybo_k$(5, entity.get_errLct_czywch_k$()); stmt.setInt_c72a8z_k$(6, entity.get_severity_7csmre_k$()); stmt.setLong_j1sybo_k$(7, entity.get_timestamp_9fccx9_k$()); stmt.setString_2gt7ua_k$(8, entity.get_presenterUri_g4odt9_k$()); stmt.setString_2gt7ua_k$(9, entity.get_appVersion_4dcm4g_k$()); stmt.setInt_c72a8z_k$(10, entity.get_versionCode_pa65j0_k$()); stmt.setInt_c72a8z_k$(11, entity.get_errorCode_dyf6uk_k$()); stmt.setString_2gt7ua_k$(12, entity.get_operatingSys_bh7v_k$()); stmt.setString_2gt7ua_k$(13, entity.get_osVersion_wjrp79_k$()); stmt.setString_2gt7ua_k$(14, entity.get_stackTrace_dc54x2_k$()); stmt.setString_2gt7ua_k$(15, entity.get_message_h23axq_k$()); }; protoOf(ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ltsgb9_k$(stmt, entity instanceof ErrorReport ? entity : THROW_CCE()); }; function ErrorReportDao_JdbcImpl$findByUidAsync$slambda($errUid, resultContinuation) { this.$errUid_1 = $errUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ErrorReportDao_JdbcImpl$findByUidAsync$slambda).invoke_5d19x9_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5d19x9_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ErrorReportDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$errUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ErrorReportDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ErrorReportDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ErrorReportDao_JdbcImpl$findByUidAsync$slambda(this.$errUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ErrorReportDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ErrorReportDao_JdbcImpl$findByUidAsync$slambda_0($errUid, resultContinuation) { var i = new ErrorReportDao_JdbcImpl$findByUidAsync$slambda($errUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5d19x9_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ErrorReportDao_JdbcImpl$findByErrorCode$slambda($errCode, resultContinuation) { this.$errCode_1 = $errCode; CoroutineImpl.call(this, resultContinuation); } protoOf(ErrorReportDao_JdbcImpl$findByErrorCode$slambda).invoke_wmqkwe_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_JdbcImpl$findByErrorCode$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_wmqkwe_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ErrorReportDao_JdbcImpl$findByErrorCode$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$errCode_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ErrorReportDao_JdbcImpl$findByErrorCode$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ErrorReportDao_JdbcImpl$findByErrorCode$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ErrorReportDao_JdbcImpl$findByErrorCode$slambda(this.$errCode_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ErrorReportDao_JdbcImpl$findByErrorCode$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ErrorReportDao_JdbcImpl$findByErrorCode$slambda_0($errCode, resultContinuation) { var i = new ErrorReportDao_JdbcImpl$findByErrorCode$slambda($errCode, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_wmqkwe_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$246(_this__u8e3s4, errorReport, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.errorReport_1 = errorReport; } protoOf($insertAsyncCOROUTINE$246).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterErrorReport_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.errorReport_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ErrorReportDao_JdbcImpl(_db) { ErrorReportDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterErrorReport_abort_1 = new ErrorReportDao_JdbcImpl$_insertAdapterErrorReport_abort$1(this); } protoOf(ErrorReportDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ErrorReportDao_JdbcImpl).get__insertAdapterErrorReport_abort_3gonpp_k$ = function () { return this._insertAdapterErrorReport_abort_1; }; protoOf(ErrorReportDao_JdbcImpl).insertAsync_4gdmm5_k$ = function (errorReport, $completion) { var tmp = new $insertAsyncCOROUTINE$246(this, errorReport, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_JdbcImpl).findByUidAsync_us8x6r_k$ = function (errUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ErrorReport.* \n FROM ErrorReport\n WHERE errUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ErrorReport.* \n FROM ErrorReport\n WHERE errUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ErrorReportDao_JdbcImpl$findByUidAsync$slambda_0(errUid, null), $completion); }; protoOf(ErrorReportDao_JdbcImpl).findByErrorCode_1j2xsp_k$ = function (errCode, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ErrorReport.*\n FROM ErrorReport\n WHERE errorCode = ? \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ErrorReportDao_JdbcImpl$findByErrorCode$slambda_0(errCode, null), $completion); }; function ErrorReportDao_Repo$insertAsync$slambda(this$0, $errorReport, resultContinuation) { this.this$0__1 = this$0; this.$errorReport_1 = $errorReport; CoroutineImpl.call(this, resultContinuation); } protoOf(ErrorReportDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ErrorReportDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_4gdmm5_k$(this.$errorReport_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ErrorReportDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ErrorReportDao_Repo$insertAsync$slambda(this.this$0__1, this.$errorReport_1, completion); }; function ErrorReportDao_Repo$insertAsync$slambda_0(this$0, $errorReport, resultContinuation) { var i = new ErrorReportDao_Repo$insertAsync$slambda(this$0, $errorReport, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$247(_this__u8e3s4, errorReport, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.errorReport_1 = errorReport; } protoOf($insertAsyncCOROUTINE$247).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ErrorReport', ErrorReportDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.errorReport_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$248(_this__u8e3s4, errUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.errUid_1 = errUid; } protoOf($findByUidAsyncCOROUTINE$248).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_us8x6r_k$(this.errUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByErrorCodeCOROUTINE$249(_this__u8e3s4, errCode, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.errCode_1 = errCode; } protoOf($findByErrorCodeCOROUTINE$249).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByErrorCode_1j2xsp_k$(this.errCode_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ErrorReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ErrorReportDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ErrorReportDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ErrorReportDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ErrorReportDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ErrorReportDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ErrorReportDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ErrorReportDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ErrorReportDao_Repo).insertAsync_4gdmm5_k$ = function (errorReport, $completion) { var tmp = new $insertAsyncCOROUTINE$247(this, errorReport, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_Repo).findByUidAsync_us8x6r_k$ = function (errUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$248(this, errUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ErrorReportDao_Repo).findByErrorCode_1j2xsp_k$ = function (errCode, $completion) { var tmp = new $findByErrorCodeCOROUTINE$249(this, errCode, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ExternalAppPermissionDao() { } function ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda$lambda(_result) { return mapNextRow(_result, null, ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda$lambda$lambda(_result)); } function ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda$lambda(_result) { return mapNextRow(_result, null, ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda$lambda$lambda(_result)); } function ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_eapUid = $_result.getInt_npc9pd_k$('eapUid'); var _tmp_eapPersonUid = $_result.getLong_3wgf2g_k$('eapPersonUid'); var _tmp_eapPackageId = $_result.getString_gb1pt9_k$('eapPackageId'); var _tmp_eapStartTime = $_result.getLong_3wgf2g_k$('eapStartTime'); var _tmp_eapExpireTime = $_result.getLong_3wgf2g_k$('eapExpireTime'); var _tmp_eapAuthToken = $_result.getString_gb1pt9_k$('eapAuthToken'); var _tmp_eapAndroidAccountName = $_result.getString_gb1pt9_k$('eapAndroidAccountName'); // Inline function 'kotlin.apply' call var this_0 = new ExternalAppPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ExternalAppPermissionDao_JdbcImpl.getExternalAccessPermissionByUid....' call this_0.set_eapUid_jxz3ht_k$(_tmp_eapUid); this_0.set_eapPersonUid_e2g9uu_k$(_tmp_eapPersonUid); this_0.set_eapPackageId_bi5lzh_k$(_tmp_eapPackageId); this_0.set_eapStartTime_fba5fq_k$(_tmp_eapStartTime); this_0.set_eapExpireTime_ac6c11_k$(_tmp_eapExpireTime); this_0.set_eapAuthToken_vwq5yb_k$(_tmp_eapAuthToken); this_0.set_eapAndroidAccountName_vcye09_k$(_tmp_eapAndroidAccountName); return this_0; }; } function ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda$lambda$lambda(_result)); } function ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ExternalAppPermission (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).bindPreparedStmtToEntity_47kfoi_k$ = function (stmt, entity) { if (entity.get_eapUid_cqlb39_k$() === 0) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setInt_c72a8z_k$(1, entity.get_eapUid_cqlb39_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_eapPersonUid_41az9s_k$()); stmt.setString_2gt7ua_k$(3, entity.get_eapPackageId_jq8uae_k$()); stmt.setLong_j1sybo_k$(4, entity.get_eapStartTime_pqqaw4_k$()); stmt.setLong_j1sybo_k$(5, entity.get_eapExpireTime_t2adp3_k$()); stmt.setString_2gt7ua_k$(6, entity.get_eapAuthToken_dwzjpi_k$()); stmt.setString_2gt7ua_k$(7, entity.get_eapAndroidAccountName_5ppwek_k$()); }; protoOf(ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_47kfoi_k$(stmt, entity instanceof ExternalAppPermission ? entity : THROW_CCE()); }; function ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda($packageId, $personUid, $currentTime, resultContinuation) { this.$packageId_1 = $packageId; this.$personUid_1 = $personUid; this.$currentTime_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$packageId_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$currentTime_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda(this.$packageId_1, this.$personUid_1, this.$currentTime_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda_0($packageId, $personUid, $currentTime, resultContinuation) { var i = new ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda($packageId, $personUid, $currentTime, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda($eapUid, resultContinuation) { this.$eapUid_1 = $eapUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda).invoke_f7h6k4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_f7h6k4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$eapUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda(this.$eapUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda_0($eapUid, resultContinuation) { var i = new ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda($eapUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_f7h6k4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda($token, $currentTime, resultContinuation) { this.$token_1 = $token; this.$currentTime_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$token_1); this._stmt_1.setLong_j1sybo_k$(2, this.$currentTime_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda(this.$token_1, this.$currentTime_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda_0($token, $currentTime, resultContinuation) { var i = new ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda($token, $currentTime, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$250(_this__u8e3s4, externalAppPermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.externalAppPermission_1 = externalAppPermission; } protoOf($insertAsyncCOROUTINE$250).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterExternalAppPermission_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.externalAppPermission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ExternalAppPermissionDao_JdbcImpl(_db) { ExternalAppPermissionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterExternalAppPermission_abort_1 = new ExternalAppPermissionDao_JdbcImpl$_insertAdapterExternalAppPermission_abort$1(this); } protoOf(ExternalAppPermissionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ExternalAppPermissionDao_JdbcImpl).get__insertAdapterExternalAppPermission_abort_jwqa16_k$ = function () { return this._insertAdapterExternalAppPermission_abort_1; }; protoOf(ExternalAppPermissionDao_JdbcImpl).insertAsync_lyfkk_k$ = function (externalAppPermission, $completion) { var tmp = new $insertAsyncCOROUTINE$250(this, externalAppPermission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ExternalAppPermissionDao_JdbcImpl).getGrantedAuthToken_rtkf90_k$ = function (packageId, personUid, currentTime, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ExternalAppPermission.eapAuthToken\n FROM ExternalAppPermission\n WHERE ExternalAppPermission.eapPackageId = ?\n AND ExternalAppPermission.eapPersonUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) BETWEEN ExternalAppPermission.eapStartTime AND ExternalAppPermission.eapExpireTime\n LIMIT 1 \n ', VOID, VOID, VOID, '\n SELECT ExternalAppPermission.eapAuthToken\n FROM ExternalAppPermission\n WHERE ExternalAppPermission.eapPackageId = ?\n AND ExternalAppPermission.eapPersonUid = ?\n AND ? BETWEEN ExternalAppPermission.eapStartTime AND ExternalAppPermission.eapExpireTime\n LIMIT 1 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ExternalAppPermissionDao_JdbcImpl$getGrantedAuthToken$slambda_0(packageId, personUid, currentTime, null), $completion); }; protoOf(ExternalAppPermissionDao_JdbcImpl).getExternalAccessPermissionByUid_7mvrej_k$ = function (eapUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM ExternalAppPermission\n WHERE eapUid = ? \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ExternalAppPermissionDao_JdbcImpl$getExternalAccessPermissionByUid$slambda_0(eapUid, null), $completion); }; protoOf(ExternalAppPermissionDao_JdbcImpl).getPersonUidByAuthToken_keobqe_k$ = function (token, currentTime, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT eapPersonUid\n FROM ExternalAppPermission\n WHERE eapAuthToken = ?\n AND CAST(? AS BIGINT) BETWEEN eapStartTime AND eapExpireTime\n ),\n 0) \n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT eapPersonUid\n FROM ExternalAppPermission\n WHERE eapAuthToken = ?\n AND ? BETWEEN eapStartTime AND eapExpireTime\n ),\n 0) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ExternalAppPermissionDao_JdbcImpl$getPersonUidByAuthToken$slambda_0(token, currentTime, null), $completion); }; function HolidayCalendarDao() { } function _get__db__e63s44_29($this) { return $this._db_1; } function _get__dao__d2kw60_27($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$251(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$251).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_umCalendarUid_hurqun_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(28, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_umCalendarUid_gauo2p_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_umCalendarLct_oo5g1g_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_umCalendarUid_hurqun_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayCalendarDao_DoorWrapper(_db, _dao) { HolidayCalendarDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(HolidayCalendarDao_DoorWrapper).findAllHolidaysWithEntriesCount_bz1ans_k$ = function () { return this._dao_1.findAllHolidaysWithEntriesCount_bz1ans_k$(); }; protoOf(HolidayCalendarDao_DoorWrapper).replaceList_aks1v5_k$ = function (list) { throw IllegalStateException_init_$Create$('replaceList: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayCalendarDao_DoorWrapper).findAllHolidaysLiveData_bgq4ah_k$ = function () { return this._dao_1.findAllHolidaysLiveData_bgq4ah_k$(); }; protoOf(HolidayCalendarDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(HolidayCalendarDao_DoorWrapper).updateAsync_4eitpz_k$ = function (entity, $completion) { entity.set_umCalendarLct_oo5g1g_k$(systemTimeInMillis()); return this._dao_1.updateAsync_4eitpz_k$(entity, $completion); }; protoOf(HolidayCalendarDao_DoorWrapper).findByUid_y6m7d1_k$ = function (uid, $completion) { return this._dao_1.findByUid_y6m7d1_k$(uid, $completion); }; protoOf(HolidayCalendarDao_DoorWrapper).findByUidAsync_wr353r_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_wr353r_k$(uid, $completion); }; protoOf(HolidayCalendarDao_DoorWrapper).insert_u6dwjg_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayCalendarDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_u6dwjg_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; protoOf(HolidayCalendarDao_DoorWrapper).insertAsync_kozsyr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$251(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_kozsyr_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_DoorWrapper).insertList_r5vmzw_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayCalendarDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_r5vmzw_k$(entityList); }; protoOf(HolidayCalendarDao_DoorWrapper).update_9wx90k_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayCalendarDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_9wx90k_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda$lambda(_result) { return mapRows(_result, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numEntries = $_result.getInt_npc9pd_k$('numEntries'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); // Inline function 'kotlin.apply' call var this_0 = new HolidayCalendarWithNumEntries(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_numEntries_p9458f_k$(_tmp_numEntries); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_0.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_0.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_0.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); return this_0; }; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda).invoke_bpp2g8_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bpp2g8_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda(this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bpp2g8_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda_0(resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda$lambda(_result) { return mapRows(_result, HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); // Inline function 'kotlin.apply' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayCalendarDao_JdbcImpl.findAllHolidaysLiveData.....' call this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_0.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_0.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_0.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); return this_0; }; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda).invoke_ddbkyw_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ddbkyw_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda_0(resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ddbkyw_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); // Inline function 'kotlin.apply' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayCalendarDao_JdbcImpl.findByUidLive.....' call this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_0.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_0.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_0.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); return this_0; }; } function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_z3aof1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z3aof1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_z3aof1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, HolidayCalendarDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); // Inline function 'kotlin.apply' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayCalendarDao_JdbcImpl.findByUid....' call this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_0.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_0.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_0.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); return this_0; }; } function HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_umCalendarName = $_result.getString_gb1pt9_k$('umCalendarName'); var _tmp_umCalendarCategory = $_result.getInt_npc9pd_k$('umCalendarCategory'); var _tmp_umCalendarActive = $_result.getBoolean_xz3hoo_k$('umCalendarActive'); var _tmp_umCalendarMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarMasterChangeSeqNum'); var _tmp_umCalendarLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('umCalendarLocalChangeSeqNum'); var _tmp_umCalendarLastChangedBy = $_result.getInt_npc9pd_k$('umCalendarLastChangedBy'); var _tmp_umCalendarLct = $_result.getLong_3wgf2g_k$('umCalendarLct'); // Inline function 'kotlin.apply' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayCalendarDao_JdbcImpl.findByUidAsync....' call this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_umCalendarName_o86x1j_k$(_tmp_umCalendarName); this_0.set_umCalendarCategory_3kgfc9_k$(_tmp_umCalendarCategory); this_0.set_umCalendarActive_chv2ec_k$(_tmp_umCalendarActive); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_tmp_umCalendarMasterChangeSeqNum); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_tmp_umCalendarLocalChangeSeqNum); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_tmp_umCalendarLastChangedBy); this_0.set_umCalendarLct_oo5g1g_k$(_tmp_umCalendarLct); return this_0; }; } function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).bindPreparedStmtToEntity_8e611t_k$ = function (stmt, entity) { if (entity.get_umCalendarUid_hurqun_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_umCalendarUid_hurqun_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_umCalendarName_eqvove_k$()); stmt.setInt_c72a8z_k$(3, entity.get_umCalendarCategory_7svgd9_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_umCalendarActive_ua75np_k$()); stmt.setLong_j1sybo_k$(5, entity.get_umCalendarMasterChangeSeqNum_w1refs_k$()); stmt.setLong_j1sybo_k$(6, entity.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); stmt.setInt_c72a8z_k$(7, entity.get_umCalendarLastChangedBy_k46ara_k$()); stmt.setLong_j1sybo_k$(8, entity.get_umCalendarLct_hurxnm_k$()); }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_8e611t_k$(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).bindPreparedStmtToEntity_8e611t_k$ = function (stmt, entity) { if (entity.get_umCalendarUid_hurqun_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_umCalendarUid_hurqun_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_umCalendarName_eqvove_k$()); stmt.setInt_c72a8z_k$(3, entity.get_umCalendarCategory_7svgd9_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_umCalendarActive_ua75np_k$()); stmt.setLong_j1sybo_k$(5, entity.get_umCalendarMasterChangeSeqNum_w1refs_k$()); stmt.setLong_j1sybo_k$(6, entity.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); stmt.setInt_c72a8z_k$(7, entity.get_umCalendarLastChangedBy_k46ara_k$()); stmt.setLong_j1sybo_k$(8, entity.get_umCalendarLct_hurxnm_k$()); }; protoOf(HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_8e611t_k$(stmt, entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function HolidayCalendarDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_umCalendarName_eqvove_k$()); this._stmt_1.setInt_c72a8z_k$(2, this.$entity_1.get_umCalendarCategory_7svgd9_k$()); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$entity_1.get_umCalendarActive_ua75np_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_umCalendarMasterChangeSeqNum_w1refs_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); this._stmt_1.setInt_c72a8z_k$(6, this.$entity_1.get_umCalendarLastChangedBy_k46ara_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_umCalendarLct_hurxnm_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_umCalendarUid_hurqun_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_umCalendarName_eqvove_k$()); _stmt.setInt_c72a8z_k$(2, $entity.get_umCalendarCategory_7svgd9_k$()); _stmt.setBoolean_pzdm1v_k$(3, $entity.get_umCalendarActive_ua75np_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_umCalendarMasterChangeSeqNum_w1refs_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_umCalendarLastChangedBy_k46ara_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_umCalendarLct_hurxnm_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_umCalendarUid_hurqun_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1(this$0) { this.this$0__1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Holiday', 'HolidayCalendar']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1).loadRows_4sm2bp_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT HolidayCalendar.* ,\n (SELECT COUNT(*) FROM Holiday \n WHERE holHolidayCalendarUid = HolidayCalendar.umCalendarUid \n AND CAST(holActive AS INTEGER) = 1) AS numEntries \n FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND \n umCalendarCategory = 1) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_4sm2bp_k$(_limit, _offset, $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT HolidayCalendar.* ,\n (SELECT COUNT(*) FROM Holiday \n WHERE holHolidayCalendarUid = HolidayCalendar.umCalendarUid \n AND CAST(holActive AS INTEGER) = 1) AS numEntries \n FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND \n umCalendarCategory = 1) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$o$countRows$slambda_0(null), $completion); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda).invoke_pe1xhg_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_pe1xhg_k$($completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND umCalendarCategory = 1', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda).create_d196fn_k$ = function (completion) { return new HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda(this.this$0__1, completion); }; function HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda_0(this$0, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_pe1xhg_k$($completion); }; l.$arity = 0; return l; } function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda).invoke_5i2hsf_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_5i2hsf_k$($completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM HolidayCalendar WHERE umCalendarUid = CAST(? AS BIGINT) AND CAST(umCalendarActive AS INTEGER) = 1', VOID, VOID, VOID, 'SELECT * FROM HolidayCalendar WHERE umCalendarUid = ? AND CAST(umCalendarActive AS INTEGER) = 1\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, HolidayCalendarDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new HolidayCalendarDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function HolidayCalendarDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_5i2hsf_k$($completion); }; l.$arity = 0; return l; } function HolidayCalendarDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findByUid$slambda).invoke_z3aof1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z3aof1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findByUid$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_z3aof1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda).invoke_z3aof1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z3aof1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_z3aof1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$252(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$252).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterHolidayCalendar_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$253(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$253).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE HolidayCalendar SET umCalendarName = ?, umCalendarCategory = ?, umCalendarActive = ?, umCalendarMasterChangeSeqNum = ?, umCalendarLocalChangeSeqNum = ?, umCalendarLastChangedBy = ?, umCalendarLct = ? WHERE umCalendarUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, HolidayCalendarDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayCalendarDao_JdbcImpl(_db) { HolidayCalendarDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterHolidayCalendar_upsert_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterHolidayCalendar_abort_1 = new HolidayCalendarDao_JdbcImpl$_insertAdapterHolidayCalendar_abort$1(this); } protoOf(HolidayCalendarDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(HolidayCalendarDao_JdbcImpl).get__insertAdapterHolidayCalendar_upsert_1zi5aw_k$ = function () { return this._insertAdapterHolidayCalendar_upsert_1; }; protoOf(HolidayCalendarDao_JdbcImpl).get__insertAdapterHolidayCalendar_abort_i2yjfr_k$ = function () { return this._insertAdapterHolidayCalendar_abort_1; }; protoOf(HolidayCalendarDao_JdbcImpl).replaceList_aks1v5_k$ = function (list) { this._insertAdapterHolidayCalendar_upsert_1.insertList_bfvuij_k$(list); }; protoOf(HolidayCalendarDao_JdbcImpl).insert_u6dwjg_k$ = function (entity) { var _retVal = this._insertAdapterHolidayCalendar_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(HolidayCalendarDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_u6dwjg_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; protoOf(HolidayCalendarDao_JdbcImpl).insertAsync_kozsyr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$252(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_kozsyr_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl).insertList_r5vmzw_k$ = function (entityList) { this._insertAdapterHolidayCalendar_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(HolidayCalendarDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_r5vmzw_k$(entityList); }; protoOf(HolidayCalendarDao_JdbcImpl).updateAsync_4eitpz_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$253(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_JdbcImpl).update_9wx90k_k$ = function (entity) { var _sql = 'UPDATE HolidayCalendar SET umCalendarName = ?, umCalendarCategory = ?, umCalendarActive = ?, umCalendarMasterChangeSeqNum = ?, umCalendarLocalChangeSeqNum = ?, umCalendarLastChangedBy = ?, umCalendarLct = ? WHERE umCalendarUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, HolidayCalendarDao_JdbcImpl$update$lambda(entity)); }; protoOf(HolidayCalendarDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_9wx90k_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; protoOf(HolidayCalendarDao_JdbcImpl).findAllHolidaysWithEntriesCount_bz1ans_k$ = function () { return new HolidayCalendarDao_JdbcImpl$findAllHolidaysWithEntriesCount$1(this); }; protoOf(HolidayCalendarDao_JdbcImpl).findAllHolidaysLiveData_bgq4ah_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['HolidayCalendar']; return doorFlow(this._db_1, tmp, HolidayCalendarDao_JdbcImpl$findAllHolidaysLiveData$slambda_0(this, null)); }; protoOf(HolidayCalendarDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['HolidayCalendar']; return doorFlow(this._db_1, tmp, HolidayCalendarDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(HolidayCalendarDao_JdbcImpl).findByUid_y6m7d1_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM HolidayCalendar WHERE umCalendarUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM HolidayCalendar WHERE umCalendarUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, HolidayCalendarDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; protoOf(HolidayCalendarDao_JdbcImpl).findByUidAsync_wr353r_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM HolidayCalendar WHERE umCalendarUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM HolidayCalendar WHERE umCalendarUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, HolidayCalendarDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; function HolidayCalendarDao_Repo$replaceList$lambda(this$0, $list) { return function () { this$0._dao_1.replaceList_aks1v5_k$($list); return Unit_getInstance(); }; } function HolidayCalendarDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(HolidayCalendarDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_4eitpz_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayCalendarDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function HolidayCalendarDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayCalendarDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function HolidayCalendarDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayCalendarDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayCalendarDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function HolidayCalendarDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayCalendarDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function HolidayCalendarDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function HolidayCalendarDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $updateAsyncCOROUTINE$254(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$254).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidCOROUTINE$255(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidCOROUTINE$255).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_y6m7d1_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$256(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$256).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_wr353r_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$257(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$257).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayCalendarDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { HolidayCalendarDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(HolidayCalendarDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(HolidayCalendarDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(HolidayCalendarDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(HolidayCalendarDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(HolidayCalendarDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(HolidayCalendarDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(HolidayCalendarDao_Repo).findAllHolidaysWithEntriesCount_bz1ans_k$ = function () { var _result = this._dao_1.findAllHolidaysWithEntriesCount_bz1ans_k$(); return _result; }; protoOf(HolidayCalendarDao_Repo).replaceList_aks1v5_k$ = function (list) { withRepoChangeMonitor(this._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$replaceList$lambda(this, list)); }; protoOf(HolidayCalendarDao_Repo).findAllHolidaysLiveData_bgq4ah_k$ = function () { var _result = this._dao_1.findAllHolidaysLiveData_bgq4ah_k$(); return _result; }; protoOf(HolidayCalendarDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(HolidayCalendarDao_Repo).updateAsync_4eitpz_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$254(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo).findByUid_y6m7d1_k$ = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$255(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo).findByUidAsync_wr353r_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$256(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo).insert_u6dwjg_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(HolidayCalendarDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_u6dwjg_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; protoOf(HolidayCalendarDao_Repo).insertAsync_kozsyr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$257(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayCalendarDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_kozsyr_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE(), $completion); }; protoOf(HolidayCalendarDao_Repo).insertList_r5vmzw_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$insertList$lambda(this, entityList)); }; protoOf(HolidayCalendarDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_r5vmzw_k$(entityList); }; protoOf(HolidayCalendarDao_Repo).update_9wx90k_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'HolidayCalendar', HolidayCalendarDao_Repo$update$lambda(this, entity)); }; protoOf(HolidayCalendarDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_9wx90k_k$(entity instanceof HolidayCalendar ? entity : THROW_CCE()); }; function HolidayDao() { } function _get__db__e63s44_30($this) { return $this._db_1; } function _get__dao__d2kw60_28($this) { return $this._dao_1; } function $updateAsyncCOROUTINE$258(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$258).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_holUid_edcqms_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(99, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_holUid_koi4h6_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_holLct_cb7cif_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.updateAsync_wi2ev_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$259(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$259).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_holUid_edcqms_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(99, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_holUid_koi4h6_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_holLct_cb7cif_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_holUid_edcqms_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertListAsyncCOROUTINE$260(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$260).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_holUid_edcqms_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(99, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_holUid_koi4h6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_holLct_cb7cif_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_it2cbm_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayDao_DoorWrapper(_db, _dao) { HolidayDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(HolidayDao_DoorWrapper).findByHolidayCalendaUid_w7evwq_k$ = function (holidayCalendarUid) { throw IllegalStateException_init_$Create$('findByHolidayCalendaUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayDao_DoorWrapper).findByHolidayCalendaUidAsync_jcotpc_k$ = function (holidayCalendarUid, $completion) { return this._dao_1.findByHolidayCalendaUidAsync_jcotpc_k$(holidayCalendarUid, $completion); }; protoOf(HolidayDao_DoorWrapper).updateActiveByUid_frkibh_k$ = function (holidayUid, active, changeTime) { throw IllegalStateException_init_$Create$('updateActiveByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayDao_DoorWrapper).updateAsync_wi2ev_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$258(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_DoorWrapper).insert_mcfc2u_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_mcfc2u_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_DoorWrapper).insertAsync_v32w1r_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$259(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_v32w1r_k$(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; protoOf(HolidayDao_DoorWrapper).insertList_b8mvp2_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_b8mvp2_k$(entityList); }; protoOf(HolidayDao_DoorWrapper).update_yeojie_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(HolidayDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_yeojie_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_DoorWrapper).insertListAsync_bq920t_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$260(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_DoorWrapper).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_bq920t_k$(entityList, $completion); }; protoOf(HolidayDao_DoorWrapper).updateListAsync_jrz1jn_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.HolidayDao_DoorWrapper.updateListAsync.' call element.set_holLct_cb7cif_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_mdh99q_k$(entityList, $completion); }; protoOf(HolidayDao_DoorWrapper).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_jrz1jn_k$(entityList, $completion); }; function HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda$lambda(_result) { return mapRows(_result, HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda$lambda$lambda(_result)); } function HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_holUid = $_result.getLong_3wgf2g_k$('holUid'); var _tmp_holMasterCsn = $_result.getLong_3wgf2g_k$('holMasterCsn'); var _tmp_holLocalCsn = $_result.getLong_3wgf2g_k$('holLocalCsn'); var _tmp_holLastModBy = $_result.getInt_npc9pd_k$('holLastModBy'); var _tmp_holLct = $_result.getLong_3wgf2g_k$('holLct'); var _tmp_holActive = $_result.getBoolean_xz3hoo_k$('holActive'); var _tmp_holHolidayCalendarUid = $_result.getLong_3wgf2g_k$('holHolidayCalendarUid'); var _tmp_holStartTime = $_result.getLong_3wgf2g_k$('holStartTime'); var _tmp_holEndTime = $_result.getLong_3wgf2g_k$('holEndTime'); var _tmp_holName = $_result.getString_gb1pt9_k$('holName'); // Inline function 'kotlin.apply' call var this_0 = new Holiday(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayDao_JdbcImpl.findByHolidayCalendaUidAsync....' call this_0.set_holUid_koi4h6_k$(_tmp_holUid); this_0.set_holMasterCsn_vcrmom_k$(_tmp_holMasterCsn); this_0.set_holLocalCsn_6mmnml_k$(_tmp_holLocalCsn); this_0.set_holLastModBy_rro565_k$(_tmp_holLastModBy); this_0.set_holLct_cb7cif_k$(_tmp_holLct); this_0.set_holActive_uxyy6f_k$(_tmp_holActive); this_0.set_holHolidayCalendarUid_clqie4_k$(_tmp_holHolidayCalendarUid); this_0.set_holStartTime_lx70p5_k$(_tmp_holStartTime); this_0.set_holEndTime_3okony_k$(_tmp_holEndTime); this_0.set_holName_tr033w_k$(_tmp_holName); return this_0; }; } function HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).bindPreparedStmtToEntity_3tsxe9_k$ = function (stmt, entity) { if (entity.get_holUid_edcqms_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_holUid_edcqms_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_holMasterCsn_mycwxs_k$()); stmt.setLong_j1sybo_k$(3, entity.get_holLocalCsn_rieohd_k$()); stmt.setInt_c72a8z_k$(4, entity.get_holLastModBy_ijvg55_k$()); stmt.setLong_j1sybo_k$(5, entity.get_holLct_edcjtt_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_holActive_bvtv5u_k$()); stmt.setLong_j1sybo_k$(7, entity.get_holHolidayCalendarUid_x3rlpy_k$()); stmt.setLong_j1sybo_k$(8, entity.get_holStartTime_fr652l_k$()); stmt.setLong_j1sybo_k$(9, entity.get_holEndTime_5vy3t8_k$()); stmt.setString_2gt7ua_k$(10, entity.get_holName_jb5z7r_k$()); }; protoOf(HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_3tsxe9_k$(stmt, entity instanceof Holiday ? entity : THROW_CCE()); }; function HolidayDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_holMasterCsn_mycwxs_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_holLocalCsn_rieohd_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_holLastModBy_ijvg55_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_holLct_edcjtt_k$()); _stmt.setBoolean_pzdm1v_k$(5, $entity.get_holActive_bvtv5u_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_holHolidayCalendarUid_x3rlpy_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_holStartTime_fr652l_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_holEndTime_5vy3t8_k$()); _stmt.setString_2gt7ua_k$(9, $entity.get_holName_jb5z7r_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_holUid_edcqms_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function HolidayDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation) { this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entityList_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setLong_j1sybo_k$(1, this._entity1__1.get_holMasterCsn_mycwxs_k$()); this._stmt_1.setLong_j1sybo_k$(2, this._entity1__1.get_holLocalCsn_rieohd_k$()); this._stmt_1.setInt_c72a8z_k$(3, this._entity1__1.get_holLastModBy_ijvg55_k$()); this._stmt_1.setLong_j1sybo_k$(4, this._entity1__1.get_holLct_edcjtt_k$()); this._stmt_1.setBoolean_pzdm1v_k$(5, this._entity1__1.get_holActive_bvtv5u_k$()); this._stmt_1.setLong_j1sybo_k$(6, this._entity1__1.get_holHolidayCalendarUid_x3rlpy_k$()); this._stmt_1.setLong_j1sybo_k$(7, this._entity1__1.get_holStartTime_fr652l_k$()); this._stmt_1.setLong_j1sybo_k$(8, this._entity1__1.get_holEndTime_5vy3t8_k$()); this._stmt_1.setString_2gt7ua_k$(9, this._entity1__1.get_holName_jb5z7r_k$()); this._stmt_1.setLong_j1sybo_k$(10, this._entity1__1.get_holUid_edcqms_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayDao_JdbcImpl$updateListAsync$slambda(this.$entityList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayDao_JdbcImpl$updateListAsync$slambda_0($entityList, resultContinuation) { var i = new HolidayDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda$lambda(_result) { return mapRows(_result, HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda$lambda$lambda(_result)); } function HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_holUid = $_result.getLong_3wgf2g_k$('holUid'); var _tmp_holMasterCsn = $_result.getLong_3wgf2g_k$('holMasterCsn'); var _tmp_holLocalCsn = $_result.getLong_3wgf2g_k$('holLocalCsn'); var _tmp_holLastModBy = $_result.getInt_npc9pd_k$('holLastModBy'); var _tmp_holLct = $_result.getLong_3wgf2g_k$('holLct'); var _tmp_holActive = $_result.getBoolean_xz3hoo_k$('holActive'); var _tmp_holHolidayCalendarUid = $_result.getLong_3wgf2g_k$('holHolidayCalendarUid'); var _tmp_holStartTime = $_result.getLong_3wgf2g_k$('holStartTime'); var _tmp_holEndTime = $_result.getLong_3wgf2g_k$('holEndTime'); var _tmp_holName = $_result.getString_gb1pt9_k$('holName'); // Inline function 'kotlin.apply' call var this_0 = new Holiday(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.HolidayDao_JdbcImpl.findByHolidayCalendaUid....' call this_0.set_holUid_koi4h6_k$(_tmp_holUid); this_0.set_holMasterCsn_vcrmom_k$(_tmp_holMasterCsn); this_0.set_holLocalCsn_6mmnml_k$(_tmp_holLocalCsn); this_0.set_holLastModBy_rro565_k$(_tmp_holLastModBy); this_0.set_holLct_cb7cif_k$(_tmp_holLct); this_0.set_holActive_uxyy6f_k$(_tmp_holActive); this_0.set_holHolidayCalendarUid_clqie4_k$(_tmp_holHolidayCalendarUid); this_0.set_holStartTime_lx70p5_k$(_tmp_holStartTime); this_0.set_holEndTime_3okony_k$(_tmp_holEndTime); this_0.set_holName_tr033w_k$(_tmp_holName); return this_0; }; } function HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda($holidayCalendarUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $holidayCalendarUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda$lambda); }; } function HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda($holidayCalendarUid, resultContinuation) { this.$holidayCalendarUid_1 = $holidayCalendarUid; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda).invoke_kq703u_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_kq703u_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$holidayCalendarUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda(this.$holidayCalendarUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda_0($holidayCalendarUid, resultContinuation) { var i = new HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda($holidayCalendarUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_kq703u_k$(_stmt, $completion); }; l.$arity = 1; return l; } function HolidayDao_JdbcImpl$updateActiveByUid$lambda($active, $changeTime, $holidayUid) { return function (_stmt) { _stmt.setBoolean_pzdm1v_k$(1, $active); _stmt.setLong_j1sybo_k$(2, $changeTime); _stmt.setLong_j1sybo_k$(3, $holidayUid); return _stmt.executeUpdate_fapcbi_k$(); }; } function $insertAsyncCOROUTINE$261(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$261).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterHoliday_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayDao_JdbcImpl(_db) { HolidayDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterHoliday_abort_1 = new HolidayDao_JdbcImpl$_insertAdapterHoliday_abort$1(this); } protoOf(HolidayDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(HolidayDao_JdbcImpl).get__insertAdapterHoliday_abort_f2gtmx_k$ = function () { return this._insertAdapterHoliday_abort_1; }; protoOf(HolidayDao_JdbcImpl).updateAsync_wi2ev_k$ = function (entity, $completion) { return this._insertAdapterHoliday_abort_1.insertAsync_kic9b7_k$(entity, $completion); }; protoOf(HolidayDao_JdbcImpl).insert_mcfc2u_k$ = function (entity) { var _retVal = this._insertAdapterHoliday_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(HolidayDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_mcfc2u_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_JdbcImpl).insertAsync_v32w1r_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$261(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_v32w1r_k$(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; protoOf(HolidayDao_JdbcImpl).insertList_b8mvp2_k$ = function (entityList) { this._insertAdapterHoliday_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(HolidayDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_b8mvp2_k$(entityList); }; protoOf(HolidayDao_JdbcImpl).insertListAsync_bq920t_k$ = function (entityList, $completion) { return this._insertAdapterHoliday_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(HolidayDao_JdbcImpl).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_bq920t_k$(entityList, $completion); }; protoOf(HolidayDao_JdbcImpl).update_yeojie_k$ = function (entity) { var _sql = 'UPDATE Holiday SET holMasterCsn = ?, holLocalCsn = ?, holLastModBy = ?, holLct = ?, holActive = ?, holHolidayCalendarUid = ?, holStartTime = ?, holEndTime = ?, holName = ? WHERE holUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, HolidayDao_JdbcImpl$update$lambda(entity)); }; protoOf(HolidayDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_yeojie_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_JdbcImpl).updateListAsync_jrz1jn_k$ = function (entityList, $completion) { var _sql = 'UPDATE Holiday SET holMasterCsn = ?, holLocalCsn = ?, holLastModBy = ?, holLct = ?, holActive = ?, holHolidayCalendarUid = ?, holStartTime = ?, holEndTime = ?, holName = ? WHERE holUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, HolidayDao_JdbcImpl$updateListAsync$slambda_0(entityList, null), $completion); }; protoOf(HolidayDao_JdbcImpl).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_jrz1jn_k$(entityList, $completion); }; protoOf(HolidayDao_JdbcImpl).findByHolidayCalendaUid_w7evwq_k$ = function (holidayCalendarUid) { var tmp = new PreparedStatementConfig('SELECT * FROM Holiday WHERE holHolidayCalendarUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Holiday WHERE holHolidayCalendarUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, HolidayDao_JdbcImpl$findByHolidayCalendaUid$lambda(holidayCalendarUid)); }; protoOf(HolidayDao_JdbcImpl).findByHolidayCalendaUidAsync_jcotpc_k$ = function (holidayCalendarUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Holiday WHERE holHolidayCalendarUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Holiday WHERE holHolidayCalendarUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, HolidayDao_JdbcImpl$findByHolidayCalendaUidAsync$slambda_0(holidayCalendarUid, null), $completion); }; protoOf(HolidayDao_JdbcImpl).updateActiveByUid_frkibh_k$ = function (holidayUid, active, changeTime) { var tmp = new PreparedStatementConfig('\n UPDATE Holiday \n SET holActive = ?, \n holLct = CAST(? AS BIGINT)\n WHERE holUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE Holiday \n SET holActive = ?, \n holLct = ?\n WHERE holUid = ?\n', false); prepareAndUseStatement_0(this._db_1, tmp, HolidayDao_JdbcImpl$updateActiveByUid$lambda(active, changeTime, holidayUid)); }; function HolidayDao_Repo$updateActiveByUid$lambda(this$0, $holidayUid, $active, $changeTime) { return function () { this$0._dao_1.updateActiveByUid_frkibh_k$($holidayUid, $active, $changeTime); return Unit_getInstance(); }; } function HolidayDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(HolidayDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_wi2ev_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function HolidayDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function HolidayDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(HolidayDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function HolidayDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new HolidayDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function HolidayDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function HolidayDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function HolidayDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(HolidayDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_it2cbm_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function HolidayDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new HolidayDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function HolidayDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(HolidayDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(HolidayDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_mdh99q_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(HolidayDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new HolidayDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function HolidayDao_Repo$updateListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new HolidayDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByHolidayCalendaUidAsyncCOROUTINE$262(_this__u8e3s4, holidayCalendarUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.holidayCalendarUid_1 = holidayCalendarUid; } protoOf($findByHolidayCalendaUidAsyncCOROUTINE$262).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByHolidayCalendaUidAsync_jcotpc_k$(this.holidayCalendarUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$263(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$263).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Holiday', HolidayDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function HolidayDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { HolidayDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(HolidayDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(HolidayDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(HolidayDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(HolidayDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(HolidayDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(HolidayDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(HolidayDao_Repo).findByHolidayCalendaUid_w7evwq_k$ = function (holidayCalendarUid) { var _result = this._dao_1.findByHolidayCalendaUid_w7evwq_k$(holidayCalendarUid); return _result; }; protoOf(HolidayDao_Repo).findByHolidayCalendaUidAsync_jcotpc_k$ = function (holidayCalendarUid, $completion) { var tmp = new $findByHolidayCalendaUidAsyncCOROUTINE$262(this, holidayCalendarUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo).updateActiveByUid_frkibh_k$ = function (holidayUid, active, changeTime) { withRepoChangeMonitor(this._repo_1, 'Holiday', HolidayDao_Repo$updateActiveByUid$lambda(this, holidayUid, active, changeTime)); }; protoOf(HolidayDao_Repo).updateAsync_wi2ev_k$ = function (entity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Holiday', HolidayDao_Repo$updateAsync$slambda_0(this, entity, null), $completion); }; protoOf(HolidayDao_Repo).insert_mcfc2u_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Holiday', HolidayDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(HolidayDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_mcfc2u_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_Repo).insertAsync_v32w1r_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$263(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(HolidayDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_v32w1r_k$(entity instanceof Holiday ? entity : THROW_CCE(), $completion); }; protoOf(HolidayDao_Repo).insertList_b8mvp2_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Holiday', HolidayDao_Repo$insertList$lambda(this, entityList)); }; protoOf(HolidayDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_b8mvp2_k$(entityList); }; protoOf(HolidayDao_Repo).update_yeojie_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Holiday', HolidayDao_Repo$update$lambda(this, entity)); }; protoOf(HolidayDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_yeojie_k$(entity instanceof Holiday ? entity : THROW_CCE()); }; protoOf(HolidayDao_Repo).insertListAsync_bq920t_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Holiday', HolidayDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(HolidayDao_Repo).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_bq920t_k$(entityList, $completion); }; protoOf(HolidayDao_Repo).updateListAsync_jrz1jn_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Holiday', HolidayDao_Repo$updateListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(HolidayDao_Repo).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_jrz1jn_k$(entityList, $completion); }; function LanguageDao() { } function _get__db__e63s44_31($this) { return $this._db_1; } function _get__dao__d2kw60_29($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$264(_this__u8e3s4, languageList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.languageList_1 = languageList; } protoOf($insertListAsyncCOROUTINE$264).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.languageList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_langUid_ejnh5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_langUid_ci1fyx_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_langLct_kvc7xo_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_aob9pt_k$(this.languageList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$265(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$265).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_langUid_ejnh5_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(13, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_langUid_ci1fyx_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_langLct_kvc7xo_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_langUid_ejnh5_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageDao_DoorWrapper(_db, _dao) { LanguageDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(LanguageDao_DoorWrapper).insertListAsync_aob9pt_k$ = function (languageList, $completion) { var tmp = new $insertListAsyncCOROUTINE$264(this, languageList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_DoorWrapper).findLanguagesAsSource_yzx70x_k$ = function (sortOrder, searchText) { return this._dao_1.findLanguagesAsSource_yzx70x_k$(sortOrder, searchText); }; protoOf(LanguageDao_DoorWrapper).findLanguagesList_szsu00_k$ = function () { throw IllegalStateException_init_$Create$('findLanguagesList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).findByName_f0775r_k$ = function (name) { throw IllegalStateException_init_$Create$('findByName: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).findByTwoCode_dxz78v_k$ = function (langCode) { throw IllegalStateException_init_$Create$('findByTwoCode: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).findByTwoCodeAsync_jw2mo4_k$ = function (langCode, $completion) { return this._dao_1.findByTwoCodeAsync_jw2mo4_k$(langCode, $completion); }; protoOf(LanguageDao_DoorWrapper).findByThreeCode_j7wkqn_k$ = function (langCode) { throw IllegalStateException_init_$Create$('findByThreeCode: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).totalLanguageCount_n0irm5_k$ = function () { throw IllegalStateException_init_$Create$('totalLanguageCount: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).update_5gzexo_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_5gzexo_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_DoorWrapper).findByUid_w1fpv2_k$ = function (primaryLanguageUid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).findByUidAsync_9jt13j_k$ = function (primaryLanguageUid, $completion) { return this._dao_1.findByUidAsync_9jt13j_k$(primaryLanguageUid, $completion); }; protoOf(LanguageDao_DoorWrapper).updateAsync_xb07dp_k$ = function (entity, $completion) { entity.set_langLct_kvc7xo_k$(systemTimeInMillis()); return this._dao_1.updateAsync_xb07dp_k$(entity, $completion); }; protoOf(LanguageDao_DoorWrapper).findAllLanguageLive_r3hrv8_k$ = function () { return this._dao_1.findAllLanguageLive_r3hrv8_k$(); }; protoOf(LanguageDao_DoorWrapper).findByUidList_m9ustk_k$ = function (uidList) { throw IllegalStateException_init_$Create$('findByUidList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).toggleVisibilityLanguage_n0lugq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { return this._dao_1.toggleVisibilityLanguage_n0lugq_k$(toggleVisibility, selectedItem, updateTime, $completion); }; protoOf(LanguageDao_DoorWrapper).replaceList_me8tz_k$ = function (entityList) { throw IllegalStateException_init_$Create$('replaceList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).insert_umzx0k_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_umzx0k_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_DoorWrapper).insertAsync_f4n92h_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$265(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_f4n92h_k$(entity instanceof Language ? entity : THROW_CCE(), $completion); }; protoOf(LanguageDao_DoorWrapper).insertList_boc44c_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_boc44c_k$(entityList); }; function LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda($searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda).invoke_qt5i80_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qt5i80_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(2, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(3, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(5, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda(this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda_0($searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda($searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qt5i80_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda($searchText, $sortOrder, resultContinuation) { this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(2, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(3, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda(this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda_0($searchText, $sortOrder, resultContinuation) { var i = new LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda($searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByTwoCodeAsync....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByUidAsync....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda$lambda(_result) { return mapRows(_result, LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findAllLanguageLive.....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda).invoke_qt5i80_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qt5i80_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda_0(resultContinuation) { var i = new LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qt5i80_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).bindPreparedStmtToEntity_u1qqtj_k$ = function (stmt, entity) { if (entity.get_langUid_ejnh5_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_langUid_ejnh5_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_name_woqyms_k$()); stmt.setString_2gt7ua_k$(3, entity.get_iso_639_1_standard_spkz1r_k$()); stmt.setString_2gt7ua_k$(4, entity.get_iso_639_2_standard_vykxu8_k$()); stmt.setString_2gt7ua_k$(5, entity.get_iso_639_3_standard_z7kwmp_k$()); stmt.setString_2gt7ua_k$(6, entity.get_Language_Type_55wja0_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_languageActive_km5lzb_k$()); stmt.setLong_j1sybo_k$(8, entity.get_langLocalChangeSeqNum_t6xedn_k$()); stmt.setLong_j1sybo_k$(9, entity.get_langMasterChangeSeqNum_z4cpe8_k$()); stmt.setInt_c72a8z_k$(10, entity.get_langLastChangedBy_mb75qa_k$()); stmt.setLong_j1sybo_k$(11, entity.get_langLct_ejgo6_k$()); }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_u1qqtj_k$(stmt, entity instanceof Language ? entity : THROW_CCE()); }; function LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).bindPreparedStmtToEntity_u1qqtj_k$ = function (stmt, entity) { if (entity.get_langUid_ejnh5_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_langUid_ejnh5_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_name_woqyms_k$()); stmt.setString_2gt7ua_k$(3, entity.get_iso_639_1_standard_spkz1r_k$()); stmt.setString_2gt7ua_k$(4, entity.get_iso_639_2_standard_vykxu8_k$()); stmt.setString_2gt7ua_k$(5, entity.get_iso_639_3_standard_z7kwmp_k$()); stmt.setString_2gt7ua_k$(6, entity.get_Language_Type_55wja0_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_languageActive_km5lzb_k$()); stmt.setLong_j1sybo_k$(8, entity.get_langLocalChangeSeqNum_t6xedn_k$()); stmt.setLong_j1sybo_k$(9, entity.get_langMasterChangeSeqNum_z4cpe8_k$()); stmt.setInt_c72a8z_k$(10, entity.get_langLastChangedBy_mb75qa_k$()); stmt.setLong_j1sybo_k$(11, entity.get_langLct_ejgo6_k$()); }; protoOf(LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_u1qqtj_k$(stmt, entity instanceof Language ? entity : THROW_CCE()); }; function LanguageDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_name_woqyms_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_iso_639_1_standard_spkz1r_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_iso_639_2_standard_vykxu8_k$()); _stmt.setString_2gt7ua_k$(4, $entity.get_iso_639_3_standard_z7kwmp_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_Language_Type_55wja0_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_languageActive_km5lzb_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_langLocalChangeSeqNum_t6xedn_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_langMasterChangeSeqNum_z4cpe8_k$()); _stmt.setInt_c72a8z_k$(9, $entity.get_langLastChangedBy_mb75qa_k$()); _stmt.setLong_j1sybo_k$(10, $entity.get_langLct_ejgo6_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_langUid_ejnh5_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function LanguageDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_name_woqyms_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_iso_639_1_standard_spkz1r_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$entity_1.get_iso_639_2_standard_vykxu8_k$()); this._stmt_1.setString_2gt7ua_k$(4, this.$entity_1.get_iso_639_3_standard_z7kwmp_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$entity_1.get_Language_Type_55wja0_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$entity_1.get_languageActive_km5lzb_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_langLocalChangeSeqNum_t6xedn_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_langMasterChangeSeqNum_z4cpe8_k$()); this._stmt_1.setInt_c72a8z_k$(9, this.$entity_1.get_langLastChangedBy_mb75qa_k$()); this._stmt_1.setLong_j1sybo_k$(10, this.$entity_1.get_langLct_ejgo6_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_langUid_ejnh5_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new LanguageDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$findLanguagesAsSource$1(this$0, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Language']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$1).loadRows_ozr8ul_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Language.* \n FROM Language\n WHERE name LIKE ?\n ORDER BY CASE(?)\n WHEN 1 THEN Language.name \n WHEN 3 THEN Language.iso_639_1_standard \n WHEN 5 THEN Language.iso_639_2_standard \n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Language.name \n WHEN 4 THEN Language.iso_639_1_standard \n WHEN 6 THEN Language.iso_639_2_standard \n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, LanguageDao_JdbcImpl$findLanguagesAsSource$o$loadRows$slambda_0(this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_ozr8ul_k$(_limit, _offset, $completion); }; protoOf(LanguageDao_JdbcImpl$findLanguagesAsSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Language.* \n FROM Language\n WHERE name LIKE ?\n ORDER BY CASE(?)\n WHEN 1 THEN Language.name \n WHEN 3 THEN Language.iso_639_1_standard \n WHEN 5 THEN Language.iso_639_2_standard \n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Language.name \n WHEN 4 THEN Language.iso_639_1_standard \n WHEN 6 THEN Language.iso_639_2_standard \n ELSE ''\n END DESC\n ) AS _PagingCount", VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, LanguageDao_JdbcImpl$findLanguagesAsSource$o$countRows$slambda_0(this.$searchText_1, this.$sortOrder_1, null), $completion); }; function LanguageDao_JdbcImpl$findLanguagesList$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$findLanguagesList$lambda$lambda); } function LanguageDao_JdbcImpl$findLanguagesList$lambda$lambda(_result) { return mapRows(_result, LanguageDao_JdbcImpl$findLanguagesList$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findLanguagesList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findLanguagesList....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByName$lambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByName$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByName$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByName....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByName$lambda($name) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $name); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$findByName$lambda$lambda); }; } function LanguageDao_JdbcImpl$findByTwoCode$lambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByTwoCode$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByTwoCode$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByTwoCode....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByTwoCode$lambda($langCode) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $langCode); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$findByTwoCode$lambda$lambda); }; } function LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda($langCode, resultContinuation) { this.$langCode_1 = $langCode; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda).invoke_ijk2k7_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ijk2k7_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$langCode_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda(this.$langCode_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda_0($langCode, resultContinuation) { var i = new LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda($langCode, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ijk2k7_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$findByThreeCode$lambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByThreeCode$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByThreeCode$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByThreeCode....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByThreeCode$lambda($langCode) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $langCode); _stmt.setString_2gt7ua_k$(2, $langCode); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$findByThreeCode$lambda$lambda); }; } function LanguageDao_JdbcImpl$totalLanguageCount$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$totalLanguageCount$lambda$lambda); } function LanguageDao_JdbcImpl$totalLanguageCount$lambda$lambda(_result) { return mapNextRow(_result, 0, LanguageDao_JdbcImpl$totalLanguageCount$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$totalLanguageCount$lambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function LanguageDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, LanguageDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageDao_JdbcImpl.findByUid....' call this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_0.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_0.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_0.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_0.set_languageActive_33gxtm_k$(_tmp_languageActive); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_0.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_0.set_langLct_kvc7xo_k$(_tmp_langLct); return this_0; }; } function LanguageDao_JdbcImpl$findByUid$lambda($primaryLanguageUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $primaryLanguageUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageDao_JdbcImpl$findByUid$lambda$lambda); }; } function LanguageDao_JdbcImpl$findByUidAsync$slambda($primaryLanguageUid, resultContinuation) { this.$primaryLanguageUid_1 = $primaryLanguageUid; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findByUidAsync$slambda).invoke_ijk2k7_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ijk2k7_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$primaryLanguageUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LanguageDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$findByUidAsync$slambda(this.$primaryLanguageUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$findByUidAsync$slambda_0($primaryLanguageUid, resultContinuation) { var i = new LanguageDao_JdbcImpl$findByUidAsync$slambda($primaryLanguageUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ijk2k7_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LanguageDao_JdbcImpl$findAllLanguageLive$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda).invoke_t9il64_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_t9il64_k$($completion); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM LANGUAGE', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, LanguageDao_JdbcImpl$findAllLanguageLive$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$findAllLanguageLive$slambda).create_d196fn_k$ = function (completion) { return new LanguageDao_JdbcImpl$findAllLanguageLive$slambda(this.this$0__1, completion); }; function LanguageDao_JdbcImpl$findAllLanguageLive$slambda_0(this$0, resultContinuation) { var i = new LanguageDao_JdbcImpl$findAllLanguageLive$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_t9il64_k$($completion); }; l.$arity = 0; return l; } function LanguageDao_JdbcImpl$findByUidList$lambda$lambda(_result) { return mapRows(_result, LanguageDao_JdbcImpl$findByUidList$lambda$lambda$lambda(_result)); } function LanguageDao_JdbcImpl$findByUidList$lambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function LanguageDao_JdbcImpl$findByUidList$lambda($uidList) { return function (_stmt) { var tmp = _stmt.getConnection_hr2oto_k$(); // Inline function 'kotlin.collections.toTypedArray' call var this_0 = $uidList; var tmp$ret$0 = copyToArray(this_0); _stmt.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp, 'BIGINT', tmp$ret$0)); var tmp_0 = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp_0, LanguageDao_JdbcImpl$findByUidList$lambda$lambda); }; } function LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda($toggleVisibility, $updateTime, $selectedItem, resultContinuation) { this.$toggleVisibility_1 = $toggleVisibility; this.$updateTime_1 = $updateTime; this.$selectedItem_1 = $selectedItem; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$toggleVisibility_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$selectedItem_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda(this.$toggleVisibility_1, this.$updateTime_1, this.$selectedItem_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda_0($toggleVisibility, $updateTime, $selectedItem, resultContinuation) { var i = new LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda($toggleVisibility, $updateTime, $selectedItem, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$266(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$266).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterLanguage_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$267(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$267).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE Language SET name = ?, iso_639_1_standard = ?, iso_639_2_standard = ?, iso_639_3_standard = ?, Language_Type = ?, languageActive = ?, langLocalChangeSeqNum = ?, langMasterChangeSeqNum = ?, langLastChangedBy = ?, langLct = ? WHERE langUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, LanguageDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $toggleVisibilityLanguageCOROUTINE$268(_this__u8e3s4, toggleVisibility, selectedItem, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.toggleVisibility_1 = toggleVisibility; this.selectedItem_1 = selectedItem; this.updateTime_1 = updateTime; } protoOf($toggleVisibilityLanguageCOROUTINE$268).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE Language \n SET languageActive = ?, \n langLct = CAST(? AS BIGINT)\n WHERE langUid IN (?)', true, VOID, VOID, '\n UPDATE Language \n SET languageActive = ?, \n langLct = ?\n WHERE langUid IN (?)\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, LanguageDao_JdbcImpl$toggleVisibilityLanguage$slambda_0(this.toggleVisibility_1, this.updateTime_1, this.selectedItem_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageDao_JdbcImpl(_db) { LanguageDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterLanguage_abort_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterLanguage_upsert_1 = new LanguageDao_JdbcImpl$_insertAdapterLanguage_upsert$1(this); } protoOf(LanguageDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LanguageDao_JdbcImpl).get__insertAdapterLanguage_abort_7boirt_k$ = function () { return this._insertAdapterLanguage_abort_1; }; protoOf(LanguageDao_JdbcImpl).get__insertAdapterLanguage_upsert_nnfuk6_k$ = function () { return this._insertAdapterLanguage_upsert_1; }; protoOf(LanguageDao_JdbcImpl).insertListAsync_aob9pt_k$ = function (languageList, $completion) { return this._insertAdapterLanguage_abort_1.insertListAsync_it2cbm_k$(languageList, $completion); }; protoOf(LanguageDao_JdbcImpl).replaceList_me8tz_k$ = function (entityList) { this._insertAdapterLanguage_upsert_1.insertList_bfvuij_k$(entityList); }; protoOf(LanguageDao_JdbcImpl).insert_umzx0k_k$ = function (entity) { var _retVal = this._insertAdapterLanguage_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(LanguageDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_umzx0k_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_JdbcImpl).insertAsync_f4n92h_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$266(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_f4n92h_k$(entity instanceof Language ? entity : THROW_CCE(), $completion); }; protoOf(LanguageDao_JdbcImpl).insertList_boc44c_k$ = function (entityList) { this._insertAdapterLanguage_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(LanguageDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_boc44c_k$(entityList); }; protoOf(LanguageDao_JdbcImpl).update_5gzexo_k$ = function (entity) { var _sql = 'UPDATE Language SET name = ?, iso_639_1_standard = ?, iso_639_2_standard = ?, iso_639_3_standard = ?, Language_Type = ?, languageActive = ?, langLocalChangeSeqNum = ?, langMasterChangeSeqNum = ?, langLastChangedBy = ?, langLct = ? WHERE langUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, LanguageDao_JdbcImpl$update$lambda(entity)); }; protoOf(LanguageDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_5gzexo_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_JdbcImpl).updateAsync_xb07dp_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$267(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_JdbcImpl).findLanguagesAsSource_yzx70x_k$ = function (sortOrder, searchText) { return new LanguageDao_JdbcImpl$findLanguagesAsSource$1(this, searchText, sortOrder); }; protoOf(LanguageDao_JdbcImpl).findLanguagesList_szsu00_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM Language', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findLanguagesList$lambda); }; protoOf(LanguageDao_JdbcImpl).findByName_f0775r_k$ = function (name) { var tmp = new PreparedStatementConfig('SELECT * FROM Language WHERE name = ? LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findByName$lambda(name)); }; protoOf(LanguageDao_JdbcImpl).findByTwoCode_dxz78v_k$ = function (langCode) { var tmp = new PreparedStatementConfig('SELECT * FROM Language WHERE iso_639_1_standard = ? LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findByTwoCode$lambda(langCode)); }; protoOf(LanguageDao_JdbcImpl).findByTwoCodeAsync_jw2mo4_k$ = function (langCode, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Language WHERE iso_639_1_standard = ? LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, LanguageDao_JdbcImpl$findByTwoCodeAsync$slambda_0(langCode, null), $completion); }; protoOf(LanguageDao_JdbcImpl).findByThreeCode_j7wkqn_k$ = function (langCode) { var tmp = new PreparedStatementConfig('SELECT * FROM LANGUAGE WHERE iso_639_3_standard = ? OR iso_639_2_standard = ? LIMIT 1 ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findByThreeCode$lambda(langCode)); }; protoOf(LanguageDao_JdbcImpl).totalLanguageCount_n0irm5_k$ = function () { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM LANGUAGE', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$totalLanguageCount$lambda); }; protoOf(LanguageDao_JdbcImpl).findByUid_w1fpv2_k$ = function (primaryLanguageUid) { var tmp = new PreparedStatementConfig('SELECT * FROM LANGUAGE where langUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM LANGUAGE where langUid = ? LIMIT 1\n', true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findByUid$lambda(primaryLanguageUid)); }; protoOf(LanguageDao_JdbcImpl).findByUidAsync_9jt13j_k$ = function (primaryLanguageUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM LANGUAGE where langUid = CAST(? AS BIGINT) LIMIT 1', VOID, VOID, VOID, 'SELECT * FROM LANGUAGE where langUid = ? LIMIT 1\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, LanguageDao_JdbcImpl$findByUidAsync$slambda_0(primaryLanguageUid, null), $completion); }; protoOf(LanguageDao_JdbcImpl).findAllLanguageLive_r3hrv8_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['LANGUAGE']; return doorFlow(this._db_1, tmp, LanguageDao_JdbcImpl$findAllLanguageLive$slambda_0(this, null)); }; protoOf(LanguageDao_JdbcImpl).findByUidList_m9ustk_k$ = function (uidList) { var tmp = new PreparedStatementConfig('SELECT langUid FROM LANGUAGE WHERE langUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageDao_JdbcImpl$findByUidList$lambda(uidList)); }; protoOf(LanguageDao_JdbcImpl).toggleVisibilityLanguage_n0lugq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { var tmp = new $toggleVisibilityLanguageCOROUTINE$268(this, toggleVisibility, selectedItem, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function LanguageDao_Repo$insertListAsync$slambda(this$0, $languageList, resultContinuation) { this.this$0__1 = this$0; this.$languageList_1 = $languageList; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(LanguageDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_aob9pt_k$(this.$languageList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new LanguageDao_Repo$insertListAsync$slambda(this.this$0__1, this.$languageList_1, completion); }; function LanguageDao_Repo$insertListAsync$slambda_0(this$0, $languageList, resultContinuation) { var i = new LanguageDao_Repo$insertListAsync$slambda(this$0, $languageList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function LanguageDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_5gzexo_k$($entity); return Unit_getInstance(); }; } function LanguageDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(LanguageDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_xb07dp_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new LanguageDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function LanguageDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LanguageDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function LanguageDao_Repo$toggleVisibilityLanguage$slambda(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$toggleVisibility_1 = $toggleVisibility; this.$selectedItem_1 = $selectedItem; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_Repo$toggleVisibilityLanguage$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo$toggleVisibilityLanguage$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(LanguageDao_Repo$toggleVisibilityLanguage$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.toggleVisibilityLanguage_n0lugq_k$(this.$toggleVisibility_1, this.$selectedItem_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_Repo$toggleVisibilityLanguage$slambda).create_d196fn_k$ = function (completion) { return new LanguageDao_Repo$toggleVisibilityLanguage$slambda(this.this$0__1, this.$toggleVisibility_1, this.$selectedItem_1, this.$updateTime_1, completion); }; function LanguageDao_Repo$toggleVisibilityLanguage$slambda_0(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation) { var i = new LanguageDao_Repo$toggleVisibilityLanguage$slambda(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function LanguageDao_Repo$replaceList$lambda(this$0, $entityList) { return function () { this$0._dao_1.replaceList_me8tz_k$($entityList); return Unit_getInstance(); }; } function LanguageDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(LanguageDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new LanguageDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function LanguageDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LanguageDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function LanguageDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function $findByTwoCodeAsyncCOROUTINE$269(_this__u8e3s4, langCode, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.langCode_1 = langCode; } protoOf($findByTwoCodeAsyncCOROUTINE$269).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByTwoCodeAsync_jw2mo4_k$(this.langCode_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$270(_this__u8e3s4, primaryLanguageUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.primaryLanguageUid_1 = primaryLanguageUid; } protoOf($findByUidAsyncCOROUTINE$270).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_9jt13j_k$(this.primaryLanguageUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$271(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$271).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Language', LanguageDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$272(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$272).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Language', LanguageDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LanguageDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(LanguageDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LanguageDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(LanguageDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(LanguageDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(LanguageDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(LanguageDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(LanguageDao_Repo).insertListAsync_aob9pt_k$ = function (languageList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Language', LanguageDao_Repo$insertListAsync$slambda_0(this, languageList, null), $completion); }; protoOf(LanguageDao_Repo).findLanguagesAsSource_yzx70x_k$ = function (sortOrder, searchText) { var _result = this._dao_1.findLanguagesAsSource_yzx70x_k$(sortOrder, searchText); return _result; }; protoOf(LanguageDao_Repo).findLanguagesList_szsu00_k$ = function () { var _result = this._dao_1.findLanguagesList_szsu00_k$(); return _result; }; protoOf(LanguageDao_Repo).findByName_f0775r_k$ = function (name) { var _result = this._dao_1.findByName_f0775r_k$(name); return _result; }; protoOf(LanguageDao_Repo).findByTwoCode_dxz78v_k$ = function (langCode) { var _result = this._dao_1.findByTwoCode_dxz78v_k$(langCode); return _result; }; protoOf(LanguageDao_Repo).findByTwoCodeAsync_jw2mo4_k$ = function (langCode, $completion) { var tmp = new $findByTwoCodeAsyncCOROUTINE$269(this, langCode, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo).findByThreeCode_j7wkqn_k$ = function (langCode) { var _result = this._dao_1.findByThreeCode_j7wkqn_k$(langCode); return _result; }; protoOf(LanguageDao_Repo).totalLanguageCount_n0irm5_k$ = function () { var _result = this._dao_1.totalLanguageCount_n0irm5_k$(); return _result; }; protoOf(LanguageDao_Repo).update_5gzexo_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Language', LanguageDao_Repo$update$lambda(this, entity)); }; protoOf(LanguageDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_5gzexo_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_Repo).findByUid_w1fpv2_k$ = function (primaryLanguageUid) { var _result = this._dao_1.findByUid_w1fpv2_k$(primaryLanguageUid); return _result; }; protoOf(LanguageDao_Repo).findByUidAsync_9jt13j_k$ = function (primaryLanguageUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$270(this, primaryLanguageUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo).updateAsync_xb07dp_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$271(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo).findAllLanguageLive_r3hrv8_k$ = function () { var _result = this._dao_1.findAllLanguageLive_r3hrv8_k$(); return _result; }; protoOf(LanguageDao_Repo).findByUidList_m9ustk_k$ = function (uidList) { var _result = this._dao_1.findByUidList_m9ustk_k$(uidList); return _result; }; protoOf(LanguageDao_Repo).toggleVisibilityLanguage_n0lugq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Language', LanguageDao_Repo$toggleVisibilityLanguage$slambda_0(this, toggleVisibility, selectedItem, updateTime, null), $completion); }; protoOf(LanguageDao_Repo).replaceList_me8tz_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Language', LanguageDao_Repo$replaceList$lambda(this, entityList)); }; protoOf(LanguageDao_Repo).insert_umzx0k_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Language', LanguageDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(LanguageDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_umzx0k_k$(entity instanceof Language ? entity : THROW_CCE()); }; protoOf(LanguageDao_Repo).insertAsync_f4n92h_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$272(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_f4n92h_k$(entity instanceof Language ? entity : THROW_CCE(), $completion); }; protoOf(LanguageDao_Repo).insertList_boc44c_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Language', LanguageDao_Repo$insertList$lambda(this, entityList)); }; protoOf(LanguageDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_boc44c_k$(entityList); }; function LanguageVariantDao() { } function _get__db__e63s44_32($this) { return $this._db_1; } function _get__dao__d2kw60_30($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$273(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$273).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_langVariantUid_f89r8i_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(10, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_langVariantUid_az9iuw_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_langVariantLct_2lyqw5_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_langVariantUid_f89r8i_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageVariantDao_DoorWrapper(_db, _dao) { LanguageVariantDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(LanguageVariantDao_DoorWrapper).findByCode_5fudzx_k$ = function (countryCode) { throw IllegalStateException_init_$Create$('findByCode: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageVariantDao_DoorWrapper).insert_7z05h7_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageVariantDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_7z05h7_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; protoOf(LanguageVariantDao_DoorWrapper).insertAsync_1nk2j0_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$273(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageVariantDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_1nk2j0_k$(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; protoOf(LanguageVariantDao_DoorWrapper).insertList_kfarh1_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageVariantDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_kfarh1_k$(entityList); }; protoOf(LanguageVariantDao_DoorWrapper).update_eylmsb_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(LanguageVariantDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_eylmsb_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; function LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).bindPreparedStmtToEntity_3chna2_k$ = function (stmt, entity) { if (entity.get_langVariantUid_f89r8i_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_langVariantUid_f89r8i_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_langUid_ejnh5_k$()); stmt.setString_2gt7ua_k$(3, entity.get_countryCode_aj7feu_k$()); stmt.setString_2gt7ua_k$(4, entity.get_name_woqyms_k$()); stmt.setLong_j1sybo_k$(5, entity.get_langVariantLocalChangeSeqNum_i784ks_k$()); stmt.setLong_j1sybo_k$(6, entity.get_langVariantMasterChangeSeqNum_dg5iqh_k$()); stmt.setInt_c72a8z_k$(7, entity.get_langVariantLastChangedBy_t591fd_k$()); stmt.setLong_j1sybo_k$(8, entity.get_langVariantLct_f89kfj_k$()); }; protoOf(LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_3chna2_k$(stmt, entity instanceof LanguageVariant ? entity : THROW_CCE()); }; function LanguageVariantDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_langUid_ejnh5_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_countryCode_aj7feu_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_name_woqyms_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_langVariantLocalChangeSeqNum_i784ks_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_langVariantMasterChangeSeqNum_dg5iqh_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_langVariantLastChangedBy_t591fd_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_langVariantLct_f89kfj_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_langVariantUid_f89r8i_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function LanguageVariantDao_JdbcImpl$findByCode$lambda$lambda(_result) { return mapNextRow(_result, null, LanguageVariantDao_JdbcImpl$findByCode$lambda$lambda$lambda(_result)); } function LanguageVariantDao_JdbcImpl$findByCode$lambda$lambda$lambda($_result) { return function (it) { var _tmp_langVariantUid = $_result.getLong_3wgf2g_k$('langVariantUid'); var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var _tmp_countryCode = $_result.getString_gb1pt9_k$('countryCode'); var _tmp_name = $_result.getString_gb1pt9_k$('name'); var _tmp_langVariantLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langVariantLocalChangeSeqNum'); var _tmp_langVariantMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langVariantMasterChangeSeqNum'); var _tmp_langVariantLastChangedBy = $_result.getInt_npc9pd_k$('langVariantLastChangedBy'); var _tmp_langVariantLct = $_result.getLong_3wgf2g_k$('langVariantLct'); // Inline function 'kotlin.apply' call var this_0 = new LanguageVariant(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LanguageVariantDao_JdbcImpl.findByCode....' call this_0.set_langVariantUid_az9iuw_k$(_tmp_langVariantUid); this_0.set_langUid_ci1fyx_k$(_tmp_langUid); this_0.set_countryCode_nspx4f_k$(_tmp_countryCode); this_0.set_name_wkmnld_k$(_tmp_name); this_0.set_langVariantLocalChangeSeqNum_36e11y_k$(_tmp_langVariantLocalChangeSeqNum); this_0.set_langVariantMasterChangeSeqNum_cykm8b_k$(_tmp_langVariantMasterChangeSeqNum); this_0.set_langVariantLastChangedBy_w7xkx9_k$(_tmp_langVariantLastChangedBy); this_0.set_langVariantLct_2lyqw5_k$(_tmp_langVariantLct); return this_0; }; } function LanguageVariantDao_JdbcImpl$findByCode$lambda($countryCode) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $countryCode); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LanguageVariantDao_JdbcImpl$findByCode$lambda$lambda); }; } function $insertAsyncCOROUTINE$274(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$274).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterLanguageVariant_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageVariantDao_JdbcImpl(_db) { LanguageVariantDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterLanguageVariant_abort_1 = new LanguageVariantDao_JdbcImpl$_insertAdapterLanguageVariant_abort$1(this); } protoOf(LanguageVariantDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LanguageVariantDao_JdbcImpl).get__insertAdapterLanguageVariant_abort_3retxa_k$ = function () { return this._insertAdapterLanguageVariant_abort_1; }; protoOf(LanguageVariantDao_JdbcImpl).insert_7z05h7_k$ = function (entity) { var _retVal = this._insertAdapterLanguageVariant_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(LanguageVariantDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_7z05h7_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; protoOf(LanguageVariantDao_JdbcImpl).insertAsync_1nk2j0_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$274(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageVariantDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_1nk2j0_k$(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; protoOf(LanguageVariantDao_JdbcImpl).insertList_kfarh1_k$ = function (entityList) { this._insertAdapterLanguageVariant_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(LanguageVariantDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_kfarh1_k$(entityList); }; protoOf(LanguageVariantDao_JdbcImpl).update_eylmsb_k$ = function (entity) { var _sql = 'UPDATE LanguageVariant SET langUid = ?, countryCode = ?, name = ?, langVariantLocalChangeSeqNum = ?, langVariantMasterChangeSeqNum = ?, langVariantLastChangedBy = ?, langVariantLct = ? WHERE langVariantUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, LanguageVariantDao_JdbcImpl$update$lambda(entity)); }; protoOf(LanguageVariantDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_eylmsb_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; protoOf(LanguageVariantDao_JdbcImpl).findByCode_5fudzx_k$ = function (countryCode) { var tmp = new PreparedStatementConfig('SELECT * FROM LanguageVariant WHERE countryCode = ? LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LanguageVariantDao_JdbcImpl$findByCode$lambda(countryCode)); }; function LanguageVariantDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LanguageVariantDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LanguageVariantDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new LanguageVariantDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function LanguageVariantDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LanguageVariantDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function LanguageVariantDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function LanguageVariantDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $insertAsyncCOROUTINE$275(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$275).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'LanguageVariant', LanguageVariantDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LanguageVariantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LanguageVariantDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(LanguageVariantDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LanguageVariantDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(LanguageVariantDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(LanguageVariantDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(LanguageVariantDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(LanguageVariantDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(LanguageVariantDao_Repo).findByCode_5fudzx_k$ = function (countryCode) { var _result = this._dao_1.findByCode_5fudzx_k$(countryCode); return _result; }; protoOf(LanguageVariantDao_Repo).insert_7z05h7_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'LanguageVariant', LanguageVariantDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(LanguageVariantDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_7z05h7_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; protoOf(LanguageVariantDao_Repo).insertAsync_1nk2j0_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$275(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LanguageVariantDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_1nk2j0_k$(entity instanceof LanguageVariant ? entity : THROW_CCE(), $completion); }; protoOf(LanguageVariantDao_Repo).insertList_kfarh1_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'LanguageVariant', LanguageVariantDao_Repo$insertList$lambda(this, entityList)); }; protoOf(LanguageVariantDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_kfarh1_k$(entityList); }; protoOf(LanguageVariantDao_Repo).update_eylmsb_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'LanguageVariant', LanguageVariantDao_Repo$update$lambda(this, entity)); }; protoOf(LanguageVariantDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_eylmsb_k$(entity instanceof LanguageVariant ? entity : THROW_CCE()); }; function LeavingReasonDao() { } function _get__db__e63s44_33($this) { return $this._db_1; } function _get__dao__d2kw60_31($this) { return $this._dao_1; } function $replaceListCOROUTINE$276(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($replaceListCOROUTINE$276).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_leavingReasonUid_err3kx_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(410, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_leavingReasonUid_9yufs9_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_leavingReasonLct_ic57r0_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.replaceList_dw1jue_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$277(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$277).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_leavingReasonUid_err3kx_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(410, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_leavingReasonUid_9yufs9_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_leavingReasonLct_ic57r0_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_leavingReasonUid_err3kx_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LeavingReasonDao_DoorWrapper(_db, _dao) { LeavingReasonDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(LeavingReasonDao_DoorWrapper).findAllReasons_naeyjr_k$ = function () { return this._dao_1.findAllReasons_naeyjr_k$(); }; protoOf(LeavingReasonDao_DoorWrapper).findAllReasonsLive_ibm86r_k$ = function () { throw IllegalStateException_init_$Create$('findAllReasonsLive: synchronous db access is NOT possible on Javascript!'); }; protoOf(LeavingReasonDao_DoorWrapper).findAllReasonsAsync_7psydb_k$ = function ($completion) { return this._dao_1.findAllReasonsAsync_7psydb_k$($completion); }; protoOf(LeavingReasonDao_DoorWrapper).findByUidAsync_vy8cft_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_vy8cft_k$(uid, $completion); }; protoOf(LeavingReasonDao_DoorWrapper).findByUidList_kmgig9_k$ = function (uidList, $completion) { return this._dao_1.findByUidList_kmgig9_k$(uidList, $completion); }; protoOf(LeavingReasonDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(LeavingReasonDao_DoorWrapper).getReasonsFromUids_d99rsr_k$ = function (uidList, $completion) { return this._dao_1.getReasonsFromUids_d99rsr_k$(uidList, $completion); }; protoOf(LeavingReasonDao_DoorWrapper).replaceList_dw1jue_k$ = function (entityList, $completion) { var tmp = new $replaceListCOROUTINE$276(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_DoorWrapper).updateAsync_ljrvtl_k$ = function (entity, $completion) { entity.set_leavingReasonLct_ic57r0_k$(systemTimeInMillis()); return this._dao_1.updateAsync_ljrvtl_k$(entity, $completion); }; protoOf(LeavingReasonDao_DoorWrapper).insert_o2ii92_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(LeavingReasonDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_o2ii92_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; protoOf(LeavingReasonDao_DoorWrapper).insertAsync_94qt6n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$277(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_94qt6n_k$(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_DoorWrapper).insertList_ule0om_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(LeavingReasonDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ule0om_k$(entityList); }; protoOf(LeavingReasonDao_DoorWrapper).update_gl6e9y_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(LeavingReasonDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_gl6e9y_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; function LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda$lambda(_result) { return mapRows(_result, LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_0.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_0.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_0.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_0.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_0.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); return this_0; }; } function LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda).invoke_p2dsa_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_p2dsa_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda(this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_p2dsa_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda_0(resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda$lambda(_result) { return mapRows(_result, LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findAllReasonsAsync....' call this_0.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_0.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_0.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_0.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_0.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_0.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); return this_0; }; } function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findByUidAsync....' call this_0.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_0.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_0.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_0.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_0.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_0.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); return this_0; }; } function LeavingReasonDao_JdbcImpl$findByUidList$slambda$lambda(_result) { return mapRows(_result, LeavingReasonDao_JdbcImpl$findByUidList$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findByUidList$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findByUidLive.....' call this_0.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_0.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_0.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_0.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_0.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_0.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); return this_0; }; } function LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_selhj3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_selhj3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_selhj3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda$lambda(_result) { return mapRows(_result, LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda$lambda$lambda($_result) { return function (it) { var _tmp_uid = $_result.getLong_3wgf2g_k$('uid'); var _tmp_labelName = $_result.getString_gb1pt9_k$('labelName'); // Inline function 'kotlin.apply' call var this_0 = new UidAndLabel(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.getReasonsFromUids....' call this_0.set_uid_lbehe3_k$(_tmp_uid); this_0.set_labelName_l2tf85_k$(_tmp_labelName); return this_0; }; } function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).bindPreparedStmtToEntity_ay9ioh_k$ = function (stmt, entity) { if (entity.get_leavingReasonUid_err3kx_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_leavingReasonUid_err3kx_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_leavingReasonTitle_bcnrrr_k$()); stmt.setLong_j1sybo_k$(3, entity.get_leavingReasonMCSN_vphuqo_k$()); stmt.setLong_j1sybo_k$(4, entity.get_leavingReasonCSN_erqpov_k$()); stmt.setInt_c72a8z_k$(5, entity.get_leavingReasonLCB_erqvz0_k$()); stmt.setLong_j1sybo_k$(6, entity.get_leavingReasonLct_erqwry_k$()); }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ay9ioh_k$(stmt, entity instanceof LeavingReason ? entity : THROW_CCE()); }; function LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).bindPreparedStmtToEntity_ay9ioh_k$ = function (stmt, entity) { if (entity.get_leavingReasonUid_err3kx_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_leavingReasonUid_err3kx_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_leavingReasonTitle_bcnrrr_k$()); stmt.setLong_j1sybo_k$(3, entity.get_leavingReasonMCSN_vphuqo_k$()); stmt.setLong_j1sybo_k$(4, entity.get_leavingReasonCSN_erqpov_k$()); stmt.setInt_c72a8z_k$(5, entity.get_leavingReasonLCB_erqvz0_k$()); stmt.setLong_j1sybo_k$(6, entity.get_leavingReasonLct_erqwry_k$()); }; protoOf(LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ay9ioh_k$(stmt, entity instanceof LeavingReason ? entity : THROW_CCE()); }; function LeavingReasonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_leavingReasonTitle_bcnrrr_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$entity_1.get_leavingReasonMCSN_vphuqo_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$entity_1.get_leavingReasonCSN_erqpov_k$()); this._stmt_1.setInt_c72a8z_k$(4, this.$entity_1.get_leavingReasonLCB_erqvz0_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_leavingReasonLct_erqwry_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$entity_1.get_leavingReasonUid_err3kx_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_leavingReasonTitle_bcnrrr_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_leavingReasonMCSN_vphuqo_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_leavingReasonCSN_erqpov_k$()); _stmt.setInt_c72a8z_k$(4, $entity.get_leavingReasonLCB_erqvz0_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_leavingReasonLct_erqwry_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_leavingReasonUid_err3kx_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function LeavingReasonDao_JdbcImpl$findAllReasons$1(this$0) { this.this$0__1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['LeavingReason']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$1).loadRows_ampsqx_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT * FROM LeavingReason) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, LeavingReasonDao_JdbcImpl$findAllReasons$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_ampsqx_k$(_limit, _offset, $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasons$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT * FROM LeavingReason) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, LeavingReasonDao_JdbcImpl$findAllReasons$o$countRows$slambda_0(null), $completion); }; function LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda$lambda); } function LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda$lambda(_result) { return mapRows(_result, LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda$lambda$lambda(_result)); } function LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda$lambda$lambda($_result) { return function (it) { var _tmp_leavingReasonUid = $_result.getLong_3wgf2g_k$('leavingReasonUid'); var _tmp_leavingReasonTitle = $_result.getString_gb1pt9_k$('leavingReasonTitle'); var _tmp_leavingReasonMCSN = $_result.getLong_3wgf2g_k$('leavingReasonMCSN'); var _tmp_leavingReasonCSN = $_result.getLong_3wgf2g_k$('leavingReasonCSN'); var _tmp_leavingReasonLCB = $_result.getInt_npc9pd_k$('leavingReasonLCB'); var _tmp_leavingReasonLct = $_result.getLong_3wgf2g_k$('leavingReasonLct'); // Inline function 'kotlin.apply' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.LeavingReasonDao_JdbcImpl.findAllReasonsLive....' call this_0.set_leavingReasonUid_9yufs9_k$(_tmp_leavingReasonUid); this_0.set_leavingReasonTitle_qlt7ba_k$(_tmp_leavingReasonTitle); this_0.set_leavingReasonMCSN_bj3iha_k$(_tmp_leavingReasonMCSN); this_0.set_leavingReasonCSN_fn65j9_k$(_tmp_leavingReasonCSN); this_0.set_leavingReasonLCB_7smdl4_k$(_tmp_leavingReasonLCB); this_0.set_leavingReasonLct_ic57r0_k$(_tmp_leavingReasonLct); return this_0; }; } function LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda).invoke_p2dsa_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_p2dsa_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda_0(resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_p2dsa_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).invoke_selhj3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_selhj3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_selhj3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$findByUidList$slambda($uidList, resultContinuation) { this.$uidList_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findByUidList$slambda).invoke_20grgb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidList$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_20grgb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$uidList_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$findByUidList$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidList$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$findByUidList$slambda(this.$uidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$findByUidList$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$findByUidList$slambda_0($uidList, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findByUidList$slambda($uidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_20grgb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function LeavingReasonDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda).invoke_qyip1v_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_qyip1v_k$($completion); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM LeavingReason WHERE leavingReasonUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM LeavingReason WHERE leavingReasonUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, LeavingReasonDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new LeavingReasonDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function LeavingReasonDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_qyip1v_k$($completion); }; l.$arity = 0; return l; } function LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda($uidList, resultContinuation) { this.$uidList_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda).invoke_6qis67_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6qis67_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$uidList_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda(this.$uidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda_0($uidList, resultContinuation) { var i = new LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda($uidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6qis67_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$278(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$278).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterLeavingReason_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$279(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$279).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE LeavingReason SET leavingReasonTitle = ?, leavingReasonMCSN = ?, leavingReasonCSN = ?, leavingReasonLCB = ?, leavingReasonLct = ? WHERE leavingReasonUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, LeavingReasonDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LeavingReasonDao_JdbcImpl(_db) { LeavingReasonDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterLeavingReason_upsert_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterLeavingReason_abort_1 = new LeavingReasonDao_JdbcImpl$_insertAdapterLeavingReason_abort$1(this); } protoOf(LeavingReasonDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LeavingReasonDao_JdbcImpl).get__insertAdapterLeavingReason_upsert_d2kura_k$ = function () { return this._insertAdapterLeavingReason_upsert_1; }; protoOf(LeavingReasonDao_JdbcImpl).get__insertAdapterLeavingReason_abort_pbamrt_k$ = function () { return this._insertAdapterLeavingReason_abort_1; }; protoOf(LeavingReasonDao_JdbcImpl).replaceList_dw1jue_k$ = function (entityList, $completion) { return this._insertAdapterLeavingReason_upsert_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(LeavingReasonDao_JdbcImpl).insert_o2ii92_k$ = function (entity) { var _retVal = this._insertAdapterLeavingReason_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(LeavingReasonDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_o2ii92_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; protoOf(LeavingReasonDao_JdbcImpl).insertAsync_94qt6n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$278(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_94qt6n_k$(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_JdbcImpl).insertList_ule0om_k$ = function (entityList) { this._insertAdapterLeavingReason_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(LeavingReasonDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ule0om_k$(entityList); }; protoOf(LeavingReasonDao_JdbcImpl).updateAsync_ljrvtl_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$279(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_JdbcImpl).update_gl6e9y_k$ = function (entity) { var _sql = 'UPDATE LeavingReason SET leavingReasonTitle = ?, leavingReasonMCSN = ?, leavingReasonCSN = ?, leavingReasonLCB = ?, leavingReasonLct = ? WHERE leavingReasonUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, LeavingReasonDao_JdbcImpl$update$lambda(entity)); }; protoOf(LeavingReasonDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_gl6e9y_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; protoOf(LeavingReasonDao_JdbcImpl).findAllReasons_naeyjr_k$ = function () { return new LeavingReasonDao_JdbcImpl$findAllReasons$1(this); }; protoOf(LeavingReasonDao_JdbcImpl).findAllReasonsLive_ibm86r_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM LeavingReason', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, LeavingReasonDao_JdbcImpl$findAllReasonsLive$lambda); }; protoOf(LeavingReasonDao_JdbcImpl).findAllReasonsAsync_7psydb_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT * FROM LeavingReason', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, LeavingReasonDao_JdbcImpl$findAllReasonsAsync$slambda_0(null), $completion); }; protoOf(LeavingReasonDao_JdbcImpl).findByUidAsync_vy8cft_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM LeavingReason WHERE leavingReasonUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM LeavingReason WHERE leavingReasonUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, LeavingReasonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(LeavingReasonDao_JdbcImpl).findByUidList_kmgig9_k$ = function (uidList, $completion) { var tmp = new PreparedStatementConfig('SELECT leavingReasonUid FROM LeavingReason WHERE leavingReasonUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, LeavingReasonDao_JdbcImpl$findByUidList$slambda_0(uidList, null), $completion); }; protoOf(LeavingReasonDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['LeavingReason']; return doorFlow(this._db_1, tmp, LeavingReasonDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(LeavingReasonDao_JdbcImpl).getReasonsFromUids_d99rsr_k$ = function (uidList, $completion) { var tmp = new PreparedStatementConfig('SELECT LeavingReason.leavingReasonUid AS uid, \n LeavingReason.leavingReasonTitle As labelName \n FROM LeavingReason WHERE leavingReasonUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, LeavingReasonDao_JdbcImpl$getReasonsFromUids$slambda_0(uidList, null), $completion); }; function LeavingReasonDao_Repo$replaceList$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_Repo$replaceList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo$replaceList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(LeavingReasonDao_Repo$replaceList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.replaceList_dw1jue_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_Repo$replaceList$slambda).create_d196fn_k$ = function (completion) { return new LeavingReasonDao_Repo$replaceList$slambda(this.this$0__1, this.$entityList_1, completion); }; function LeavingReasonDao_Repo$replaceList$slambda_0(this$0, $entityList, resultContinuation) { var i = new LeavingReasonDao_Repo$replaceList$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function LeavingReasonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(LeavingReasonDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_ljrvtl_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new LeavingReasonDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function LeavingReasonDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LeavingReasonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function LeavingReasonDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(LeavingReasonDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(LeavingReasonDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new LeavingReasonDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function LeavingReasonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new LeavingReasonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function LeavingReasonDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function LeavingReasonDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findAllReasonsAsyncCOROUTINE$280(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($findAllReasonsAsyncCOROUTINE$280).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllReasonsAsync_7psydb_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$281(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$281).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_vy8cft_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidListCOROUTINE$282(_this__u8e3s4, uidList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; } protoOf($findByUidListCOROUTINE$282).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidList_kmgig9_k$(this.uidList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getReasonsFromUidsCOROUTINE$283(_this__u8e3s4, uidList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; } protoOf($getReasonsFromUidsCOROUTINE$283).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getReasonsFromUids_d99rsr_k$(this.uidList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$284(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$284).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'LeavingReason', LeavingReasonDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$285(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$285).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'LeavingReason', LeavingReasonDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function LeavingReasonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { LeavingReasonDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(LeavingReasonDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(LeavingReasonDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(LeavingReasonDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(LeavingReasonDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(LeavingReasonDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(LeavingReasonDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(LeavingReasonDao_Repo).findAllReasons_naeyjr_k$ = function () { var _result = this._dao_1.findAllReasons_naeyjr_k$(); return _result; }; protoOf(LeavingReasonDao_Repo).findAllReasonsLive_ibm86r_k$ = function () { var _result = this._dao_1.findAllReasonsLive_ibm86r_k$(); return _result; }; protoOf(LeavingReasonDao_Repo).findAllReasonsAsync_7psydb_k$ = function ($completion) { var tmp = new $findAllReasonsAsyncCOROUTINE$280(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).findByUidAsync_vy8cft_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$281(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).findByUidList_kmgig9_k$ = function (uidList, $completion) { var tmp = new $findByUidListCOROUTINE$282(this, uidList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(LeavingReasonDao_Repo).getReasonsFromUids_d99rsr_k$ = function (uidList, $completion) { var tmp = new $getReasonsFromUidsCOROUTINE$283(this, uidList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).replaceList_dw1jue_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'LeavingReason', LeavingReasonDao_Repo$replaceList$slambda_0(this, entityList, null), $completion); }; protoOf(LeavingReasonDao_Repo).updateAsync_ljrvtl_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$284(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).insert_o2ii92_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'LeavingReason', LeavingReasonDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(LeavingReasonDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_o2ii92_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; protoOf(LeavingReasonDao_Repo).insertAsync_94qt6n_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$285(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(LeavingReasonDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_94qt6n_k$(entity instanceof LeavingReason ? entity : THROW_CCE(), $completion); }; protoOf(LeavingReasonDao_Repo).insertList_ule0om_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'LeavingReason', LeavingReasonDao_Repo$insertList$lambda(this, entityList)); }; protoOf(LeavingReasonDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_ule0om_k$(entityList); }; protoOf(LeavingReasonDao_Repo).update_gl6e9y_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'LeavingReason', LeavingReasonDao_Repo$update$lambda(this, entity)); }; protoOf(LeavingReasonDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_gl6e9y_k$(entity instanceof LeavingReason ? entity : THROW_CCE()); }; function MessageDao() { } function _get__db__e63s44_34($this) { return $this._db_1; } function _get__dao__d2kw60_32($this) { return $this._dao_1; } function $insertCOROUTINE$286(_this__u8e3s4, message, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.message_1 = message; } protoOf($insertCOROUTINE$286).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.message_1.get_messageUid_mw8qc2_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(126, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.message_1.set_messageUid_udozrs_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.message_1.set_messageLct_wa4a8l_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insert_ne1avo_k$(this.message_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function MessageDao_DoorWrapper(_db, _dao) { MessageDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(MessageDao_DoorWrapper).messagesFromOtherUserAsPagingSource_7jz58e_k$ = function (accountPersonUid, otherPersonUid) { return this._dao_1.messagesFromOtherUserAsPagingSource_7jz58e_k$(accountPersonUid, otherPersonUid); }; protoOf(MessageDao_DoorWrapper).conversationsForUserAsPagingSource_hcdagh_k$ = function (searchQuery, accountPersonUid) { return this._dao_1.conversationsForUserAsPagingSource_hcdagh_k$(searchQuery, accountPersonUid); }; protoOf(MessageDao_DoorWrapper).insert_ne1avo_k$ = function (message, $completion) { var tmp = new $insertCOROUTINE$286(this, message, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_messageUid = $_result.getLong_3wgf2g_k$('messageUid'); var _tmp_messageSenderPersonUid = $_result.getLong_3wgf2g_k$('messageSenderPersonUid'); var _tmp_messageToPersonUid = $_result.getLong_3wgf2g_k$('messageToPersonUid'); var _tmp_messageText = $_result.getString_gb1pt9_k$('messageText'); var _tmp_messageTimestamp = $_result.getLong_3wgf2g_k$('messageTimestamp'); var _tmp_messageLct = $_result.getLong_3wgf2g_k$('messageLct'); // Inline function 'kotlin.apply' call var this_0 = new Message(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_messageUid_udozrs_k$(_tmp_messageUid); this_0.set_messageSenderPersonUid_jv3602_k$(_tmp_messageSenderPersonUid); this_0.set_messageToPersonUid_70xwq0_k$(_tmp_messageToPersonUid); this_0.set_messageText_6t1480_k$(_tmp_messageText); this_0.set_messageTimestamp_tv7rma_k$(_tmp_messageTimestamp); this_0.set_messageLct_wa4a8l_k$(_tmp_messageLct); return this_0; }; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).invoke_wlcr6h_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_wlcr6h_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(5, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(6, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda(this.$accountPersonUid_1, this.$otherPersonUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $otherPersonUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_wlcr6h_k$(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda(this.$accountPersonUid_1, this.$otherPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $otherPersonUid, resultContinuation) { var i = new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda($accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Message_nullCount = 0; var _tmp_messageUid = $_result.getLong_3wgf2g_k$('messageUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_messageSenderPersonUid = $_result.getLong_3wgf2g_k$('messageSenderPersonUid'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_messageToPersonUid = $_result.getLong_3wgf2g_k$('messageToPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_messageText = $_result.getString_gb1pt9_k$('messageText'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_messageTimestamp = $_result.getLong_3wgf2g_k$('messageTimestamp'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_messageLct = $_result.getLong_3wgf2g_k$('messageLct'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Message_nullCount = _tmp_Message_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_Message_isAllNull = _tmp_Message_nullCount === 6; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new MessageAndOtherPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_Message_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Message(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_messageUid_udozrs_k$(_tmp_messageUid); this_1.set_messageSenderPersonUid_jv3602_k$(_tmp_messageSenderPersonUid); this_1.set_messageToPersonUid_70xwq0_k$(_tmp_messageToPersonUid); this_1.set_messageText_6t1480_k$(_tmp_messageText); this_1.set_messageTimestamp_tv7rma_k$(_tmp_messageTimestamp); this_1.set_messageLct_wa4a8l_k$(_tmp_messageLct); this_0.set_message_jrhc3_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_otherPerson_63kp2v_k$(this_2); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_3.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_3.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_3.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_3.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_3.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_3.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_3); } return this_0; }; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$searchQuery_1 = $searchQuery; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).invoke_npqhjm_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_npqhjm_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(3, this.$searchQuery_1); this._stmt_1.setString_2gt7ua_k$(4, this.$searchQuery_1); this._stmt_1.setInt_c72a8z_k$(5, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(6, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda(this.$accountPersonUid_1, this.$searchQuery_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda($accountPersonUid, $searchQuery, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_npqhjm_k$(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$searchQuery_1 = $searchQuery; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(3, this.$searchQuery_1); this._stmt_1.setString_2gt7ua_k$(4, this.$searchQuery_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda(this.$accountPersonUid_1, this.$searchQuery_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0($accountPersonUid, $searchQuery, resultContinuation) { var i = new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda($accountPersonUid, $searchQuery, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Message (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).bindPreparedStmtToEntity_6agkkg_k$ = function (stmt, entity) { if (entity.get_messageUid_mw8qc2_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_messageUid_mw8qc2_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_messageSenderPersonUid_bw7aq0_k$()); stmt.setLong_j1sybo_k$(3, entity.get_messageToPersonUid_rh9mda_k$()); stmt.setString_2gt7ua_k$(4, entity.get_messageText_jmkr9_k$()); stmt.setLong_j1sybo_k$(5, entity.get_messageTimestamp_8sd2mw_k$()); stmt.setLong_j1sybo_k$(6, entity.get_messageLct_mw8jj3_k$()); }; protoOf(MessageDao_JdbcImpl$_insertAdapterMessage_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_6agkkg_k$(stmt, entity instanceof Message ? entity : THROW_CCE()); }; function MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this$0, $accountPersonUid, $otherPersonUid) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Message']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).loadRows_3fcg92_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?)\n OR (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$loadRows$slambda_0(this.$accountPersonUid_1, this.$otherPersonUid_1, _limit, _offset, null), $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_3fcg92_k$(_limit, _offset, $completion); }; protoOf(MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n OR (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = CAST(? AS BIGINT)) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n SELECT Message.*\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?)\n OR (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = ?) \n ORDER BY Message.messageTimestamp DESC \n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$o$countRows$slambda_0(this.$accountPersonUid_1, this.$otherPersonUid_1, null), $completion); }; function MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this$0, $accountPersonUid, $searchQuery) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$searchQuery_1 = $searchQuery; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Message', 'Person', 'PersonPicture']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).loadRows_wlbz0h_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = ?)\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$loadRows$slambda_0(this.$accountPersonUid_1, this.$searchQuery_1, _limit, _offset, null), $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_wlbz0h_k$(_limit, _offset, $completion); }; protoOf(MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = CAST(? AS BIGINT)\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = CAST(? AS BIGINT))\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Person.*, LatestMessage.*, PersonPicture.*\n FROM Person\n JOIN Message LatestMessage\n ON LatestMessage.messageUid = \n (SELECT Message.messageUid\n FROM Message\n WHERE (Message.messageSenderPersonUid = ?\n AND Message.messageToPersonUid = Person.personUid)\n OR (Message.messageSenderPersonUid = Person.personUid\n AND Message.messageToPersonUid = ?)\n ORDER BY Message.messageTimestamp DESC\n LIMIT 1)\n \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE ? = '%' \n OR (Person.firstNames || ' ' || Person.lastName) LIKE ?\n ORDER BY LatestMessage.messageTimestamp DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, MessageDao_JdbcImpl$conversationsForUserAsPagingSource$o$countRows$slambda_0(this.$accountPersonUid_1, this.$searchQuery_1, null), $completion); }; function MessageDao_JdbcImpl(_db) { MessageDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterMessage_abort_1 = new MessageDao_JdbcImpl$_insertAdapterMessage_abort$1(this); } protoOf(MessageDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(MessageDao_JdbcImpl).get__insertAdapterMessage_abort_hvvuko_k$ = function () { return this._insertAdapterMessage_abort_1; }; protoOf(MessageDao_JdbcImpl).insert_ne1avo_k$ = function (message, $completion) { return this._insertAdapterMessage_abort_1.insertAsync_kic9b7_k$(message, $completion); }; protoOf(MessageDao_JdbcImpl).messagesFromOtherUserAsPagingSource_7jz58e_k$ = function (accountPersonUid, otherPersonUid) { return new MessageDao_JdbcImpl$messagesFromOtherUserAsPagingSource$1(this, accountPersonUid, otherPersonUid); }; protoOf(MessageDao_JdbcImpl).conversationsForUserAsPagingSource_hcdagh_k$ = function (searchQuery, accountPersonUid) { return new MessageDao_JdbcImpl$conversationsForUserAsPagingSource$1(this, accountPersonUid, searchQuery); }; function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'MessageDao/messagesFromOtherUserAsPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'MessageDao/messagesFromOtherUserAsPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'otherPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$otherPersonUid_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this.this$0__1, this.$accountPersonUid_1, this.$otherPersonUid_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$searchQuery_1 = $searchQuery; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'MessageDao/conversationsForUserAsPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'MessageDao/conversationsForUserAsPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'searchQuery', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchQuery_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, MessageDao_Repo$conversationsForUserAsPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this.this$0__1, this.$searchQuery_1, this.$accountPersonUid_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(MessageDao_Repo$conversationsForUserAsPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this$0, $searchQuery, $accountPersonUid, resultContinuation) { var i = new MessageDao_Repo$conversationsForUserAsPagingSource$slambda(this$0, $searchQuery, $accountPersonUid, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation) { this.this$0__1 = this$0; this.$message_1 = $message; CoroutineImpl.call(this, resultContinuation); } protoOf(MessageDao_Repo$insert$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(MessageDao_Repo$insert$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(MessageDao_Repo$insert$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insert_ne1avo_k$(this.$message_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(MessageDao_Repo$insert$slambda).create_d196fn_k$ = function (completion) { return new MessageDao_Repo$insert$slambda(this.this$0__1, this.$message_1, completion); }; function MessageDao_Repo$insert$slambda_0(this$0, $message, resultContinuation) { var i = new MessageDao_Repo$insert$slambda(this$0, $message, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function MessageDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { MessageDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(MessageDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(MessageDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(MessageDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(MessageDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(MessageDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(MessageDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(MessageDao_Repo).messagesFromOtherUserAsPagingSource_7jz58e_k$ = function (accountPersonUid, otherPersonUid) { var tmp = this._dao_1.messagesFromOtherUserAsPagingSource_7jz58e_k$(accountPersonUid, otherPersonUid); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'MessageDao/messagesFromOtherUserAsPagingSource', tmp, MessageDao_Repo$messagesFromOtherUserAsPagingSource$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(MessageDao_Repo).conversationsForUserAsPagingSource_hcdagh_k$ = function (searchQuery, accountPersonUid) { var tmp = this._dao_1.conversationsForUserAsPagingSource_hcdagh_k$(searchQuery, accountPersonUid); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'MessageDao/conversationsForUserAsPagingSource', tmp, MessageDao_Repo$conversationsForUserAsPagingSource$slambda_0(this, searchQuery, accountPersonUid, null)); }; protoOf(MessageDao_Repo).insert_ne1avo_k$ = function (message, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Message', MessageDao_Repo$insert$slambda_0(this, message, null), $completion); }; function OfflineItemDao() { } function _get__db__e63s44_35($this) { return $this._db_1; } function _get__dao__d2kw60_33($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$287(_this__u8e3s4, item, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.item_1 = item; } protoOf($insertAsyncCOROUTINE$287).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.item_1.get_oiUid_iwbgtp_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(971, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.item_1.set_oiUid_cw5sxn_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.item_1.set_oiLct_4iv0yw_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_ylto1p_k$(this.item_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.item_1.get_oiUid_iwbgtp_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function OfflineItemDao_DoorWrapper(_db, _dao) { OfflineItemDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(OfflineItemDao_DoorWrapper).insertAsync_ylto1p_k$ = function (item, $completion) { var tmp = new $insertAsyncCOROUTINE$287(this, item, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_DoorWrapper).findByContentEntryUid_dzug3r_k$ = function (contentEntryUid, nodeId) { return this._dao_1.findByContentEntryUid_dzug3r_k$(contentEntryUid, nodeId); }; protoOf(OfflineItemDao_DoorWrapper).updateActiveByOfflineItemUid_w1ia1s_k$ = function (oiUid, active, $completion) { return this._dao_1.updateActiveByOfflineItemUid_w1ia1s_k$(oiUid, active, $completion); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda(_result)); } function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_readyForOffline = $_result.getBoolean_xz3hoo_k$('readyForOffline'); var _tmp_OfflineItem_nullCount = 0; var _tmp_oiUid = $_result.getLong_3wgf2g_k$('oiUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_oiNodeId = $_result.getLong_3wgf2g_k$('oiNodeId'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_oiClazzUid = $_result.getLong_3wgf2g_k$('oiClazzUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_oiCourseBlockUid = $_result.getLong_3wgf2g_k$('oiCourseBlockUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_oiContentEntryUid = $_result.getLong_3wgf2g_k$('oiContentEntryUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_oiActive = $_result.getBoolean_xz3hoo_k$('oiActive'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_oiLct = $_result.getLong_3wgf2g_k$('oiLct'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_OfflineItem_nullCount = _tmp_OfflineItem_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_OfflineItem_isAllNull = _tmp_OfflineItem_nullCount === 7; var _tmp_TransferJobAndTotals_nullCount = 0; var _tmp_totalSize = $_result.getLong_3wgf2g_k$('totalSize'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_transferred = $_result.getLong_3wgf2g_k$('transferred'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_latestErrorStr = $_result.getString_gb1pt9_k$('latestErrorStr'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobAndTotals_nullCount = _tmp_TransferJobAndTotals_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_TransferJobAndTotals_isAllNull = _tmp_TransferJobAndTotals_nullCount === 3; var _tmp_TransferJob_nullCount = 0; var _tmp_tjUid = $_result.getInt_npc9pd_k$('tjUid'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_tjType = $_result.getInt_npc9pd_k$('tjType'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_tjStatus = $_result.getInt_npc9pd_k$('tjStatus'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_tjName = $_result.getString_gb1pt9_k$('tjName'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_tjUuid = $_result.getString_gb1pt9_k$('tjUuid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_tjTableId = $_result.getInt_npc9pd_k$('tjTableId'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_tjEntityUid = $_result.getLong_3wgf2g_k$('tjEntityUid'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_tjTimeCreated = $_result.getLong_3wgf2g_k$('tjTimeCreated'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_tjCreationType = $_result.getInt_npc9pd_k$('tjCreationType'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_tjOiUid = $_result.getLong_3wgf2g_k$('tjOiUid'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10; // Inline function 'kotlin.apply' call var this_0 = new OfflineItemAndState(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.....' call this_0.set_readyForOffline_awkch7_k$(_tmp_readyForOffline); if (!_tmp_OfflineItem_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new OfflineItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid......' call this_1.set_oiUid_cw5sxn_k$(_tmp_oiUid); this_1.set_oiNodeId_zi5r1m_k$(_tmp_oiNodeId); this_1.set_oiClazzUid_gbyzan_k$(_tmp_oiClazzUid); this_1.set_oiCourseBlockUid_bxhaa1_k$(_tmp_oiCourseBlockUid); this_1.set_oiContentEntryUid_7p7gv6_k$(_tmp_oiContentEntryUid); this_1.set_oiActive_b6lfi0_k$(_tmp_oiActive); this_1.set_oiLct_4iv0yw_k$(_tmp_oiLct); this_0.set_offlineItem_ohgfx7_k$(this_1); } if (!_tmp_TransferJobAndTotals_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new TransferJobAndTotals(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid......' call this_2.set_totalSize_fm10ve_k$(_tmp_totalSize); this_2.set_transferred_ke07v9_k$(_tmp_transferred); this_2.set_latestErrorStr_c5kaei_k$(_tmp_latestErrorStr); if (!_tmp_TransferJob_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OfflineItemDao_JdbcImpl.findByContentEntryUid.......' call this_3.set_tjUid_n5ffgr_k$(_tmp_tjUid); this_3.set_tjType_7mlacb_k$(_tmp_tjType); this_3.set_tjStatus_83krdv_k$(_tmp_tjStatus); this_3.set_tjName_x53ltz_k$(_tmp_tjName); this_3.set_tjUuid_13if7t_k$(_tmp_tjUuid); this_3.set_tjTableId_qxjmxa_k$(_tmp_tjTableId); this_3.set_tjEntityUid_kykjj0_k$(_tmp_tjEntityUid); this_3.set_tjTimeCreated_pcsbey_k$(_tmp_tjTimeCreated); this_3.set_tjCreationType_weqt38_k$(_tmp_tjCreationType); this_3.set_tjOiUid_oaj4ez_k$(_tmp_tjOiUid); this_2.set_transferJob_oljvx_k$(this_3); } this_0.set_activeDownload_v2lrty_k$(this_2); } return this_0; }; } function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$nodeId_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).invoke_g9p6te_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_g9p6te_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$nodeId_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda(this.$contentEntryUid_1, this.$nodeId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0($contentEntryUid, $nodeId, resultContinuation) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda($contentEntryUid, $nodeId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_g9p6te_k$(_stmt, $completion); }; l.$arity = 1; return l; } function OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO OfflineItem (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).bindPreparedStmtToEntity_mt0u1b_k$ = function (stmt, entity) { if (entity.get_oiUid_iwbgtp_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_oiUid_iwbgtp_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_oiNodeId_bp5bsw_k$()); stmt.setLong_j1sybo_k$(3, entity.get_oiClazzUid_qfnbfp_k$()); stmt.setLong_j1sybo_k$(4, entity.get_oiCourseBlockUid_vv2sjl_k$()); stmt.setLong_j1sybo_k$(5, entity.get_oiContentEntryUid_4v8s7g_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_oiActive_i11m7r_k$()); stmt.setLong_j1sybo_k$(7, entity.get_oiLct_iwba0q_k$()); }; protoOf(OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_mt0u1b_k$(stmt, entity instanceof OfflineItem ? entity : THROW_CCE()); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$nodeId_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).invoke_96xrfa_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_96xrfa_k$($completion); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT OfflineItem.*,\n TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n SELECT CompletedJob.tjUid\n FROM TransferJob CompletedJob\n WHERE CompletedJob.tjTableId = 738\n AND CompletedJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND CompletedJob.tjStatus = 21\n AND CompletedJob.tjType = 2\n AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n LIMIT 1 \n )) AS readyForOffline,\n NULL AS latestErrorStr\n FROM OfflineItem\n LEFT JOIN TransferJob \n ON TransferJob.tjUid = \n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND TransferJob.tjStatus < 21\n ORDER BY TransferJob.tjTimeCreated DESC \n LIMIT 1)\n WHERE OfflineItem.oiNodeId = CAST(? AS BIGINT)\n AND OfflineItem.oiContentEntryUid = CAST(? AS BIGINT)\n ORDER BY OfflineItem.oiLct DESC\n LIMIT 1 \n ', VOID, VOID, VOID, '\n SELECT OfflineItem.*,\n TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n CAST(OfflineItem.oiActive AS INTEGER) = 1 AND (SELECT EXISTS(\n SELECT CompletedJob.tjUid\n FROM TransferJob CompletedJob\n WHERE CompletedJob.tjTableId = 738\n AND CompletedJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND CompletedJob.tjStatus = 21\n AND CompletedJob.tjType = 2\n AND CompletedJob.tjTimeCreated >= OfflineItem.oiLct\n LIMIT 1 \n )) AS readyForOffline,\n NULL AS latestErrorStr\n FROM OfflineItem\n LEFT JOIN TransferJob \n ON TransferJob.tjUid = \n (SELECT TransferJob.tjUid\n FROM TransferJob\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND TransferJob.tjStatus < 21\n ORDER BY TransferJob.tjTimeCreated DESC \n LIMIT 1)\n WHERE OfflineItem.oiNodeId = ?\n AND OfflineItem.oiContentEntryUid = ?\n ORDER BY OfflineItem.oiLct DESC\n LIMIT 1 \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda$slambda_0(this.$contentEntryUid_1, this.$nodeId_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda).create_d196fn_k$ = function (completion) { return new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this.this$0__1, this.$contentEntryUid_1, this.$nodeId_1, completion); }; function OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this$0, $contentEntryUid, $nodeId, resultContinuation) { var i = new OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda(this$0, $contentEntryUid, $nodeId, resultContinuation); var l = function ($completion) { return i.invoke_96xrfa_k$($completion); }; l.$arity = 0; return l; } function OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda($active, $oiUid, resultContinuation) { this.$active_1 = $active; this.$oiUid_1 = $oiUid; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$oiUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda(this.$active_1, this.$oiUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda_0($active, $oiUid, resultContinuation) { var i = new OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda($active, $oiUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$288(_this__u8e3s4, item, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.item_1 = item; } protoOf($insertAsyncCOROUTINE$288).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterOfflineItem_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.item_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByOfflineItemUidCOROUTINE$289(_this__u8e3s4, oiUid, active, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.oiUid_1 = oiUid; this.active_1 = active; } protoOf($updateActiveByOfflineItemUidCOROUTINE$289).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE OfflineItem\n SET oiActive = ?\n WHERE oiUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE OfflineItem\n SET oiActive = ?\n WHERE oiUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, OfflineItemDao_JdbcImpl$updateActiveByOfflineItemUid$slambda_0(this.active_1, this.oiUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function OfflineItemDao_JdbcImpl(_db) { OfflineItemDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterOfflineItem_abort_1 = new OfflineItemDao_JdbcImpl$_insertAdapterOfflineItem_abort$1(this); } protoOf(OfflineItemDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(OfflineItemDao_JdbcImpl).get__insertAdapterOfflineItem_abort_cxushz_k$ = function () { return this._insertAdapterOfflineItem_abort_1; }; protoOf(OfflineItemDao_JdbcImpl).insertAsync_ylto1p_k$ = function (item, $completion) { var tmp = new $insertAsyncCOROUTINE$288(this, item, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_JdbcImpl).findByContentEntryUid_dzug3r_k$ = function (contentEntryUid, nodeId) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['OfflineItem', 'TransferJob', 'TransferJobItem']; return doorFlow(this._db_1, tmp, OfflineItemDao_JdbcImpl$findByContentEntryUid$slambda_0(this, contentEntryUid, nodeId, null)); }; protoOf(OfflineItemDao_JdbcImpl).updateActiveByOfflineItemUid_w1ia1s_k$ = function (oiUid, active, $completion) { var tmp = new $updateActiveByOfflineItemUidCOROUTINE$289(this, oiUid, active, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function OfflineItemDao_Repo$insertAsync$slambda(this$0, $item, resultContinuation) { this.this$0__1 = this$0; this.$item_1 = $item; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(OfflineItemDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_ylto1p_k$(this.$item_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OfflineItemDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new OfflineItemDao_Repo$insertAsync$slambda(this.this$0__1, this.$item_1, completion); }; function OfflineItemDao_Repo$insertAsync$slambda_0(this$0, $item, resultContinuation) { var i = new OfflineItemDao_Repo$insertAsync$slambda(this$0, $item, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda(this$0, $oiUid, $active, resultContinuation) { this.this$0__1 = this$0; this.$oiUid_1 = $oiUid; this.$active_1 = $active; CoroutineImpl.call(this, resultContinuation); } protoOf(OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByOfflineItemUid_w1ia1s_k$(this.$oiUid_1, this.$active_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda).create_d196fn_k$ = function (completion) { return new OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda(this.this$0__1, this.$oiUid_1, this.$active_1, completion); }; function OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda_0(this$0, $oiUid, $active, resultContinuation) { var i = new OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda(this$0, $oiUid, $active, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$290(_this__u8e3s4, item, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.item_1 = item; } protoOf($insertAsyncCOROUTINE$290).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'OfflineItem', OfflineItemDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.item_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function OfflineItemDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { OfflineItemDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(OfflineItemDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(OfflineItemDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(OfflineItemDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(OfflineItemDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(OfflineItemDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(OfflineItemDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(OfflineItemDao_Repo).insertAsync_ylto1p_k$ = function (item, $completion) { var tmp = new $insertAsyncCOROUTINE$290(this, item, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OfflineItemDao_Repo).findByContentEntryUid_dzug3r_k$ = function (contentEntryUid, nodeId) { var _result = this._dao_1.findByContentEntryUid_dzug3r_k$(contentEntryUid, nodeId); return _result; }; protoOf(OfflineItemDao_Repo).updateActiveByOfflineItemUid_w1ia1s_k$ = function (oiUid, active, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'OfflineItem', OfflineItemDao_Repo$updateActiveByOfflineItemUid$slambda_0(this, oiUid, active, null), $completion); }; function OutgoingReplicationDao() { } function OutgoingReplicationDao_JdbcImpl$listReplications$slambda$lambda(_result) { return mapRows(_result, OutgoingReplicationDao_JdbcImpl$listReplications$slambda$lambda$lambda(_result)); } function OutgoingReplicationDao_JdbcImpl$listReplications$slambda$lambda$lambda($_result) { return function (it) { var _tmp_destNodeId = $_result.getLong_3wgf2g_k$('destNodeId'); var _tmp_orPk1 = $_result.getLong_3wgf2g_k$('orPk1'); var _tmp_orPk2 = $_result.getLong_3wgf2g_k$('orPk2'); var _tmp_orPk3 = $_result.getLong_3wgf2g_k$('orPk3'); var _tmp_orPk4 = $_result.getLong_3wgf2g_k$('orPk4'); var _tmp_orTableId = $_result.getInt_npc9pd_k$('orTableId'); var _tmp_orUid = $_result.getLong_3wgf2g_k$('orUid'); // Inline function 'kotlin.apply' call var this_0 = new OutgoingReplication(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.OutgoingReplicationDao_JdbcImpl.listReplications....' call this_0.set_destNodeId_n0qmci_k$(_tmp_destNodeId); this_0.set_orPk1_lv6n5k_k$(_tmp_orPk1); this_0.set_orPk2_ej2ie1_k$(_tmp_orPk2); this_0.set_orPk3_76ydmi_k$(_tmp_orPk3); this_0.set_orPk4_55r51_k$(_tmp_orPk4); this_0.set_orTableId_ytziu9_k$(_tmp_orTableId); this_0.set_orUid_avnb5e_k$(_tmp_orUid); return this_0; }; } function OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).bindPreparedStmtToEntity_bm36xf_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_destNodeId_d2y4xk_k$()); stmt.setLong_j1sybo_k$(2, entity.get_orPk1_iwh40a_k$()); stmt.setLong_j1sybo_k$(3, entity.get_orPk2_iwh40b_k$()); stmt.setLong_j1sybo_k$(4, entity.get_orPk3_iwh40c_k$()); stmt.setLong_j1sybo_k$(5, entity.get_orPk4_iwh40d_k$()); stmt.setInt_c72a8z_k$(6, entity.get_orTableId_lu6glf_k$()); if (entity.get_orUid_iwh7pg_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(7, null); } else { stmt.setLong_j1sybo_k$(7, entity.get_orUid_iwh7pg_k$()); } }; protoOf(OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_bm36xf_k$(stmt, entity instanceof OutgoingReplication ? entity : THROW_CCE()); }; function OutgoingReplicationDao_JdbcImpl$listReplications$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(OutgoingReplicationDao_JdbcImpl$listReplications$slambda).invoke_hjnl1o_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(OutgoingReplicationDao_JdbcImpl$listReplications$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_hjnl1o_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(OutgoingReplicationDao_JdbcImpl$listReplications$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, OutgoingReplicationDao_JdbcImpl$listReplications$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(OutgoingReplicationDao_JdbcImpl$listReplications$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new OutgoingReplicationDao_JdbcImpl$listReplications$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(OutgoingReplicationDao_JdbcImpl$listReplications$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function OutgoingReplicationDao_JdbcImpl$listReplications$slambda_0(resultContinuation) { var i = new OutgoingReplicationDao_JdbcImpl$listReplications$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_hjnl1o_k$(_stmt, $completion); }; l.$arity = 1; return l; } function OutgoingReplicationDao_JdbcImpl(_db) { OutgoingReplicationDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterOutgoingReplication_abort_1 = new OutgoingReplicationDao_JdbcImpl$_insertAdapterOutgoingReplication_abort$1(this); } protoOf(OutgoingReplicationDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(OutgoingReplicationDao_JdbcImpl).get__insertAdapterOutgoingReplication_abort_3txbox_k$ = function () { return this._insertAdapterOutgoingReplication_abort_1; }; protoOf(OutgoingReplicationDao_JdbcImpl).insert_lev2j1_k$ = function (outgoing, $completion) { return this._insertAdapterOutgoingReplication_abort_1.insertListAsync_it2cbm_k$(outgoing, $completion); }; protoOf(OutgoingReplicationDao_JdbcImpl).listReplications_v2ru31_k$ = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT OutgoingReplication.*\n FROM OutgoingReplication\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, OutgoingReplicationDao_JdbcImpl$listReplications$slambda_0(null), $completion); }; function PeerReviewerAllocationDao() { } function _get__db__e63s44_36($this) { return $this._db_1; } function _get__dao__d2kw60_34($this) { return $this._dao_1; } function $replaceListAsyncCOROUTINE$291(_this__u8e3s4, entries, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entries_1 = entries; } protoOf($replaceListAsyncCOROUTINE$291).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entries_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_praUid_i762pm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_praUid_dkb29c_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_praLct_lxlu83_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.replaceListAsync_r5k2ux_k$(this.entries_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListCOROUTINE$292(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($upsertListCOROUTINE$292).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_praUid_i762pm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_praUid_dkb29c_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_praLct_lxlu83_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertList_cxaqq2_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$293(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$293).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_praUid_i762pm_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(140, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_praUid_dkb29c_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_praLct_lxlu83_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_praUid_i762pm_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PeerReviewerAllocationDao_DoorWrapper(_db, _dao) { PeerReviewerAllocationDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PeerReviewerAllocationDao_DoorWrapper).replaceListAsync_r5k2ux_k$ = function (entries, $completion) { var tmp = new $replaceListAsyncCOROUTINE$291(this, entries, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).getAllPeerReviewerAllocations_9z4ytu_k$ = function (assignmentUid, $completion) { return this._dao_1.getAllPeerReviewerAllocations_9z4ytu_k$(assignmentUid, $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).getAllPeerReviewerAllocationsByClazzUid_kb2oiy_k$ = function (clazzUid, includeInactive, $completion) { return this._dao_1.getAllPeerReviewerAllocationsByClazzUid_kb2oiy_k$(clazzUid, includeInactive, $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return this._dao_1.updateActiveByUid_i0tn2u_k$(cbUid, active, changeTime, $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).upsertList_cxaqq2_k$ = function (entityList, $completion) { var tmp = new $upsertListCOROUTINE$292(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insert_x3dgnh_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_x3dgnh_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insertAsync_4uistk_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$293(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_4uistk_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insertList_k2fyp9_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k2fyp9_k$(entityList); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).update_7i5oel_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(PeerReviewerAllocationDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_7i5oel_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda$lambda(_result) { return mapRows(_result, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda$lambda$lambda(_result)); } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.getLong_3wgf2g_k$('praUid'); var _tmp_praMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.getLong_3wgf2g_k$('praAssignmentUid'); var _tmp_praActive = $_result.getBoolean_xz3hoo_k$('praActive'); var _tmp_praLct = $_result.getLong_3wgf2g_k$('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PeerReviewerAllocationDao_JdbcImpl.getAllPeerReviewerAllocations....' call this_0.set_praUid_dkb29c_k$(_tmp_praUid); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_tmp_praMarkerSubmitterUid); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_tmp_praToMarkerSubmitterUid); this_0.set_praAssignmentUid_60pp0j_k$(_tmp_praAssignmentUid); this_0.set_praActive_a5t77_k$(_tmp_praActive); this_0.set_praLct_lxlu83_k$(_tmp_praLct); return this_0; }; } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda(_result) { return mapRows(_result, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda(_result)); } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_praUid = $_result.getLong_3wgf2g_k$('praUid'); var _tmp_praMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praMarkerSubmitterUid'); var _tmp_praToMarkerSubmitterUid = $_result.getLong_3wgf2g_k$('praToMarkerSubmitterUid'); var _tmp_praAssignmentUid = $_result.getLong_3wgf2g_k$('praAssignmentUid'); var _tmp_praActive = $_result.getBoolean_xz3hoo_k$('praActive'); var _tmp_praLct = $_result.getLong_3wgf2g_k$('praLct'); // Inline function 'kotlin.apply' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PeerReviewerAllocationDao_JdbcImpl.getAllPeerReviewerAllocationsByClazzUid....' call this_0.set_praUid_dkb29c_k$(_tmp_praUid); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_tmp_praMarkerSubmitterUid); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_tmp_praToMarkerSubmitterUid); this_0.set_praAssignmentUid_60pp0j_k$(_tmp_praAssignmentUid); this_0.set_praActive_a5t77_k$(_tmp_praActive); this_0.set_praLct_lxlu83_k$(_tmp_praLct); return this_0; }; } function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).bindPreparedStmtToEntity_639x14_k$ = function (stmt, entity) { if (entity.get_praUid_i762pm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_praUid_i762pm_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_praMarkerSubmitterUid_mj8ypj_k$()); stmt.setLong_j1sybo_k$(3, entity.get_praToMarkerSubmitterUid_7d07wy_k$()); stmt.setLong_j1sybo_k$(4, entity.get_praAssignmentUid_gmaw8d_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_praActive_i43sis_k$()); stmt.setLong_j1sybo_k$(6, entity.get_praLct_i75vwn_k$()); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_639x14_k$(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PeerReviewerAllocation (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).bindPreparedStmtToEntity_639x14_k$ = function (stmt, entity) { if (entity.get_praUid_i762pm_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_praUid_i762pm_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_praMarkerSubmitterUid_mj8ypj_k$()); stmt.setLong_j1sybo_k$(3, entity.get_praToMarkerSubmitterUid_7d07wy_k$()); stmt.setLong_j1sybo_k$(4, entity.get_praAssignmentUid_gmaw8d_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_praActive_i43sis_k$()); stmt.setLong_j1sybo_k$(6, entity.get_praLct_i75vwn_k$()); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_639x14_k$(stmt, entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PeerReviewerAllocationDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_praMarkerSubmitterUid_mj8ypj_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_praToMarkerSubmitterUid_7d07wy_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_praAssignmentUid_gmaw8d_k$()); _stmt.setBoolean_pzdm1v_k$(4, $entity.get_praActive_i43sis_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_praLct_i75vwn_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_praUid_i762pm_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda($assignmentUid, resultContinuation) { this.$assignmentUid_1 = $assignmentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda).invoke_b60hn3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_b60hn3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$assignmentUid_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda(this.$assignmentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda_0($assignmentUid, resultContinuation) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda($assignmentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_b60hn3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$includeInactive_1 = $includeInactive; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).invoke_b60hn3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_b60hn3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeInactive_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$includeInactive_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda(this.$clazzUid_1, this.$includeInactive_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0($clazzUid, $includeInactive, resultContinuation) { var i = new PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda($clazzUid, $includeInactive, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_b60hn3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$cbUid_1 = $cbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$cbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda(this.$active_1, this.$changeTime_1, this.$cbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $cbUid, resultContinuation) { var i = new PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $cbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$294(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$294).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPeerReviewerAllocation_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByUidCOROUTINE$295(_this__u8e3s4, cbUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.cbUid_1 = cbUid; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$295).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE PeerReviewerAllocation \n SET praActive = ?, \n praLct = CAST(? AS BIGINT)\n WHERE praUid = CAST(? AS BIGINT)', VOID, VOID, VOID, '\n UPDATE PeerReviewerAllocation \n SET praActive = ?, \n praLct = ?\n WHERE praUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, PeerReviewerAllocationDao_JdbcImpl$updateActiveByUid$slambda_0(this.active_1, this.changeTime_1, this.cbUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PeerReviewerAllocationDao_JdbcImpl(_db) { PeerReviewerAllocationDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPeerReviewerAllocation_upsert_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterPeerReviewerAllocation_abort_1 = new PeerReviewerAllocationDao_JdbcImpl$_insertAdapterPeerReviewerAllocation_abort$1(this); } protoOf(PeerReviewerAllocationDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PeerReviewerAllocationDao_JdbcImpl).get__insertAdapterPeerReviewerAllocation_upsert_lgb461_k$ = function () { return this._insertAdapterPeerReviewerAllocation_upsert_1; }; protoOf(PeerReviewerAllocationDao_JdbcImpl).get__insertAdapterPeerReviewerAllocation_abort_lmjq2w_k$ = function () { return this._insertAdapterPeerReviewerAllocation_abort_1; }; protoOf(PeerReviewerAllocationDao_JdbcImpl).replaceListAsync_r5k2ux_k$ = function (entries, $completion) { return this._insertAdapterPeerReviewerAllocation_upsert_1.insertListAsync_it2cbm_k$(entries, $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).upsertList_cxaqq2_k$ = function (entityList, $completion) { return this._insertAdapterPeerReviewerAllocation_upsert_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insert_x3dgnh_k$ = function (entity) { var _retVal = this._insertAdapterPeerReviewerAllocation_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_x3dgnh_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insertAsync_4uistk_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$294(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_4uistk_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insertList_k2fyp9_k$ = function (entityList) { this._insertAdapterPeerReviewerAllocation_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k2fyp9_k$(entityList); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).update_7i5oel_k$ = function (entity) { var _sql = 'UPDATE PeerReviewerAllocation SET praMarkerSubmitterUid = ?, praToMarkerSubmitterUid = ?, praAssignmentUid = ?, praActive = ?, praLct = ? WHERE praUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PeerReviewerAllocationDao_JdbcImpl$update$lambda(entity)); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_7i5oel_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).getAllPeerReviewerAllocations_9z4ytu_k$ = function (assignmentUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT *\n FROM PeerReviewerAllocation\n WHERE praAssignmentUid IN (?)\n AND praActive \n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocations$slambda_0(assignmentUid, null), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).getAllPeerReviewerAllocationsByClazzUid_kb2oiy_k$ = function (clazzUid, includeInactive, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid IN\n (SELECT CourseBlock.cbEntityUid\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n AND CourseBlock.cbType = 103\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n ', VOID, VOID, VOID, '\n SELECT PeerReviewerAllocation.*\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid IN\n (SELECT CourseBlock.cbEntityUid\n FROM CourseBlock\n WHERE CourseBlock.cbClazzUid = ?\n AND CourseBlock.cbType = 103\n AND (CAST(? AS INTEGER) = 1 OR CourseBlock.cbActive))\n AND (CAST(? AS INTEGER) = 1 OR PeerReviewerAllocation.praActive)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PeerReviewerAllocationDao_JdbcImpl$getAllPeerReviewerAllocationsByClazzUid$slambda_0(clazzUid, includeInactive, null), $completion); }; protoOf(PeerReviewerAllocationDao_JdbcImpl).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$295(this, cbUid, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function PeerReviewerAllocationDao_Repo$replaceListAsync$slambda(this$0, $entries, resultContinuation) { this.this$0__1 = this$0; this.$entries_1 = $entries; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$replaceListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo$replaceListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PeerReviewerAllocationDao_Repo$replaceListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.replaceListAsync_r5k2ux_k$(this.$entries_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$replaceListAsync$slambda).create_d196fn_k$ = function (completion) { return new PeerReviewerAllocationDao_Repo$replaceListAsync$slambda(this.this$0__1, this.$entries_1, completion); }; function PeerReviewerAllocationDao_Repo$replaceListAsync$slambda_0(this$0, $entries, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$replaceListAsync$slambda(this$0, $entries, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$cbUid_1 = $cbUid; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByUid_i0tn2u_k$(this.$cbUid_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda).create_d196fn_k$ = function (completion) { return new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this.this$0__1, this.$cbUid_1, this.$active_1, this.$changeTime_1, completion); }; function PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this$0, $cbUid, $active, $changeTime, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda(this$0, $cbUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertList_cxaqq2_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$upsertList$slambda).create_d196fn_k$ = function (completion) { return new PeerReviewerAllocationDao_Repo$upsertList$slambda(this.this$0__1, this.$entityList_1, completion); }; function PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this$0, $entityList, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$upsertList$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PeerReviewerAllocationDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PeerReviewerAllocationDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PeerReviewerAllocationDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function PeerReviewerAllocationDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $getAllPeerReviewerAllocationsCOROUTINE$296(_this__u8e3s4, assignmentUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.assignmentUid_1 = assignmentUid; } protoOf($getAllPeerReviewerAllocationsCOROUTINE$296).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getAllPeerReviewerAllocations_9z4ytu_k$(this.assignmentUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(_this__u8e3s4, clazzUid, includeInactive, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.includeInactive_1 = includeInactive; } protoOf($getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PeerReviewerAllocationDao/getAllPeerReviewerAllocationsByClazzUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'includeInactive', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.includeInactive_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PeerReviewerAllocationDao_Repo$getAllPeerReviewerAllocationsByClazzUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getAllPeerReviewerAllocationsByClazzUid_kb2oiy_k$(this.clazzUid_1, this.includeInactive_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$298(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$298).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PeerReviewerAllocationDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PeerReviewerAllocationDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(PeerReviewerAllocationDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PeerReviewerAllocationDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PeerReviewerAllocationDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PeerReviewerAllocationDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PeerReviewerAllocationDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PeerReviewerAllocationDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PeerReviewerAllocationDao_Repo).replaceListAsync_r5k2ux_k$ = function (entries, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$replaceListAsync$slambda_0(this, entries, null), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).getAllPeerReviewerAllocations_9z4ytu_k$ = function (assignmentUid, $completion) { var tmp = new $getAllPeerReviewerAllocationsCOROUTINE$296(this, assignmentUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo).getAllPeerReviewerAllocationsByClazzUid_kb2oiy_k$ = function (clazzUid, includeInactive, $completion) { var tmp = new $getAllPeerReviewerAllocationsByClazzUidCOROUTINE$297(this, clazzUid, includeInactive, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo).updateActiveByUid_i0tn2u_k$ = function (cbUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$updateActiveByUid$slambda_0(this, cbUid, active, changeTime, null), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).upsertList_cxaqq2_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$upsertList$slambda_0(this, entityList, null), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).insert_x3dgnh_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(PeerReviewerAllocationDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_x3dgnh_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; protoOf(PeerReviewerAllocationDao_Repo).insertAsync_4uistk_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$298(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PeerReviewerAllocationDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_4uistk_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE(), $completion); }; protoOf(PeerReviewerAllocationDao_Repo).insertList_k2fyp9_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$insertList$lambda(this, entityList)); }; protoOf(PeerReviewerAllocationDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_k2fyp9_k$(entityList); }; protoOf(PeerReviewerAllocationDao_Repo).update_7i5oel_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'PeerReviewerAllocation', PeerReviewerAllocationDao_Repo$update$lambda(this, entity)); }; protoOf(PeerReviewerAllocationDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_7i5oel_k$(entity instanceof PeerReviewerAllocation ? entity : THROW_CCE()); }; function PersonAuth2Dao() { } function _get__db__e63s44_37($this) { return $this._db_1; } function _get__dao__d2kw60_35($this) { return $this._dao_1; } function PersonAuth2Dao_DoorWrapper(_db, _dao) { PersonAuth2Dao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonAuth2Dao_DoorWrapper).insertListAsync_a01tfe_k$ = function (auths, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = auths.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.PersonAuth2Dao_DoorWrapper.insertListAsync.' call element.set_pauthLct_y2kbr0_k$(systemTimeInMillis()); } return this._dao_1.insertListAsync_a01tfe_k$(auths, $completion); }; protoOf(PersonAuth2Dao_DoorWrapper).insertAsync_46pi3g_k$ = function (auth, $completion) { auth.set_pauthLct_y2kbr0_k$(systemTimeInMillis()); return this._dao_1.insertAsync_46pi3g_k$(auth, $completion); }; protoOf(PersonAuth2Dao_DoorWrapper).findByPersonUid_vxbkyt_k$ = function (personUid, $completion) { return this._dao_1.findByPersonUid_vxbkyt_k$(personUid, $completion); }; protoOf(PersonAuth2Dao_DoorWrapper).findByUsername_n7x67o_k$ = function (username, $completion) { return this._dao_1.findByUsername_n7x67o_k$(username, $completion); }; function PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda$lambda(_result) { return mapNextRow(_result, null, PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda$lambda$lambda(_result)); } function PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_pauthUid = $_result.getLong_3wgf2g_k$('pauthUid'); var _tmp_pauthMechanism = $_result.getString_gb1pt9_k$('pauthMechanism'); var _tmp_pauthAuth = $_result.getString_gb1pt9_k$('pauthAuth'); var _tmp_pauthLcsn = $_result.getLong_3wgf2g_k$('pauthLcsn'); var _tmp_pauthPcsn = $_result.getLong_3wgf2g_k$('pauthPcsn'); var _tmp_pauthLcb = $_result.getLong_3wgf2g_k$('pauthLcb'); var _tmp_pauthLct = $_result.getLong_3wgf2g_k$('pauthLct'); // Inline function 'kotlin.apply' call var this_0 = new PersonAuth2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonAuth2Dao_JdbcImpl.findByPersonUid....' call this_0.set_pauthUid_pp9js9_k$(_tmp_pauthUid); this_0.set_pauthMechanism_kcxz95_k$(_tmp_pauthMechanism); this_0.set_pauthAuth_nuofak_k$(_tmp_pauthAuth); this_0.set_pauthLcsn_jc3ze7_k$(_tmp_pauthLcsn); this_0.set_pauthPcsn_ifvrhn_k$(_tmp_pauthPcsn); this_0.set_pauthLcb_qye01e_k$(_tmp_pauthLcb); this_0.set_pauthLct_y2kbr0_k$(_tmp_pauthLct); return this_0; }; } function PersonAuth2Dao_JdbcImpl$findByUsername$slambda$lambda(_result) { return mapNextRow(_result, null, PersonAuth2Dao_JdbcImpl$findByUsername$slambda$lambda$lambda(_result)); } function PersonAuth2Dao_JdbcImpl$findByUsername$slambda$lambda$lambda($_result) { return function (it) { var _tmp_pauthUid = $_result.getLong_3wgf2g_k$('pauthUid'); var _tmp_pauthMechanism = $_result.getString_gb1pt9_k$('pauthMechanism'); var _tmp_pauthAuth = $_result.getString_gb1pt9_k$('pauthAuth'); var _tmp_pauthLcsn = $_result.getLong_3wgf2g_k$('pauthLcsn'); var _tmp_pauthPcsn = $_result.getLong_3wgf2g_k$('pauthPcsn'); var _tmp_pauthLcb = $_result.getLong_3wgf2g_k$('pauthLcb'); var _tmp_pauthLct = $_result.getLong_3wgf2g_k$('pauthLct'); // Inline function 'kotlin.apply' call var this_0 = new PersonAuth2(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonAuth2Dao_JdbcImpl.findByUsername....' call this_0.set_pauthUid_pp9js9_k$(_tmp_pauthUid); this_0.set_pauthMechanism_kcxz95_k$(_tmp_pauthMechanism); this_0.set_pauthAuth_nuofak_k$(_tmp_pauthAuth); this_0.set_pauthLcsn_jc3ze7_k$(_tmp_pauthLcsn); this_0.set_pauthPcsn_ifvrhn_k$(_tmp_pauthPcsn); this_0.set_pauthLcb_qye01e_k$(_tmp_pauthLcb); this_0.set_pauthLct_y2kbr0_k$(_tmp_pauthLct); return this_0; }; } function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).bindPreparedStmtToEntity_78mtbm_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_pauthUid_aq0lcv_k$()); stmt.setString_2gt7ua_k$(2, entity.get_pauthMechanism_psmndi_k$()); stmt.setString_2gt7ua_k$(3, entity.get_pauthAuth_mqpdfb_k$()); stmt.setLong_j1sybo_k$(4, entity.get_pauthLcsn_mqw0wx_k$()); stmt.setLong_j1sybo_k$(5, entity.get_pauthPcsn_mqykv1_k$()); stmt.setLong_j1sybo_k$(6, entity.get_pauthLcb_aq0s6c_k$()); stmt.setLong_j1sybo_k$(7, entity.get_pauthLct_aq0s5u_k$()); }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_78mtbm_k$(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE()); }; function PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).bindPreparedStmtToEntity_78mtbm_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_pauthUid_aq0lcv_k$()); stmt.setString_2gt7ua_k$(2, entity.get_pauthMechanism_psmndi_k$()); stmt.setString_2gt7ua_k$(3, entity.get_pauthAuth_mqpdfb_k$()); stmt.setLong_j1sybo_k$(4, entity.get_pauthLcsn_mqw0wx_k$()); stmt.setLong_j1sybo_k$(5, entity.get_pauthPcsn_mqykv1_k$()); stmt.setLong_j1sybo_k$(6, entity.get_pauthLcb_aq0s6c_k$()); stmt.setLong_j1sybo_k$(7, entity.get_pauthLct_aq0s5u_k$()); }; protoOf(PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_78mtbm_k$(stmt, entity instanceof PersonAuth2 ? entity : THROW_CCE()); }; function PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda).invoke_kk4ibg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_kk4ibg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda_0($personUid, resultContinuation) { var i = new PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_kk4ibg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonAuth2Dao_JdbcImpl$findByUsername$slambda($username, resultContinuation) { this.$username_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuth2Dao_JdbcImpl$findByUsername$slambda).invoke_kk4ibg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_JdbcImpl$findByUsername$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_kk4ibg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAuth2Dao_JdbcImpl$findByUsername$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonAuth2Dao_JdbcImpl$findByUsername$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuth2Dao_JdbcImpl$findByUsername$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonAuth2Dao_JdbcImpl$findByUsername$slambda(this.$username_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonAuth2Dao_JdbcImpl$findByUsername$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonAuth2Dao_JdbcImpl$findByUsername$slambda_0($username, resultContinuation) { var i = new PersonAuth2Dao_JdbcImpl$findByUsername$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_kk4ibg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$299(_this__u8e3s4, auth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.auth_1 = auth; } protoOf($insertAsyncCOROUTINE$299).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonAuth2_upsert_1.insertAndReturnIdAsync_jrwaz_k$(this.auth_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonAuth2Dao_JdbcImpl(_db) { PersonAuth2Dao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonAuth2_abort_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterPersonAuth2_upsert_1 = new PersonAuth2Dao_JdbcImpl$_insertAdapterPersonAuth2_upsert$1(this); } protoOf(PersonAuth2Dao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonAuth2Dao_JdbcImpl).get__insertAdapterPersonAuth2_abort_nj4ee2_k$ = function () { return this._insertAdapterPersonAuth2_abort_1; }; protoOf(PersonAuth2Dao_JdbcImpl).get__insertAdapterPersonAuth2_upsert_9gzzt3_k$ = function () { return this._insertAdapterPersonAuth2_upsert_1; }; protoOf(PersonAuth2Dao_JdbcImpl).insertListAsync_a01tfe_k$ = function (auths, $completion) { return this._insertAdapterPersonAuth2_abort_1.insertListAsync_it2cbm_k$(auths, $completion); }; protoOf(PersonAuth2Dao_JdbcImpl).insertAsync_46pi3g_k$ = function (auth, $completion) { var tmp = new $insertAsyncCOROUTINE$299(this, auth, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_JdbcImpl).findByPersonUid_vxbkyt_k$ = function (personUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonAuth2.*\n FROM PersonAuth2\n WHERE PersonAuth2.pauthUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT PersonAuth2.*\n FROM PersonAuth2\n WHERE PersonAuth2.pauthUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonAuth2Dao_JdbcImpl$findByPersonUid$slambda_0(personUid, null), $completion); }; protoOf(PersonAuth2Dao_JdbcImpl).findByUsername_n7x67o_k$ = function (username, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonAuth2.*\n FROM PersonAuth2\n JOIN Person ON PersonAuth2.pauthUid = Person.personUid\n WHERE Person.username = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonAuth2Dao_JdbcImpl$findByUsername$slambda_0(username, null), $completion); }; function PersonAuth2Dao_Repo$insertListAsync$slambda(this$0, $auths, resultContinuation) { this.this$0__1 = this$0; this.$auths_1 = $auths; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuth2Dao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonAuth2Dao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_a01tfe_k$(this.$auths_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuth2Dao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonAuth2Dao_Repo$insertListAsync$slambda(this.this$0__1, this.$auths_1, completion); }; function PersonAuth2Dao_Repo$insertListAsync$slambda_0(this$0, $auths, resultContinuation) { var i = new PersonAuth2Dao_Repo$insertListAsync$slambda(this$0, $auths, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation) { this.this$0__1 = this$0; this.$auth_1 = $auth; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_46pi3g_k$(this.$auth_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuth2Dao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonAuth2Dao_Repo$insertAsync$slambda(this.this$0__1, this.$auth_1, completion); }; function PersonAuth2Dao_Repo$insertAsync$slambda_0(this$0, $auth, resultContinuation) { var i = new PersonAuth2Dao_Repo$insertAsync$slambda(this$0, $auth, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$300(_this__u8e3s4, auth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.auth_1 = auth; } protoOf($insertAsyncCOROUTINE$300).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonAuth2', PersonAuth2Dao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.auth_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByPersonUidCOROUTINE$301(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; } protoOf($findByPersonUidCOROUTINE$301).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPersonUid_vxbkyt_k$(this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUsernameCOROUTINE$302(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; } protoOf($findByUsernameCOROUTINE$302).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUsername_n7x67o_k$(this.username_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonAuth2Dao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonAuth2Dao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(PersonAuth2Dao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonAuth2Dao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonAuth2Dao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonAuth2Dao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonAuth2Dao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonAuth2Dao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonAuth2Dao_Repo).insertListAsync_a01tfe_k$ = function (auths, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonAuth2', PersonAuth2Dao_Repo$insertListAsync$slambda_0(this, auths, null), $completion); }; protoOf(PersonAuth2Dao_Repo).insertAsync_46pi3g_k$ = function (auth, $completion) { var tmp = new $insertAsyncCOROUTINE$300(this, auth, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_Repo).findByPersonUid_vxbkyt_k$ = function (personUid, $completion) { var tmp = new $findByPersonUidCOROUTINE$301(this, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuth2Dao_Repo).findByUsername_n7x67o_k$ = function (username, $completion) { var tmp = new $findByUsernameCOROUTINE$302(this, username, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function PersonAuthDao() { } function PersonAuthDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonAuthDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function PersonAuthDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personAuthUid = $_result.getLong_3wgf2g_k$('personAuthUid'); var _tmp_passwordHash = $_result.getString_gb1pt9_k$('passwordHash'); var _tmp_personAuthStatus = $_result.getInt_npc9pd_k$('personAuthStatus'); // Inline function 'kotlin.apply' call var this_0 = new PersonAuth(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonAuthDao_JdbcImpl.findByUidAsync....' call this_0.set_personAuthUid_bcewzc_k$(_tmp_personAuthUid); this_0.set_passwordHash_weksrz_k$(_tmp_passwordHash); this_0.set_personAuthStatus_vsqeqs_k$(_tmp_personAuthStatus); return this_0; }; } function PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)'; }; protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bindPreparedStmtToEntity_5dsjdq_k$ = function (stmt, entity) { if (entity.get_personAuthUid_uizquu_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personAuthUid_uizquu_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_passwordHash_dwynpu_k$()); stmt.setInt_c72a8z_k$(3, entity.get_personAuthStatus_vrc43c_k$()); }; protoOf(PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_5dsjdq_k$(stmt, entity instanceof PersonAuth ? entity : THROW_CCE()); }; function PersonAuthDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuthDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuthDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAuthDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_passwordHash_dwynpu_k$()); this._stmt_1.setInt_c72a8z_k$(2, this.$entity_1.get_personAuthStatus_vrc43c_k$()); this._stmt_1.setLong_j1sybo_k$(3, this.$entity_1.get_personAuthUid_uizquu_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuthDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonAuthDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonAuthDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonAuthDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new PersonAuthDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonAuthDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_passwordHash_dwynpu_k$()); _stmt.setInt_c72a8z_k$(2, $entity.get_personAuthStatus_vrc43c_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_personAuthUid_uizquu_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PersonAuthDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuthDao_JdbcImpl$findByUidAsync$slambda).invoke_5fmzn2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuthDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5fmzn2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAuthDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonAuthDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuthDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonAuthDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonAuthDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonAuthDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonAuthDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5fmzn2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonAuthDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, PersonAuthDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function PersonAuthDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personAuthUid = $_result.getLong_3wgf2g_k$('personAuthUid'); var _tmp_passwordHash = $_result.getString_gb1pt9_k$('passwordHash'); var _tmp_personAuthStatus = $_result.getInt_npc9pd_k$('personAuthStatus'); // Inline function 'kotlin.apply' call var this_0 = new PersonAuth(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonAuthDao_JdbcImpl.findByUid....' call this_0.set_personAuthUid_bcewzc_k$(_tmp_personAuthUid); this_0.set_passwordHash_weksrz_k$(_tmp_passwordHash); this_0.set_personAuthStatus_vsqeqs_k$(_tmp_personAuthStatus); return this_0; }; } function PersonAuthDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonAuthDao_JdbcImpl$findByUid$lambda$lambda); }; } function PersonAuthDao_JdbcImpl$findPersonByUsername$lambda$lambda(_result) { return mapNextRow(_result, null, PersonAuthDao_JdbcImpl$findPersonByUsername$lambda$lambda$lambda(_result)); } function PersonAuthDao_JdbcImpl$findPersonByUsername$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonAuthDao_JdbcImpl.findPersonByUsername....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonAuthDao_JdbcImpl$findPersonByUsername$lambda($username) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $username); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonAuthDao_JdbcImpl$findPersonByUsername$lambda$lambda); }; } function PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda($passwordHash, $personUid, resultContinuation) { this.$passwordHash_1 = $passwordHash; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$passwordHash_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda(this.$passwordHash_1, this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda_0($passwordHash, $personUid, resultContinuation) { var i = new PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda($passwordHash, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$303(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$303).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonAuth_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$304(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$304).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE PersonAuth SET passwordHash = ?, personAuthStatus = ? WHERE personAuthUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, PersonAuthDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonAuthDao_JdbcImpl(_db) { PersonAuthDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonAuth_abort_1 = new PersonAuthDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this); } protoOf(PersonAuthDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonAuthDao_JdbcImpl).get__insertAdapterPersonAuth_abort_4jevta_k$ = function () { return this._insertAdapterPersonAuth_abort_1; }; protoOf(PersonAuthDao_JdbcImpl).insert_ysa9o7_k$ = function (entity) { var _retVal = this._insertAdapterPersonAuth_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PersonAuthDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_ysa9o7_k$(entity instanceof PersonAuth ? entity : THROW_CCE()); }; protoOf(PersonAuthDao_JdbcImpl).insertAsync_hqjalq_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$303(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuthDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_hqjalq_k$(entity instanceof PersonAuth ? entity : THROW_CCE(), $completion); }; protoOf(PersonAuthDao_JdbcImpl).insertList_qzywt3_k$ = function (entityList) { this._insertAdapterPersonAuth_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PersonAuthDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_qzywt3_k$(entityList); }; protoOf(PersonAuthDao_JdbcImpl).updateAsync_xzvea0_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$304(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonAuthDao_JdbcImpl).update_tr5gvr_k$ = function (entity) { var _sql = 'UPDATE PersonAuth SET passwordHash = ?, personAuthStatus = ? WHERE personAuthUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PersonAuthDao_JdbcImpl$update$lambda(entity)); }; protoOf(PersonAuthDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_tr5gvr_k$(entity instanceof PersonAuth ? entity : THROW_CCE()); }; protoOf(PersonAuthDao_JdbcImpl).findByUidAsync_bhkt9w_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonAuth WHERE personAuthUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PersonAuth WHERE personAuthUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonAuthDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonAuthDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonAuth WHERE personAuthUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PersonAuth WHERE personAuthUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, PersonAuthDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(PersonAuthDao_JdbcImpl).findPersonByUsername_dxaegx_k$ = function (username) { var tmp = new PreparedStatementConfig('SELECT * FROM Person WHERE username = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, PersonAuthDao_JdbcImpl$findPersonByUsername$lambda(username)); }; protoOf(PersonAuthDao_JdbcImpl).updatePasswordForPersonUid_j0w8ix_k$ = function (personUid, passwordHash, $completion) { var tmp = new PreparedStatementConfig('UPDATE PersonAuth set passwordHash = ? WHERE personAuthUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'UPDATE PersonAuth set passwordHash = ? WHERE personAuthUid = ?\n', false); return prepareAndUseStatementAsync(this._db_1, tmp, PersonAuthDao_JdbcImpl$updatePasswordForPersonUid$slambda_0(passwordHash, personUid, null), $completion); }; function PersonDao() { } protoOf(PersonDao).findPersonsWithPermissionAsList$default_crqsrt_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findPersonsWithPermissionAsList_q8b2k7_k$(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) : $super.findPersonsWithPermissionAsList_q8b2k7_k$.call(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); }; protoOf(PersonDao).findPersonsWithPermissionAsPagingSource$default_r8a29s_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findPersonsWithPermissionAsPagingSource_cdzstc_k$(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) : $super.findPersonsWithPermissionAsPagingSource_cdzstc_k$.call(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); }; function _get__db__e63s44_38($this) { return $this._db_1; } function _get__dao__d2kw60_36($this) { return $this._dao_1; } function $insertListAsyncCOROUTINE$305(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$305).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_personUid_mmhd76_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_personUid_j3idds_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_personLct_aq7lf1_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_2bxoks_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertOrReplaceCOROUTINE$306(_this__u8e3s4, person, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.person_1 = person; } protoOf($insertOrReplaceCOROUTINE$306).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.person_1.get_personUid_mmhd76_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.person_1.set_personUid_j3idds_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.person_1.set_personLct_aq7lf1_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertOrReplace_ta806x_k$(this.person_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertPersonGroupCOROUTINE$307(_this__u8e3s4, personGroup, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroup_1 = personGroup; } protoOf($insertPersonGroupCOROUTINE$307).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.personGroup_1.get_groupUid_nfguzq_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(43, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.personGroup_1.set_groupUid_bnt4k0_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.personGroup_1.set_groupLct_k13wir_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertPersonGroup_y1d7cv_k$(this.personGroup_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.personGroup_1.get_groupUid_nfguzq_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertPersonGroupMemberCOROUTINE$308(_this__u8e3s4, personGroupMember, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroupMember_1 = personGroupMember; } protoOf($insertPersonGroupMemberCOROUTINE$308).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.personGroupMember_1.get_groupMemberUid_slf528_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(44, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.personGroupMember_1.set_groupMemberUid_wo6tfa_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.personGroupMember_1.set_groupMemberLct_oaw1gj_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertPersonGroupMember_fxinpp_k$(this.personGroupMember_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.personGroupMember_1.get_groupMemberUid_slf528_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$309(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$309).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_personUid_mmhd76_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(9, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_personUid_j3idds_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_personLct_aq7lf1_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_personUid_mmhd76_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonDao_DoorWrapper(_db, _dao) { PersonDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonDao_DoorWrapper).insertListAsync_2bxoks_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$305(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_DoorWrapper).insertOrReplace_ta806x_k$ = function (person, $completion) { var tmp = new $insertOrReplaceCOROUTINE$306(this, person, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_DoorWrapper).countUsername_16eexw_k$ = function (username, $completion) { return this._dao_1.countUsername_16eexw_k$(username, $completion); }; protoOf(PersonDao_DoorWrapper).findUidAndPasswordHashAsync_xjytjj_k$ = function (username, $completion) { return this._dao_1.findUidAndPasswordHashAsync_xjytjj_k$(username, $completion); }; protoOf(PersonDao_DoorWrapper).findByUsernameAndPasswordHash2_giabxq_k$ = function (username, passwordHash, $completion) { return this._dao_1.findByUsernameAndPasswordHash2_giabxq_k$(username, passwordHash, $completion); }; protoOf(PersonDao_DoorWrapper).insertPersonAuth_imw8ys_k$ = function (personAuth) { throw IllegalStateException_init_$Create$('insertPersonAuth: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).findByUsername_5oxwo1_k$ = function (username) { throw IllegalStateException_init_$Create$('findByUsername: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).findByUsernameAsync_z8txi6_k$ = function (username, $completion) { return this._dao_1.findByUsernameAsync_z8txi6_k$(username, $completion); }; protoOf(PersonDao_DoorWrapper).findSystemAccount_3fuv99_k$ = function (nodeId, $completion) { return this._dao_1.findSystemAccount_3fuv99_k$(nodeId, $completion); }; protoOf(PersonDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).findByUidWithPicture_cwvofg_k$ = function (accountPersonUid, $completion) { return this._dao_1.findByUidWithPicture_cwvofg_k$(accountPersonUid, $completion); }; protoOf(PersonDao_DoorWrapper).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { return this._dao_1.findByUidWithPictureAsFlow_n0b42e_k$(uid); }; protoOf(PersonDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(PersonDao_DoorWrapper).findByUidAsync_uxf6ac_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_uxf6ac_k$(uid, $completion); }; protoOf(PersonDao_DoorWrapper).findByUidAsFlow_fzg2cy_k$ = function (uid) { return this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); }; protoOf(PersonDao_DoorWrapper).updateAsync_ideaps_k$ = function (entity, $completion) { entity.set_personLct_aq7lf1_k$(systemTimeInMillis()); return this._dao_1.updateAsync_ideaps_k$(entity, $completion); }; protoOf(PersonDao_DoorWrapper).insertPersonGroup_y1d7cv_k$ = function (personGroup, $completion) { var tmp = new $insertPersonGroupCOROUTINE$307(this, personGroup, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_DoorWrapper).insertPersonGroupMember_fxinpp_k$ = function (personGroupMember, $completion) { var tmp = new $insertPersonGroupMemberCOROUTINE$308(this, personGroupMember, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_DoorWrapper).findPersonsWithPermissionAsList_q8b2k7_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { throw IllegalStateException_init_$Create$('findPersonsWithPermissionAsList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).findPersonsWithPermissionAsPagingSource_cdzstc_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { return this._dao_1.findPersonsWithPermissionAsPagingSource_cdzstc_k$(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); }; protoOf(PersonDao_DoorWrapper).findByUidWithDisplayDetailsLive_9cn5te_k$ = function (personUid, activeUserPersonUid) { return this._dao_1.findByUidWithDisplayDetailsLive_9cn5te_k$(personUid, activeUserPersonUid); }; protoOf(PersonDao_DoorWrapper).findByUidWithDisplayDetailsFlow_997fuc_k$ = function (personUid, accountPersonUid) { return this._dao_1.findByUidWithDisplayDetailsFlow_997fuc_k$(personUid, accountPersonUid); }; protoOf(PersonDao_DoorWrapper).getAllPerson_8xzcdc_k$ = function () { throw IllegalStateException_init_$Create$('getAllPerson: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).getNamesByUid_owsdl3_k$ = function (uid) { return this._dao_1.getNamesByUid_owsdl3_k$(uid); }; protoOf(PersonDao_DoorWrapper).getNamesByUidAsync_cy54rc_k$ = function (uid, $completion) { return this._dao_1.getNamesByUidAsync_cy54rc_k$(uid, $completion); }; protoOf(PersonDao_DoorWrapper).updateUsername_rf7ozu_k$ = function (personUid, username, currentTime, $completion) { return this._dao_1.updateUsername_rf7ozu_k$(personUid, username, currentTime, $completion); }; protoOf(PersonDao_DoorWrapper).selectExistingUsernames_hrfovc_k$ = function (usernames, $completion) { return this._dao_1.selectExistingUsernames_hrfovc_k$(usernames, $completion); }; protoOf(PersonDao_DoorWrapper).insert_ylr54x_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_ylr54x_k$(entity instanceof Person ? entity : THROW_CCE()); }; protoOf(PersonDao_DoorWrapper).insertAsync_mjk9ju_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$309(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_mjk9ju_k$(entity instanceof Person ? entity : THROW_CCE(), $completion); }; protoOf(PersonDao_DoorWrapper).insertList_nct1zz_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_nct1zz_k$(entityList); }; protoOf(PersonDao_DoorWrapper).update_ljti7z_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_ljti7z_k$(entity instanceof Person ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$countUsername$slambda$lambda(_result) { return mapNextRow(_result, 0, PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$countUsername$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_passwordHash = $_result.getString_gb1pt9_k$('passwordHash'); var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); // Inline function 'kotlin.apply' call var this_0 = new PersonUidAndPasswordHash(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findUidAndPasswordHashAsync....' call this_0.set_passwordHash_weksrz_k$(_tmp_passwordHash); this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); return this_0; }; } function PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUsernameAndPasswordHash2....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUsernameAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUsernameAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUsernameAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUsernameAsync....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findSystemAccount$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findSystemAccount$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findSystemAccount$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findSystemAccount....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPicture.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow.....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithPictureAsFlow......' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).invoke_o95r0i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_o95r0i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_o95r0i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidLive.....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidAsync....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda(_result) { return mapRows(_result, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndListDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$excludeClazz_1 = $excludeClazz; this.$timestamp_1 = $timestamp; this.$excludeSelected_1 = $excludeSelected; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).invoke_dsopr7_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dsopr7_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$excludeClazz_1); this._stmt_1.setLong_j1sybo_k$(9, this.$excludeClazz_1); this._stmt_1.setLong_j1sybo_k$(10, this.$timestamp_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$excludeSelected_1; this._stmt_1.setArray_61y2p9_k$(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setString_2gt7ua_k$(12, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(17, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda(this.$accountPersonUid_1, this.$excludeClazz_1, this.$timestamp_1, this.$excludeSelected_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dsopr7_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$excludeClazz_1 = $excludeClazz; this.$timestamp_1 = $timestamp; this.$excludeSelected_1 = $excludeSelected; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$excludeClazz_1); this._stmt_1.setLong_j1sybo_k$(9, this.$excludeClazz_1); this._stmt_1.setLong_j1sybo_k$(10, this.$timestamp_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$excludeSelected_1; this._stmt_1.setArray_61y2p9_k$(11, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setString_2gt7ua_k$(12, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda(this.$accountPersonUid_1, this.$excludeClazz_1, this.$timestamp_1, this.$excludeSelected_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation) { var i = new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.getLong_3wgf2g_k$('ppjUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_ppjPcsn = $_result.getLong_3wgf2g_k$('ppjPcsn'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_ppjLcsn = $_result.getLong_3wgf2g_k$('ppjLcsn'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ppjLcb = $_result.getInt_npc9pd_k$('ppjLcb'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_ppjLct = $_result.getLong_3wgf2g_k$('ppjLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_ppjParentPersonUid = $_result.getLong_3wgf2g_k$('ppjParentPersonUid'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_ppjMinorPersonUid = $_result.getLong_3wgf2g_k$('ppjMinorPersonUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ppjRelationship = $_result.getInt_npc9pd_k$('ppjRelationship'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_ppjEmail = $_result.getString_gb1pt9_k$('ppjEmail'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_ppjPhone = $_result.getString_gb1pt9_k$('ppjPhone'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_ppjInactive = $_result.getBoolean_xz3hoo_k$('ppjInactive'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_ppjStatus = $_result.getInt_npc9pd_k$('ppjStatus'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_ppjApprovalTiemstamp = $_result.getLong_3wgf2g_k$('ppjApprovalTiemstamp'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_ppjApprovalIpAddr = $_result.getString_gb1pt9_k$('ppjApprovalIpAddr'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new PersonAndDisplayDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsLive.....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsLive......' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonParentJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsLive......' call this_2.set_ppjUid_1pa5iz_k$(_tmp_ppjUid); this_2.set_ppjPcsn_iwvk8z_k$(_tmp_ppjPcsn); this_2.set_ppjLcsn_i0nccf_k$(_tmp_ppjLcsn); this_2.set_ppjLcb_e12jee_k$(_tmp_ppjLcb); this_2.set_ppjLct_a2kxhq_k$(_tmp_ppjLct); this_2.set_ppjParentPersonUid_h015fq_k$(_tmp_ppjParentPersonUid); this_2.set_ppjMinorPersonUid_aovzpn_k$(_tmp_ppjMinorPersonUid); this_2.set_ppjRelationship_re4gsd_k$(_tmp_ppjRelationship); this_2.set_ppjEmail_egsoco_k$(_tmp_ppjEmail); this_2.set_ppjPhone_iq44ne_k$(_tmp_ppjPhone); this_2.set_ppjInactive_y9dner_k$(_tmp_ppjInactive); this_2.set_ppjStatus_hiah55_k$(_tmp_ppjStatus); this_2.set_ppjApprovalTiemstamp_wbkei0_k$(_tmp_ppjApprovalTiemstamp); this_2.set_ppjApprovalIpAddr_lc766n_k$(_tmp_ppjApprovalIpAddr); this_0.set_parentJoin_j4ptis_k$(this_2); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsLive......' call this_3.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_3.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_3.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_3.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_3.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_3.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_3); } if (!_tmp_TransferJobItem_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsLive......' call this_4.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_4.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_4.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_4.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_4.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_4.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_4.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_4.set_tjiType_zua7c_k$(_tmp_tjiType); this_4.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_4.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_4.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_4.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_4.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_4.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); this_0.set_personPictureTransferJobItem_8ho57u_k$(this_4); } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda($personUid, $activeUserPersonUid, resultContinuation) { this.$personUid_1 = $personUid; this.$activeUserPersonUid_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda).invoke_a3rgf6_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_a3rgf6_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$activeUserPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda(this.$personUid_1, this.$activeUserPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda_0($personUid, $activeUserPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda($personUid, $activeUserPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_a3rgf6_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.getLong_3wgf2g_k$('ppjUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_ppjPcsn = $_result.getLong_3wgf2g_k$('ppjPcsn'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_ppjLcsn = $_result.getLong_3wgf2g_k$('ppjLcsn'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_ppjLcb = $_result.getInt_npc9pd_k$('ppjLcb'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_ppjLct = $_result.getLong_3wgf2g_k$('ppjLct'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_ppjParentPersonUid = $_result.getLong_3wgf2g_k$('ppjParentPersonUid'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_ppjMinorPersonUid = $_result.getLong_3wgf2g_k$('ppjMinorPersonUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_ppjRelationship = $_result.getInt_npc9pd_k$('ppjRelationship'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_ppjEmail = $_result.getString_gb1pt9_k$('ppjEmail'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_ppjPhone = $_result.getString_gb1pt9_k$('ppjPhone'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_ppjInactive = $_result.getBoolean_xz3hoo_k$('ppjInactive'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_ppjStatus = $_result.getInt_npc9pd_k$('ppjStatus'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_ppjApprovalTiemstamp = $_result.getLong_3wgf2g_k$('ppjApprovalTiemstamp'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_ppjApprovalIpAddr = $_result.getString_gb1pt9_k$('ppjApprovalIpAddr'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_TransferJobItem_nullCount = 0; var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJobItem_nullCount = _tmp_TransferJobItem_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_TransferJobItem_isAllNull = _tmp_TransferJobItem_nullCount === 14; // Inline function 'kotlin.apply' call var this_0 = new PersonAndDisplayDetail(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow.....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonParentJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_2.set_ppjUid_1pa5iz_k$(_tmp_ppjUid); this_2.set_ppjPcsn_iwvk8z_k$(_tmp_ppjPcsn); this_2.set_ppjLcsn_i0nccf_k$(_tmp_ppjLcsn); this_2.set_ppjLcb_e12jee_k$(_tmp_ppjLcb); this_2.set_ppjLct_a2kxhq_k$(_tmp_ppjLct); this_2.set_ppjParentPersonUid_h015fq_k$(_tmp_ppjParentPersonUid); this_2.set_ppjMinorPersonUid_aovzpn_k$(_tmp_ppjMinorPersonUid); this_2.set_ppjRelationship_re4gsd_k$(_tmp_ppjRelationship); this_2.set_ppjEmail_egsoco_k$(_tmp_ppjEmail); this_2.set_ppjPhone_iq44ne_k$(_tmp_ppjPhone); this_2.set_ppjInactive_y9dner_k$(_tmp_ppjInactive); this_2.set_ppjStatus_hiah55_k$(_tmp_ppjStatus); this_2.set_ppjApprovalTiemstamp_wbkei0_k$(_tmp_ppjApprovalTiemstamp); this_2.set_ppjApprovalIpAddr_lc766n_k$(_tmp_ppjApprovalIpAddr); this_0.set_parentJoin_j4ptis_k$(this_2); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_3.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_3.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_3.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_3.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_3.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_3.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_3); } if (!_tmp_TransferJobItem_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUidWithDisplayDetailsFlow......' call this_4.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_4.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_4.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_4.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_4.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_4.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_4.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_4.set_tjiType_zua7c_k$(_tmp_tjiType); this_4.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_4.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_4.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_4.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_4.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_4.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); this_0.set_personPictureTransferJobItem_8ho57u_k$(this_4); } return this_0; }; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation) { this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).invoke_a3rgf6_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_a3rgf6_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda(this.$personUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0($personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda($personUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_a3rgf6_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); // Inline function 'kotlin.apply' call var this_0 = new PersonNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUid.....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); return this_0; }; } function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).invoke_tr3rv_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_tr3rv_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_tr3rv_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); // Inline function 'kotlin.apply' call var this_0 = new PersonNames(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getNamesByUidAsync....' call this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); return this_0; }; } function PersonDao_JdbcImpl$selectExistingUsernames$slambda$lambda(_result) { return mapRows(_result, PersonDao_JdbcImpl$selectExistingUsernames$slambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$selectExistingUsernames$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).bindPreparedStmtToEntity_u5vphy_k$ = function (stmt, entity) { if (entity.get_personUid_mmhd76_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personUid_mmhd76_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_username_ytz5i7_k$()); stmt.setString_2gt7ua_k$(3, entity.get_firstNames_n3o3y7_k$()); stmt.setString_2gt7ua_k$(4, entity.get_lastName_f360wa_k$()); stmt.setString_2gt7ua_k$(5, entity.get_emailAddr_rghqf0_k$()); stmt.setString_2gt7ua_k$(6, entity.get_phoneNum_i20sg1_k$()); stmt.setInt_c72a8z_k$(7, entity.get_gender_dqurbe_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_active_avldsf_k$()); stmt.setLong_j1sybo_k$(9, entity.get_dateOfBirth_7hv8kx_k$()); stmt.setString_2gt7ua_k$(10, entity.get_personAddress_w7qqwm_k$()); stmt.setString_2gt7ua_k$(11, entity.get_personOrgId_6lzn8h_k$()); stmt.setLong_j1sybo_k$(12, entity.get_personGroupUid_wriklr_k$()); stmt.setLong_j1sybo_k$(13, entity.get_personLct_mmh6e7_k$()); stmt.setString_2gt7ua_k$(14, entity.get_personCountry_3zsn1k_k$()); stmt.setInt_c72a8z_k$(15, entity.get_personType_8y6hc8_k$()); stmt.setLong_j1sybo_k$(16, entity.get_personMasterChangeSeqNum_prsruf_k$()); stmt.setLong_j1sybo_k$(17, entity.get_personLocalChangeSeqNum_gxofuk_k$()); stmt.setInt_c72a8z_k$(18, entity.get_personLastChangedBy_z0j913_k$()); stmt.setBoolean_pzdm1v_k$(19, entity.get_admin_iojndy_k$()); stmt.setString_2gt7ua_k$(20, entity.get_personNotes_6le803_k$()); stmt.setString_2gt7ua_k$(21, entity.get_fatherName_ymrq1c_k$()); stmt.setString_2gt7ua_k$(22, entity.get_fatherNumber_vcrsoi_k$()); stmt.setString_2gt7ua_k$(23, entity.get_motherName_jkvzav_k$()); stmt.setString_2gt7ua_k$(24, entity.get_motherNum_1nqyg6_k$()); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_u5vphy_k$(stmt, entity instanceof Person ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).bindPreparedStmtToEntity_u5vphy_k$ = function (stmt, entity) { if (entity.get_personUid_mmhd76_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personUid_mmhd76_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_username_ytz5i7_k$()); stmt.setString_2gt7ua_k$(3, entity.get_firstNames_n3o3y7_k$()); stmt.setString_2gt7ua_k$(4, entity.get_lastName_f360wa_k$()); stmt.setString_2gt7ua_k$(5, entity.get_emailAddr_rghqf0_k$()); stmt.setString_2gt7ua_k$(6, entity.get_phoneNum_i20sg1_k$()); stmt.setInt_c72a8z_k$(7, entity.get_gender_dqurbe_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_active_avldsf_k$()); stmt.setLong_j1sybo_k$(9, entity.get_dateOfBirth_7hv8kx_k$()); stmt.setString_2gt7ua_k$(10, entity.get_personAddress_w7qqwm_k$()); stmt.setString_2gt7ua_k$(11, entity.get_personOrgId_6lzn8h_k$()); stmt.setLong_j1sybo_k$(12, entity.get_personGroupUid_wriklr_k$()); stmt.setLong_j1sybo_k$(13, entity.get_personLct_mmh6e7_k$()); stmt.setString_2gt7ua_k$(14, entity.get_personCountry_3zsn1k_k$()); stmt.setInt_c72a8z_k$(15, entity.get_personType_8y6hc8_k$()); stmt.setLong_j1sybo_k$(16, entity.get_personMasterChangeSeqNum_prsruf_k$()); stmt.setLong_j1sybo_k$(17, entity.get_personLocalChangeSeqNum_gxofuk_k$()); stmt.setInt_c72a8z_k$(18, entity.get_personLastChangedBy_z0j913_k$()); stmt.setBoolean_pzdm1v_k$(19, entity.get_admin_iojndy_k$()); stmt.setString_2gt7ua_k$(20, entity.get_personNotes_6le803_k$()); stmt.setString_2gt7ua_k$(21, entity.get_fatherName_ymrq1c_k$()); stmt.setString_2gt7ua_k$(22, entity.get_fatherNumber_vcrsoi_k$()); stmt.setString_2gt7ua_k$(23, entity.get_motherName_jkvzav_k$()); stmt.setString_2gt7ua_k$(24, entity.get_motherNum_1nqyg6_k$()); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_u5vphy_k$(stmt, entity instanceof Person ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bindPreparedStmtToEntity_5dsjdq_k$ = function (stmt, entity) { if (entity.get_personAuthUid_uizquu_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personAuthUid_uizquu_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_passwordHash_dwynpu_k$()); stmt.setInt_c72a8z_k$(3, entity.get_personAuthStatus_vrc43c_k$()); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_5dsjdq_k$(stmt, entity instanceof PersonAuth ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bindPreparedStmtToEntity_weq6l9_k$ = function (stmt, entity) { if (entity.get_groupUid_nfguzq_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_groupUid_nfguzq_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_groupMasterCsn_nqdk06_k$()); stmt.setLong_j1sybo_k$(3, entity.get_groupLocalCsn_6v46wn_k$()); stmt.setInt_c72a8z_k$(4, entity.get_groupLastChangedBy_croccf_k$()); stmt.setLong_j1sybo_k$(5, entity.get_groupLct_nfh1sp_k$()); stmt.setString_2gt7ua_k$(6, entity.get_groupName_g0irjz_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_groupActive_ho5hbw_k$()); stmt.setInt_c72a8z_k$(8, entity.get_personGroupFlag_l95gi5_k$()); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_weq6l9_k$(stmt, entity instanceof PersonGroup ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bindPreparedStmtToEntity_px31r1_k$ = function (stmt, entity) { if (entity.get_groupMemberUid_slf528_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_groupMemberUid_slf528_k$()); } stmt.setBoolean_pzdm1v_k$(2, entity.get_groupMemberActive_a0aeyy_k$()); stmt.setLong_j1sybo_k$(3, entity.get_groupMemberPersonUid_lzer5h_k$()); stmt.setLong_j1sybo_k$(4, entity.get_groupMemberGroupUid_77jxmp_k$()); stmt.setLong_j1sybo_k$(5, entity.get_groupMemberMasterCsn_wlkfhw_k$()); stmt.setLong_j1sybo_k$(6, entity.get_groupMemberLocalCsn_u9r4n7_k$()); stmt.setInt_c72a8z_k$(7, entity.get_groupMemberLastChangedBy_zcjmgr_k$()); stmt.setLong_j1sybo_k$(8, entity.get_groupMemberLct_slfbv7_k$()); }; protoOf(PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_px31r1_k$(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_username_ytz5i7_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_firstNames_n3o3y7_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$entity_1.get_lastName_f360wa_k$()); this._stmt_1.setString_2gt7ua_k$(4, this.$entity_1.get_emailAddr_rghqf0_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$entity_1.get_phoneNum_i20sg1_k$()); this._stmt_1.setInt_c72a8z_k$(6, this.$entity_1.get_gender_dqurbe_k$()); this._stmt_1.setBoolean_pzdm1v_k$(7, this.$entity_1.get_active_avldsf_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_dateOfBirth_7hv8kx_k$()); this._stmt_1.setString_2gt7ua_k$(9, this.$entity_1.get_personAddress_w7qqwm_k$()); this._stmt_1.setString_2gt7ua_k$(10, this.$entity_1.get_personOrgId_6lzn8h_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_personGroupUid_wriklr_k$()); this._stmt_1.setLong_j1sybo_k$(12, this.$entity_1.get_personLct_mmh6e7_k$()); this._stmt_1.setString_2gt7ua_k$(13, this.$entity_1.get_personCountry_3zsn1k_k$()); this._stmt_1.setInt_c72a8z_k$(14, this.$entity_1.get_personType_8y6hc8_k$()); this._stmt_1.setLong_j1sybo_k$(15, this.$entity_1.get_personMasterChangeSeqNum_prsruf_k$()); this._stmt_1.setLong_j1sybo_k$(16, this.$entity_1.get_personLocalChangeSeqNum_gxofuk_k$()); this._stmt_1.setInt_c72a8z_k$(17, this.$entity_1.get_personLastChangedBy_z0j913_k$()); this._stmt_1.setBoolean_pzdm1v_k$(18, this.$entity_1.get_admin_iojndy_k$()); this._stmt_1.setString_2gt7ua_k$(19, this.$entity_1.get_personNotes_6le803_k$()); this._stmt_1.setString_2gt7ua_k$(20, this.$entity_1.get_fatherName_ymrq1c_k$()); this._stmt_1.setString_2gt7ua_k$(21, this.$entity_1.get_fatherNumber_vcrsoi_k$()); this._stmt_1.setString_2gt7ua_k$(22, this.$entity_1.get_motherName_jkvzav_k$()); this._stmt_1.setString_2gt7ua_k$(23, this.$entity_1.get_motherNum_1nqyg6_k$()); this._stmt_1.setLong_j1sybo_k$(24, this.$entity_1.get_personUid_mmhd76_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new PersonDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_username_ytz5i7_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_firstNames_n3o3y7_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_lastName_f360wa_k$()); _stmt.setString_2gt7ua_k$(4, $entity.get_emailAddr_rghqf0_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_phoneNum_i20sg1_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_gender_dqurbe_k$()); _stmt.setBoolean_pzdm1v_k$(7, $entity.get_active_avldsf_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_dateOfBirth_7hv8kx_k$()); _stmt.setString_2gt7ua_k$(9, $entity.get_personAddress_w7qqwm_k$()); _stmt.setString_2gt7ua_k$(10, $entity.get_personOrgId_6lzn8h_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_personGroupUid_wriklr_k$()); _stmt.setLong_j1sybo_k$(12, $entity.get_personLct_mmh6e7_k$()); _stmt.setString_2gt7ua_k$(13, $entity.get_personCountry_3zsn1k_k$()); _stmt.setInt_c72a8z_k$(14, $entity.get_personType_8y6hc8_k$()); _stmt.setLong_j1sybo_k$(15, $entity.get_personMasterChangeSeqNum_prsruf_k$()); _stmt.setLong_j1sybo_k$(16, $entity.get_personLocalChangeSeqNum_gxofuk_k$()); _stmt.setInt_c72a8z_k$(17, $entity.get_personLastChangedBy_z0j913_k$()); _stmt.setBoolean_pzdm1v_k$(18, $entity.get_admin_iojndy_k$()); _stmt.setString_2gt7ua_k$(19, $entity.get_personNotes_6le803_k$()); _stmt.setString_2gt7ua_k$(20, $entity.get_fatherName_ymrq1c_k$()); _stmt.setString_2gt7ua_k$(21, $entity.get_fatherNumber_vcrsoi_k$()); _stmt.setString_2gt7ua_k$(22, $entity.get_motherName_jkvzav_k$()); _stmt.setString_2gt7ua_k$(23, $entity.get_motherNum_1nqyg6_k$()); _stmt.setLong_j1sybo_k$(24, $entity.get_personUid_mmhd76_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation) { this.$username_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$countUsername$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$countUsername$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$countUsername$slambda(this.$username_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$countUsername$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$countUsername$slambda_0($username, resultContinuation) { var i = new PersonDao_JdbcImpl$countUsername$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda($username, resultContinuation) { this.$username_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda).invoke_50odt6_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_50odt6_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda(this.$username_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda_0($username, resultContinuation) { var i = new PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_50odt6_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda($username, $passwordHash, resultContinuation) { this.$username_1 = $username; this.$passwordHash_1 = $passwordHash; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this._stmt_1.setString_2gt7ua_k$(2, this.$passwordHash_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda(this.$username_1, this.$passwordHash_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda_0($username, $passwordHash, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda($username, $passwordHash, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUsername$lambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUsername$lambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUsername$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUsername....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUsername$lambda($username) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $username); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonDao_JdbcImpl$findByUsername$lambda$lambda); }; } function PersonDao_JdbcImpl$findByUsernameAsync$slambda($username, resultContinuation) { this.$username_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUsernameAsync$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUsernameAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUsernameAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUsernameAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUsernameAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUsernameAsync$slambda(this.$username_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUsernameAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUsernameAsync$slambda_0($username, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUsernameAsync$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findSystemAccount$slambda($nodeId, resultContinuation) { this.$nodeId_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findSystemAccount$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findSystemAccount$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findSystemAccount$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$nodeId_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findSystemAccount$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findSystemAccount$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findSystemAccount$slambda(this.$nodeId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findSystemAccount$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findSystemAccount$slambda_0($nodeId, resultContinuation) { var i = new PersonDao_JdbcImpl$findSystemAccount$slambda($nodeId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, PersonDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findByUid....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonDao_JdbcImpl$findByUid$lambda$lambda); }; } function PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).invoke_o95r0i_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_o95r0i_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidWithPicture$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidWithPicture$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidWithPicture$slambda_0($accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPicture$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_o95r0i_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).invoke_4k8m5q_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_4k8m5q_k$($completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_4k8m5q_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidLive$slambda).invoke_g2i2lq_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_g2i2lq_k$($completion); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * From Person WHERE personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * From Person WHERE personUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_g2i2lq_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).invoke_oyxwwq_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oyxwwq_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oyxwwq_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda).invoke_g2i2lq_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_g2i2lq_k$($completion); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Person WHERE personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Person WHERE personUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_g2i2lq_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda$lambda(_result) { return mapRows(_result, PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndListDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findPersonsWithPermissionAsList....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findPersonsWithPermissionAsList.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.findPersonsWithPermissionAsList.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda($accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $accountPersonUid); _stmt.setLong_j1sybo_k$(2, $accountPersonUid); _stmt.setLong_j1sybo_k$(3, $accountPersonUid); _stmt.setLong_j1sybo_k$(4, $accountPersonUid); _stmt.setLong_j1sybo_k$(5, $accountPersonUid); _stmt.setLong_j1sybo_k$(6, $accountPersonUid); _stmt.setLong_j1sybo_k$(7, $accountPersonUid); _stmt.setLong_j1sybo_k$(8, $excludeClazz); _stmt.setLong_j1sybo_k$(9, $excludeClazz); _stmt.setLong_j1sybo_k$(10, $timestamp); var tmp = _stmt.getConnection_hr2oto_k$(); // Inline function 'kotlin.collections.toTypedArray' call var this_0 = $excludeSelected; var tmp$ret$0 = copyToArray(this_0); _stmt.setArray_61y2p9_k$(11, createArrayOrProxyArrayOf(tmp, 'BIGINT', tmp$ret$0)); _stmt.setString_2gt7ua_k$(12, $searchText); _stmt.setString_2gt7ua_k$(13, $searchText); _stmt.setInt_c72a8z_k$(14, $sortOrder); _stmt.setInt_c72a8z_k$(15, $sortOrder); var tmp_0 = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp_0, PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda$lambda); }; } function PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this$0, $accountPersonUid, $excludeClazz, $timestamp, $excludeSelected, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$excludeClazz_1 = $excludeClazz; this.$timestamp_1 = $timestamp; this.$excludeSelected_1 = $excludeSelected; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'Person', 'PersonPicture', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).loadRows_2pmf0q_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = CAST(? AS BIGINT))\n )\n /* End permission check */\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = ?)\n )\n /* End permission check */\n AND (? = 0 OR ? NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$loadRows$slambda_0(this.$accountPersonUid_1, this.$excludeClazz_1, this.$timestamp_1, this.$excludeSelected_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_2pmf0q_k$(_limit, _offset, $completion); }; protoOf(PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = CAST(? AS BIGINT))\n )\n /* End permission check */\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = ?)\n )\n /* End permission check */\n AND (? = 0 OR ? NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$o$countRows$slambda_0(this.$accountPersonUid_1, this.$excludeClazz_1, this.$timestamp_1, this.$excludeSelected_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda(this$0, $personUid, $activeUserPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$activeUserPersonUid_1 = $activeUserPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda).invoke_3thd72_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_3thd72_k$($completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Person.*, PersonParentJoin.* \n FROM Person\n LEFT JOIN PersonParentJoin on ppjUid = (\n SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT) \n AND ppjParentPersonUid = CAST(? AS BIGINT) \n LIMIT 1) \n WHERE Person.personUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonParentJoin.* \n FROM Person\n LEFT JOIN PersonParentJoin on ppjUid = (\n SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ? \n AND ppjParentPersonUid = ? \n LIMIT 1) \n WHERE Person.personUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda$slambda_0(this.$personUid_1, this.$activeUserPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda(this.this$0__1, this.$personUid_1, this.$activeUserPersonUid_1, completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda_0(this$0, $personUid, $activeUserPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda(this$0, $personUid, $activeUserPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_3thd72_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).invoke_3thd72_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_3thd72_k$($completion); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n FROM Person\n LEFT JOIN PersonParentJoin \n ON ppjUid =\n (SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT) \n AND ppjParentPersonUid = CAST(? AS BIGINT) \n LIMIT 1) \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = CAST(? AS BIGINT)\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiUid = \n (SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiEntityUid = CAST(? AS BIGINT)\n AND TransferJobItem.tjiTableId = 50\n AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n AND TransferJobItem.tjiStatus != 21\n LIMIT 1)\n \n WHERE Person.personUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonParentJoin.* , PersonPicture.*, TransferJobItem.*\n FROM Person\n LEFT JOIN PersonParentJoin \n ON ppjUid =\n (SELECT ppjUid \n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ? \n AND ppjParentPersonUid = ? \n LIMIT 1) \n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = ?\n LEFT JOIN TransferJobItem\n ON TransferJobItem.tjiUid = \n (SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiEntityUid = ?\n AND TransferJobItem.tjiTableId = 50\n AND TransferJobItem.tjiEntityEtag = PersonPicture.personPictureLct\n AND TransferJobItem.tjiStatus != 21\n LIMIT 1)\n \n WHERE Person.personUid = ?\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda$slambda_0(this.$personUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this.this$0__1, this.$personUid_1, this.$accountPersonUid_1, completion); }; function PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_3thd72_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$getAllPerson$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonDao_JdbcImpl$getAllPerson$lambda$lambda); } function PersonDao_JdbcImpl$getAllPerson$lambda$lambda(_result) { return mapRows(_result, PersonDao_JdbcImpl$getAllPerson$lambda$lambda$lambda(_result)); } function PersonDao_JdbcImpl$getAllPerson$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonDao_JdbcImpl.getAllPerson....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).invoke_29tw93_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_29tw93_k$($completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonDao_JdbcImpl$getNamesByUid$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUid$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_JdbcImpl$getNamesByUid$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonDao_JdbcImpl$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUid$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_29tw93_k$($completion); }; l.$arity = 0; return l; } function PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).invoke_tr3rv_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_tr3rv_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$getNamesByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$getNamesByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonDao_JdbcImpl$getNamesByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_tr3rv_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation) { this.$username_1 = $username; this.$currentTime_1 = $currentTime; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$updateUsername$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this._stmt_1.setLong_j1sybo_k$(2, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$updateUsername$slambda(this.$username_1, this.$currentTime_1, this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$updateUsername$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$updateUsername$slambda_0($username, $currentTime, $personUid, resultContinuation) { var i = new PersonDao_JdbcImpl$updateUsername$slambda($username, $currentTime, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonDao_JdbcImpl$selectExistingUsernames$slambda($usernames, resultContinuation) { this.$usernames_1 = $usernames; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_JdbcImpl$selectExistingUsernames$slambda).invoke_a27tog_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl$selectExistingUsernames$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_a27tog_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl$selectExistingUsernames$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$usernames_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'TEXT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonDao_JdbcImpl$selectExistingUsernames$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_JdbcImpl$selectExistingUsernames$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonDao_JdbcImpl$selectExistingUsernames$slambda(this.$usernames_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonDao_JdbcImpl$selectExistingUsernames$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonDao_JdbcImpl$selectExistingUsernames$slambda_0($usernames, resultContinuation) { var i = new PersonDao_JdbcImpl$selectExistingUsernames$slambda($usernames, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_a27tog_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertPersonGroupCOROUTINE$310(_this__u8e3s4, personGroup, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroup_1 = personGroup; } protoOf($insertPersonGroupCOROUTINE$310).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonGroup_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.personGroup_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertPersonGroupMemberCOROUTINE$311(_this__u8e3s4, personGroupMember, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroupMember_1 = personGroupMember; } protoOf($insertPersonGroupMemberCOROUTINE$311).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonGroupMember_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.personGroupMember_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$312(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$312).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPerson_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$313(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$313).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personLct = ?, personCountry = ?, personType = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ? WHERE personUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, PersonDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonDao_JdbcImpl(_db) { PersonDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPerson_abort_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterPerson_upsert_1 = new PersonDao_JdbcImpl$_insertAdapterPerson_upsert$1(this); var tmp_1 = this; tmp_1._insertAdapterPersonAuth_abort_1 = new PersonDao_JdbcImpl$_insertAdapterPersonAuth_abort$1(this); var tmp_2 = this; tmp_2._insertAdapterPersonGroup_abort_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this); var tmp_3 = this; tmp_3._insertAdapterPersonGroupMember_abort_1 = new PersonDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this); } protoOf(PersonDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonDao_JdbcImpl).get__insertAdapterPerson_abort_qrt1za_k$ = function () { return this._insertAdapterPerson_abort_1; }; protoOf(PersonDao_JdbcImpl).get__insertAdapterPerson_upsert_cqo3s7_k$ = function () { return this._insertAdapterPerson_upsert_1; }; protoOf(PersonDao_JdbcImpl).get__insertAdapterPersonAuth_abort_4jevta_k$ = function () { return this._insertAdapterPersonAuth_abort_1; }; protoOf(PersonDao_JdbcImpl).get__insertAdapterPersonGroup_abort_yk30pn_k$ = function () { return this._insertAdapterPersonGroup_abort_1; }; protoOf(PersonDao_JdbcImpl).get__insertAdapterPersonGroupMember_abort_n7fllh_k$ = function () { return this._insertAdapterPersonGroupMember_abort_1; }; protoOf(PersonDao_JdbcImpl).insertListAsync_2bxoks_k$ = function (entityList, $completion) { return this._insertAdapterPerson_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(PersonDao_JdbcImpl).insertOrReplace_ta806x_k$ = function (person, $completion) { return this._insertAdapterPerson_upsert_1.insertAsync_kic9b7_k$(person, $completion); }; protoOf(PersonDao_JdbcImpl).insertPersonAuth_imw8ys_k$ = function (personAuth) { this._insertAdapterPersonAuth_abort_1.insert_fs66hy_k$(personAuth); }; protoOf(PersonDao_JdbcImpl).insertPersonGroup_y1d7cv_k$ = function (personGroup, $completion) { var tmp = new $insertPersonGroupCOROUTINE$310(this, personGroup, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl).insertPersonGroupMember_fxinpp_k$ = function (personGroupMember, $completion) { var tmp = new $insertPersonGroupMemberCOROUTINE$311(this, personGroupMember, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl).insert_ylr54x_k$ = function (entity) { var _retVal = this._insertAdapterPerson_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PersonDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_ylr54x_k$(entity instanceof Person ? entity : THROW_CCE()); }; protoOf(PersonDao_JdbcImpl).insertAsync_mjk9ju_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$312(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_mjk9ju_k$(entity instanceof Person ? entity : THROW_CCE(), $completion); }; protoOf(PersonDao_JdbcImpl).insertList_nct1zz_k$ = function (entityList) { this._insertAdapterPerson_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PersonDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_nct1zz_k$(entityList); }; protoOf(PersonDao_JdbcImpl).updateAsync_ideaps_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$313(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_JdbcImpl).update_ljti7z_k$ = function (entity) { var _sql = 'UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personLct = ?, personCountry = ?, personType = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ? WHERE personUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PersonDao_JdbcImpl$update$lambda(entity)); }; protoOf(PersonDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_ljti7z_k$(entity instanceof Person ? entity : THROW_CCE()); }; protoOf(PersonDao_JdbcImpl).countUsername_16eexw_k$ = function (username, $completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM Person where Person.username = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$countUsername$slambda_0(username, null), $completion); }; protoOf(PersonDao_JdbcImpl).findUidAndPasswordHashAsync_xjytjj_k$ = function (username, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.personUid, Person.firstNames, Person.lastName, \n PersonAuth.passwordHash\n FROM Person\n JOIN PersonAuth\n ON Person.personUid = PersonAuth.personAuthUid\n WHERE Person.username = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findUidAndPasswordHashAsync$slambda_0(username, null), $completion); }; protoOf(PersonDao_JdbcImpl).findByUsernameAndPasswordHash2_giabxq_k$ = function (username, passwordHash, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*\n FROM Person\n JOIN PersonAuth2\n ON Person.personUid = PersonAuth2.pauthUid\n WHERE Person.username = ? \n AND PersonAuth2.pauthAuth = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findByUsernameAndPasswordHash2$slambda_0(username, passwordHash, null), $completion); }; protoOf(PersonDao_JdbcImpl).findByUsername_5oxwo1_k$ = function (username) { var tmp = new PreparedStatementConfig('SELECT Person.* FROM PERSON Where Person.username = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, PersonDao_JdbcImpl$findByUsername$lambda(username)); }; protoOf(PersonDao_JdbcImpl).findByUsernameAsync_z8txi6_k$ = function (username, $completion) { var tmp = new PreparedStatementConfig('SELECT Person.* FROM PERSON Where Person.username = ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findByUsernameAsync$slambda_0(username, null), $completion); }; protoOf(PersonDao_JdbcImpl).findSystemAccount_3fuv99_k$ = function (nodeId, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*\n FROM Person\n WHERE Person.dateOfBirth = CAST(? AS BIGINT)\n AND Person.personType = 1\n ', VOID, VOID, VOID, '\n SELECT Person.*\n FROM Person\n WHERE Person.dateOfBirth = ?\n AND Person.personType = 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findSystemAccount$slambda_0(nodeId, null), $completion); }; protoOf(PersonDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM PERSON WHERE Person.personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PERSON WHERE Person.personUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, PersonDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(PersonDao_JdbcImpl).findByUidWithPicture_cwvofg_k$ = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findByUidWithPicture$slambda_0(accountPersonUid, null), $completion); }; protoOf(PersonDao_JdbcImpl).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'PersonPicture']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$findByUidWithPictureAsFlow$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).findByUidAsync_uxf6ac_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Person WHERE personUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Person WHERE personUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonDao_JdbcImpl).findByUidAsFlow_fzg2cy_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$findByUidAsFlow$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).findPersonsWithPermissionAsList_q8b2k7_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { var tmp = new PreparedStatementConfig("\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = CAST(? AS BIGINT))\n )\n /* End permission check */\n AND (CAST(? AS BIGINT) = 0 OR CAST(? AS BIGINT) NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND CAST(? AS BIGINT) BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n ", true, VOID, VOID, "\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = ?)\n )\n /* End permission check */\n AND (? = 0 OR ? NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (?))\n AND (? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(?)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n \n", true); return prepareAndUseStatement_0(this._db_1, tmp, PersonDao_JdbcImpl$findPersonsWithPermissionAsList$lambda(accountPersonUid, excludeClazz, timestamp, excludeSelected, searchText, sortOrder)); }; protoOf(PersonDao_JdbcImpl).findPersonsWithPermissionAsPagingSource_cdzstc_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { return new PersonDao_JdbcImpl$findPersonsWithPermissionAsPagingSource$1(this, accountPersonUid, excludeClazz, timestamp, excludeSelected, searchText, sortOrder); }; protoOf(PersonDao_JdbcImpl).findByUidWithDisplayDetailsLive_9cn5te_k$ = function (personUid, activeUserPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'PersonParentJoin']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$findByUidWithDisplayDetailsLive$slambda_0(this, personUid, activeUserPersonUid, null)); }; protoOf(PersonDao_JdbcImpl).findByUidWithDisplayDetailsFlow_997fuc_k$ = function (personUid, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person', 'PersonPicture', 'PersonParentJoin', 'TransferJobItem']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null)); }; protoOf(PersonDao_JdbcImpl).getAllPerson_8xzcdc_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM Person', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, PersonDao_JdbcImpl$getAllPerson$lambda); }; protoOf(PersonDao_JdbcImpl).getNamesByUid_owsdl3_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Person']; return doorFlow(this._db_1, tmp, PersonDao_JdbcImpl$getNamesByUid$slambda_0(this, uid, null)); }; protoOf(PersonDao_JdbcImpl).getNamesByUidAsync_cy54rc_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT Person.firstNames, Person.lastName\n FROM Person\n WHERE Person.personUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$getNamesByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonDao_JdbcImpl).updateUsername_rf7ozu_k$ = function (personUid, username, currentTime, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE Person\n SET username = ?,\n personLct = CAST(? AS BIGINT)\n WHERE Person.personUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE Person\n SET username = ?,\n personLct = ?\n WHERE Person.personUid = ? \n \n', false); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$updateUsername$slambda_0(username, currentTime, personUid, null), $completion); }; protoOf(PersonDao_JdbcImpl).selectExistingUsernames_hrfovc_k$ = function (usernames, $completion) { var tmp = new PreparedStatementConfig('\n SELECT Person.username\n FROM Person\n WHERE Person.username IN (?)\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonDao_JdbcImpl$selectExistingUsernames$slambda_0(usernames, null), $completion); }; function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$getNamesByUid$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_2bxoks_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function PersonDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new PersonDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insertOrReplace$slambda(this$0, $person, resultContinuation) { this.this$0__1 = this$0; this.$person_1 = $person; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertOrReplace$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$insertOrReplace$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonDao_Repo$insertOrReplace$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrReplace_ta806x_k$(this.$person_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$insertOrReplace$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$insertOrReplace$slambda(this.this$0__1, this.$person_1, completion); }; function PersonDao_Repo$insertOrReplace$slambda_0(this$0, $person, resultContinuation) { var i = new PersonDao_Repo$insertOrReplace$slambda(this$0, $person, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$countUsername$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequest: exception for ' + $repoPath; }; } function PersonDao_Repo$insertPersonAuth$lambda(this$0, $personAuth) { return function () { this$0._dao_1.insertPersonAuth_imw8ys_k$($personAuth); return Unit_getInstance(); }; } function PersonDao_Repo$findByUidWithPicture$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$findByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(PersonDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_ideaps_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insertPersonGroup$slambda(this$0, $personGroup, resultContinuation) { this.this$0__1 = this$0; this.$personGroup_1 = $personGroup; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertPersonGroup$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$insertPersonGroup$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonDao_Repo$insertPersonGroup$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertPersonGroup_y1d7cv_k$(this.$personGroup_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$insertPersonGroup$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$insertPersonGroup$slambda(this.this$0__1, this.$personGroup_1, completion); }; function PersonDao_Repo$insertPersonGroup$slambda_0(this$0, $personGroup, resultContinuation) { var i = new PersonDao_Repo$insertPersonGroup$slambda(this$0, $personGroup, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insertPersonGroupMember$slambda(this$0, $personGroupMember, resultContinuation) { this.this$0__1 = this$0; this.$personGroupMember_1 = $personGroupMember; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertPersonGroupMember$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$insertPersonGroupMember$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonDao_Repo$insertPersonGroupMember$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertPersonGroupMember_fxinpp_k$(this.$personGroupMember_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$insertPersonGroupMember$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$insertPersonGroupMember$slambda(this.this$0__1, this.$personGroupMember_1, completion); }; function PersonDao_Repo$insertPersonGroupMember$slambda_0(this$0, $personGroupMember, resultContinuation) { var i = new PersonDao_Repo$insertPersonGroupMember$slambda(this$0, $personGroupMember, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) { this.this$0__1 = this$0; this.$timestamp_1 = $timestamp; this.$excludeClazz_1 = $excludeClazz; this.$excludeSelected_1 = $excludeSelected; this.$accountPersonUid_1 = $accountPersonUid; this.$sortOrder_1 = $sortOrder; this.$searchText_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'PersonDao/findPersonsWithPermissionAsPagingSource'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'PersonDao/findPersonsWithPermissionAsPagingSource'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'timestamp', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$timestamp_1)); parameter(this_0, 'excludeClazz', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$excludeClazz_1)); parameter(this_0, 'excludeSelected', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer(Companion_getInstance())), this.$excludeSelected_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer_0(StringCompanionObject_getInstance())), this.$searchText_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this.this$0__1, this.$timestamp_1, this.$excludeClazz_1, this.$excludeSelected_1, this.$accountPersonUid_1, this.$sortOrder_1, this.$searchText_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation) { var i = new PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda(this$0, $timestamp, $excludeClazz, $excludeSelected, $accountPersonUid, $sortOrder, $searchText, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonDao/findByUidWithDisplayDetailsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'PersonDao/findByUidWithDisplayDetailsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$personUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this.this$0__1, this.$personUid_1, this.$accountPersonUid_1, completion); }; function PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this$0, $personUid, $accountPersonUid, resultContinuation) { var i = new PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda(this$0, $personUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$getNamesByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonDao/getNamesByUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'PersonDao/getNamesByUid'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, PersonDao_Repo$getNamesByUid$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(PersonDao_Repo$getNamesByUid$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$getNamesByUid$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonDao_Repo$getNamesByUid$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonDao_Repo$getNamesByUid$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$getNamesByUidAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$username_1 = $username; this.$currentTime_1 = $currentTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$updateUsername$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$updateUsername$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(PersonDao_Repo$updateUsername$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUsername_rf7ozu_k$(this.$personUid_1, this.$username_1, this.$currentTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$updateUsername$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$updateUsername$slambda(this.this$0__1, this.$personUid_1, this.$username_1, this.$currentTime_1, completion); }; function PersonDao_Repo$updateUsername$slambda_0(this$0, $personUid, $username, $currentTime, resultContinuation) { var i = new PersonDao_Repo$updateUsername$slambda(this$0, $personUid, $username, $currentTime, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function PersonDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $countUsernameCOROUTINE$314(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; } protoOf($countUsernameCOROUTINE$314).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.ARGUMENT0__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(); this.ARGUMENT1__1 = serializer_1(IntCompanionObject_getInstance()); var tmp_0 = this; tmp_0.this2__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath3__1 = 'PersonDao/countUsername'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this5__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_httpClient_cdum84_k$(); var tmp_3 = this; tmp_3.this6__1 = this.this5__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonDao/countUsername'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'username', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.username_1)); tmp_4.builder7__1 = this_0; this.builder7__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this8__1 = this.this6__1; var tmp_6 = this; tmp_6.builder9__1 = this.builder7__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder9__1, this.this8__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ARGUMENT10__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = bodyAsText(this.ARGUMENT10__1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.TRY_RESULT4__1 = suspendResult; this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp_8 = this; var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.w_a4gdqk_k$(e, tmp1_tag, PersonDao_Repo$countUsername$lambda(this.this2__1, this.repoPath3__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(5); var ARGUMENT = this.TRY_RESULT4__1; return this.ARGUMENT0__1.decodeFromString_jwu9sq_k$(this.ARGUMENT1__1, ARGUMENT); case 5: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; function $findUidAndPasswordHashAsyncCOROUTINE$315(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; } protoOf($findUidAndPasswordHashAsyncCOROUTINE$315).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findUidAndPasswordHashAsync_xjytjj_k$(this.username_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUsernameAndPasswordHash2COROUTINE$316(_this__u8e3s4, username, passwordHash, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; this.passwordHash_1 = passwordHash; } protoOf($findByUsernameAndPasswordHash2COROUTINE$316).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUsernameAndPasswordHash2_giabxq_k$(this.username_1, this.passwordHash_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUsernameAsyncCOROUTINE$317(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; } protoOf($findByUsernameAsyncCOROUTINE$317).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUsernameAsync_z8txi6_k$(this.username_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findSystemAccountCOROUTINE$318(_this__u8e3s4, nodeId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.nodeId_1 = nodeId; } protoOf($findSystemAccountCOROUTINE$318).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findSystemAccount_3fuv99_k$(this.nodeId_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithPictureCOROUTINE$319(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByUidWithPictureCOROUTINE$319).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonDao/findByUidWithPicture'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonDao/findByUidWithPicture'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PersonDao_Repo$findByUidWithPicture$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithPicture_cwvofg_k$(this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$320(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$320).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonDao/findByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonDao/findByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PersonDao_Repo$findByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_uxf6ac_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$321(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$321).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Person', PersonDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertPersonGroupCOROUTINE$322(_this__u8e3s4, personGroup, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroup_1 = personGroup; } protoOf($insertPersonGroupCOROUTINE$322).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroup', PersonDao_Repo$insertPersonGroup$slambda_0(this._this__u8e3s4__1, this.personGroup_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertPersonGroupMemberCOROUTINE$323(_this__u8e3s4, personGroupMember, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personGroupMember_1 = personGroupMember; } protoOf($insertPersonGroupMemberCOROUTINE$323).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroupMember', PersonDao_Repo$insertPersonGroupMember$slambda_0(this._this__u8e3s4__1, this.personGroupMember_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getNamesByUidAsyncCOROUTINE$324(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($getNamesByUidAsyncCOROUTINE$324).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonDao/getNamesByUidAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonDao/getNamesByUidAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PersonDao_Repo$getNamesByUidAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getNamesByUidAsync_cy54rc_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateUsernameCOROUTINE$325(_this__u8e3s4, personUid, username, currentTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.username_1 = username; this.currentTime_1 = currentTime; } protoOf($updateUsernameCOROUTINE$325).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Person', PersonDao_Repo$updateUsername$slambda_0(this._this__u8e3s4__1, this.personUid_1, this.username_1, this.currentTime_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $selectExistingUsernamesCOROUTINE$326(_this__u8e3s4, usernames, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.usernames_1 = usernames; } protoOf($selectExistingUsernamesCOROUTINE$326).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.selectExistingUsernames_hrfovc_k$(this.usernames_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$327(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$327).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Person', PersonDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(PersonDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(PersonDao_Repo).insertListAsync_2bxoks_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Person', PersonDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(PersonDao_Repo).insertOrReplace_ta806x_k$ = function (person, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Person', PersonDao_Repo$insertOrReplace$slambda_0(this, person, null), $completion); }; protoOf(PersonDao_Repo).countUsername_16eexw_k$ = function (username, $completion) { var tmp = new $countUsernameCOROUTINE$314(this, username, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findUidAndPasswordHashAsync_xjytjj_k$ = function (username, $completion) { var tmp = new $findUidAndPasswordHashAsyncCOROUTINE$315(this, username, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findByUsernameAndPasswordHash2_giabxq_k$ = function (username, passwordHash, $completion) { var tmp = new $findByUsernameAndPasswordHash2COROUTINE$316(this, username, passwordHash, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).insertPersonAuth_imw8ys_k$ = function (personAuth) { withRepoChangeMonitor(this._repo_1, 'PersonAuth', PersonDao_Repo$insertPersonAuth$lambda(this, personAuth)); }; protoOf(PersonDao_Repo).findByUsername_5oxwo1_k$ = function (username) { var _result = this._dao_1.findByUsername_5oxwo1_k$(username); return _result; }; protoOf(PersonDao_Repo).findByUsernameAsync_z8txi6_k$ = function (username, $completion) { var tmp = new $findByUsernameAsyncCOROUTINE$317(this, username, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findSystemAccount_3fuv99_k$ = function (nodeId, $completion) { var tmp = new $findSystemAccountCOROUTINE$318(this, nodeId, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(PersonDao_Repo).findByUidWithPicture_cwvofg_k$ = function (accountPersonUid, $completion) { var tmp = new $findByUidWithPictureCOROUTINE$319(this, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findByUidWithPictureAsFlow_n0b42e_k$ = function (uid) { var _result = this._dao_1.findByUidWithPictureAsFlow_n0b42e_k$(uid); return _result; }; protoOf(PersonDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(PersonDao_Repo).findByUidAsync_uxf6ac_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$320(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findByUidAsFlow_fzg2cy_k$ = function (uid) { var _result = this._dao_1.findByUidAsFlow_fzg2cy_k$(uid); return _result; }; protoOf(PersonDao_Repo).updateAsync_ideaps_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$321(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).insertPersonGroup_y1d7cv_k$ = function (personGroup, $completion) { var tmp = new $insertPersonGroupCOROUTINE$322(this, personGroup, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).insertPersonGroupMember_fxinpp_k$ = function (personGroupMember, $completion) { var tmp = new $insertPersonGroupMemberCOROUTINE$323(this, personGroupMember, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).findPersonsWithPermissionAsList_q8b2k7_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { var _result = this._dao_1.findPersonsWithPermissionAsList_q8b2k7_k$(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); return _result; }; protoOf(PersonDao_Repo).findPersonsWithPermissionAsPagingSource_cdzstc_k$ = function (timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText) { var tmp = this._dao_1.findPersonsWithPermissionAsPagingSource_cdzstc_k$(timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'PersonDao/findPersonsWithPermissionAsPagingSource', tmp, PersonDao_Repo$findPersonsWithPermissionAsPagingSource$slambda_0(this, timestamp, excludeClazz, excludeSelected, accountPersonUid, sortOrder, searchText, null)); }; protoOf(PersonDao_Repo).findByUidWithDisplayDetailsLive_9cn5te_k$ = function (personUid, activeUserPersonUid) { var _result = this._dao_1.findByUidWithDisplayDetailsLive_9cn5te_k$(personUid, activeUserPersonUid); return _result; }; protoOf(PersonDao_Repo).findByUidWithDisplayDetailsFlow_997fuc_k$ = function (personUid, accountPersonUid) { var tmp = this._dao_1.findByUidWithDisplayDetailsFlow_997fuc_k$(personUid, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, PersonDao_Repo$findByUidWithDisplayDetailsFlow$slambda_0(this, personUid, accountPersonUid, null)); }; protoOf(PersonDao_Repo).getAllPerson_8xzcdc_k$ = function () { var _result = this._dao_1.getAllPerson_8xzcdc_k$(); return _result; }; protoOf(PersonDao_Repo).getNamesByUid_owsdl3_k$ = function (uid) { var tmp = this._dao_1.getNamesByUid_owsdl3_k$(uid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, PersonDao_Repo$getNamesByUid$slambda_0(this, uid, null)); }; protoOf(PersonDao_Repo).getNamesByUidAsync_cy54rc_k$ = function (uid, $completion) { var tmp = new $getNamesByUidAsyncCOROUTINE$324(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).updateUsername_rf7ozu_k$ = function (personUid, username, currentTime, $completion) { var tmp = new $updateUsernameCOROUTINE$325(this, personUid, username, currentTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).selectExistingUsernames_hrfovc_k$ = function (usernames, $completion) { var tmp = new $selectExistingUsernamesCOROUTINE$326(this, usernames, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).insert_ylr54x_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Person', PersonDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(PersonDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_ylr54x_k$(entity instanceof Person ? entity : THROW_CCE()); }; protoOf(PersonDao_Repo).insertAsync_mjk9ju_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$327(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_mjk9ju_k$(entity instanceof Person ? entity : THROW_CCE(), $completion); }; protoOf(PersonDao_Repo).insertList_nct1zz_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Person', PersonDao_Repo$insertList$lambda(this, entityList)); }; protoOf(PersonDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_nct1zz_k$(entityList); }; protoOf(PersonDao_Repo).update_ljti7z_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Person', PersonDao_Repo$update$lambda(this, entity)); }; protoOf(PersonDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_ljti7z_k$(entity instanceof Person ? entity : THROW_CCE()); }; function PersonGroupDao() { } function _get__db__e63s44_39($this) { return $this._db_1; } function _get__dao__d2kw60_37($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$328(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$328).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_groupUid_nfguzq_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(43, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_groupUid_bnt4k0_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_groupLct_k13wir_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_groupUid_nfguzq_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupDao_DoorWrapper(_db, _dao) { PersonGroupDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonGroupDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupDao_DoorWrapper).findByUidAsync_t5668b_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_t5668b_k$(uid, $completion); }; protoOf(PersonGroupDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(PersonGroupDao_DoorWrapper).updateAsync_18ecnp_k$ = function (entity, $completion) { entity.set_groupLct_k13wir_k$(systemTimeInMillis()); return this._dao_1.updateAsync_18ecnp_k$(entity, $completion); }; protoOf(PersonGroupDao_DoorWrapper).findNameByGroupUid_k9akhk_k$ = function (groupUid, $completion) { return this._dao_1.findNameByGroupUid_k9akhk_k$(groupUid, $completion); }; protoOf(PersonGroupDao_DoorWrapper).insert_gyu5qg_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_gyu5qg_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; protoOf(PersonGroupDao_DoorWrapper).insertAsync_c0upap_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$328(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_c0upap_k$(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_DoorWrapper).insertList_4efpyw_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4efpyw_k$(entityList); }; protoOf(PersonGroupDao_DoorWrapper).update_etsguw_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_etsguw_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; function PersonGroupDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonGroupDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function PersonGroupDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_groupUid = $_result.getLong_3wgf2g_k$('groupUid'); var _tmp_groupMasterCsn = $_result.getLong_3wgf2g_k$('groupMasterCsn'); var _tmp_groupLocalCsn = $_result.getLong_3wgf2g_k$('groupLocalCsn'); var _tmp_groupLastChangedBy = $_result.getInt_npc9pd_k$('groupLastChangedBy'); var _tmp_groupLct = $_result.getLong_3wgf2g_k$('groupLct'); var _tmp_groupName = $_result.getString_gb1pt9_k$('groupName'); var _tmp_groupActive = $_result.getBoolean_xz3hoo_k$('groupActive'); var _tmp_personGroupFlag = $_result.getInt_npc9pd_k$('personGroupFlag'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroup(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupDao_JdbcImpl.findByUidAsync....' call this_0.set_groupUid_bnt4k0_k$(_tmp_groupUid); this_0.set_groupMasterCsn_a4rsys_k$(_tmp_groupMasterCsn); this_0.set_groupLocalCsn_z2sdhz_k$(_tmp_groupLocalCsn); this_0.set_groupLastChangedBy_fma81h_k$(_tmp_groupLastChangedBy); this_0.set_groupLct_k13wir_k$(_tmp_groupLct); this_0.set_groupName_pormeu_k$(_tmp_groupName); this_0.set_groupActive_3rfdbn_k$(_tmp_groupActive); this_0.set_personGroupFlag_csix73_k$(_tmp_personGroupFlag); return this_0; }; } function PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_groupUid = $_result.getLong_3wgf2g_k$('groupUid'); var _tmp_groupMasterCsn = $_result.getLong_3wgf2g_k$('groupMasterCsn'); var _tmp_groupLocalCsn = $_result.getLong_3wgf2g_k$('groupLocalCsn'); var _tmp_groupLastChangedBy = $_result.getInt_npc9pd_k$('groupLastChangedBy'); var _tmp_groupLct = $_result.getLong_3wgf2g_k$('groupLct'); var _tmp_groupName = $_result.getString_gb1pt9_k$('groupName'); var _tmp_groupActive = $_result.getBoolean_xz3hoo_k$('groupActive'); var _tmp_personGroupFlag = $_result.getInt_npc9pd_k$('personGroupFlag'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroup(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupDao_JdbcImpl.findByUidLive.....' call this_0.set_groupUid_bnt4k0_k$(_tmp_groupUid); this_0.set_groupMasterCsn_a4rsys_k$(_tmp_groupMasterCsn); this_0.set_groupLocalCsn_z2sdhz_k$(_tmp_groupLocalCsn); this_0.set_groupLastChangedBy_fma81h_k$(_tmp_groupLastChangedBy); this_0.set_groupLct_k13wir_k$(_tmp_groupLct); this_0.set_groupName_pormeu_k$(_tmp_groupName); this_0.set_groupActive_3rfdbn_k$(_tmp_groupActive); this_0.set_personGroupFlag_csix73_k$(_tmp_personGroupFlag); return this_0; }; } function PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_ggq8hb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ggq8hb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ggq8hb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda$lambda(_result) { return mapNextRow(_result, null, PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda$lambda$lambda(_result)); } function PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bindPreparedStmtToEntity_weq6l9_k$ = function (stmt, entity) { if (entity.get_groupUid_nfguzq_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_groupUid_nfguzq_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_groupMasterCsn_nqdk06_k$()); stmt.setLong_j1sybo_k$(3, entity.get_groupLocalCsn_6v46wn_k$()); stmt.setInt_c72a8z_k$(4, entity.get_groupLastChangedBy_croccf_k$()); stmt.setLong_j1sybo_k$(5, entity.get_groupLct_nfh1sp_k$()); stmt.setString_2gt7ua_k$(6, entity.get_groupName_g0irjz_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_groupActive_ho5hbw_k$()); stmt.setInt_c72a8z_k$(8, entity.get_personGroupFlag_l95gi5_k$()); }; protoOf(PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_weq6l9_k$(stmt, entity instanceof PersonGroup ? entity : THROW_CCE()); }; function PersonGroupDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entity_1.get_groupMasterCsn_nqdk06_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$entity_1.get_groupLocalCsn_6v46wn_k$()); this._stmt_1.setInt_c72a8z_k$(3, this.$entity_1.get_groupLastChangedBy_croccf_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_groupLct_nfh1sp_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$entity_1.get_groupName_g0irjz_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$entity_1.get_groupActive_ho5hbw_k$()); this._stmt_1.setInt_c72a8z_k$(7, this.$entity_1.get_personGroupFlag_l95gi5_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_groupUid_nfguzq_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new PersonGroupDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_groupMasterCsn_nqdk06_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_groupLocalCsn_6v46wn_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_groupLastChangedBy_croccf_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_groupLct_nfh1sp_k$()); _stmt.setString_2gt7ua_k$(5, $entity.get_groupName_g0irjz_k$()); _stmt.setBoolean_pzdm1v_k$(6, $entity.get_groupActive_ho5hbw_k$()); _stmt.setInt_c72a8z_k$(7, $entity.get_personGroupFlag_l95gi5_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_groupUid_nfguzq_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PersonGroupDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, PersonGroupDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function PersonGroupDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_groupUid = $_result.getLong_3wgf2g_k$('groupUid'); var _tmp_groupMasterCsn = $_result.getLong_3wgf2g_k$('groupMasterCsn'); var _tmp_groupLocalCsn = $_result.getLong_3wgf2g_k$('groupLocalCsn'); var _tmp_groupLastChangedBy = $_result.getInt_npc9pd_k$('groupLastChangedBy'); var _tmp_groupLct = $_result.getLong_3wgf2g_k$('groupLct'); var _tmp_groupName = $_result.getString_gb1pt9_k$('groupName'); var _tmp_groupActive = $_result.getBoolean_xz3hoo_k$('groupActive'); var _tmp_personGroupFlag = $_result.getInt_npc9pd_k$('personGroupFlag'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroup(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupDao_JdbcImpl.findByUid....' call this_0.set_groupUid_bnt4k0_k$(_tmp_groupUid); this_0.set_groupMasterCsn_a4rsys_k$(_tmp_groupMasterCsn); this_0.set_groupLocalCsn_z2sdhz_k$(_tmp_groupLocalCsn); this_0.set_groupLastChangedBy_fma81h_k$(_tmp_groupLastChangedBy); this_0.set_groupLct_k13wir_k$(_tmp_groupLct); this_0.set_groupName_pormeu_k$(_tmp_groupName); this_0.set_groupActive_3rfdbn_k$(_tmp_groupActive); this_0.set_personGroupFlag_csix73_k$(_tmp_personGroupFlag); return this_0; }; } function PersonGroupDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, PersonGroupDao_JdbcImpl$findByUid$lambda$lambda); }; } function PersonGroupDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_JdbcImpl$findByUidAsync$slambda).invoke_ggq8hb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ggq8hb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new PersonGroupDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ggq8hb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda).invoke_g7bun9_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_g7bun9_k$($completion); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM PersonGroup WHERE groupUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PersonGroup WHERE groupUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonGroupDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function PersonGroupDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new PersonGroupDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_g7bun9_k$($completion); }; l.$arity = 0; return l; } function PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda($groupUid, resultContinuation) { this.$groupUid_1 = $groupUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda(this.$groupUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda_0($groupUid, resultContinuation) { var i = new PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda($groupUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$329(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$329).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonGroup_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$330(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$330).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE PersonGroup SET groupMasterCsn = ?, groupLocalCsn = ?, groupLastChangedBy = ?, groupLct = ?, groupName = ?, groupActive = ?, personGroupFlag = ? WHERE groupUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, PersonGroupDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupDao_JdbcImpl(_db) { PersonGroupDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonGroup_abort_1 = new PersonGroupDao_JdbcImpl$_insertAdapterPersonGroup_abort$1(this); } protoOf(PersonGroupDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonGroupDao_JdbcImpl).get__insertAdapterPersonGroup_abort_yk30pn_k$ = function () { return this._insertAdapterPersonGroup_abort_1; }; protoOf(PersonGroupDao_JdbcImpl).insert_gyu5qg_k$ = function (entity) { var _retVal = this._insertAdapterPersonGroup_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PersonGroupDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_gyu5qg_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; protoOf(PersonGroupDao_JdbcImpl).insertAsync_c0upap_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$329(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_c0upap_k$(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_JdbcImpl).insertList_4efpyw_k$ = function (entityList) { this._insertAdapterPersonGroup_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PersonGroupDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4efpyw_k$(entityList); }; protoOf(PersonGroupDao_JdbcImpl).updateAsync_18ecnp_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$330(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_JdbcImpl).update_etsguw_k$ = function (entity) { var _sql = 'UPDATE PersonGroup SET groupMasterCsn = ?, groupLocalCsn = ?, groupLastChangedBy = ?, groupLct = ?, groupName = ?, groupActive = ?, personGroupFlag = ? WHERE groupUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PersonGroupDao_JdbcImpl$update$lambda(entity)); }; protoOf(PersonGroupDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_etsguw_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; protoOf(PersonGroupDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonGroup WHERE groupUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PersonGroup WHERE groupUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, PersonGroupDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(PersonGroupDao_JdbcImpl).findByUidAsync_t5668b_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonGroup WHERE groupUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM PersonGroup WHERE groupUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(PersonGroupDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['PersonGroup']; return doorFlow(this._db_1, tmp, PersonGroupDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(PersonGroupDao_JdbcImpl).findNameByGroupUid_k9akhk_k$ = function (groupUid, $completion) { var tmp = new PreparedStatementConfig('\n Select CASE\n WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n ELSE PersonGroup.groupName \n END AS name\n FROM PersonGroup\n LEFT JOIN Person\n ON Person.personGroupUid = PersonGroup.groupUid\n WHERE PersonGroup.groupUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n Select CASE\n WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n ELSE PersonGroup.groupName \n END AS name\n FROM PersonGroup\n LEFT JOIN Person\n ON Person.personGroupUid = PersonGroup.groupUid\n WHERE PersonGroup.groupUid = ?\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupDao_JdbcImpl$findNameByGroupUid$slambda_0(groupUid, null), $completion); }; function PersonGroupDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(PersonGroupDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_18ecnp_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonGroupDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonGroupDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function PersonGroupDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonGroupDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonGroupDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonGroupDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function PersonGroupDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByUidAsyncCOROUTINE$331(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$331).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_t5668b_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$332(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$332).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroup', PersonGroupDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findNameByGroupUidCOROUTINE$333(_this__u8e3s4, groupUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupUid_1 = groupUid; } protoOf($findNameByGroupUidCOROUTINE$333).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findNameByGroupUid_k9akhk_k$(this.groupUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$334(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$334).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroup', PersonGroupDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonGroupDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(PersonGroupDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonGroupDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonGroupDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonGroupDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonGroupDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonGroupDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonGroupDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(PersonGroupDao_Repo).findByUidAsync_t5668b_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$331(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(PersonGroupDao_Repo).updateAsync_18ecnp_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$332(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo).findNameByGroupUid_k9akhk_k$ = function (groupUid, $completion) { var tmp = new $findNameByGroupUidCOROUTINE$333(this, groupUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo).insert_gyu5qg_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'PersonGroup', PersonGroupDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(PersonGroupDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_gyu5qg_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; protoOf(PersonGroupDao_Repo).insertAsync_c0upap_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$334(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_c0upap_k$(entity instanceof PersonGroup ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupDao_Repo).insertList_4efpyw_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'PersonGroup', PersonGroupDao_Repo$insertList$lambda(this, entityList)); }; protoOf(PersonGroupDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_4efpyw_k$(entityList); }; protoOf(PersonGroupDao_Repo).update_etsguw_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'PersonGroup', PersonGroupDao_Repo$update$lambda(this, entity)); }; protoOf(PersonGroupDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_etsguw_k$(entity instanceof PersonGroup ? entity : THROW_CCE()); }; function PersonGroupMemberDao() { } function _get__db__e63s44_40($this) { return $this._db_1; } function _get__dao__d2kw60_38($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$335(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$335).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_groupMemberUid_slf528_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(44, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_groupMemberUid_wo6tfa_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_groupMemberLct_oaw1gj_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_groupMemberUid_slf528_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupMemberDao_DoorWrapper(_db, _dao) { PersonGroupMemberDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonGroupMemberDao_DoorWrapper).findAllGroupWherePersonIsIn_dignmg_k$ = function (personUid, $completion) { return this._dao_1.findAllGroupWherePersonIsIn_dignmg_k$(personUid, $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).checkPersonBelongsToGroup_umgea3_k$ = function (groupUid, personUid, $completion) { return this._dao_1.checkPersonBelongsToGroup_umgea3_k$(groupUid, personUid, $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).moveGroupAsync_2wxgdx_k$ = function (personUid, newGroup, oldGroup, changeTime, $completion) { return this._dao_1.moveGroupAsync_2wxgdx_k$(personUid, newGroup, oldGroup, changeTime, $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).updateGroupMemberActive_37cv60_k$ = function (activeStatus, personUid, groupUid, updateTime, $completion) { return this._dao_1.updateGroupMemberActive_37cv60_k$(activeStatus, personUid, groupUid, updateTime, $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).findByPersonUidAndGroupUid_8406yu_k$ = function (personUid, groupUid, $completion) { return this._dao_1.findByPersonUidAndGroupUid_8406yu_k$(personUid, groupUid, $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).insert_5tdpla_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupMemberDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_5tdpla_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; protoOf(PersonGroupMemberDao_DoorWrapper).insertAsync_chezgr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$335(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_chezgr_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_DoorWrapper).insertList_iad2ri_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupMemberDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iad2ri_k$(entityList); }; protoOf(PersonGroupMemberDao_DoorWrapper).update_4bp4wi_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonGroupMemberDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_4bp4wi_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda$lambda(_result) { return mapRows(_result, PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda$lambda$lambda(_result)); } function PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda$lambda$lambda($_result) { return function (it) { var _tmp_groupMemberUid = $_result.getLong_3wgf2g_k$('groupMemberUid'); var _tmp_groupMemberActive = $_result.getBoolean_xz3hoo_k$('groupMemberActive'); var _tmp_groupMemberPersonUid = $_result.getLong_3wgf2g_k$('groupMemberPersonUid'); var _tmp_groupMemberGroupUid = $_result.getLong_3wgf2g_k$('groupMemberGroupUid'); var _tmp_groupMemberMasterCsn = $_result.getLong_3wgf2g_k$('groupMemberMasterCsn'); var _tmp_groupMemberLocalCsn = $_result.getLong_3wgf2g_k$('groupMemberLocalCsn'); var _tmp_groupMemberLastChangedBy = $_result.getInt_npc9pd_k$('groupMemberLastChangedBy'); var _tmp_groupMemberLct = $_result.getLong_3wgf2g_k$('groupMemberLct'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupMemberDao_JdbcImpl.findAllGroupWherePersonIsIn....' call this_0.set_groupMemberUid_wo6tfa_k$(_tmp_groupMemberUid); this_0.set_groupMemberActive_vmw819_k$(_tmp_groupMemberActive); this_0.set_groupMemberPersonUid_nlli7z_k$(_tmp_groupMemberPersonUid); this_0.set_groupMemberGroupUid_8gf1yp_k$(_tmp_groupMemberGroupUid); this_0.set_groupMemberMasterCsn_rhcqg2_k$(_tmp_groupMemberMasterCsn); this_0.set_groupMemberLocalCsn_dbw6n_k$(_tmp_groupMemberLocalCsn); this_0.set_groupMemberLastChangedBy_mpfyi7_k$(_tmp_groupMemberLastChangedBy); this_0.set_groupMemberLct_oaw1gj_k$(_tmp_groupMemberLct); return this_0; }; } function PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda$lambda(_result) { return mapRows(_result, PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda$lambda$lambda(_result)); } function PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda$lambda$lambda($_result) { return function (it) { var _tmp_groupMemberUid = $_result.getLong_3wgf2g_k$('groupMemberUid'); var _tmp_groupMemberActive = $_result.getBoolean_xz3hoo_k$('groupMemberActive'); var _tmp_groupMemberPersonUid = $_result.getLong_3wgf2g_k$('groupMemberPersonUid'); var _tmp_groupMemberGroupUid = $_result.getLong_3wgf2g_k$('groupMemberGroupUid'); var _tmp_groupMemberMasterCsn = $_result.getLong_3wgf2g_k$('groupMemberMasterCsn'); var _tmp_groupMemberLocalCsn = $_result.getLong_3wgf2g_k$('groupMemberLocalCsn'); var _tmp_groupMemberLastChangedBy = $_result.getInt_npc9pd_k$('groupMemberLastChangedBy'); var _tmp_groupMemberLct = $_result.getLong_3wgf2g_k$('groupMemberLct'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupMemberDao_JdbcImpl.checkPersonBelongsToGroup....' call this_0.set_groupMemberUid_wo6tfa_k$(_tmp_groupMemberUid); this_0.set_groupMemberActive_vmw819_k$(_tmp_groupMemberActive); this_0.set_groupMemberPersonUid_nlli7z_k$(_tmp_groupMemberPersonUid); this_0.set_groupMemberGroupUid_8gf1yp_k$(_tmp_groupMemberGroupUid); this_0.set_groupMemberMasterCsn_rhcqg2_k$(_tmp_groupMemberMasterCsn); this_0.set_groupMemberLocalCsn_dbw6n_k$(_tmp_groupMemberLocalCsn); this_0.set_groupMemberLastChangedBy_mpfyi7_k$(_tmp_groupMemberLastChangedBy); this_0.set_groupMemberLct_oaw1gj_k$(_tmp_groupMemberLct); return this_0; }; } function PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda$lambda(_result) { return mapNextRow(_result, null, PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda$lambda$lambda(_result)); } function PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_groupMemberUid = $_result.getLong_3wgf2g_k$('groupMemberUid'); var _tmp_groupMemberActive = $_result.getBoolean_xz3hoo_k$('groupMemberActive'); var _tmp_groupMemberPersonUid = $_result.getLong_3wgf2g_k$('groupMemberPersonUid'); var _tmp_groupMemberGroupUid = $_result.getLong_3wgf2g_k$('groupMemberGroupUid'); var _tmp_groupMemberMasterCsn = $_result.getLong_3wgf2g_k$('groupMemberMasterCsn'); var _tmp_groupMemberLocalCsn = $_result.getLong_3wgf2g_k$('groupMemberLocalCsn'); var _tmp_groupMemberLastChangedBy = $_result.getInt_npc9pd_k$('groupMemberLastChangedBy'); var _tmp_groupMemberLct = $_result.getLong_3wgf2g_k$('groupMemberLct'); // Inline function 'kotlin.apply' call var this_0 = new PersonGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonGroupMemberDao_JdbcImpl.findByPersonUidAndGroupUid....' call this_0.set_groupMemberUid_wo6tfa_k$(_tmp_groupMemberUid); this_0.set_groupMemberActive_vmw819_k$(_tmp_groupMemberActive); this_0.set_groupMemberPersonUid_nlli7z_k$(_tmp_groupMemberPersonUid); this_0.set_groupMemberGroupUid_8gf1yp_k$(_tmp_groupMemberGroupUid); this_0.set_groupMemberMasterCsn_rhcqg2_k$(_tmp_groupMemberMasterCsn); this_0.set_groupMemberLocalCsn_dbw6n_k$(_tmp_groupMemberLocalCsn); this_0.set_groupMemberLastChangedBy_mpfyi7_k$(_tmp_groupMemberLastChangedBy); this_0.set_groupMemberLct_oaw1gj_k$(_tmp_groupMemberLct); return this_0; }; } function PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bindPreparedStmtToEntity_px31r1_k$ = function (stmt, entity) { if (entity.get_groupMemberUid_slf528_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_groupMemberUid_slf528_k$()); } stmt.setBoolean_pzdm1v_k$(2, entity.get_groupMemberActive_a0aeyy_k$()); stmt.setLong_j1sybo_k$(3, entity.get_groupMemberPersonUid_lzer5h_k$()); stmt.setLong_j1sybo_k$(4, entity.get_groupMemberGroupUid_77jxmp_k$()); stmt.setLong_j1sybo_k$(5, entity.get_groupMemberMasterCsn_wlkfhw_k$()); stmt.setLong_j1sybo_k$(6, entity.get_groupMemberLocalCsn_u9r4n7_k$()); stmt.setInt_c72a8z_k$(7, entity.get_groupMemberLastChangedBy_zcjmgr_k$()); stmt.setLong_j1sybo_k$(8, entity.get_groupMemberLct_slfbv7_k$()); }; protoOf(PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_px31r1_k$(stmt, entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function PersonGroupMemberDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setBoolean_pzdm1v_k$(1, $entity.get_groupMemberActive_a0aeyy_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_groupMemberPersonUid_lzer5h_k$()); _stmt.setLong_j1sybo_k$(3, $entity.get_groupMemberGroupUid_77jxmp_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_groupMemberMasterCsn_wlkfhw_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_groupMemberLocalCsn_u9r4n7_k$()); _stmt.setInt_c72a8z_k$(6, $entity.get_groupMemberLastChangedBy_zcjmgr_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_groupMemberLct_slfbv7_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_groupMemberUid_slf528_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda).invoke_koegly_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_koegly_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda_0($personUid, resultContinuation) { var i = new PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_koegly_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda($groupUid, $personUid, resultContinuation) { this.$groupUid_1 = $groupUid; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda).invoke_koegly_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_koegly_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda(this.$groupUid_1, this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda_0($groupUid, $personUid, resultContinuation) { var i = new PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda($groupUid, $personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_koegly_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda($newGroup, $changeTime, $personUid, $oldGroup, resultContinuation) { this.$newGroup_1 = $newGroup; this.$changeTime_1 = $changeTime; this.$personUid_1 = $personUid; this.$oldGroup_1 = $oldGroup; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$newGroup_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$oldGroup_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda(this.$newGroup_1, this.$changeTime_1, this.$personUid_1, this.$oldGroup_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda_0($newGroup, $changeTime, $personUid, $oldGroup, resultContinuation) { var i = new PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda($newGroup, $changeTime, $personUid, $oldGroup, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda($activeStatus, $updateTime, $personUid, $groupUid, resultContinuation) { this.$activeStatus_1 = $activeStatus; this.$updateTime_1 = $updateTime; this.$personUid_1 = $personUid; this.$groupUid_1 = $groupUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$activeStatus_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$groupUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda(this.$activeStatus_1, this.$updateTime_1, this.$personUid_1, this.$groupUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda_0($activeStatus, $updateTime, $personUid, $groupUid, resultContinuation) { var i = new PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda($activeStatus, $updateTime, $personUid, $groupUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda($personUid, $groupUid, resultContinuation) { this.$personUid_1 = $personUid; this.$groupUid_1 = $groupUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda).invoke_t9pynp_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_t9pynp_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$groupUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda(this.$personUid_1, this.$groupUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda_0($personUid, $groupUid, resultContinuation) { var i = new PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda($personUid, $groupUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_t9pynp_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$336(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$336).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonGroupMember_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateGroupMemberActiveCOROUTINE$337(_this__u8e3s4, activeStatus, personUid, groupUid, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activeStatus_1 = activeStatus; this.personUid_1 = personUid; this.groupUid_1 = groupUid; this.updateTime_1 = updateTime; } protoOf($updateGroupMemberActiveCOROUTINE$337).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE PersonGroupMember \n SET groupMemberActive = ?,\n groupMemberLct = CAST(? AS BIGINT)\n WHERE groupMemberPersonUid = CAST(? AS BIGINT) \n AND groupMemberGroupUid = CAST(? AS BIGINT) \n AND PersonGroupMember.groupMemberActive', VOID, VOID, VOID, '\n UPDATE PersonGroupMember \n SET groupMemberActive = ?,\n groupMemberLct = ?\n WHERE groupMemberPersonUid = ? \n AND groupMemberGroupUid = ? \n AND PersonGroupMember.groupMemberActive\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, PersonGroupMemberDao_JdbcImpl$updateGroupMemberActive$slambda_0(this.activeStatus_1, this.updateTime_1, this.personUid_1, this.groupUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupMemberDao_JdbcImpl(_db) { PersonGroupMemberDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonGroupMember_abort_1 = new PersonGroupMemberDao_JdbcImpl$_insertAdapterPersonGroupMember_abort$1(this); } protoOf(PersonGroupMemberDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonGroupMemberDao_JdbcImpl).get__insertAdapterPersonGroupMember_abort_n7fllh_k$ = function () { return this._insertAdapterPersonGroupMember_abort_1; }; protoOf(PersonGroupMemberDao_JdbcImpl).insert_5tdpla_k$ = function (entity) { var _retVal = this._insertAdapterPersonGroupMember_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PersonGroupMemberDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_5tdpla_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; protoOf(PersonGroupMemberDao_JdbcImpl).insertAsync_chezgr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$336(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_chezgr_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl).insertList_iad2ri_k$ = function (entityList) { this._insertAdapterPersonGroupMember_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PersonGroupMemberDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iad2ri_k$(entityList); }; protoOf(PersonGroupMemberDao_JdbcImpl).update_4bp4wi_k$ = function (entity) { var _sql = 'UPDATE PersonGroupMember SET groupMemberActive = ?, groupMemberPersonUid = ?, groupMemberGroupUid = ?, groupMemberMasterCsn = ?, groupMemberLocalCsn = ?, groupMemberLastChangedBy = ?, groupMemberLct = ? WHERE groupMemberUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PersonGroupMemberDao_JdbcImpl$update$lambda(entity)); }; protoOf(PersonGroupMemberDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_4bp4wi_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; protoOf(PersonGroupMemberDao_JdbcImpl).findAllGroupWherePersonIsIn_dignmg_k$ = function (personUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonGroupMember WHERE groupMemberPersonUid = CAST(? AS BIGINT) AND PersonGroupMember.groupMemberActive', VOID, VOID, VOID, 'SELECT * FROM PersonGroupMember WHERE groupMemberPersonUid = ? AND PersonGroupMember.groupMemberActive\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupMemberDao_JdbcImpl$findAllGroupWherePersonIsIn$slambda_0(personUid, null), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl).checkPersonBelongsToGroup_umgea3_k$ = function (groupUid, personUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM PersonGroupMember WHERE groupMemberGroupUid = CAST(? AS BIGINT) \n AND groupMemberPersonUid = CAST(? AS BIGINT) AND PersonGroupMember.groupMemberActive', VOID, VOID, VOID, 'SELECT * FROM PersonGroupMember WHERE groupMemberGroupUid = ? \n AND groupMemberPersonUid = ? AND PersonGroupMember.groupMemberActive\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupMemberDao_JdbcImpl$checkPersonBelongsToGroup$slambda_0(groupUid, personUid, null), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl).moveGroupAsync_2wxgdx_k$ = function (personUid, newGroup, oldGroup, changeTime, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE PersonGroupMember \n SET groupMemberGroupUid = CAST(? AS BIGINT),\n groupMemberLct = CAST(? AS BIGINT)\n WHERE groupMemberPersonUid = CAST(? AS BIGINT) \n AND groupMemberGroupUid = CAST(? AS BIGINT) \n AND PersonGroupMember.groupMemberActive', VOID, VOID, VOID, '\n UPDATE PersonGroupMember \n SET groupMemberGroupUid = ?,\n groupMemberLct = ?\n WHERE groupMemberPersonUid = ? \n AND groupMemberGroupUid = ? \n AND PersonGroupMember.groupMemberActive\n', false); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupMemberDao_JdbcImpl$moveGroupAsync$slambda_0(newGroup, changeTime, personUid, oldGroup, null), $completion); }; protoOf(PersonGroupMemberDao_JdbcImpl).updateGroupMemberActive_37cv60_k$ = function (activeStatus, personUid, groupUid, updateTime, $completion) { var tmp = new $updateGroupMemberActiveCOROUTINE$337(this, activeStatus, personUid, groupUid, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_JdbcImpl).findByPersonUidAndGroupUid_8406yu_k$ = function (personUid, groupUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonGroupMember.*\n FROM PersonGroupMember\n WHERE PersonGroupMember.groupMemberPersonUid = CAST(? AS BIGINT)\n AND PersonGroupMember.groupMemberGroupUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT PersonGroupMember.*\n FROM PersonGroupMember\n WHERE PersonGroupMember.groupMemberPersonUid = ?\n AND PersonGroupMember.groupMemberGroupUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonGroupMemberDao_JdbcImpl$findByPersonUidAndGroupUid$slambda_0(personUid, groupUid, null), $completion); }; function PersonGroupMemberDao_Repo$moveGroupAsync$slambda(this$0, $personUid, $newGroup, $oldGroup, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$newGroup_1 = $newGroup; this.$oldGroup_1 = $oldGroup; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_Repo$moveGroupAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo$moveGroupAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(PersonGroupMemberDao_Repo$moveGroupAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.moveGroupAsync_2wxgdx_k$(this.$personUid_1, this.$newGroup_1, this.$oldGroup_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_Repo$moveGroupAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupMemberDao_Repo$moveGroupAsync$slambda(this.this$0__1, this.$personUid_1, this.$newGroup_1, this.$oldGroup_1, this.$changeTime_1, completion); }; function PersonGroupMemberDao_Repo$moveGroupAsync$slambda_0(this$0, $personUid, $newGroup, $oldGroup, $changeTime, resultContinuation) { var i = new PersonGroupMemberDao_Repo$moveGroupAsync$slambda(this$0, $personUid, $newGroup, $oldGroup, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda(this$0, $activeStatus, $personUid, $groupUid, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$activeStatus_1 = $activeStatus; this.$personUid_1 = $personUid; this.$groupUid_1 = $groupUid; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateGroupMemberActive_37cv60_k$(this.$activeStatus_1, this.$personUid_1, this.$groupUid_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda(this.this$0__1, this.$activeStatus_1, this.$personUid_1, this.$groupUid_1, this.$updateTime_1, completion); }; function PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda_0(this$0, $activeStatus, $personUid, $groupUid, $updateTime, resultContinuation) { var i = new PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda(this$0, $activeStatus, $personUid, $groupUid, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonGroupMemberDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonGroupMemberDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonGroupMemberDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonGroupMemberDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonGroupMemberDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonGroupMemberDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function PersonGroupMemberDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findAllGroupWherePersonIsInCOROUTINE$338(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; } protoOf($findAllGroupWherePersonIsInCOROUTINE$338).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllGroupWherePersonIsIn_dignmg_k$(this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $checkPersonBelongsToGroupCOROUTINE$339(_this__u8e3s4, groupUid, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupUid_1 = groupUid; this.personUid_1 = personUid; } protoOf($checkPersonBelongsToGroupCOROUTINE$339).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.checkPersonBelongsToGroup_umgea3_k$(this.groupUid_1, this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $moveGroupAsyncCOROUTINE$340(_this__u8e3s4, personUid, newGroup, oldGroup, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.newGroup_1 = newGroup; this.oldGroup_1 = oldGroup; this.changeTime_1 = changeTime; } protoOf($moveGroupAsyncCOROUTINE$340).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$moveGroupAsync$slambda_0(this._this__u8e3s4__1, this.personUid_1, this.newGroup_1, this.oldGroup_1, this.changeTime_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByPersonUidAndGroupUidCOROUTINE$341(_this__u8e3s4, personUid, groupUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.groupUid_1 = groupUid; } protoOf($findByPersonUidAndGroupUidCOROUTINE$341).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPersonUidAndGroupUid_8406yu_k$(this.personUid_1, this.groupUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$342(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$342).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonGroupMemberDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonGroupMemberDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(PersonGroupMemberDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonGroupMemberDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonGroupMemberDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonGroupMemberDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonGroupMemberDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonGroupMemberDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonGroupMemberDao_Repo).findAllGroupWherePersonIsIn_dignmg_k$ = function (personUid, $completion) { var tmp = new $findAllGroupWherePersonIsInCOROUTINE$338(this, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo).checkPersonBelongsToGroup_umgea3_k$ = function (groupUid, personUid, $completion) { var tmp = new $checkPersonBelongsToGroupCOROUTINE$339(this, groupUid, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo).moveGroupAsync_2wxgdx_k$ = function (personUid, newGroup, oldGroup, changeTime, $completion) { var tmp = new $moveGroupAsyncCOROUTINE$340(this, personUid, newGroup, oldGroup, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo).updateGroupMemberActive_37cv60_k$ = function (activeStatus, personUid, groupUid, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$updateGroupMemberActive$slambda_0(this, activeStatus, personUid, groupUid, updateTime, null), $completion); }; protoOf(PersonGroupMemberDao_Repo).findByPersonUidAndGroupUid_8406yu_k$ = function (personUid, groupUid, $completion) { var tmp = new $findByPersonUidAndGroupUidCOROUTINE$341(this, personUid, groupUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo).insert_5tdpla_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(PersonGroupMemberDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_5tdpla_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; protoOf(PersonGroupMemberDao_Repo).insertAsync_chezgr_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$342(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonGroupMemberDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_chezgr_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE(), $completion); }; protoOf(PersonGroupMemberDao_Repo).insertList_iad2ri_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$insertList$lambda(this, entityList)); }; protoOf(PersonGroupMemberDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_iad2ri_k$(entityList); }; protoOf(PersonGroupMemberDao_Repo).update_4bp4wi_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'PersonGroupMember', PersonGroupMemberDao_Repo$update$lambda(this, entity)); }; protoOf(PersonGroupMemberDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_4bp4wi_k$(entity instanceof PersonGroupMember ? entity : THROW_CCE()); }; function PersonParentJoinDao() { } function _get__db__e63s44_41($this) { return $this._db_1; } function _get__dao__d2kw60_39($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$343(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$343).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_ppjUid_i688en_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(512, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_ppjUid_1pa5iz_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_ppjLct_a2kxhq_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_5b8ymo_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_ppjUid_i688en_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonParentJoinDao_DoorWrapper(_db, _dao) { PersonParentJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonParentJoinDao_DoorWrapper).upsertAsync_5b8ymo_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$343(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_DoorWrapper).findByUidWithMinorAsync_8mm5b6_k$ = function (uid, $completion) { return this._dao_1.findByUidWithMinorAsync_8mm5b6_k$(uid, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).findByUidWithMinorAsyncFromWeb_bsljoy_k$ = function (uid, $completion) { return this._dao_1.findByUidWithMinorAsyncFromWeb_bsljoy_k$(uid, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).findByMinorPersonUid_nke4j_k$ = function (minorPersonUid, $completion) { return this._dao_1.findByMinorPersonUid_nke4j_k$(minorPersonUid, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).findByMinorPersonUidWhereParentNotEnrolledInClazz_2k4w8x_k$ = function (minorPersonUid, clazzUidFilter, $completion) { return this._dao_1.findByMinorPersonUidWhereParentNotEnrolledInClazz_2k4w8x_k$(minorPersonUid, clazzUidFilter, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).isParentOf_s6kg8b_k$ = function (userPersonUid, minorPersonUid, $completion) { return this._dao_1.isParentOf_s6kg8b_k$(userPersonUid, minorPersonUid, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).updateAsync_mqonrm_k$ = function (personParentJoin, $completion) { personParentJoin.set_ppjLct_a2kxhq_k$(systemTimeInMillis()); return this._dao_1.updateAsync_mqonrm_k$(personParentJoin, $completion); }; protoOf(PersonParentJoinDao_DoorWrapper).isMinorApproved_1fo018_k$ = function (minorPersonUid, $completion) { return this._dao_1.isMinorApproved_1fo018_k$(minorPersonUid, $completion); }; function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.getLong_3wgf2g_k$('ppjUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_ppjPcsn = $_result.getLong_3wgf2g_k$('ppjPcsn'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_ppjLcsn = $_result.getLong_3wgf2g_k$('ppjLcsn'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_ppjLcb = $_result.getInt_npc9pd_k$('ppjLcb'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_ppjLct = $_result.getLong_3wgf2g_k$('ppjLct'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_ppjParentPersonUid = $_result.getLong_3wgf2g_k$('ppjParentPersonUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_ppjMinorPersonUid = $_result.getLong_3wgf2g_k$('ppjMinorPersonUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_ppjRelationship = $_result.getInt_npc9pd_k$('ppjRelationship'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_ppjEmail = $_result.getString_gb1pt9_k$('ppjEmail'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_ppjPhone = $_result.getString_gb1pt9_k$('ppjPhone'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_ppjInactive = $_result.getBoolean_xz3hoo_k$('ppjInactive'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_ppjStatus = $_result.getInt_npc9pd_k$('ppjStatus'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_ppjApprovalTiemstamp = $_result.getLong_3wgf2g_k$('ppjApprovalTiemstamp'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_ppjApprovalIpAddr = $_result.getString_gb1pt9_k$('ppjApprovalIpAddr'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new PersonParentJoinAndMinorPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync....' call if (!_tmp_PersonParentJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.....' call this_1.set_ppjUid_1pa5iz_k$(_tmp_ppjUid); this_1.set_ppjPcsn_iwvk8z_k$(_tmp_ppjPcsn); this_1.set_ppjLcsn_i0nccf_k$(_tmp_ppjLcsn); this_1.set_ppjLcb_e12jee_k$(_tmp_ppjLcb); this_1.set_ppjLct_a2kxhq_k$(_tmp_ppjLct); this_1.set_ppjParentPersonUid_h015fq_k$(_tmp_ppjParentPersonUid); this_1.set_ppjMinorPersonUid_aovzpn_k$(_tmp_ppjMinorPersonUid); this_1.set_ppjRelationship_re4gsd_k$(_tmp_ppjRelationship); this_1.set_ppjEmail_egsoco_k$(_tmp_ppjEmail); this_1.set_ppjPhone_iq44ne_k$(_tmp_ppjPhone); this_1.set_ppjInactive_y9dner_k$(_tmp_ppjInactive); this_1.set_ppjStatus_hiah55_k$(_tmp_ppjStatus); this_1.set_ppjApprovalTiemstamp_wbkei0_k$(_tmp_ppjApprovalTiemstamp); this_1.set_ppjApprovalIpAddr_lc766n_k$(_tmp_ppjApprovalIpAddr); this_0.set_personParentJoin_vxoy8v_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsync.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_minorPerson_hw3284_k$(this_2); } return this_0; }; } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda$lambda(_result) { return mapNextRow(_result, null, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda$lambda$lambda($_result) { return function (it) { var _tmp_PersonParentJoin_nullCount = 0; var _tmp_ppjUid = $_result.getLong_3wgf2g_k$('ppjUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_ppjPcsn = $_result.getLong_3wgf2g_k$('ppjPcsn'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_ppjLcsn = $_result.getLong_3wgf2g_k$('ppjLcsn'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_ppjLcb = $_result.getInt_npc9pd_k$('ppjLcb'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_ppjLct = $_result.getLong_3wgf2g_k$('ppjLct'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_ppjParentPersonUid = $_result.getLong_3wgf2g_k$('ppjParentPersonUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_ppjMinorPersonUid = $_result.getLong_3wgf2g_k$('ppjMinorPersonUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_ppjRelationship = $_result.getInt_npc9pd_k$('ppjRelationship'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_ppjEmail = $_result.getString_gb1pt9_k$('ppjEmail'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_ppjPhone = $_result.getString_gb1pt9_k$('ppjPhone'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_ppjInactive = $_result.getBoolean_xz3hoo_k$('ppjInactive'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_ppjStatus = $_result.getInt_npc9pd_k$('ppjStatus'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_ppjApprovalTiemstamp = $_result.getLong_3wgf2g_k$('ppjApprovalTiemstamp'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_ppjApprovalIpAddr = $_result.getString_gb1pt9_k$('ppjApprovalIpAddr'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonParentJoin_nullCount = _tmp_PersonParentJoin_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_PersonParentJoin_isAllNull = _tmp_PersonParentJoin_nullCount === 14; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new PersonParentJoinAndMinorPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsyncFromWeb....' call if (!_tmp_PersonParentJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsyncFromWeb.....' call this_1.set_ppjUid_1pa5iz_k$(_tmp_ppjUid); this_1.set_ppjPcsn_iwvk8z_k$(_tmp_ppjPcsn); this_1.set_ppjLcsn_i0nccf_k$(_tmp_ppjLcsn); this_1.set_ppjLcb_e12jee_k$(_tmp_ppjLcb); this_1.set_ppjLct_a2kxhq_k$(_tmp_ppjLct); this_1.set_ppjParentPersonUid_h015fq_k$(_tmp_ppjParentPersonUid); this_1.set_ppjMinorPersonUid_aovzpn_k$(_tmp_ppjMinorPersonUid); this_1.set_ppjRelationship_re4gsd_k$(_tmp_ppjRelationship); this_1.set_ppjEmail_egsoco_k$(_tmp_ppjEmail); this_1.set_ppjPhone_iq44ne_k$(_tmp_ppjPhone); this_1.set_ppjInactive_y9dner_k$(_tmp_ppjInactive); this_1.set_ppjStatus_hiah55_k$(_tmp_ppjStatus); this_1.set_ppjApprovalTiemstamp_wbkei0_k$(_tmp_ppjApprovalTiemstamp); this_1.set_ppjApprovalIpAddr_lc766n_k$(_tmp_ppjApprovalIpAddr); this_0.set_personParentJoin_vxoy8v_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByUidWithMinorAsyncFromWeb.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_minorPerson_hw3284_k$(this_2); } return this_0; }; } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda$lambda(_result) { return mapRows(_result, PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_ppjUid = $_result.getLong_3wgf2g_k$('ppjUid'); var _tmp_ppjPcsn = $_result.getLong_3wgf2g_k$('ppjPcsn'); var _tmp_ppjLcsn = $_result.getLong_3wgf2g_k$('ppjLcsn'); var _tmp_ppjLcb = $_result.getInt_npc9pd_k$('ppjLcb'); var _tmp_ppjLct = $_result.getLong_3wgf2g_k$('ppjLct'); var _tmp_ppjParentPersonUid = $_result.getLong_3wgf2g_k$('ppjParentPersonUid'); var _tmp_ppjMinorPersonUid = $_result.getLong_3wgf2g_k$('ppjMinorPersonUid'); var _tmp_ppjRelationship = $_result.getInt_npc9pd_k$('ppjRelationship'); var _tmp_ppjEmail = $_result.getString_gb1pt9_k$('ppjEmail'); var _tmp_ppjPhone = $_result.getString_gb1pt9_k$('ppjPhone'); var _tmp_ppjInactive = $_result.getBoolean_xz3hoo_k$('ppjInactive'); var _tmp_ppjStatus = $_result.getInt_npc9pd_k$('ppjStatus'); var _tmp_ppjApprovalTiemstamp = $_result.getLong_3wgf2g_k$('ppjApprovalTiemstamp'); var _tmp_ppjApprovalIpAddr = $_result.getString_gb1pt9_k$('ppjApprovalIpAddr'); // Inline function 'kotlin.apply' call var this_0 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByMinorPersonUid....' call this_0.set_ppjUid_1pa5iz_k$(_tmp_ppjUid); this_0.set_ppjPcsn_iwvk8z_k$(_tmp_ppjPcsn); this_0.set_ppjLcsn_i0nccf_k$(_tmp_ppjLcsn); this_0.set_ppjLcb_e12jee_k$(_tmp_ppjLcb); this_0.set_ppjLct_a2kxhq_k$(_tmp_ppjLct); this_0.set_ppjParentPersonUid_h015fq_k$(_tmp_ppjParentPersonUid); this_0.set_ppjMinorPersonUid_aovzpn_k$(_tmp_ppjMinorPersonUid); this_0.set_ppjRelationship_re4gsd_k$(_tmp_ppjRelationship); this_0.set_ppjEmail_egsoco_k$(_tmp_ppjEmail); this_0.set_ppjPhone_iq44ne_k$(_tmp_ppjPhone); this_0.set_ppjInactive_y9dner_k$(_tmp_ppjInactive); this_0.set_ppjStatus_hiah55_k$(_tmp_ppjStatus); this_0.set_ppjApprovalTiemstamp_wbkei0_k$(_tmp_ppjApprovalTiemstamp); this_0.set_ppjApprovalIpAddr_lc766n_k$(_tmp_ppjApprovalIpAddr); return this_0; }; } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda$lambda(_result) { return mapRows(_result, PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_parentPersonUid = $_result.getLong_3wgf2g_k$('parentPersonUid'); var _tmp_clazzUid = $_result.getLong_3wgf2g_k$('clazzUid'); // Inline function 'kotlin.apply' call var this_0 = new ParentEnrolmentRequired(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonParentJoinDao_JdbcImpl.findByMinorPersonUidWhereParentNotEnrolledInClazz....' call this_0.set_parentPersonUid_ewbia2_k$(_tmp_parentPersonUid); this_0.set_clazzUid_tlygrb_k$(_tmp_clazzUid); return this_0; }; } function PersonParentJoinDao_JdbcImpl$isParentOf$slambda$lambda(_result) { return mapNextRow(_result, false, PersonParentJoinDao_JdbcImpl$isParentOf$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$isParentOf$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda(_result) { return mapNextRow(_result, false, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda(_result)); } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).bindPreparedStmtToEntity_trwa1i_k$ = function (stmt, entity) { if (entity.get_ppjUid_i688en_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_ppjUid_i688en_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_ppjPcsn_4vwi4x_k$()); stmt.setLong_j1sybo_k$(3, entity.get_ppjLcsn_4vz231_k$()); stmt.setInt_c72a8z_k$(4, entity.get_ppjLcb_i681l6_k$()); stmt.setLong_j1sybo_k$(5, entity.get_ppjLct_i681lo_k$()); stmt.setLong_j1sybo_k$(6, entity.get_ppjParentPersonUid_lygmb4_k$()); stmt.setLong_j1sybo_k$(7, entity.get_ppjMinorPersonUid_acwyl5_k$()); stmt.setInt_c72a8z_k$(8, entity.get_ppjRelationship_u5inyx_k$()); stmt.setString_2gt7ua_k$(9, entity.get_ppjEmail_9kn8bp_k$()); stmt.setString_2gt7ua_k$(10, entity.get_ppjPhone_9eoe8j_k$()); stmt.setBoolean_pzdm1v_k$(11, entity.get_ppjInactive_qnp304_k$()); stmt.setInt_c72a8z_k$(12, entity.get_ppjStatus_5x2g19_k$()); stmt.setLong_j1sybo_k$(13, entity.get_ppjApprovalTiemstamp_rc7j7m_k$()); stmt.setString_2gt7ua_k$(14, entity.get_ppjApprovalIpAddr_soqjlw_k$()); }; protoOf(PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_trwa1i_k$(stmt, entity instanceof PersonParentJoin ? entity : THROW_CCE()); }; function PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation) { this.$personParentJoin_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personParentJoin_1.get_ppjPcsn_4vwi4x_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$personParentJoin_1.get_ppjLcsn_4vz231_k$()); this._stmt_1.setInt_c72a8z_k$(3, this.$personParentJoin_1.get_ppjLcb_i681l6_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$personParentJoin_1.get_ppjLct_i681lo_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$personParentJoin_1.get_ppjParentPersonUid_lygmb4_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$personParentJoin_1.get_ppjMinorPersonUid_acwyl5_k$()); this._stmt_1.setInt_c72a8z_k$(7, this.$personParentJoin_1.get_ppjRelationship_u5inyx_k$()); this._stmt_1.setString_2gt7ua_k$(8, this.$personParentJoin_1.get_ppjEmail_9kn8bp_k$()); this._stmt_1.setString_2gt7ua_k$(9, this.$personParentJoin_1.get_ppjPhone_9eoe8j_k$()); this._stmt_1.setBoolean_pzdm1v_k$(10, this.$personParentJoin_1.get_ppjInactive_qnp304_k$()); this._stmt_1.setInt_c72a8z_k$(11, this.$personParentJoin_1.get_ppjStatus_5x2g19_k$()); this._stmt_1.setLong_j1sybo_k$(12, this.$personParentJoin_1.get_ppjApprovalTiemstamp_rc7j7m_k$()); this._stmt_1.setString_2gt7ua_k$(13, this.$personParentJoin_1.get_ppjApprovalIpAddr_soqjlw_k$()); this._stmt_1.setLong_j1sybo_k$(14, this.$personParentJoin_1.get_ppjUid_i688en_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda(this.$personParentJoin_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0($personParentJoin, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$updateAsync$slambda($personParentJoin, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).invoke_avz2ml_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_avz2ml_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0($uid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_avz2ml_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda).invoke_avz2ml_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_avz2ml_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda_0($uid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_avz2ml_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda($minorPersonUid, resultContinuation) { this.$minorPersonUid_1 = $minorPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda).invoke_8ffnf3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_8ffnf3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$minorPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda(this.$minorPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda_0($minorPersonUid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda($minorPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_8ffnf3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda($minorPersonUid, $clazzUidFilter, resultContinuation) { this.$minorPersonUid_1 = $minorPersonUid; this.$clazzUidFilter_1 = $clazzUidFilter; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda).invoke_ehc8yz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ehc8yz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$minorPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUidFilter_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUidFilter_1); this._stmt_1.setLong_j1sybo_k$(4, this.$minorPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda(this.$minorPersonUid_1, this.$clazzUidFilter_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda_0($minorPersonUid, $clazzUidFilter, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda($minorPersonUid, $clazzUidFilter, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ehc8yz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$isParentOf$slambda($minorPersonUid, $userPersonUid, resultContinuation) { this.$minorPersonUid_1 = $minorPersonUid; this.$userPersonUid_1 = $userPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$isParentOf$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$isParentOf$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$isParentOf$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$minorPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$userPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$isParentOf$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$isParentOf$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$isParentOf$slambda(this.$minorPersonUid_1, this.$userPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$isParentOf$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$isParentOf$slambda_0($minorPersonUid, $userPersonUid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$isParentOf$slambda($minorPersonUid, $userPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation) { this.$minorPersonUid_1 = $minorPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$minorPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda(this.$minorPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0($minorPersonUid, resultContinuation) { var i = new PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda($minorPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertAsyncCOROUTINE$344(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$344).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonParentJoin_upsert_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$345(_this__u8e3s4, personParentJoin, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personParentJoin_1 = personParentJoin; } protoOf($updateAsyncCOROUTINE$345).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE PersonParentJoin SET ppjPcsn = ?, ppjLcsn = ?, ppjLcb = ?, ppjLct = ?, ppjParentPersonUid = ?, ppjMinorPersonUid = ?, ppjRelationship = ?, ppjEmail = ?, ppjPhone = ?, ppjInactive = ?, ppjStatus = ?, ppjApprovalTiemstamp = ?, ppjApprovalIpAddr = ? WHERE ppjUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, PersonParentJoinDao_JdbcImpl$updateAsync$slambda_0(this.personParentJoin_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonParentJoinDao_JdbcImpl(_db) { PersonParentJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonParentJoin_upsert_1 = new PersonParentJoinDao_JdbcImpl$_insertAdapterPersonParentJoin_upsert$1(this); } protoOf(PersonParentJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonParentJoinDao_JdbcImpl).get__insertAdapterPersonParentJoin_upsert_v0ikjf_k$ = function () { return this._insertAdapterPersonParentJoin_upsert_1; }; protoOf(PersonParentJoinDao_JdbcImpl).upsertAsync_5b8ymo_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$344(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl).updateAsync_mqonrm_k$ = function (personParentJoin, $completion) { var tmp = new $updateAsyncCOROUTINE$345(this, personParentJoin, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_JdbcImpl).findByUidWithMinorAsync_8mm5b6_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsync$slambda_0(uid, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).findByUidWithMinorAsyncFromWeb_bsljoy_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT PersonParentJoin.*, Person.*\n FROM PersonParentJoin\n LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n WHERE PersonParentJoin.ppjUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$findByUidWithMinorAsyncFromWeb$slambda_0(uid, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).findByMinorPersonUid_nke4j_k$ = function (minorPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonParentJoin.*\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT PersonParentJoin.*\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$findByMinorPersonUid$slambda_0(minorPersonUid, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).findByMinorPersonUidWhereParentNotEnrolledInClazz_2k4w8x_k$ = function (minorPersonUid, clazzUidFilter, $completion) { var tmp = new PreparedStatementConfig('\n SELECT PersonParentJoin.ppjParentPersonUid AS parentPersonUid,\n ChildEnrolment.clazzEnrolmentClazzUid AS clazzUid\n FROM PersonParentJoin\n JOIN ClazzEnrolment ChildEnrolment \n ON ChildEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND (CAST(? AS BIGINT) = 0 OR ChildEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT))\n WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n AND PersonParentJoin.ppjParentPersonUid != 0\n AND NOT EXISTS(\n SELECT clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = PersonParentJoin.ppjParentPersonUid\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ChildEnrolment.clazzEnrolmentClazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1003\n AND CAST(ClazzEnrolment.clazzEnrolmentActive AS INTEGER) = 1)\n ', VOID, VOID, VOID, '\n SELECT PersonParentJoin.ppjParentPersonUid AS parentPersonUid,\n ChildEnrolment.clazzEnrolmentClazzUid AS clazzUid\n FROM PersonParentJoin\n JOIN ClazzEnrolment ChildEnrolment \n ON ChildEnrolment.clazzEnrolmentPersonUid = ?\n AND (? = 0 OR ChildEnrolment.clazzEnrolmentClazzUid = ?)\n WHERE PersonParentJoin.ppjMinorPersonUid = ?\n AND PersonParentJoin.ppjParentPersonUid != 0\n AND NOT EXISTS(\n SELECT clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = PersonParentJoin.ppjParentPersonUid\n AND ClazzEnrolment.clazzEnrolmentClazzUid = ChildEnrolment.clazzEnrolmentClazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1003\n AND CAST(ClazzEnrolment.clazzEnrolmentActive AS INTEGER) = 1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$findByMinorPersonUidWhereParentNotEnrolledInClazz$slambda_0(minorPersonUid, clazzUidFilter, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).isParentOf_s6kg8b_k$ = function (userPersonUid, minorPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT)\n AND ppjParentPersonUid = CAST(? AS BIGINT)\n AND CAST(ppjInactive AS INTEGER) = 0)\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ?\n AND ppjParentPersonUid = ?\n AND CAST(ppjInactive AS INTEGER) = 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$isParentOf$slambda_0(minorPersonUid, userPersonUid, null), $completion); }; protoOf(PersonParentJoinDao_JdbcImpl).isMinorApproved_1fo018_k$ = function (minorPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = CAST(? AS BIGINT)\n AND CAST(ppjInactive AS INTEGER) = 0\n AND ppjStatus = 1)\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT ppjUid\n FROM PersonParentJoin\n WHERE ppjMinorPersonUid = ?\n AND CAST(ppjInactive AS INTEGER) = 0\n AND ppjStatus = 1)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonParentJoinDao_JdbcImpl$isMinorApproved$slambda_0(minorPersonUid, null), $completion); }; function PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_5b8ymo_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonParentJoinDao_Repo$upsertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonParentJoinDao_Repo$upsertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonParentJoinDao_Repo$upsertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation) { this.this$0__1 = this$0; this.$personParentJoin_1 = $personParentJoin; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_mqonrm_k$(this.$personParentJoin_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonParentJoinDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonParentJoinDao_Repo$updateAsync$slambda(this.this$0__1, this.$personParentJoin_1, completion); }; function PersonParentJoinDao_Repo$updateAsync$slambda_0(this$0, $personParentJoin, resultContinuation) { var i = new PersonParentJoinDao_Repo$updateAsync$slambda(this$0, $personParentJoin, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonParentJoinDao_Repo$isMinorApproved$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $upsertAsyncCOROUTINE$346(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($upsertAsyncCOROUTINE$346).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonParentJoin', PersonParentJoinDao_Repo$upsertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithMinorAsyncCOROUTINE$347(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithMinorAsyncCOROUTINE$347).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonParentJoinDao/findByUidWithMinorAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonParentJoinDao/findByUidWithMinorAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'uid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.uid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PersonParentJoinDao_Repo$findByUidWithMinorAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithMinorAsync_8mm5b6_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithMinorAsyncFromWebCOROUTINE$348(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidWithMinorAsyncFromWebCOROUTINE$348).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithMinorAsyncFromWeb_bsljoy_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByMinorPersonUidCOROUTINE$349(_this__u8e3s4, minorPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.minorPersonUid_1 = minorPersonUid; } protoOf($findByMinorPersonUidCOROUTINE$349).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByMinorPersonUid_nke4j_k$(this.minorPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByMinorPersonUidWhereParentNotEnrolledInClazzCOROUTINE$350(_this__u8e3s4, minorPersonUid, clazzUidFilter, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.minorPersonUid_1 = minorPersonUid; this.clazzUidFilter_1 = clazzUidFilter; } protoOf($findByMinorPersonUidWhereParentNotEnrolledInClazzCOROUTINE$350).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByMinorPersonUidWhereParentNotEnrolledInClazz_2k4w8x_k$(this.minorPersonUid_1, this.clazzUidFilter_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $isParentOfCOROUTINE$351(_this__u8e3s4, userPersonUid, minorPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.userPersonUid_1 = userPersonUid; this.minorPersonUid_1 = minorPersonUid; } protoOf($isParentOfCOROUTINE$351).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.isParentOf_s6kg8b_k$(this.userPersonUid_1, this.minorPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $isMinorApprovedCOROUTINE$352(_this__u8e3s4, minorPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.minorPersonUid_1 = minorPersonUid; } protoOf($isMinorApprovedCOROUTINE$352).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonParentJoinDao/isMinorApproved'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'PersonParentJoinDao/isMinorApproved'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'minorPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.minorPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, PersonParentJoinDao_Repo$isMinorApproved$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.isMinorApproved_1fo018_k$(this.minorPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonParentJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonParentJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(PersonParentJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonParentJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonParentJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonParentJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonParentJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonParentJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonParentJoinDao_Repo).upsertAsync_5b8ymo_k$ = function (entity, $completion) { var tmp = new $upsertAsyncCOROUTINE$346(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).findByUidWithMinorAsync_8mm5b6_k$ = function (uid, $completion) { var tmp = new $findByUidWithMinorAsyncCOROUTINE$347(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).findByUidWithMinorAsyncFromWeb_bsljoy_k$ = function (uid, $completion) { var tmp = new $findByUidWithMinorAsyncFromWebCOROUTINE$348(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).findByMinorPersonUid_nke4j_k$ = function (minorPersonUid, $completion) { var tmp = new $findByMinorPersonUidCOROUTINE$349(this, minorPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).findByMinorPersonUidWhereParentNotEnrolledInClazz_2k4w8x_k$ = function (minorPersonUid, clazzUidFilter, $completion) { var tmp = new $findByMinorPersonUidWhereParentNotEnrolledInClazzCOROUTINE$350(this, minorPersonUid, clazzUidFilter, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).isParentOf_s6kg8b_k$ = function (userPersonUid, minorPersonUid, $completion) { var tmp = new $isParentOfCOROUTINE$351(this, userPersonUid, minorPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonParentJoinDao_Repo).updateAsync_mqonrm_k$ = function (personParentJoin, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonParentJoin', PersonParentJoinDao_Repo$updateAsync$slambda_0(this, personParentJoin, null), $completion); }; protoOf(PersonParentJoinDao_Repo).isMinorApproved_1fo018_k$ = function (minorPersonUid, $completion) { var tmp = new $isMinorApprovedCOROUTINE$352(this, minorPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function PersonPictureDao() { } function _get__db__e63s44_42($this) { return $this._db_1; } function _get__dao__d2kw60_40($this) { return $this._dao_1; } function $upsertCOROUTINE$353(_this__u8e3s4, personPicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personPicture_1 = personPicture; } protoOf($upsertCOROUTINE$353).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.personPicture_1.get_personPictureUid_r3scr4_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(50, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.personPicture_1.set_personPictureUid_dypqo6_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.personPicture_1.set_personPictureLct_5leypf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsert_3blhac_k$(this.personPicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$354(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$354).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_personPictureUid_r3scr4_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(50, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_personPictureUid_dypqo6_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_personPictureLct_5leypf_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_personPictureUid_r3scr4_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonPictureDao_DoorWrapper(_db, _dao) { PersonPictureDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(PersonPictureDao_DoorWrapper).upsert_3blhac_k$ = function (personPicture, $completion) { var tmp = new $upsertCOROUTINE$353(this, personPicture, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_DoorWrapper).findByPersonUidAsync_3igx1d_k$ = function (personUid, $completion) { return this._dao_1.findByPersonUidAsync_3igx1d_k$(personUid, $completion); }; protoOf(PersonPictureDao_DoorWrapper).findByPersonUidLive_9d3cdl_k$ = function (personUid) { return this._dao_1.findByPersonUidLive_9d3cdl_k$(personUid); }; protoOf(PersonPictureDao_DoorWrapper).findByPersonUidAsFlow_7w3yd9_k$ = function (personUid) { return this._dao_1.findByPersonUidAsFlow_7w3yd9_k$(personUid); }; protoOf(PersonPictureDao_DoorWrapper).updateAsync_u894qg_k$ = function (personPicture, $completion) { personPicture.set_personPictureLct_5leypf_k$(systemTimeInMillis()); return this._dao_1.updateAsync_u894qg_k$(personPicture, $completion); }; protoOf(PersonPictureDao_DoorWrapper).updateLct_j7wl1f_k$ = function (uid, time, $completion) { return this._dao_1.updateLct_j7wl1f_k$(uid, time, $completion); }; protoOf(PersonPictureDao_DoorWrapper).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return this._dao_1.updateUri_m1qgqu_k$(uid, uri, thumbnailUri, time, $completion); }; protoOf(PersonPictureDao_DoorWrapper).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { return this._dao_1.updateTransferJobItemEtag_i6qxic_k$(entityUid, transferJobItemUid, $completion); }; protoOf(PersonPictureDao_DoorWrapper).insert_sq1kyf_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonPictureDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_sq1kyf_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; protoOf(PersonPictureDao_DoorWrapper).insertAsync_igqb4_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$354(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_igqb4_k$(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_DoorWrapper).insertList_vqowah_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonPictureDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_vqowah_k$(entityList); }; protoOf(PersonPictureDao_DoorWrapper).update_t5arpl_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(PersonPictureDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_t5arpl_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda(_result)); } function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonPictureDao_JdbcImpl.findByPersonUidAsync....' call this_0.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_0.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_0.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_0.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_0.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_0.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); return this_0; }; } function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda$lambda$lambda(_result)); } function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonPictureDao_JdbcImpl.findByPersonUidLive.....' call this_0.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_0.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_0.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_0.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_0.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_0.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); return this_0; }; } function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda).invoke_pkp834_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_pkp834_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda_0($personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_pkp834_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); // Inline function 'kotlin.apply' call var this_0 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.PersonPictureDao_JdbcImpl.findByPersonUidAsFlow.....' call this_0.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_0.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_0.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_0.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_0.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_0.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); return this_0; }; } function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).invoke_pkp834_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_pkp834_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0($personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_pkp834_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).bindPreparedStmtToEntity_ys7nb2_k$ = function (stmt, entity) { if (entity.get_personPictureUid_r3scr4_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personPictureUid_r3scr4_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_personPictureLct_r3sjk3_k$()); stmt.setString_2gt7ua_k$(3, entity.get_personPictureUri_r3scj8_k$()); stmt.setString_2gt7ua_k$(4, entity.get_personPictureThumbnailUri_sx3gg_k$()); stmt.setInt_c72a8z_k$(5, entity.get_fileSize_r28lt2_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_personPictureActive_lkcisa_k$()); }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ys7nb2_k$(stmt, entity instanceof PersonPicture ? entity : THROW_CCE()); }; function PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO PersonPicture (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).bindPreparedStmtToEntity_ys7nb2_k$ = function (stmt, entity) { if (entity.get_personPictureUid_r3scr4_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_personPictureUid_r3scr4_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_personPictureLct_r3sjk3_k$()); stmt.setString_2gt7ua_k$(3, entity.get_personPictureUri_r3scj8_k$()); stmt.setString_2gt7ua_k$(4, entity.get_personPictureThumbnailUri_sx3gg_k$()); stmt.setInt_c72a8z_k$(5, entity.get_fileSize_r28lt2_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_personPictureActive_lkcisa_k$()); }; protoOf(PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ys7nb2_k$(stmt, entity instanceof PersonPicture ? entity : THROW_CCE()); }; function PersonPictureDao_JdbcImpl$updateAsync$slambda($personPicture, resultContinuation) { this.$personPicture_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personPicture_1.get_personPictureLct_r3sjk3_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$personPicture_1.get_personPictureUri_r3scj8_k$()); this._stmt_1.setString_2gt7ua_k$(3, this.$personPicture_1.get_personPictureThumbnailUri_sx3gg_k$()); this._stmt_1.setInt_c72a8z_k$(4, this.$personPicture_1.get_fileSize_r28lt2_k$()); this._stmt_1.setBoolean_pzdm1v_k$(5, this.$personPicture_1.get_personPictureActive_lkcisa_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$personPicture_1.get_personPictureUid_r3scr4_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateAsync$slambda(this.$personPicture_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$updateAsync$slambda_0($personPicture, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateAsync$slambda($personPicture, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_personPictureLct_r3sjk3_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_personPictureUri_r3scj8_k$()); _stmt.setString_2gt7ua_k$(3, $entity.get_personPictureThumbnailUri_sx3gg_k$()); _stmt.setInt_c72a8z_k$(4, $entity.get_fileSize_r28lt2_k$()); _stmt.setBoolean_pzdm1v_k$(5, $entity.get_personPictureActive_lkcisa_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_personPictureUid_r3scr4_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).invoke_pkp834_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_pkp834_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0($personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_pkp834_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda(this$0, $personUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda).invoke_o4mflw_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_o4mflw_k$($completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda$slambda_0(this.$personUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda(this.this$0__1, this.$personUid_1, completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda_0(this$0, $personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda(this$0, $personUid, resultContinuation); var l = function ($completion) { return i.invoke_o4mflw_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $personUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda).invoke_o4mflw_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_o4mflw_k$($completion); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = CAST(? AS BIGINT)\n AND CAST(personPictureActive AS INTEGER) = 1\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = ?\n AND CAST(personPictureActive AS INTEGER) = 1\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0(this.$personUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda(this.this$0__1, this.$personUid_1, completion); }; function PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this$0, $personUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $personUid, resultContinuation); var l = function ($completion) { return i.invoke_o4mflw_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_JdbcImpl$updateLct$slambda($time, $uid, resultContinuation) { this.$time_1 = $time; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateLct$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$updateLct$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateLct$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$time_1); this._stmt_1.setLong_j1sybo_k$(2, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateLct$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateLct$slambda(this.$time_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$updateLct$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$updateLct$slambda_0($time, $uid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateLct$slambda($time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation) { this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$uri_1); this._stmt_1.setString_2gt7ua_k$(2, this.$thumbnailUri_1); this._stmt_1.setLong_j1sybo_k$(3, this.$time_1); this._stmt_1.setLong_j1sybo_k$(4, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateUri$slambda(this.$uri_1, this.$thumbnailUri_1, this.$time_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$updateUri$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$updateUri$slambda_0($uri, $thumbnailUri, $time, $uid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateUri$slambda($uri, $thumbnailUri, $time, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation) { this.$entityUid_1 = $entityUid; this.$transferJobItemUid_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entityUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$transferJobItemUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda(this.$entityUid_1, this.$transferJobItemUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0($entityUid, $transferJobItemUid, resultContinuation) { var i = new PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda($entityUid, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$355(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$355).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterPersonPicture_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$356(_this__u8e3s4, personPicture, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personPicture_1 = personPicture; } protoOf($updateAsyncCOROUTINE$356).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE PersonPicture SET personPictureLct = ?, personPictureUri = ?, personPictureThumbnailUri = ?, fileSize = ?, personPictureActive = ? WHERE personPictureUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, PersonPictureDao_JdbcImpl$updateAsync$slambda_0(this.personPicture_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateLctCOROUTINE$357(_this__u8e3s4, uid, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.time_1 = time; } protoOf($updateLctCOROUTINE$357).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE PersonPicture\n SET personPictureLct = CAST(? AS BIGINT)\n WHERE personPictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE PersonPicture\n SET personPictureLct = ?\n WHERE personPictureUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, PersonPictureDao_JdbcImpl$updateLct$slambda_0(this.time_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateUriCOROUTINE$358(_this__u8e3s4, uid, uri, thumbnailUri, time, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.uri_1 = uri; this.thumbnailUri_1 = thumbnailUri; this.time_1 = time; } protoOf($updateUriCOROUTINE$358).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE PersonPicture\n SET personPictureUri = ?,\n personPictureThumbnailUri = ?,\n personPictureLct = CAST(? AS BIGINT)\n WHERE personPictureUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE PersonPicture\n SET personPictureUri = ?,\n personPictureThumbnailUri = ?,\n personPictureLct = ?\n WHERE personPictureUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, PersonPictureDao_JdbcImpl$updateUri$slambda_0(this.uri_1, this.thumbnailUri_1, this.time_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateTransferJobItemEtagCOROUTINE$359(_this__u8e3s4, entityUid, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityUid_1 = entityUid; this.transferJobItemUid_1 = transferJobItemUid; } protoOf($updateTransferJobItemEtagCOROUTINE$359).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT personPictureLct\n FROM PersonPicture\n WHERE personPictureUid = CAST(? AS BIGINT))\n WHERE tjiUid = ? \n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjiEntityEtag = \n (SELECT personPictureLct\n FROM PersonPicture\n WHERE personPictureUid = ?)\n WHERE tjiUid = ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, PersonPictureDao_JdbcImpl$updateTransferJobItemEtag$slambda_0(this.entityUid_1, this.transferJobItemUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonPictureDao_JdbcImpl(_db) { PersonPictureDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterPersonPicture_upsert_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterPersonPicture_abort_1 = new PersonPictureDao_JdbcImpl$_insertAdapterPersonPicture_abort$1(this); } protoOf(PersonPictureDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonPictureDao_JdbcImpl).get__insertAdapterPersonPicture_upsert_mnjidh_k$ = function () { return this._insertAdapterPersonPicture_upsert_1; }; protoOf(PersonPictureDao_JdbcImpl).get__insertAdapterPersonPicture_abort_9l0dsq_k$ = function () { return this._insertAdapterPersonPicture_abort_1; }; protoOf(PersonPictureDao_JdbcImpl).upsert_3blhac_k$ = function (personPicture, $completion) { return this._insertAdapterPersonPicture_upsert_1.insertAsync_kic9b7_k$(personPicture, $completion); }; protoOf(PersonPictureDao_JdbcImpl).insert_sq1kyf_k$ = function (entity) { var _retVal = this._insertAdapterPersonPicture_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(PersonPictureDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_sq1kyf_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; protoOf(PersonPictureDao_JdbcImpl).insertAsync_igqb4_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$355(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_igqb4_k$(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_JdbcImpl).insertList_vqowah_k$ = function (entityList) { this._insertAdapterPersonPicture_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(PersonPictureDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_vqowah_k$(entityList); }; protoOf(PersonPictureDao_JdbcImpl).updateAsync_u894qg_k$ = function (personPicture, $completion) { var tmp = new $updateAsyncCOROUTINE$356(this, personPicture, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl).update_t5arpl_k$ = function (entity) { var _sql = 'UPDATE PersonPicture SET personPictureLct = ?, personPictureUri = ?, personPictureThumbnailUri = ?, fileSize = ?, personPictureActive = ? WHERE personPictureUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, PersonPictureDao_JdbcImpl$update$lambda(entity)); }; protoOf(PersonPictureDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_t5arpl_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; protoOf(PersonPictureDao_JdbcImpl).findByPersonUidAsync_3igx1d_k$ = function (personUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = CAST(? AS BIGINT)\n AND CAST(personPictureActive AS INTEGER) = 1\n ', VOID, VOID, VOID, '\n SELECT * \n FROM PersonPicture \n WHERE personPictureUid = ?\n AND CAST(personPictureActive AS INTEGER) = 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidAsync$slambda_0(personUid, null), $completion); }; protoOf(PersonPictureDao_JdbcImpl).findByPersonUidLive_9d3cdl_k$ = function (personUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['PersonPicture']; return doorFlow(this._db_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidLive$slambda_0(this, personUid, null)); }; protoOf(PersonPictureDao_JdbcImpl).findByPersonUidAsFlow_7w3yd9_k$ = function (personUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['PersonPicture']; return doorFlow(this._db_1, tmp, PersonPictureDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this, personUid, null)); }; protoOf(PersonPictureDao_JdbcImpl).updateLct_j7wl1f_k$ = function (uid, time, $completion) { var tmp = new $updateLctCOROUTINE$357(this, uid, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { var tmp = new $updateUriCOROUTINE$358(this, uid, uri, thumbnailUri, time, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_JdbcImpl).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { var tmp = new $updateTransferJobItemEtagCOROUTINE$359(this, entityUid, transferJobItemUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function PersonPictureDao_Repo$findByPersonUidLive$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation) { this.this$0__1 = this$0; this.$personPicture_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$upsert$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$upsert$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$upsert$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsert_3blhac_k$(this.$personPicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$upsert$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$upsert$slambda(this.this$0__1, this.$personPicture_1, completion); }; function PersonPictureDao_Repo$upsert$slambda_0(this$0, $personPicture, resultContinuation) { var i = new PersonPictureDao_Repo$upsert$slambda(this$0, $personPicture, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$findByPersonUidLive$slambda(this$0, $personUid, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$findByPersonUidLive$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$findByPersonUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$findByPersonUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'PersonPictureDao/findByPersonUidLive'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'PersonPictureDao/findByPersonUidLive'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'personUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$personUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, PersonPictureDao_Repo$findByPersonUidLive$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(PersonPictureDao_Repo$findByPersonUidLive$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$findByPersonUidLive$slambda(this.this$0__1, this.$personUid_1, completion); }; function PersonPictureDao_Repo$findByPersonUidLive$slambda_0(this$0, $personUid, resultContinuation) { var i = new PersonPictureDao_Repo$findByPersonUidLive$slambda(this$0, $personUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateAsync$slambda(this$0, $personPicture, resultContinuation) { this.this$0__1 = this$0; this.$personPicture_1 = $personPicture; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_u894qg_k$(this.$personPicture_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$updateAsync$slambda(this.this$0__1, this.$personPicture_1, completion); }; function PersonPictureDao_Repo$updateAsync$slambda_0(this$0, $personPicture, resultContinuation) { var i = new PersonPictureDao_Repo$updateAsync$slambda(this$0, $personPicture, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateLct$slambda(this$0, $uid, $time, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateLct$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$updateLct$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$updateLct$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateLct_j7wl1f_k$(this.$uid_1, this.$time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$updateLct$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$updateLct$slambda(this.this$0__1, this.$uid_1, this.$time_1, completion); }; function PersonPictureDao_Repo$updateLct$slambda_0(this$0, $uid, $time, resultContinuation) { var i = new PersonPictureDao_Repo$updateLct$slambda(this$0, $uid, $time, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$uri_1 = $uri; this.$thumbnailUri_1 = $thumbnailUri; this.$time_1 = $time; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateUri$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateUri_m1qgqu_k$(this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$updateUri$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$updateUri$slambda(this.this$0__1, this.$uid_1, this.$uri_1, this.$thumbnailUri_1, this.$time_1, completion); }; function PersonPictureDao_Repo$updateUri$slambda_0(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation) { var i = new PersonPictureDao_Repo$updateUri$slambda(this$0, $uid, $uri, $thumbnailUri, $time, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation) { this.this$0__1 = this$0; this.$entityUid_1 = $entityUid; this.$transferJobItemUid_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateTransferJobItemEtag_i6qxic_k$(this.$entityUid_1, this.$transferJobItemUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$updateTransferJobItemEtag$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this.this$0__1, this.$entityUid_1, this.$transferJobItemUid_1, completion); }; function PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this$0, $entityUid, $transferJobItemUid, resultContinuation) { var i = new PersonPictureDao_Repo$updateTransferJobItemEtag$slambda(this$0, $entityUid, $transferJobItemUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(PersonPictureDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(PersonPictureDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new PersonPictureDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function PersonPictureDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new PersonPictureDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function PersonPictureDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function PersonPictureDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $findByPersonUidAsyncCOROUTINE$360(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; } protoOf($findByPersonUidAsyncCOROUTINE$360).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPersonUidAsync_3igx1d_k$(this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$361(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$361).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'PersonPicture', PersonPictureDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonPictureDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { PersonPictureDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(PersonPictureDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(PersonPictureDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(PersonPictureDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(PersonPictureDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(PersonPictureDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(PersonPictureDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(PersonPictureDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(PersonPictureDao_Repo).upsert_3blhac_k$ = function (personPicture, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$upsert$slambda_0(this, personPicture, null), $completion); }; protoOf(PersonPictureDao_Repo).findByPersonUidAsync_3igx1d_k$ = function (personUid, $completion) { var tmp = new $findByPersonUidAsyncCOROUTINE$360(this, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo).findByPersonUidLive_9d3cdl_k$ = function (personUid) { var tmp = this._dao_1.findByPersonUidLive_9d3cdl_k$(personUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, PersonPictureDao_Repo$findByPersonUidLive$slambda_0(this, personUid, null)); }; protoOf(PersonPictureDao_Repo).findByPersonUidAsFlow_7w3yd9_k$ = function (personUid) { var _result = this._dao_1.findByPersonUidAsFlow_7w3yd9_k$(personUid); return _result; }; protoOf(PersonPictureDao_Repo).updateAsync_u894qg_k$ = function (personPicture, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$updateAsync$slambda_0(this, personPicture, null), $completion); }; protoOf(PersonPictureDao_Repo).updateLct_j7wl1f_k$ = function (uid, time, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$updateLct$slambda_0(this, uid, time, null), $completion); }; protoOf(PersonPictureDao_Repo).updateUri_m1qgqu_k$ = function (uid, uri, thumbnailUri, time, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$updateUri$slambda_0(this, uid, uri, thumbnailUri, time, null), $completion); }; protoOf(PersonPictureDao_Repo).updateTransferJobItemEtag_i6qxic_k$ = function (entityUid, transferJobItemUid, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'TransferJobItem', PersonPictureDao_Repo$updateTransferJobItemEtag$slambda_0(this, entityUid, transferJobItemUid, null), $completion); }; protoOf(PersonPictureDao_Repo).insert_sq1kyf_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(PersonPictureDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_sq1kyf_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; protoOf(PersonPictureDao_Repo).insertAsync_igqb4_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$361(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(PersonPictureDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_igqb4_k$(entity instanceof PersonPicture ? entity : THROW_CCE(), $completion); }; protoOf(PersonPictureDao_Repo).insertList_vqowah_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$insertList$lambda(this, entityList)); }; protoOf(PersonPictureDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_vqowah_k$(entityList); }; protoOf(PersonPictureDao_Repo).update_t5arpl_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'PersonPicture', PersonPictureDao_Repo$update$lambda(this, entity)); }; protoOf(PersonPictureDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_t5arpl_k$(entity instanceof PersonPicture ? entity : THROW_CCE()); }; function ReportDao() { } function _get__db__e63s44_43($this) { return $this._db_1; } function _get__dao__d2kw60_41($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$362(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$362).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_reportUid_2o5j9v_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(101, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_reportUid_v40hcx_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_reportLastModTime_r9pbl6_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_reportUid_2o5j9v_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ReportDao_DoorWrapper(_db, _dao) { ReportDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ReportDao_DoorWrapper).getResults_sp56qf_k$ = function (query) { throw IllegalStateException_init_$Create$('getResults: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).deleteReportByUid_qv7hjx_k$ = function (reportUid, $completion) { return this._dao_1.deleteReportByUid_qv7hjx_k$(reportUid, $completion); }; protoOf(ReportDao_DoorWrapper).findAllReports_nildvb_k$ = function () { return this._dao_1.findAllReports_nildvb_k$(); }; protoOf(ReportDao_DoorWrapper).findAllActiveReport_i6cqz1_k$ = function (searchBit, isTemplate) { return this._dao_1.findAllActiveReport_i6cqz1_k$(searchBit, isTemplate); }; protoOf(ReportDao_DoorWrapper).findByUid_fcpknb_k$ = function (entityUid, $completion) { return this._dao_1.findByUid_fcpknb_k$(entityUid, $completion); }; protoOf(ReportDao_DoorWrapper).updateAsync_5p7x9f_k$ = function (entity, $completion) { entity.set_reportLastModTime_r9pbl6_k$(systemTimeInMillis()); return this._dao_1.updateAsync_5p7x9f_k$(entity, $completion); }; protoOf(ReportDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (uid) { return this._dao_1.findByUidLive_jdot2a_k$(uid); }; protoOf(ReportDao_DoorWrapper).findAllActiveReportLive_93p2o9_k$ = function (isTemplate) { return this._dao_1.findAllActiveReportLive_93p2o9_k$(isTemplate); }; protoOf(ReportDao_DoorWrapper).findAllActiveReportList_h2c9mt_k$ = function (isTemplate) { throw IllegalStateException_init_$Create$('findAllActiveReportList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).findByUidList_m9ustk_k$ = function (uidList) { throw IllegalStateException_init_$Create$('findByUidList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).toggleVisibilityReportItems_f4zbpq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { return this._dao_1.toggleVisibilityReportItems_f4zbpq_k$(toggleVisibility, selectedItem, updateTime, $completion); }; protoOf(ReportDao_DoorWrapper).replaceList_p1fg4b_k$ = function (entityList) { throw IllegalStateException_init_$Create$('replaceList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).insert_80dbeo_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_80dbeo_k$(entity instanceof Report ? entity : THROW_CCE()); }; protoOf(ReportDao_DoorWrapper).insertAsync_xbyrb9_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$362(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_xbyrb9_k$(entity instanceof Report ? entity : THROW_CCE(), $completion); }; protoOf(ReportDao_DoorWrapper).insertList_rq139c_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rq139c_k$(entityList); }; protoOf(ReportDao_DoorWrapper).update_h41idc_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ReportDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_h41idc_k$(entity instanceof Report ? entity : THROW_CCE()); }; function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda($_limit, $_offset, resultContinuation) { this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).invoke_973dyc_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_973dyc_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda(this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda_0($_limit, $_offset, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda($_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_973dyc_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findAllReports$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findAllReports$o$countRows$slambda_0(resultContinuation) { var i = new ReportDao_JdbcImpl$findAllReports$o$countRows$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda($isTemplate, $searchBit, $_limit, $_offset, resultContinuation) { this.$isTemplate_1 = $isTemplate; this.$searchBit_1 = $searchBit; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda).invoke_973dyc_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_973dyc_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$isTemplate_1); this._stmt_1.setString_2gt7ua_k$(2, this.$searchBit_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(4, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda(this.$isTemplate_1, this.$searchBit_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda_0($isTemplate, $searchBit, $_limit, $_offset, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda($isTemplate, $searchBit, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_973dyc_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda($isTemplate, $searchBit, resultContinuation) { this.$isTemplate_1 = $isTemplate; this.$searchBit_1 = $searchBit; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$isTemplate_1); this._stmt_1.setString_2gt7ua_k$(2, this.$searchBit_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda(this.$isTemplate_1, this.$searchBit_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda_0($isTemplate, $searchBit, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda($isTemplate, $searchBit, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, ReportDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findByUid....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findByUidLive.....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_aogriz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_aogriz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findByUidLive$slambda$slambda_0($uid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_aogriz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findAllActiveReportLive.....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda($isTemplate, resultContinuation) { this.$isTemplate_1 = $isTemplate; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda).invoke_973dyc_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_973dyc_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$isTemplate_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda(this.$isTemplate_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda_0($isTemplate, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda($isTemplate, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_973dyc_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).bindPreparedStmtToEntity_ylnpcl_k$ = function (stmt, entity) { if (entity.get_reportUid_2o5j9v_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_reportUid_2o5j9v_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_reportTitle_9n6523_k$()); stmt.setString_2gt7ua_k$(3, entity.get_reportOptions_ygo8m9_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_reportIsTemplate_o8gstd_k$()); stmt.setLong_j1sybo_k$(5, entity.get_reportLastModTime_uv9hqc_k$()); stmt.setLong_j1sybo_k$(6, entity.get_reportOwnerPersonUid_ejakgr_k$()); }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ylnpcl_k$(stmt, entity instanceof Report ? entity : THROW_CCE()); }; function ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Report (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).bindPreparedStmtToEntity_ylnpcl_k$ = function (stmt, entity) { if (entity.get_reportUid_2o5j9v_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_reportUid_2o5j9v_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_reportTitle_9n6523_k$()); stmt.setString_2gt7ua_k$(3, entity.get_reportOptions_ygo8m9_k$()); stmt.setBoolean_pzdm1v_k$(4, entity.get_reportIsTemplate_o8gstd_k$()); stmt.setLong_j1sybo_k$(5, entity.get_reportLastModTime_uv9hqc_k$()); stmt.setLong_j1sybo_k$(6, entity.get_reportOwnerPersonUid_ejakgr_k$()); }; protoOf(ReportDao_JdbcImpl$_insertAdapterReport_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ylnpcl_k$(stmt, entity instanceof Report ? entity : THROW_CCE()); }; function ReportDao_JdbcImpl$updateAsync$slambda($entity, resultContinuation) { this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$entity_1.get_reportTitle_9n6523_k$()); this._stmt_1.setString_2gt7ua_k$(2, this.$entity_1.get_reportOptions_ygo8m9_k$()); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$entity_1.get_reportIsTemplate_o8gstd_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$entity_1.get_reportLastModTime_uv9hqc_k$()); this._stmt_1.setLong_j1sybo_k$(5, this.$entity_1.get_reportOwnerPersonUid_ejakgr_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$entity_1.get_reportUid_2o5j9v_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$updateAsync$slambda(this.$entity_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$updateAsync$slambda_0($entity, resultContinuation) { var i = new ReportDao_JdbcImpl$updateAsync$slambda($entity, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setString_2gt7ua_k$(1, $entity.get_reportTitle_9n6523_k$()); _stmt.setString_2gt7ua_k$(2, $entity.get_reportOptions_ygo8m9_k$()); _stmt.setBoolean_pzdm1v_k$(3, $entity.get_reportIsTemplate_o8gstd_k$()); _stmt.setLong_j1sybo_k$(4, $entity.get_reportLastModTime_uv9hqc_k$()); _stmt.setLong_j1sybo_k$(5, $entity.get_reportOwnerPersonUid_ejakgr_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_reportUid_2o5j9v_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ReportDao_JdbcImpl$getResults$lambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$getResults$lambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$getResults$lambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.getResults....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$getResults$lambda($query, this$0) { return function (_stmt) { $query.bindToPreparedStmt_le67fq_k$(_stmt, this$0._db_1); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ReportDao_JdbcImpl$getResults$lambda$lambda); }; } function ReportDao_JdbcImpl$deleteReportByUid$slambda($reportUid, resultContinuation) { this.$reportUid_1 = $reportUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$reportUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$deleteReportByUid$slambda(this.$reportUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$deleteReportByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$deleteReportByUid$slambda_0($reportUid, resultContinuation) { var i = new ReportDao_JdbcImpl$deleteReportByUid$slambda($reportUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findAllReports$1(this$0) { this.this$0__1 = this$0; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Report']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ReportDao_JdbcImpl$findAllReports$1).loadRows_nvw1wx_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT * FROM Report ORDER BY reportTitle ASC) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ReportDao_JdbcImpl$findAllReports$o$loadRows$slambda_0(_limit, _offset, null), $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_nvw1wx_k$(_limit, _offset, $completion); }; protoOf(ReportDao_JdbcImpl$findAllReports$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT * FROM Report ORDER BY reportTitle ASC) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ReportDao_JdbcImpl$findAllReports$o$countRows$slambda_0(null), $completion); }; function ReportDao_JdbcImpl$findAllActiveReport$1(this$0, $isTemplate, $searchBit) { this.this$0__1 = this$0; this.$isTemplate_1 = $isTemplate; this.$searchBit_1 = $searchBit; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Report']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ReportDao_JdbcImpl$findAllActiveReport$1).loadRows_nvw1wx_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n SELECT * FROM Report \n WHERE reportIsTemplate = ?\n AND reportTitle LIKE ?\n ORDER BY reportTitle\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ReportDao_JdbcImpl$findAllActiveReport$o$loadRows$slambda_0(this.$isTemplate_1, this.$searchBit_1, _limit, _offset, null), $completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_nvw1wx_k$(_limit, _offset, $completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReport$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n SELECT * FROM Report \n WHERE reportIsTemplate = ?\n AND reportTitle LIKE ?\n ORDER BY reportTitle\n ) AS _PagingCount', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ReportDao_JdbcImpl$findAllActiveReport$o$countRows$slambda_0(this.$isTemplate_1, this.$searchBit_1, null), $completion); }; function ReportDao_JdbcImpl$findByUid$slambda($entityUid, resultContinuation) { this.$entityUid_1 = $entityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUid$slambda).invoke_aogriz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_aogriz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$findByUid$slambda(this.$entityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$findByUid$slambda_0($entityUid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUid$slambda($entityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_aogriz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).invoke_1s0x7z_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1s0x7z_k$($completion); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Report WHERE reportUid = ?\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ReportDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new ReportDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$uid_1, completion); }; function ReportDao_JdbcImpl$findByUidLive$slambda_0(this$0, $uid, resultContinuation) { var i = new ReportDao_JdbcImpl$findByUidLive$slambda(this$0, $uid, resultContinuation); var l = function ($completion) { return i.invoke_1s0x7z_k$($completion); }; l.$arity = 0; return l; } function ReportDao_JdbcImpl$findAllActiveReportLive$slambda(this$0, $isTemplate, resultContinuation) { this.this$0__1 = this$0; this.$isTemplate_1 = $isTemplate; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda).invoke_edtjuw_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_edtjuw_k$($completion); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT * FROM Report \n WHERE reportIsTemplate = ?\n ORDER BY reportTitle ASC\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ReportDao_JdbcImpl$findAllActiveReportLive$slambda$slambda_0(this.$isTemplate_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$findAllActiveReportLive$slambda).create_d196fn_k$ = function (completion) { return new ReportDao_JdbcImpl$findAllActiveReportLive$slambda(this.this$0__1, this.$isTemplate_1, completion); }; function ReportDao_JdbcImpl$findAllActiveReportLive$slambda_0(this$0, $isTemplate, resultContinuation) { var i = new ReportDao_JdbcImpl$findAllActiveReportLive$slambda(this$0, $isTemplate, resultContinuation); var l = function ($completion) { return i.invoke_edtjuw_k$($completion); }; l.$arity = 0; return l; } function ReportDao_JdbcImpl$findAllActiveReportList$lambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findAllActiveReportList$lambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findAllActiveReportList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_reportUid = $_result.getLong_3wgf2g_k$('reportUid'); var _tmp_reportTitle = $_result.getString_gb1pt9_k$('reportTitle'); var _tmp_reportOptions = $_result.getString_gb1pt9_k$('reportOptions'); var _tmp_reportIsTemplate = $_result.getBoolean_xz3hoo_k$('reportIsTemplate'); var _tmp_reportLastModTime = $_result.getLong_3wgf2g_k$('reportLastModTime'); var _tmp_reportOwnerPersonUid = $_result.getLong_3wgf2g_k$('reportOwnerPersonUid'); // Inline function 'kotlin.apply' call var this_0 = new Report(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportDao_JdbcImpl.findAllActiveReportList....' call this_0.set_reportUid_v40hcx_k$(_tmp_reportUid); this_0.set_reportTitle_gldsuo_k$(_tmp_reportTitle); this_0.set_reportOptions_umen1m_k$(_tmp_reportOptions); this_0.set_reportIsTemplate_5va6lc_k$(_tmp_reportIsTemplate); this_0.set_reportLastModTime_r9pbl6_k$(_tmp_reportLastModTime); this_0.set_reportOwnerPersonUid_p5wycl_k$(_tmp_reportOwnerPersonUid); return this_0; }; } function ReportDao_JdbcImpl$findAllActiveReportList$lambda($isTemplate) { return function (_stmt) { _stmt.setBoolean_pzdm1v_k$(1, $isTemplate); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ReportDao_JdbcImpl$findAllActiveReportList$lambda$lambda); }; } function ReportDao_JdbcImpl$findByUidList$lambda$lambda(_result) { return mapRows(_result, ReportDao_JdbcImpl$findByUidList$lambda$lambda$lambda(_result)); } function ReportDao_JdbcImpl$findByUidList$lambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ReportDao_JdbcImpl$findByUidList$lambda($uidList) { return function (_stmt) { var tmp = _stmt.getConnection_hr2oto_k$(); // Inline function 'kotlin.collections.toTypedArray' call var this_0 = $uidList; var tmp$ret$0 = copyToArray(this_0); _stmt.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp, 'BIGINT', tmp$ret$0)); var tmp_0 = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp_0, ReportDao_JdbcImpl$findByUidList$lambda$lambda); }; } function ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda($toggleVisibility, $updateTime, $selectedItem, resultContinuation) { this.$toggleVisibility_1 = $toggleVisibility; this.$updateTime_1 = $updateTime; this.$selectedItem_1 = $selectedItem; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$toggleVisibility_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$selectedItem_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda(this.$toggleVisibility_1, this.$updateTime_1, this.$selectedItem_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda_0($toggleVisibility, $updateTime, $selectedItem, resultContinuation) { var i = new ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda($toggleVisibility, $updateTime, $selectedItem, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$363(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$363).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterReport_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$364(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$364).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE Report SET reportTitle = ?, reportOptions = ?, reportIsTemplate = ?, reportLastModTime = ?, reportOwnerPersonUid = ? WHERE reportUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, ReportDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $deleteReportByUidCOROUTINE$365(_this__u8e3s4, reportUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.reportUid_1 = reportUid; } protoOf($deleteReportByUidCOROUTINE$365).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('DELETE FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'DELETE FROM Report WHERE reportUid = ?\n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ReportDao_JdbcImpl$deleteReportByUid$slambda_0(this.reportUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $toggleVisibilityReportItemsCOROUTINE$366(_this__u8e3s4, toggleVisibility, selectedItem, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.toggleVisibility_1 = toggleVisibility; this.selectedItem_1 = selectedItem; this.updateTime_1 = updateTime; } protoOf($toggleVisibilityReportItemsCOROUTINE$366).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE Report \n SET reportIsTemplate = ?,\n reportLastModTime = CAST(? AS BIGINT)\n WHERE reportUid IN (?)\n ', true, VOID, VOID, '\n UPDATE Report \n SET reportIsTemplate = ?,\n reportLastModTime = ?\n WHERE reportUid IN (?)\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ReportDao_JdbcImpl$toggleVisibilityReportItems$slambda_0(this.toggleVisibility_1, this.updateTime_1, this.selectedItem_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ReportDao_JdbcImpl(_db) { ReportDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterReport_upsert_1 = new ReportDao_JdbcImpl$_insertAdapterReport_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterReport_abort_1 = new ReportDao_JdbcImpl$_insertAdapterReport_abort$1(this); } protoOf(ReportDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ReportDao_JdbcImpl).get__insertAdapterReport_upsert_8t51wm_k$ = function () { return this._insertAdapterReport_upsert_1; }; protoOf(ReportDao_JdbcImpl).get__insertAdapterReport_abort_nicowr_k$ = function () { return this._insertAdapterReport_abort_1; }; protoOf(ReportDao_JdbcImpl).replaceList_p1fg4b_k$ = function (entityList) { this._insertAdapterReport_upsert_1.insertList_bfvuij_k$(entityList); }; protoOf(ReportDao_JdbcImpl).insert_80dbeo_k$ = function (entity) { var _retVal = this._insertAdapterReport_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ReportDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_80dbeo_k$(entity instanceof Report ? entity : THROW_CCE()); }; protoOf(ReportDao_JdbcImpl).insertAsync_xbyrb9_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$363(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_xbyrb9_k$(entity instanceof Report ? entity : THROW_CCE(), $completion); }; protoOf(ReportDao_JdbcImpl).insertList_rq139c_k$ = function (entityList) { this._insertAdapterReport_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ReportDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rq139c_k$(entityList); }; protoOf(ReportDao_JdbcImpl).updateAsync_5p7x9f_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$364(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl).update_h41idc_k$ = function (entity) { var _sql = 'UPDATE Report SET reportTitle = ?, reportOptions = ?, reportIsTemplate = ?, reportLastModTime = ?, reportOwnerPersonUid = ? WHERE reportUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ReportDao_JdbcImpl$update$lambda(entity)); }; protoOf(ReportDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_h41idc_k$(entity instanceof Report ? entity : THROW_CCE()); }; protoOf(ReportDao_JdbcImpl).getResults_sp56qf_k$ = function (query) { var tmp = new PreparedStatementConfig(query.get_sql_18iw0r_k$(), hasListOrArrayParams(query), VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ReportDao_JdbcImpl$getResults$lambda(query, this)); }; protoOf(ReportDao_JdbcImpl).deleteReportByUid_qv7hjx_k$ = function (reportUid, $completion) { var tmp = new $deleteReportByUidCOROUTINE$365(this, reportUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_JdbcImpl).findAllReports_nildvb_k$ = function () { return new ReportDao_JdbcImpl$findAllReports$1(this); }; protoOf(ReportDao_JdbcImpl).findAllActiveReport_i6cqz1_k$ = function (searchBit, isTemplate) { return new ReportDao_JdbcImpl$findAllActiveReport$1(this, isTemplate, searchBit); }; protoOf(ReportDao_JdbcImpl).findByUid_fcpknb_k$ = function (entityUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Report WHERE reportUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Report WHERE reportUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ReportDao_JdbcImpl$findByUid$slambda_0(entityUid, null), $completion); }; protoOf(ReportDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (uid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Report']; return doorFlow(this._db_1, tmp, ReportDao_JdbcImpl$findByUidLive$slambda_0(this, uid, null)); }; protoOf(ReportDao_JdbcImpl).findAllActiveReportLive_93p2o9_k$ = function (isTemplate) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Report']; return doorFlow(this._db_1, tmp, ReportDao_JdbcImpl$findAllActiveReportLive$slambda_0(this, isTemplate, null)); }; protoOf(ReportDao_JdbcImpl).findAllActiveReportList_h2c9mt_k$ = function (isTemplate) { var tmp = new PreparedStatementConfig('\n SELECT * FROM Report \n WHERE reportIsTemplate = ?\n ORDER BY reportTitle ASC\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ReportDao_JdbcImpl$findAllActiveReportList$lambda(isTemplate)); }; protoOf(ReportDao_JdbcImpl).findByUidList_m9ustk_k$ = function (uidList) { var tmp = new PreparedStatementConfig('SELECT reportUid FROM Report WHERE reportUid IN (?)', true, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, ReportDao_JdbcImpl$findByUidList$lambda(uidList)); }; protoOf(ReportDao_JdbcImpl).toggleVisibilityReportItems_f4zbpq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { var tmp = new $toggleVisibilityReportItemsCOROUTINE$366(this, toggleVisibility, selectedItem, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ReportDao_Repo$findAllReports$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$deleteReportByUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$findAllReports$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$findAllReports$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo$findAllReports$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(ReportDao_Repo$findAllReports$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'ReportDao/findAllReports'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'ReportDao/findAllReports'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, ReportDao_Repo$findAllReports$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(ReportDao_Repo$findAllReports$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new ReportDao_Repo$findAllReports$slambda(this.this$0__1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(ReportDao_Repo$findAllReports$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function ReportDao_Repo$findAllReports$slambda_0(this$0, resultContinuation) { var i = new ReportDao_Repo$findAllReports$slambda(this$0, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function ReportDao_Repo$findByUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function ReportDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ReportDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_5p7x9f_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ReportDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ReportDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ReportDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ReportDao_Repo$toggleVisibilityReportItems$slambda(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$toggleVisibility_1 = $toggleVisibility; this.$selectedItem_1 = $selectedItem; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$toggleVisibilityReportItems$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo$toggleVisibilityReportItems$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ReportDao_Repo$toggleVisibilityReportItems$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.toggleVisibilityReportItems_f4zbpq_k$(this.$toggleVisibility_1, this.$selectedItem_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_Repo$toggleVisibilityReportItems$slambda).create_d196fn_k$ = function (completion) { return new ReportDao_Repo$toggleVisibilityReportItems$slambda(this.this$0__1, this.$toggleVisibility_1, this.$selectedItem_1, this.$updateTime_1, completion); }; function ReportDao_Repo$toggleVisibilityReportItems$slambda_0(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation) { var i = new ReportDao_Repo$toggleVisibilityReportItems$slambda(this$0, $toggleVisibility, $selectedItem, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ReportDao_Repo$replaceList$lambda(this$0, $entityList) { return function () { this$0._dao_1.replaceList_p1fg4b_k$($entityList); return Unit_getInstance(); }; } function ReportDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_ut0uwa_k$($entity); }; } function ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ReportDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ReportDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ReportDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ReportDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ReportDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ReportDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $deleteReportByUidCOROUTINE$367(_this__u8e3s4, reportUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.reportUid_1 = reportUid; } protoOf($deleteReportByUidCOROUTINE$367).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ReportDao/deleteReportByUid'; this.set_exceptionState_fex74n_k$(3); this.ARGUMENT2__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(); this.ARGUMENT3__1 = serializer_3(Unit_getInstance()); var tmp_2 = this; tmp_2.this4__1 = this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_httpClient_cdum84_k$(); var tmp_3 = this; tmp_3.this5__1 = this.this4__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ReportDao/deleteReportByUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'reportUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.reportUid_1)); tmp_4.builder6__1 = this_0; this.builder6__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this7__1 = this.this5__1; var tmp_6 = this; tmp_6.builder8__1 = this.builder6__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder8__1, this.this7__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this.ARGUMENT9__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = bodyAsText(this.ARGUMENT9__1, VOID, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.ARGUMENT10__1 = suspendResult; this.ARGUMENT2__1.decodeFromString_jwu9sq_k$(this.ARGUMENT3__1, this.ARGUMENT10__1); this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e11__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e11__1, tmp1_tag, ReportDao_Repo$deleteReportByUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); suspendResult = this._this__u8e3s4__1._dao_1.deleteReportByUid_qv7hjx_k$(this.reportUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_state_rjd8d0_k$(5); continue $sm; case 5: this.set_exceptionState_fex74n_k$(6); return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidCOROUTINE$368(_this__u8e3s4, entityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityUid_1 = entityUid; } protoOf($findByUidCOROUTINE$368).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ReportDao/findByUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ReportDao/findByUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'entityUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.entityUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ReportDao_Repo$findByUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_fcpknb_k$(this.entityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$369(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$369).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Report', ReportDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ReportDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ReportDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ReportDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ReportDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ReportDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ReportDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ReportDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ReportDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ReportDao_Repo).getResults_sp56qf_k$ = function (query) { var _result = this._dao_1.getResults_sp56qf_k$(query); return _result; }; protoOf(ReportDao_Repo).deleteReportByUid_qv7hjx_k$ = function (reportUid, $completion) { var tmp = new $deleteReportByUidCOROUTINE$367(this, reportUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo).findAllReports_nildvb_k$ = function () { var tmp = this._dao_1.findAllReports_nildvb_k$(); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'ReportDao/findAllReports', tmp, ReportDao_Repo$findAllReports$slambda_0(this, null)); }; protoOf(ReportDao_Repo).findAllActiveReport_i6cqz1_k$ = function (searchBit, isTemplate) { var _result = this._dao_1.findAllActiveReport_i6cqz1_k$(searchBit, isTemplate); return _result; }; protoOf(ReportDao_Repo).findByUid_fcpknb_k$ = function (entityUid, $completion) { var tmp = new $findByUidCOROUTINE$368(this, entityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo).updateAsync_5p7x9f_k$ = function (entity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Report', ReportDao_Repo$updateAsync$slambda_0(this, entity, null), $completion); }; protoOf(ReportDao_Repo).findByUidLive_jdot2a_k$ = function (uid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(uid); return _result; }; protoOf(ReportDao_Repo).findAllActiveReportLive_93p2o9_k$ = function (isTemplate) { var _result = this._dao_1.findAllActiveReportLive_93p2o9_k$(isTemplate); return _result; }; protoOf(ReportDao_Repo).findAllActiveReportList_h2c9mt_k$ = function (isTemplate) { var _result = this._dao_1.findAllActiveReportList_h2c9mt_k$(isTemplate); return _result; }; protoOf(ReportDao_Repo).findByUidList_m9ustk_k$ = function (uidList) { var _result = this._dao_1.findByUidList_m9ustk_k$(uidList); return _result; }; protoOf(ReportDao_Repo).toggleVisibilityReportItems_f4zbpq_k$ = function (toggleVisibility, selectedItem, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Report', ReportDao_Repo$toggleVisibilityReportItems$slambda_0(this, toggleVisibility, selectedItem, updateTime, null), $completion); }; protoOf(ReportDao_Repo).replaceList_p1fg4b_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Report', ReportDao_Repo$replaceList$lambda(this, entityList)); }; protoOf(ReportDao_Repo).insert_80dbeo_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Report', ReportDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ReportDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_80dbeo_k$(entity instanceof Report ? entity : THROW_CCE()); }; protoOf(ReportDao_Repo).insertAsync_xbyrb9_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$369(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_xbyrb9_k$(entity instanceof Report ? entity : THROW_CCE(), $completion); }; protoOf(ReportDao_Repo).insertList_rq139c_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Report', ReportDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ReportDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_rq139c_k$(entityList); }; protoOf(ReportDao_Repo).update_h41idc_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Report', ReportDao_Repo$update$lambda(this, entity)); }; protoOf(ReportDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_h41idc_k$(entity instanceof Report ? entity : THROW_CCE()); }; function ReportQueryResultDao() { } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda(_result) { return mapRows(_result, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda$lambda(_result)); } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda$lambda($_result) { return function (it) { var _tmp_rqrUid = $_result.getLong_3wgf2g_k$('rqrUid'); var _tmp_rqrReportUid = $_result.getLong_3wgf2g_k$('rqrReportUid'); var _tmp_rqrLastModified = $_result.getLong_3wgf2g_k$('rqrLastModified'); var _tmp_rqrLastValidated = $_result.getLong_3wgf2g_k$('rqrLastValidated'); var _tmp_rqrReportSeriesUid = $_result.getInt_npc9pd_k$('rqrReportSeriesUid'); var _tmp_rqrXAxis = getStringNonNull($_result, 'rqrXAxis'); var _tmp_rqrYAxis = $_result.getDouble_v37ict_k$('rqrYAxis'); var _tmp_rqrSubgroup = getStringNonNull($_result, 'rqrSubgroup'); var _tmp_rqrTimeZone = getStringNonNull($_result, 'rqrTimeZone'); // Inline function 'kotlin.apply' call var this_0 = new ReportQueryResult(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ReportQueryResultDao_JdbcImpl.getAllByReportUidAndTimeZone....' call this_0.set_rqrUid_eejgro_k$(_tmp_rqrUid); this_0.set_rqrReportUid_fk1gug_k$(_tmp_rqrReportUid); this_0.set_rqrLastModified_9x880n_k$(_tmp_rqrLastModified); this_0.set_rqrLastValidated_aizkis_k$(_tmp_rqrLastValidated); this_0.set_rqrReportSeriesUid_oqnc5j_k$(_tmp_rqrReportSeriesUid); this_0.set_rqrXAxis_7zf3a1_k$(_tmp_rqrXAxis); this_0.set_rqrYAxis_g128wi_k$(_tmp_rqrYAxis); this_0.set_rqrSubgroup_99uet1_k$(_tmp_rqrSubgroup); this_0.set_rqrTimeZone_302uzf_k$(_tmp_rqrTimeZone); return this_0; }; } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda(_result) { return mapNextRow(_result, false, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda$lambda(_result)); } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ReportQueryResult (rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).bindPreparedStmtToEntity_5kxtva_k$ = function (stmt, entity) { if (entity.get_rqrUid_j50dom_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_rqrUid_j50dom_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_rqrReportUid_r2444y_k$()); stmt.setLong_j1sybo_k$(3, entity.get_rqrLastModified_1gpnzr_k$()); stmt.setLong_j1sybo_k$(4, entity.get_rqrLastValidated_wb060i_k$()); stmt.setInt_c72a8z_k$(5, entity.get_rqrReportSeriesUid_920ih1_k$()); stmt.setString_2gt7ua_k$(6, entity.get_rqrXAxis_482lw1_k$()); stmt.setDouble_gsfx69_k$(7, entity.get_rqrYAxis_47itao_k$()); stmt.setString_2gt7ua_k$(8, entity.get_rqrSubgroup_806prr_k$()); stmt.setString_2gt7ua_k$(9, entity.get_rqrTimeZone_834m59_k$()); }; protoOf(ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_5kxtva_k$(stmt, entity instanceof ReportQueryResult ? entity : THROW_CCE()); }; function ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation) { this.$reportUid_1 = $reportUid; this.$timeZone_1 = $timeZone; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$reportUid_1); this._stmt_1.setString_2gt7ua_k$(2, this.$timeZone_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda(this.$reportUid_1, this.$timeZone_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda_0($reportUid, $timeZone, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation) { this.$reportUid_1 = $reportUid; this.$timeZone_1 = $timeZone; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).invoke_r4rirh_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_r4rirh_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$reportUid_1); this._stmt_1.setString_2gt7ua_k$(2, this.$timeZone_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda(this.$reportUid_1, this.$timeZone_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda_0($reportUid, $timeZone, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda($reportUid, $timeZone, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_r4rirh_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda($reportUid, $timeZone, $freshThresholdTime, resultContinuation) { this.$reportUid_1 = $reportUid; this.$timeZone_1 = $timeZone; this.$freshThresholdTime_1 = $freshThresholdTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$reportUid_1); this._stmt_1.setString_2gt7ua_k$(2, this.$timeZone_1); this._stmt_1.setLong_j1sybo_k$(3, this.$freshThresholdTime_1); this._stmt_1.setLong_j1sybo_k$(4, this.$reportUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ReportQueryResultDao_JdbcImpl$isReportFresh$slambda(this.$reportUid_1, this.$timeZone_1, this.$freshThresholdTime_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ReportQueryResultDao_JdbcImpl$isReportFresh$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ReportQueryResultDao_JdbcImpl$isReportFresh$slambda_0($reportUid, $timeZone, $freshThresholdTime, resultContinuation) { var i = new ReportQueryResultDao_JdbcImpl$isReportFresh$slambda($reportUid, $timeZone, $freshThresholdTime, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $deleteByReportUidAndTimeZoneCOROUTINE$370(_this__u8e3s4, reportUid, timeZone, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.reportUid_1 = reportUid; this.timeZone_1 = timeZone; } protoOf($deleteByReportUidAndTimeZoneCOROUTINE$370).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n DELETE FROM ReportQueryResult\n WHERE rqrReportUid = CAST(? AS BIGINT)\n AND rqrTimeZone = ?\n ', VOID, VOID, VOID, '\n DELETE FROM ReportQueryResult\n WHERE rqrReportUid = ?\n AND rqrTimeZone = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ReportQueryResultDao_JdbcImpl$deleteByReportUidAndTimeZone$slambda_0(this.reportUid_1, this.timeZone_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ReportQueryResultDao_JdbcImpl(_db) { ReportQueryResultDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterReportQueryResult_abort_1 = new ReportQueryResultDao_JdbcImpl$_insertAdapterReportQueryResult_abort$1(this); } protoOf(ReportQueryResultDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ReportQueryResultDao_JdbcImpl).get__insertAdapterReportQueryResult_abort_pq738i_k$ = function () { return this._insertAdapterReportQueryResult_abort_1; }; protoOf(ReportQueryResultDao_JdbcImpl).insertAllAsync_aoamrf_k$ = function (results, $completion) { return this._insertAdapterReportQueryResult_abort_1.insertListAsync_it2cbm_k$(results, $completion); }; protoOf(ReportQueryResultDao_JdbcImpl).deleteByReportUidAndTimeZone_bdeemt_k$ = function (reportUid, timeZone, $completion) { var tmp = new $deleteByReportUidAndTimeZoneCOROUTINE$370(this, reportUid, timeZone, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ReportQueryResultDao_JdbcImpl).getAllByReportUidAndTimeZone_sdm74d_k$ = function (reportUid, timeZone, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ReportQueryResult.*\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = CAST(? AS BIGINT) \n AND ReportQueryResult.rqrTimeZone = ?\n ', VOID, VOID, VOID, '\n SELECT ReportQueryResult.*\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = ? \n AND ReportQueryResult.rqrTimeZone = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ReportQueryResultDao_JdbcImpl$getAllByReportUidAndTimeZone$slambda_0(reportUid, timeZone, null), $completion); }; protoOf(ReportQueryResultDao_JdbcImpl).isReportFresh_dd8vyq_k$ = function (reportUid, timeZone, freshThresholdTime, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT ReportQueryResult.rqrLastModified\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = CAST(? AS BIGINT)\n AND ReportQueryResult.rqrTimeZone = ?\n LIMIT 1), 0) >= \n (SELECT MAX(CAST(? AS BIGINT), \n (SELECT COALESCE(\n (SELECT Report.reportLastModTime\n FROM Report\n WHERE Report.reportUid = CAST(? AS BIGINT)), 0))))\n ', VOID, VOID, VOID, '\n SELECT COALESCE(\n (SELECT ReportQueryResult.rqrLastModified\n FROM ReportQueryResult\n WHERE ReportQueryResult.rqrReportUid = ?\n AND ReportQueryResult.rqrTimeZone = ?\n LIMIT 1), 0) >= \n (SELECT GREATEST(?, \n (SELECT COALESCE(\n (SELECT Report.reportLastModTime\n FROM Report\n WHERE Report.reportUid = ?), 0))))\n ', true); return prepareAndUseStatementAsync(this._db_1, tmp, ReportQueryResultDao_JdbcImpl$isReportFresh$slambda_0(reportUid, timeZone, freshThresholdTime, null), $completion); }; function ScheduleDao() { } function _get__db__e63s44_44($this) { return $this._db_1; } function _get__dao__d2kw60_42($this) { return $this._dao_1; } function $upsertListAsyncCOROUTINE$371(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($upsertListAsyncCOROUTINE$371).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_scheduleUid_gt0c7k_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_scheduleUid_35xeta_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_scheduleLastChangedTime_2uryvb_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_bcl2sc_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$372(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$372).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.entity_1.get_scheduleUid_gt0c7k_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(21, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.entity_1.set_scheduleUid_35xeta_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.entity_1.set_scheduleLastChangedTime_2uryvb_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.entity_1.get_scheduleUid_gt0c7k_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScheduleDao_DoorWrapper(_db, _dao) { ScheduleDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ScheduleDao_DoorWrapper).insert_tai0zh_k$ = function (entity) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(ScheduleDao_DoorWrapper).insert_ut0uwa_k$ = function (entity) { return this.insert_tai0zh_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; protoOf(ScheduleDao_DoorWrapper).updateAsync_oxr3eq_k$ = function (entity, $completion) { entity.set_scheduleLastChangedTime_2uryvb_k$(systemTimeInMillis()); return this._dao_1.updateAsync_oxr3eq_k$(entity, $completion); }; protoOf(ScheduleDao_DoorWrapper).upsertListAsync_bcl2sc_k$ = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$371(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_DoorWrapper).updateScheduleActivated_bfhhht_k$ = function (scheduleUid, active, changeTime, $completion) { return this._dao_1.updateScheduleActivated_bfhhht_k$(scheduleUid, active, changeTime, $completion); }; protoOf(ScheduleDao_DoorWrapper).findByUid_w1fpv2_k$ = function (uid) { throw IllegalStateException_init_$Create$('findByUid: synchronous db access is NOT possible on Javascript!'); }; protoOf(ScheduleDao_DoorWrapper).findByUidAsync_me4wby_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_me4wby_k$(uid, $completion); }; protoOf(ScheduleDao_DoorWrapper).findAllSchedulesByClazzUid_raopkb_k$ = function (clazzUid) { return this._dao_1.findAllSchedulesByClazzUid_raopkb_k$(clazzUid); }; protoOf(ScheduleDao_DoorWrapper).findAllSchedulesByClazzUidAsList_szzqzp_k$ = function (clazzUid) { throw IllegalStateException_init_$Create$('findAllSchedulesByClazzUidAsList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ScheduleDao_DoorWrapper).findAllSchedulesByClazzUidAsLiveList_f7bwq9_k$ = function (clazzUid) { return this._dao_1.findAllSchedulesByClazzUidAsLiveList_f7bwq9_k$(clazzUid); }; protoOf(ScheduleDao_DoorWrapper).findAllSchedulesByClazzUidAsync_x3l8bc_k$ = function (clazzUid, $completion) { return this._dao_1.findAllSchedulesByClazzUidAsync_x3l8bc_k$(clazzUid, $completion); }; protoOf(ScheduleDao_DoorWrapper).insertAsync_en1o0o_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$372(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_DoorWrapper).insertAsync = function (entity, $completion) { return this.insertAsync_en1o0o_k$(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; protoOf(ScheduleDao_DoorWrapper).insertList_cbc2fx_k$ = function (entityList) { throw IllegalStateException_init_$Create$('insertList: synchronous db access is NOT possible on Javascript!'); }; protoOf(ScheduleDao_DoorWrapper).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cbc2fx_k$(entityList); }; protoOf(ScheduleDao_DoorWrapper).update_cgy69v_k$ = function (entity) { throw IllegalStateException_init_$Create$('update: synchronous db access is NOT possible on Javascript!'); }; protoOf(ScheduleDao_DoorWrapper).update_mtvn3e_k$ = function (entity) { return this.update_cgy69v_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; function ScheduleDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ScheduleDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findByUidAsync....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda$lambda(_result) { return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao..loadRows....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda($clazzUid, $_limit, $_offset, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda).invoke_vdmoip_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vdmoip_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(3, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda(this.$clazzUid_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda_0($clazzUid, $_limit, $_offset, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda($clazzUid, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vdmoip_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda_0($clazzUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda(_result) { return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findAllSchedulesByClazzUidAsLiveList.....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).invoke_vdmoip_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vdmoip_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda_0($clazzUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vdmoip_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda(_result) { return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findAllSchedulesByClazzUidAsync....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).bindPreparedStmtToEntity_c3t5m0_k$ = function (stmt, entity) { if (entity.get_scheduleUid_gt0c7k_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_scheduleUid_gt0c7k_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_sceduleStartTime_r41do9_k$()); stmt.setLong_j1sybo_k$(3, entity.get_scheduleEndTime_vdt9o8_k$()); stmt.setInt_c72a8z_k$(4, entity.get_scheduleDay_gszzfg_k$()); stmt.setInt_c72a8z_k$(5, entity.get_scheduleMonth_q978qo_k$()); stmt.setInt_c72a8z_k$(6, entity.get_scheduleFrequency_bvvfg_k$()); stmt.setLong_j1sybo_k$(7, entity.get_umCalendarUid_hurqun_k$()); stmt.setLong_j1sybo_k$(8, entity.get_scheduleClazzUid_4qhnq0_k$()); stmt.setLong_j1sybo_k$(9, entity.get_scheduleMasterChangeSeqNum_eayz5z_k$()); stmt.setLong_j1sybo_k$(10, entity.get_scheduleLocalChangeSeqNum_bk48hu_k$()); stmt.setInt_c72a8z_k$(11, entity.get_scheduleLastChangedBy_fgje7p_k$()); stmt.setLong_j1sybo_k$(12, entity.get_scheduleLastChangedTime_b1i757_k$()); stmt.setBoolean_pzdm1v_k$(13, entity.get_scheduleActive_qpyjk6_k$()); }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_c3t5m0_k$(stmt, entity instanceof Schedule ? entity : THROW_CCE()); }; function ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).bindPreparedStmtToEntity_c3t5m0_k$ = function (stmt, entity) { if (entity.get_scheduleUid_gt0c7k_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_scheduleUid_gt0c7k_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_sceduleStartTime_r41do9_k$()); stmt.setLong_j1sybo_k$(3, entity.get_scheduleEndTime_vdt9o8_k$()); stmt.setInt_c72a8z_k$(4, entity.get_scheduleDay_gszzfg_k$()); stmt.setInt_c72a8z_k$(5, entity.get_scheduleMonth_q978qo_k$()); stmt.setInt_c72a8z_k$(6, entity.get_scheduleFrequency_bvvfg_k$()); stmt.setLong_j1sybo_k$(7, entity.get_umCalendarUid_hurqun_k$()); stmt.setLong_j1sybo_k$(8, entity.get_scheduleClazzUid_4qhnq0_k$()); stmt.setLong_j1sybo_k$(9, entity.get_scheduleMasterChangeSeqNum_eayz5z_k$()); stmt.setLong_j1sybo_k$(10, entity.get_scheduleLocalChangeSeqNum_bk48hu_k$()); stmt.setInt_c72a8z_k$(11, entity.get_scheduleLastChangedBy_fgje7p_k$()); stmt.setLong_j1sybo_k$(12, entity.get_scheduleLastChangedTime_b1i757_k$()); stmt.setBoolean_pzdm1v_k$(13, entity.get_scheduleActive_qpyjk6_k$()); }; protoOf(ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_c3t5m0_k$(stmt, entity instanceof Schedule ? entity : THROW_CCE()); }; function ScheduleDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation) { this.$entity_1 = $entity; this.$_result_1 = $_result; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$updateAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$entity_1.get_sceduleStartTime_r41do9_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$entity_1.get_scheduleEndTime_vdt9o8_k$()); this._stmt_1.setInt_c72a8z_k$(3, this.$entity_1.get_scheduleDay_gszzfg_k$()); this._stmt_1.setInt_c72a8z_k$(4, this.$entity_1.get_scheduleMonth_q978qo_k$()); this._stmt_1.setInt_c72a8z_k$(5, this.$entity_1.get_scheduleFrequency_bvvfg_k$()); this._stmt_1.setLong_j1sybo_k$(6, this.$entity_1.get_umCalendarUid_hurqun_k$()); this._stmt_1.setLong_j1sybo_k$(7, this.$entity_1.get_scheduleClazzUid_4qhnq0_k$()); this._stmt_1.setLong_j1sybo_k$(8, this.$entity_1.get_scheduleMasterChangeSeqNum_eayz5z_k$()); this._stmt_1.setLong_j1sybo_k$(9, this.$entity_1.get_scheduleLocalChangeSeqNum_bk48hu_k$()); this._stmt_1.setInt_c72a8z_k$(10, this.$entity_1.get_scheduleLastChangedBy_fgje7p_k$()); this._stmt_1.setLong_j1sybo_k$(11, this.$entity_1.get_scheduleLastChangedTime_b1i757_k$()); this._stmt_1.setBoolean_pzdm1v_k$(12, this.$entity_1.get_scheduleActive_qpyjk6_k$()); this._stmt_1.setLong_j1sybo_k$(13, this.$entity_1.get_scheduleUid_gt0c7k_k$()); this.ARGUMENT0__1 = this.$_result_1._v; this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; var ARGUMENT_0 = this.ARGUMENT0__1 + ARGUMENT | 0; this.$_result_1._v = ARGUMENT_0; return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$updateAsync$slambda(this.$entity_1, this.$_result_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$updateAsync$slambda_0($entity, $_result, resultContinuation) { var i = new ScheduleDao_JdbcImpl$updateAsync$slambda($entity, $_result, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$update$lambda($entity) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $entity.get_sceduleStartTime_r41do9_k$()); _stmt.setLong_j1sybo_k$(2, $entity.get_scheduleEndTime_vdt9o8_k$()); _stmt.setInt_c72a8z_k$(3, $entity.get_scheduleDay_gszzfg_k$()); _stmt.setInt_c72a8z_k$(4, $entity.get_scheduleMonth_q978qo_k$()); _stmt.setInt_c72a8z_k$(5, $entity.get_scheduleFrequency_bvvfg_k$()); _stmt.setLong_j1sybo_k$(6, $entity.get_umCalendarUid_hurqun_k$()); _stmt.setLong_j1sybo_k$(7, $entity.get_scheduleClazzUid_4qhnq0_k$()); _stmt.setLong_j1sybo_k$(8, $entity.get_scheduleMasterChangeSeqNum_eayz5z_k$()); _stmt.setLong_j1sybo_k$(9, $entity.get_scheduleLocalChangeSeqNum_bk48hu_k$()); _stmt.setInt_c72a8z_k$(10, $entity.get_scheduleLastChangedBy_fgje7p_k$()); _stmt.setLong_j1sybo_k$(11, $entity.get_scheduleLastChangedTime_b1i757_k$()); _stmt.setBoolean_pzdm1v_k$(12, $entity.get_scheduleActive_qpyjk6_k$()); _stmt.setLong_j1sybo_k$(13, $entity.get_scheduleUid_gt0c7k_k$()); return _stmt.executeUpdate_fapcbi_k$(); }; } function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$scheduleUid_1 = $scheduleUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$scheduleUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda(this.$active_1, this.$changeTime_1, this.$scheduleUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$updateScheduleActivated$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0($active, $changeTime, $scheduleUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$updateScheduleActivated$slambda($active, $changeTime, $scheduleUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findByUid$lambda$lambda(_result) { return mapNextRow(_result, null, ScheduleDao_JdbcImpl$findByUid$lambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findByUid$lambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findByUid....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$findByUid$lambda($uid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $uid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ScheduleDao_JdbcImpl$findByUid$lambda$lambda); }; } function ScheduleDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findByUidAsync$slambda).invoke_5p87bs_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5p87bs_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5p87bs_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1(this$0, $clazzUid) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['Schedule']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1).loadRows_c5fdm6_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1 ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$loadRows$slambda_0(this.$clazzUid_1, _limit, _offset, null), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_c5fdm6_k$(_limit, _offset, $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1 ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$o$countRows$slambda_0(this.$clazzUid_1, null), $completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda$lambda(_result) { return mapRows(_result, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda$lambda$lambda(_result)); } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda$lambda$lambda($_result) { return function (it) { var _tmp_scheduleUid = $_result.getLong_3wgf2g_k$('scheduleUid'); var _tmp_sceduleStartTime = $_result.getLong_3wgf2g_k$('sceduleStartTime'); var _tmp_scheduleEndTime = $_result.getLong_3wgf2g_k$('scheduleEndTime'); var _tmp_scheduleDay = $_result.getInt_npc9pd_k$('scheduleDay'); var _tmp_scheduleMonth = $_result.getInt_npc9pd_k$('scheduleMonth'); var _tmp_scheduleFrequency = $_result.getInt_npc9pd_k$('scheduleFrequency'); var _tmp_umCalendarUid = $_result.getLong_3wgf2g_k$('umCalendarUid'); var _tmp_scheduleClazzUid = $_result.getLong_3wgf2g_k$('scheduleClazzUid'); var _tmp_scheduleMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleMasterChangeSeqNum'); var _tmp_scheduleLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('scheduleLocalChangeSeqNum'); var _tmp_scheduleLastChangedBy = $_result.getInt_npc9pd_k$('scheduleLastChangedBy'); var _tmp_scheduleLastChangedTime = $_result.getLong_3wgf2g_k$('scheduleLastChangedTime'); var _tmp_scheduleActive = $_result.getBoolean_xz3hoo_k$('scheduleActive'); // Inline function 'kotlin.apply' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.ScheduleDao_JdbcImpl.findAllSchedulesByClazzUidAsList....' call this_0.set_scheduleUid_35xeta_k$(_tmp_scheduleUid); this_0.set_sceduleStartTime_81jqoh_k$(_tmp_sceduleStartTime); this_0.set_scheduleEndTime_fh9x3e_k$(_tmp_scheduleEndTime); this_0.set_scheduleDay_nsvexs_k$(_tmp_scheduleDay); this_0.set_scheduleMonth_p5ta0s_k$(_tmp_scheduleMonth); this_0.set_scheduleFrequency_w5icgw_k$(_tmp_scheduleFrequency); this_0.set_umCalendarUid_gauo2p_k$(_tmp_umCalendarUid); this_0.set_scheduleClazzUid_t953qm_k$(_tmp_scheduleClazzUid); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_tmp_scheduleMasterChangeSeqNum); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_tmp_scheduleLocalChangeSeqNum); this_0.set_scheduleLastChangedBy_31adzt_k$(_tmp_scheduleLastChangedBy); this_0.set_scheduleLastChangedTime_2uryvb_k$(_tmp_scheduleLastChangedTime); this_0.set_scheduleActive_twdrtn_k$(_tmp_scheduleActive); return this_0; }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda($clazzUid) { return function (_stmt) { _stmt.setLong_j1sybo_k$(1, $clazzUid); var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda$lambda); }; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this$0, $clazzUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).invoke_sx9lkl_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_sx9lkl_k$($completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda$slambda_0(this.$clazzUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda).create_d196fn_k$ = function (completion) { return new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this.this$0__1, this.$clazzUid_1, completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda_0(this$0, $clazzUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda(this$0, $clazzUid, resultContinuation); var l = function ($completion) { return i.invoke_sx9lkl_k$($completion); }; l.$arity = 0; return l; } function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).invoke_vdmoip_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_vdmoip_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda(this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0($clazzUid, resultContinuation) { var i = new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda($clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_vdmoip_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$373(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$373).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterSchedule_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$374(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$374).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._result0__1 = {_v: 0}; this._sql1__1 = 'UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql1__1, VOID, ScheduleDao_JdbcImpl$updateAsync$slambda_0(this.entity_1, this._result0__1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return this._result0__1._v; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateScheduleActivatedCOROUTINE$375(_this__u8e3s4, scheduleUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.scheduleUid_1 = scheduleUid; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateScheduleActivatedCOROUTINE$375).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE Schedule \n SET scheduleActive = ?,\n scheduleLastChangedTime = CAST(? AS BIGINT)\n WHERE scheduleUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE Schedule \n SET scheduleActive = ?,\n scheduleLastChangedTime = ?\n WHERE scheduleUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ScheduleDao_JdbcImpl$updateScheduleActivated$slambda_0(this.active_1, this.changeTime_1, this.scheduleUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScheduleDao_JdbcImpl(_db) { ScheduleDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterSchedule_abort_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterSchedule_upsert_1 = new ScheduleDao_JdbcImpl$_insertAdapterSchedule_upsert$1(this); } protoOf(ScheduleDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ScheduleDao_JdbcImpl).get__insertAdapterSchedule_abort_dfhgco_k$ = function () { return this._insertAdapterSchedule_abort_1; }; protoOf(ScheduleDao_JdbcImpl).get__insertAdapterSchedule_upsert_5zeeh_k$ = function () { return this._insertAdapterSchedule_upsert_1; }; protoOf(ScheduleDao_JdbcImpl).insert_tai0zh_k$ = function (entity) { var _retVal = this._insertAdapterSchedule_abort_1.insertAndReturnId_1ek0wq_k$(entity); return _retVal; }; protoOf(ScheduleDao_JdbcImpl).insert_ut0uwa_k$ = function (entity) { return this.insert_tai0zh_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; protoOf(ScheduleDao_JdbcImpl).upsertListAsync_bcl2sc_k$ = function (entities, $completion) { return this._insertAdapterSchedule_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ScheduleDao_JdbcImpl).insertAsync_en1o0o_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$373(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl).insertAsync = function (entity, $completion) { return this.insertAsync_en1o0o_k$(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; protoOf(ScheduleDao_JdbcImpl).insertList_cbc2fx_k$ = function (entityList) { this._insertAdapterSchedule_abort_1.insertList_bfvuij_k$(entityList); }; protoOf(ScheduleDao_JdbcImpl).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cbc2fx_k$(entityList); }; protoOf(ScheduleDao_JdbcImpl).updateAsync_oxr3eq_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$374(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl).update_cgy69v_k$ = function (entity) { var _sql = 'UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?'; prepareAndUseStatement(this._db_1, _sql, VOID, ScheduleDao_JdbcImpl$update$lambda(entity)); }; protoOf(ScheduleDao_JdbcImpl).update_mtvn3e_k$ = function (entity) { return this.update_cgy69v_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; protoOf(ScheduleDao_JdbcImpl).updateScheduleActivated_bfhhht_k$ = function (scheduleUid, active, changeTime, $completion) { var tmp = new $updateScheduleActivatedCOROUTINE$375(this, scheduleUid, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_JdbcImpl).findByUid_w1fpv2_k$ = function (uid) { var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleUid = ?\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ScheduleDao_JdbcImpl$findByUid$lambda(uid)); }; protoOf(ScheduleDao_JdbcImpl).findByUidAsync_me4wby_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ScheduleDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(ScheduleDao_JdbcImpl).findAllSchedulesByClazzUid_raopkb_k$ = function (clazzUid) { return new ScheduleDao_JdbcImpl$findAllSchedulesByClazzUid$1(this, clazzUid); }; protoOf(ScheduleDao_JdbcImpl).findAllSchedulesByClazzUidAsList_szzqzp_k$ = function (clazzUid) { var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1\n', true); return prepareAndUseStatement_0(this._db_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsList$lambda(clazzUid)); }; protoOf(ScheduleDao_JdbcImpl).findAllSchedulesByClazzUidAsLiveList_f7bwq9_k$ = function (clazzUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Schedule']; return doorFlow(this._db_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsLiveList$slambda_0(this, clazzUid, null)); }; protoOf(ScheduleDao_JdbcImpl).findAllSchedulesByClazzUidAsync_x3l8bc_k$ = function (clazzUid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Schedule WHERE scheduleClazzUid = CAST(? AS BIGINT) AND CAST(scheduleActive AS INTEGER) = 1 ', VOID, VOID, VOID, 'SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ScheduleDao_JdbcImpl$findAllSchedulesByClazzUidAsync$slambda_0(clazzUid, null), $completion); }; function ScheduleDao_Repo$insert$lambda(this$0, $entity) { return function () { return this$0._dao_1.insert_tai0zh_k$($entity); }; } function ScheduleDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$updateAsync$slambda).invoke_1h0d6n_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_1h0d6n_k$($completion); }; protoOf(ScheduleDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_oxr3eq_k$(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new ScheduleDao_Repo$updateAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ScheduleDao_Repo$updateAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ScheduleDao_Repo$updateAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_1h0d6n_k$($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_bcl2sc_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ScheduleDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ScheduleDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ScheduleDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$scheduleUid_1 = $scheduleUid; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateScheduleActivated_bfhhht_k$(this.$scheduleUid_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_Repo$updateScheduleActivated$slambda).create_d196fn_k$ = function (completion) { return new ScheduleDao_Repo$updateScheduleActivated$slambda(this.this$0__1, this.$scheduleUid_1, this.$active_1, this.$changeTime_1, completion); }; function ScheduleDao_Repo$updateScheduleActivated$slambda_0(this$0, $scheduleUid, $active, $changeTime, resultContinuation) { var i = new ScheduleDao_Repo$updateScheduleActivated$slambda(this$0, $scheduleUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation) { this.this$0__1 = this$0; this.$entity_1 = $entity; CoroutineImpl.call(this, resultContinuation); } protoOf(ScheduleDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync(this.$entity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScheduleDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ScheduleDao_Repo$insertAsync$slambda(this.this$0__1, this.$entity_1, completion); }; function ScheduleDao_Repo$insertAsync$slambda_0(this$0, $entity, resultContinuation) { var i = new ScheduleDao_Repo$insertAsync$slambda(this$0, $entity, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ScheduleDao_Repo$insertList$lambda(this$0, $entityList) { return function () { this$0._dao_1.insertList_bfvuij_k$($entityList); return Unit_getInstance(); }; } function ScheduleDao_Repo$update$lambda(this$0, $entity) { return function () { this$0._dao_1.update_mtvn3e_k$($entity); return Unit_getInstance(); }; } function $updateAsyncCOROUTINE$376(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($updateAsyncCOROUTINE$376).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Schedule', ScheduleDao_Repo$updateAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$377(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$377).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_me4wby_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllSchedulesByClazzUidAsyncCOROUTINE$378(_this__u8e3s4, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; } protoOf($findAllSchedulesByClazzUidAsyncCOROUTINE$378).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllSchedulesByClazzUidAsync_x3l8bc_k$(this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$379(_this__u8e3s4, entity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entity_1 = entity; } protoOf($insertAsyncCOROUTINE$379).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Schedule', ScheduleDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.entity_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScheduleDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ScheduleDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ScheduleDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ScheduleDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ScheduleDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ScheduleDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ScheduleDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ScheduleDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ScheduleDao_Repo).insert_tai0zh_k$ = function (entity) { var _result = withRepoChangeMonitor(this._repo_1, 'Schedule', ScheduleDao_Repo$insert$lambda(this, entity)); return _result; }; protoOf(ScheduleDao_Repo).insert_ut0uwa_k$ = function (entity) { return this.insert_tai0zh_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; protoOf(ScheduleDao_Repo).updateAsync_oxr3eq_k$ = function (entity, $completion) { var tmp = new $updateAsyncCOROUTINE$376(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo).upsertListAsync_bcl2sc_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Schedule', ScheduleDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ScheduleDao_Repo).updateScheduleActivated_bfhhht_k$ = function (scheduleUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Schedule', ScheduleDao_Repo$updateScheduleActivated$slambda_0(this, scheduleUid, active, changeTime, null), $completion); }; protoOf(ScheduleDao_Repo).findByUid_w1fpv2_k$ = function (uid) { var _result = this._dao_1.findByUid_w1fpv2_k$(uid); return _result; }; protoOf(ScheduleDao_Repo).findByUidAsync_me4wby_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$377(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo).findAllSchedulesByClazzUid_raopkb_k$ = function (clazzUid) { var _result = this._dao_1.findAllSchedulesByClazzUid_raopkb_k$(clazzUid); return _result; }; protoOf(ScheduleDao_Repo).findAllSchedulesByClazzUidAsList_szzqzp_k$ = function (clazzUid) { var _result = this._dao_1.findAllSchedulesByClazzUidAsList_szzqzp_k$(clazzUid); return _result; }; protoOf(ScheduleDao_Repo).findAllSchedulesByClazzUidAsLiveList_f7bwq9_k$ = function (clazzUid) { var _result = this._dao_1.findAllSchedulesByClazzUidAsLiveList_f7bwq9_k$(clazzUid); return _result; }; protoOf(ScheduleDao_Repo).findAllSchedulesByClazzUidAsync_x3l8bc_k$ = function (clazzUid, $completion) { var tmp = new $findAllSchedulesByClazzUidAsyncCOROUTINE$378(this, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo).insertAsync_en1o0o_k$ = function (entity, $completion) { var tmp = new $insertAsyncCOROUTINE$379(this, entity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScheduleDao_Repo).insertAsync = function (entity, $completion) { return this.insertAsync_en1o0o_k$(entity instanceof Schedule ? entity : THROW_CCE(), $completion); }; protoOf(ScheduleDao_Repo).insertList_cbc2fx_k$ = function (entityList) { withRepoChangeMonitor(this._repo_1, 'Schedule', ScheduleDao_Repo$insertList$lambda(this, entityList)); }; protoOf(ScheduleDao_Repo).insertList_bfvuij_k$ = function (entityList) { return this.insertList_cbc2fx_k$(entityList); }; protoOf(ScheduleDao_Repo).update_cgy69v_k$ = function (entity) { withRepoChangeMonitor(this._repo_1, 'Schedule', ScheduleDao_Repo$update$lambda(this, entity)); }; protoOf(ScheduleDao_Repo).update_mtvn3e_k$ = function (entity) { return this.update_cgy69v_k$(entity instanceof Schedule ? entity : THROW_CCE()); }; function ScopedGrantDao() { } function _get__db__e63s44_45($this) { return $this._db_1; } function _get__dao__d2kw60_43($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$380(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.scopedGrant_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$380).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.scopedGrant_1.get_sgUid_iyhd83_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(48, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.scopedGrant_1.set_sgUid_eesw5b_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.scopedGrant_1.set_sgLct_ms3o42_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_b9qlyl_k$(this.scopedGrant_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.scopedGrant_1.get_sgUid_iyhd83_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertListAsyncCOROUTINE$381(_this__u8e3s4, scopedGrantList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.scopedGrantList_1 = scopedGrantList; } protoOf($insertListAsyncCOROUTINE$381).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.scopedGrantList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_sgUid_iyhd83_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(48, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_sgUid_eesw5b_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_sgLct_ms3o42_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_afynwx_k$(this.scopedGrantList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScopedGrantDao_DoorWrapper(_db, _dao) { ScopedGrantDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ScopedGrantDao_DoorWrapper).insertAsync_b9qlyl_k$ = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$380(this, scopedGrant, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScopedGrantDao_DoorWrapper).insertListAsync_afynwx_k$ = function (scopedGrantList, $completion) { var tmp = new $insertListAsyncCOROUTINE$381(this, scopedGrantList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO ScopedGrant (sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).bindPreparedStmtToEntity_bz0w9n_k$ = function (stmt, entity) { if (entity.get_sgUid_iyhd83_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_sgUid_iyhd83_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_sgPcsn_jfyn7v_k$()); stmt.setLong_j1sybo_k$(3, entity.get_sgLcsn_jfw39r_k$()); stmt.setInt_c72a8z_k$(4, entity.get_sgLcb_iyh6em_k$()); stmt.setLong_j1sybo_k$(5, entity.get_sgLct_iyh6f4_k$()); stmt.setInt_c72a8z_k$(6, entity.get_sgTableId_w9tfkk_k$()); stmt.setLong_j1sybo_k$(7, entity.get_sgEntityUid_nydhww_k$()); stmt.setLong_j1sybo_k$(8, entity.get_sgPermissions_8w887t_k$()); stmt.setLong_j1sybo_k$(9, entity.get_sgGroupUid_h5tnbi_k$()); stmt.setInt_c72a8z_k$(10, entity.get_sgIndex_ye9pf9_k$()); stmt.setInt_c72a8z_k$(11, entity.get_sgFlags_yckzhm_k$()); }; protoOf(ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_bz0w9n_k$(stmt, entity instanceof ScopedGrant ? entity : THROW_CCE()); }; function $insertAsyncCOROUTINE$382(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.scopedGrant_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$382).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterScopedGrant_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.scopedGrant_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScopedGrantDao_JdbcImpl(_db) { ScopedGrantDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterScopedGrant_abort_1 = new ScopedGrantDao_JdbcImpl$_insertAdapterScopedGrant_abort$1(this); } protoOf(ScopedGrantDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ScopedGrantDao_JdbcImpl).get__insertAdapterScopedGrant_abort_gc18v1_k$ = function () { return this._insertAdapterScopedGrant_abort_1; }; protoOf(ScopedGrantDao_JdbcImpl).insertAsync_b9qlyl_k$ = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$382(this, scopedGrant, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScopedGrantDao_JdbcImpl).insertListAsync_afynwx_k$ = function (scopedGrantList, $completion) { return this._insertAdapterScopedGrant_abort_1.insertListAsync_it2cbm_k$(scopedGrantList, $completion); }; function ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation) { this.this$0__1 = this$0; this.$scopedGrant_1 = $scopedGrant; CoroutineImpl.call(this, resultContinuation); } protoOf(ScopedGrantDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_b9qlyl_k$(this.$scopedGrant_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScopedGrantDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new ScopedGrantDao_Repo$insertAsync$slambda(this.this$0__1, this.$scopedGrant_1, completion); }; function ScopedGrantDao_Repo$insertAsync$slambda_0(this$0, $scopedGrant, resultContinuation) { var i = new ScopedGrantDao_Repo$insertAsync$slambda(this$0, $scopedGrant, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function ScopedGrantDao_Repo$insertListAsync$slambda(this$0, $scopedGrantList, resultContinuation) { this.this$0__1 = this$0; this.$scopedGrantList_1 = $scopedGrantList; CoroutineImpl.call(this, resultContinuation); } protoOf(ScopedGrantDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScopedGrantDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ScopedGrantDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_afynwx_k$(this.$scopedGrantList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ScopedGrantDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ScopedGrantDao_Repo$insertListAsync$slambda(this.this$0__1, this.$scopedGrantList_1, completion); }; function ScopedGrantDao_Repo$insertListAsync$slambda_0(this$0, $scopedGrantList, resultContinuation) { var i = new ScopedGrantDao_Repo$insertListAsync$slambda(this$0, $scopedGrantList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $insertAsyncCOROUTINE$383(_this__u8e3s4, scopedGrant, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.scopedGrant_1 = scopedGrant; } protoOf($insertAsyncCOROUTINE$383).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'ScopedGrant', ScopedGrantDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.scopedGrant_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ScopedGrantDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ScopedGrantDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ScopedGrantDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ScopedGrantDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ScopedGrantDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ScopedGrantDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ScopedGrantDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ScopedGrantDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ScopedGrantDao_Repo).insertAsync_b9qlyl_k$ = function (scopedGrant, $completion) { var tmp = new $insertAsyncCOROUTINE$383(this, scopedGrant, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ScopedGrantDao_Repo).insertListAsync_afynwx_k$ = function (scopedGrantList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ScopedGrant', ScopedGrantDao_Repo$insertListAsync$slambda_0(this, scopedGrantList, null), $completion); }; function SiteDao() { } function _get__db__e63s44_46($this) { return $this._db_1; } function _get__dao__d2kw60_44($this) { return $this._dao_1; } function $replaceAsyncCOROUTINE$384(_this__u8e3s4, site, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.site_1 = site; } protoOf($replaceAsyncCOROUTINE$384).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.site_1.get_siteUid_z1a068_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(189, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.site_1.set_siteUid_3fwycy_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.site_1.set_siteLct_bt7qbp_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.replaceAsync_auxwb7_k$(this.site_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.site_1.get_siteUid_z1a068_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteDao_DoorWrapper(_db, _dao) { SiteDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(SiteDao_DoorWrapper).getSite_18qr7n_k$ = function () { throw IllegalStateException_init_$Create$('getSite: synchronous db access is NOT possible on Javascript!'); }; protoOf(SiteDao_DoorWrapper).getSiteAsync_wzkaej_k$ = function ($completion) { return this._dao_1.getSiteAsync_wzkaej_k$($completion); }; protoOf(SiteDao_DoorWrapper).getSiteAuthSaltAsync_r6ijs7_k$ = function ($completion) { return this._dao_1.getSiteAuthSaltAsync_r6ijs7_k$($completion); }; protoOf(SiteDao_DoorWrapper).getSiteAsFlow_8g2u77_k$ = function () { return this._dao_1.getSiteAsFlow_8g2u77_k$(); }; protoOf(SiteDao_DoorWrapper).replaceAsync_auxwb7_k$ = function (site, $completion) { var tmp = new $replaceAsyncCOROUTINE$384(this, site, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_DoorWrapper).insert_alj499_k$ = function (site) { throw IllegalStateException_init_$Create$('insert: synchronous db access is NOT possible on Javascript!'); }; protoOf(SiteDao_DoorWrapper).updateAsync_sr0tps_k$ = function (workspace, $completion) { workspace.set_siteLct_bt7qbp_k$(systemTimeInMillis()); return this._dao_1.updateAsync_sr0tps_k$(workspace, $completion); }; function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSiteAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_siteUid = $_result.getLong_3wgf2g_k$('siteUid'); var _tmp_sitePcsn = $_result.getLong_3wgf2g_k$('sitePcsn'); var _tmp_siteLcsn = $_result.getLong_3wgf2g_k$('siteLcsn'); var _tmp_siteLcb = $_result.getInt_npc9pd_k$('siteLcb'); var _tmp_siteLct = $_result.getLong_3wgf2g_k$('siteLct'); var _tmp_siteName = $_result.getString_gb1pt9_k$('siteName'); var _tmp_guestLogin = $_result.getBoolean_xz3hoo_k$('guestLogin'); var _tmp_registrationAllowed = $_result.getBoolean_xz3hoo_k$('registrationAllowed'); var _tmp_authSalt = $_result.getString_gb1pt9_k$('authSalt'); // Inline function 'kotlin.apply' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsync....' call this_0.set_siteUid_3fwycy_k$(_tmp_siteUid); this_0.set_sitePcsn_1tec30_k$(_tmp_sitePcsn); this_0.set_siteLcsn_x646g_k$(_tmp_siteLcsn); this_0.set_siteLcb_8xejr3_k$(_tmp_siteLcb); this_0.set_siteLct_bt7qbp_k$(_tmp_siteLct); this_0.set_siteName_c1yqeg_k$(_tmp_siteName); this_0.set_guestLogin_v9uplz_k$(_tmp_guestLogin); this_0.set_registrationAllowed_4rnnzx_k$(_tmp_registrationAllowed); this_0.set_authSalt_nuc2o4_k$(_tmp_authSalt); return this_0; }; } function SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_siteUid = $_result.getLong_3wgf2g_k$('siteUid'); var _tmp_sitePcsn = $_result.getLong_3wgf2g_k$('sitePcsn'); var _tmp_siteLcsn = $_result.getLong_3wgf2g_k$('siteLcsn'); var _tmp_siteLcb = $_result.getInt_npc9pd_k$('siteLcb'); var _tmp_siteLct = $_result.getLong_3wgf2g_k$('siteLct'); var _tmp_siteName = $_result.getString_gb1pt9_k$('siteName'); var _tmp_guestLogin = $_result.getBoolean_xz3hoo_k$('guestLogin'); var _tmp_registrationAllowed = $_result.getBoolean_xz3hoo_k$('registrationAllowed'); var _tmp_authSalt = $_result.getString_gb1pt9_k$('authSalt'); // Inline function 'kotlin.apply' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSiteAsFlow.....' call this_0.set_siteUid_3fwycy_k$(_tmp_siteUid); this_0.set_sitePcsn_1tec30_k$(_tmp_sitePcsn); this_0.set_siteLcsn_x646g_k$(_tmp_siteLcsn); this_0.set_siteLcb_8xejr3_k$(_tmp_siteLcb); this_0.set_siteLct_bt7qbp_k$(_tmp_siteLct); this_0.set_siteName_c1yqeg_k$(_tmp_siteName); this_0.set_guestLogin_v9uplz_k$(_tmp_guestLogin); this_0.set_registrationAllowed_4rnnzx_k$(_tmp_registrationAllowed); this_0.set_authSalt_nuc2o4_k$(_tmp_authSalt); return this_0; }; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).invoke_ut7bx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ut7bx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ut7bx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).bindPreparedStmtToEntity_zdfxfc_k$ = function (stmt, entity) { if (entity.get_siteUid_z1a068_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_siteUid_z1a068_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_sitePcsn_kn0mo2_k$()); stmt.setLong_j1sybo_k$(3, entity.get_siteLcsn_kn36m6_k$()); stmt.setInt_c72a8z_k$(4, entity.get_siteLcb_z1a6zp_k$()); stmt.setLong_j1sybo_k$(5, entity.get_siteLct_z1a6z7_k$()); stmt.setString_2gt7ua_k$(6, entity.get_siteName_kn1y9x_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_guestLogin_lk9bzu_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_registrationAllowed_lhz77q_k$()); stmt.setString_2gt7ua_k$(9, entity.get_authSalt_848849_k$()); }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_zdfxfc_k$(stmt, entity instanceof Site ? entity : THROW_CCE()); }; function SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).bindPreparedStmtToEntity_zdfxfc_k$ = function (stmt, entity) { if (entity.get_siteUid_z1a068_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_siteUid_z1a068_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_sitePcsn_kn0mo2_k$()); stmt.setLong_j1sybo_k$(3, entity.get_siteLcsn_kn36m6_k$()); stmt.setInt_c72a8z_k$(4, entity.get_siteLcb_z1a6zp_k$()); stmt.setLong_j1sybo_k$(5, entity.get_siteLct_z1a6z7_k$()); stmt.setString_2gt7ua_k$(6, entity.get_siteName_kn1y9x_k$()); stmt.setBoolean_pzdm1v_k$(7, entity.get_guestLogin_lk9bzu_k$()); stmt.setBoolean_pzdm1v_k$(8, entity.get_registrationAllowed_lhz77q_k$()); stmt.setString_2gt7ua_k$(9, entity.get_authSalt_848849_k$()); }; protoOf(SiteDao_JdbcImpl$_insertAdapterSite_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_zdfxfc_k$(stmt, entity instanceof Site ? entity : THROW_CCE()); }; function SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation) { this.$workspace_1 = $workspace; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$updateAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$workspace_1.get_sitePcsn_kn0mo2_k$()); this._stmt_1.setLong_j1sybo_k$(2, this.$workspace_1.get_siteLcsn_kn36m6_k$()); this._stmt_1.setInt_c72a8z_k$(3, this.$workspace_1.get_siteLcb_z1a6zp_k$()); this._stmt_1.setLong_j1sybo_k$(4, this.$workspace_1.get_siteLct_z1a6z7_k$()); this._stmt_1.setString_2gt7ua_k$(5, this.$workspace_1.get_siteName_kn1y9x_k$()); this._stmt_1.setBoolean_pzdm1v_k$(6, this.$workspace_1.get_guestLogin_lk9bzu_k$()); this._stmt_1.setBoolean_pzdm1v_k$(7, this.$workspace_1.get_registrationAllowed_lhz77q_k$()); this._stmt_1.setString_2gt7ua_k$(8, this.$workspace_1.get_authSalt_848849_k$()); this._stmt_1.setLong_j1sybo_k$(9, this.$workspace_1.get_siteUid_z1a068_k$()); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$updateAsync$slambda(this.$workspace_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteDao_JdbcImpl$updateAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteDao_JdbcImpl$updateAsync$slambda_0($workspace, resultContinuation) { var i = new SiteDao_JdbcImpl$updateAsync$slambda($workspace, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$getSite$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, SiteDao_JdbcImpl$getSite$lambda$lambda); } function SiteDao_JdbcImpl$getSite$lambda$lambda(_result) { return mapNextRow(_result, null, SiteDao_JdbcImpl$getSite$lambda$lambda$lambda(_result)); } function SiteDao_JdbcImpl$getSite$lambda$lambda$lambda($_result) { return function (it) { var _tmp_siteUid = $_result.getLong_3wgf2g_k$('siteUid'); var _tmp_sitePcsn = $_result.getLong_3wgf2g_k$('sitePcsn'); var _tmp_siteLcsn = $_result.getLong_3wgf2g_k$('siteLcsn'); var _tmp_siteLcb = $_result.getInt_npc9pd_k$('siteLcb'); var _tmp_siteLct = $_result.getLong_3wgf2g_k$('siteLct'); var _tmp_siteName = $_result.getString_gb1pt9_k$('siteName'); var _tmp_guestLogin = $_result.getBoolean_xz3hoo_k$('guestLogin'); var _tmp_registrationAllowed = $_result.getBoolean_xz3hoo_k$('registrationAllowed'); var _tmp_authSalt = $_result.getString_gb1pt9_k$('authSalt'); // Inline function 'kotlin.apply' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteDao_JdbcImpl.getSite....' call this_0.set_siteUid_3fwycy_k$(_tmp_siteUid); this_0.set_sitePcsn_1tec30_k$(_tmp_sitePcsn); this_0.set_siteLcsn_x646g_k$(_tmp_siteLcsn); this_0.set_siteLcb_8xejr3_k$(_tmp_siteLcb); this_0.set_siteLct_bt7qbp_k$(_tmp_siteLct); this_0.set_siteName_c1yqeg_k$(_tmp_siteName); this_0.set_guestLogin_v9uplz_k$(_tmp_guestLogin); this_0.set_registrationAllowed_4rnnzx_k$(_tmp_registrationAllowed); this_0.set_authSalt_nuc2o4_k$(_tmp_authSalt); return this_0; }; } function SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).invoke_ut7bx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ut7bx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteDao_JdbcImpl$getSiteAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteDao_JdbcImpl$getSiteAsync$slambda_0(resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ut7bx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda).invoke_j35ylu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_j35ylu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda_0(resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_j35ylu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).invoke_70u4zg_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_70u4zg_k$($completion); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SiteDao_JdbcImpl$getSiteAsFlow$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_JdbcImpl$getSiteAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this.this$0__1, completion); }; function SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this$0, resultContinuation) { var i = new SiteDao_JdbcImpl$getSiteAsFlow$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_70u4zg_k$($completion); }; l.$arity = 0; return l; } function $replaceAsyncCOROUTINE$385(_this__u8e3s4, site, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.site_1 = site; } protoOf($replaceAsyncCOROUTINE$385).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterSite_upsert_1.insertAndReturnIdAsync_jrwaz_k$(this.site_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateAsyncCOROUTINE$386(_this__u8e3s4, workspace, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.workspace_1 = workspace; } protoOf($updateAsyncCOROUTINE$386).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._sql0__1 = 'UPDATE Site SET sitePcsn = ?, siteLcsn = ?, siteLcb = ?, siteLct = ?, siteName = ?, guestLogin = ?, registrationAllowed = ?, authSalt = ? WHERE siteUid = ?'; this.set_state_rjd8d0_k$(1); suspendResult = prepareAndUseStatementAsync_0(this._this__u8e3s4__1._db_1, this._sql0__1, VOID, SiteDao_JdbcImpl$updateAsync$slambda_0(this.workspace_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteDao_JdbcImpl(_db) { SiteDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterSite_upsert_1 = new SiteDao_JdbcImpl$_insertAdapterSite_upsert$1(this); var tmp_0 = this; tmp_0._insertAdapterSite_abort_1 = new SiteDao_JdbcImpl$_insertAdapterSite_abort$1(this); } protoOf(SiteDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SiteDao_JdbcImpl).get__insertAdapterSite_upsert_xlo147_k$ = function () { return this._insertAdapterSite_upsert_1; }; protoOf(SiteDao_JdbcImpl).get__insertAdapterSite_abort_nondmg_k$ = function () { return this._insertAdapterSite_abort_1; }; protoOf(SiteDao_JdbcImpl).replaceAsync_auxwb7_k$ = function (site, $completion) { var tmp = new $replaceAsyncCOROUTINE$385(this, site, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl).insert_alj499_k$ = function (site) { var _retVal = this._insertAdapterSite_abort_1.insertAndReturnId_1ek0wq_k$(site); return _retVal; }; protoOf(SiteDao_JdbcImpl).updateAsync_sr0tps_k$ = function (workspace, $completion) { var tmp = new $updateAsyncCOROUTINE$386(this, workspace, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_JdbcImpl).getSite_18qr7n_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, SiteDao_JdbcImpl$getSite$lambda); }; protoOf(SiteDao_JdbcImpl).getSiteAsync_wzkaej_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT * FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteDao_JdbcImpl$getSiteAsync$slambda_0(null), $completion); }; protoOf(SiteDao_JdbcImpl).getSiteAuthSaltAsync_r6ijs7_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT authSalt FROM Site LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteDao_JdbcImpl$getSiteAuthSaltAsync$slambda_0(null), $completion); }; protoOf(SiteDao_JdbcImpl).getSiteAsFlow_8g2u77_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['Site']; return doorFlow(this._db_1, tmp, SiteDao_JdbcImpl$getSiteAsFlow$slambda_0(this, null)); }; function SiteDao_Repo$getSiteAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteDao_Repo$getSiteAsync$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_Repo$getSiteAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SiteDao/getSiteAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SiteDao/getSiteAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SiteDao_Repo$getSiteAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SiteDao_Repo$getSiteAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SiteDao_Repo$getSiteAsFlow$slambda(this.this$0__1, completion); }; function SiteDao_Repo$getSiteAsFlow$slambda_0(this$0, resultContinuation) { var i = new SiteDao_Repo$getSiteAsFlow$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SiteDao_Repo$replaceAsync$slambda(this$0, $site, resultContinuation) { this.this$0__1 = this$0; this.$site_1 = $site; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_Repo$replaceAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo$replaceAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(SiteDao_Repo$replaceAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.replaceAsync_auxwb7_k$(this.$site_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_Repo$replaceAsync$slambda).create_d196fn_k$ = function (completion) { return new SiteDao_Repo$replaceAsync$slambda(this.this$0__1, this.$site_1, completion); }; function SiteDao_Repo$replaceAsync$slambda_0(this$0, $site, resultContinuation) { var i = new SiteDao_Repo$replaceAsync$slambda(this$0, $site, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function SiteDao_Repo$insert$lambda(this$0, $site) { return function () { return this$0._dao_1.insert_alj499_k$($site); }; } function SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation) { this.this$0__1 = this$0; this.$workspace_1 = $workspace; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteDao_Repo$updateAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo$updateAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteDao_Repo$updateAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateAsync_sr0tps_k$(this.$workspace_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteDao_Repo$updateAsync$slambda).create_d196fn_k$ = function (completion) { return new SiteDao_Repo$updateAsync$slambda(this.this$0__1, this.$workspace_1, completion); }; function SiteDao_Repo$updateAsync$slambda_0(this$0, $workspace, resultContinuation) { var i = new SiteDao_Repo$updateAsync$slambda(this$0, $workspace, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $getSiteAsyncCOROUTINE$387(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($getSiteAsyncCOROUTINE$387).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SiteDao/getSiteAsync'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'SiteDao/getSiteAsync'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, SiteDao_Repo$getSiteAsync$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getSiteAsync_wzkaej_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getSiteAuthSaltAsyncCOROUTINE$388(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($getSiteAuthSaltAsyncCOROUTINE$388).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getSiteAuthSaltAsync_r6ijs7_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $replaceAsyncCOROUTINE$389(_this__u8e3s4, site, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.site_1 = site; } protoOf($replaceAsyncCOROUTINE$389).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'Site', SiteDao_Repo$replaceAsync$slambda_0(this._this__u8e3s4__1, this.site_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SiteDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(SiteDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SiteDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(SiteDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(SiteDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(SiteDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(SiteDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(SiteDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(SiteDao_Repo).getSite_18qr7n_k$ = function () { var _result = this._dao_1.getSite_18qr7n_k$(); return _result; }; protoOf(SiteDao_Repo).getSiteAsync_wzkaej_k$ = function ($completion) { var tmp = new $getSiteAsyncCOROUTINE$387(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo).getSiteAuthSaltAsync_r6ijs7_k$ = function ($completion) { var tmp = new $getSiteAuthSaltAsyncCOROUTINE$388(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo).getSiteAsFlow_8g2u77_k$ = function () { var tmp = this._dao_1.getSiteAsFlow_8g2u77_k$(); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SiteDao_Repo$getSiteAsFlow$slambda_0(this, null)); }; protoOf(SiteDao_Repo).replaceAsync_auxwb7_k$ = function (site, $completion) { var tmp = new $replaceAsyncCOROUTINE$389(this, site, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteDao_Repo).insert_alj499_k$ = function (site) { var _result = withRepoChangeMonitor(this._repo_1, 'Site', SiteDao_Repo$insert$lambda(this, site)); return _result; }; protoOf(SiteDao_Repo).updateAsync_sr0tps_k$ = function (workspace, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'Site', SiteDao_Repo$updateAsync$slambda_0(this, workspace, null), $completion); }; function SiteTermsDao() { } function _get__db__e63s44_47($this) { return $this._db_1; } function _get__dao__d2kw60_45($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$390(_this__u8e3s4, siteTerms, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.siteTerms_1 = siteTerms; } protoOf($insertAsyncCOROUTINE$390).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.siteTerms_1.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(272, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.siteTerms_1.set_sTermsUid_7kqczl_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.siteTerms_1.set_sTermsLct_skez6_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_x6xvdz_k$(this.siteTerms_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.siteTerms_1.get_sTermsUid_wzk4z7_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListCOROUTINE$391(_this__u8e3s4, termList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.termList_1 = termList; } protoOf($upsertListCOROUTINE$391).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.termList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(272, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_sTermsUid_7kqczl_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_sTermsLct_skez6_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertList_1ikt4j_k$(this.termList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertListAsyncCOROUTINE$392(_this__u8e3s4, entityList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entityList_1 = entityList; } protoOf($insertListAsyncCOROUTINE$392).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entityList_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(272, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_sTermsUid_7kqczl_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_sTermsLct_skez6_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertListAsync_it2cbm_k$(this.entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteTermsDao_DoorWrapper(_db, _dao) { SiteTermsDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(SiteTermsDao_DoorWrapper).findSiteTerms_h3bujk_k$ = function (langCode, $completion) { return this._dao_1.findSiteTerms_h3bujk_k$(langCode, $completion); }; protoOf(SiteTermsDao_DoorWrapper).insertAsync_x6xvdz_k$ = function (siteTerms, $completion) { var tmp = new $insertAsyncCOROUTINE$390(this, siteTerms, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_DoorWrapper).findByUidAsync_twa5ep_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_twa5ep_k$(uid, $completion); }; protoOf(SiteTermsDao_DoorWrapper).findAllTermsAsListFlow_ao321x_k$ = function (activeOnly) { return this._dao_1.findAllTermsAsListFlow_ao321x_k$(activeOnly); }; protoOf(SiteTermsDao_DoorWrapper).findAllTerms_x61o5h_k$ = function (activeOnly, $completion) { return this._dao_1.findAllTerms_x61o5h_k$(activeOnly, $completion); }; protoOf(SiteTermsDao_DoorWrapper).findAllWithLanguageAsList_8zlcp2_k$ = function ($completion) { return this._dao_1.findAllWithLanguageAsList_8zlcp2_k$($completion); }; protoOf(SiteTermsDao_DoorWrapper).upsertList_1ikt4j_k$ = function (termList, $completion) { var tmp = new $upsertListCOROUTINE$391(this, termList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_DoorWrapper).updateActiveByUid_i0tn2u_k$ = function (sTermsUid, active, changeTime, $completion) { return this._dao_1.updateActiveByUid_i0tn2u_k$(sTermsUid, active, changeTime, $completion); }; protoOf(SiteTermsDao_DoorWrapper).findAvailableSiteTermLanguages_tjerik_k$ = function (active, $completion) { return this._dao_1.findAvailableSiteTermLanguages_tjerik_k$(active, $completion); }; protoOf(SiteTermsDao_DoorWrapper).findLatestByLanguage_6y9g14_k$ = function (lang, $completion) { return this._dao_1.findLatestByLanguage_6y9g14_k$(lang, $completion); }; protoOf(SiteTermsDao_DoorWrapper).insertListAsync_pj515n_k$ = function (entityList, $completion) { var tmp = new $insertListAsyncCOROUTINE$392(this, entityList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_DoorWrapper).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_pj515n_k$(entityList, $completion); }; protoOf(SiteTermsDao_DoorWrapper).updateListAsync_r5r5jp_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_DoorWrapper.updateListAsync.' call element.set_sTermsLct_skez6_k$(systemTimeInMillis()); } return this._dao_1.updateListAsync_mdh99q_k$(entityList, $completion); }; protoOf(SiteTermsDao_DoorWrapper).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_r5r5jp_k$(entityList, $completion); }; function SiteTermsDao_JdbcImpl$findSiteTerms$slambda$lambda(_result) { return mapNextRow(_result, null, SiteTermsDao_JdbcImpl$findSiteTerms$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findSiteTerms$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findSiteTerms....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); return this_0; }; } function SiteTermsDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, SiteTermsDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findByUidAsync....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); return this_0; }; } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTermsAsListFlow.....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); return this_0; }; } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation) { this.$activeOnly_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).invoke_7fos2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_7fos2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$activeOnly_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda(this.$activeOnly_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0($activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda($activeOnly, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_7fos2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllTerms....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); return this_0; }; } function SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); var _tmp_Language_nullCount = 0; var _tmp_langUid = $_result.getLong_3wgf2g_k$('langUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_name = $_result.getString_gb1pt9_k$('name'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_iso_639_1_standard = $_result.getString_gb1pt9_k$('iso_639_1_standard'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_iso_639_2_standard = $_result.getString_gb1pt9_k$('iso_639_2_standard'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_iso_639_3_standard = $_result.getString_gb1pt9_k$('iso_639_3_standard'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_Language_Type = $_result.getString_gb1pt9_k$('Language_Type'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_languageActive = $_result.getBoolean_xz3hoo_k$('languageActive'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_langLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('langLocalChangeSeqNum'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_langMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('langMasterChangeSeqNum'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_langLastChangedBy = $_result.getInt_npc9pd_k$('langLastChangedBy'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_langLct = $_result.getLong_3wgf2g_k$('langLct'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Language_nullCount = _tmp_Language_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_Language_isAllNull = _tmp_Language_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new SiteTermsWithLanguage(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllWithLanguageAsList....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); if (!_tmp_Language_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findAllWithLanguageAsList.....' call this_1.set_langUid_ci1fyx_k$(_tmp_langUid); this_1.set_name_wkmnld_k$(_tmp_name); this_1.set_iso_639_1_standard_i0x87m_k$(_tmp_iso_639_1_standard); this_1.set_iso_639_2_standard_vevcqb_k$(_tmp_iso_639_2_standard); this_1.set_iso_639_3_standard_q8akq4_k$(_tmp_iso_639_3_standard); this_1.set_Language_Type_jxss6r_k$(_tmp_Language_Type); this_1.set_languageActive_33gxtm_k$(_tmp_languageActive); this_1.set_langLocalChangeSeqNum_km6xw9_k$(_tmp_langLocalChangeSeqNum); this_1.set_langMasterChangeSeqNum_eccxgm_k$(_tmp_langMasterChangeSeqNum); this_1.set_langLastChangedBy_1lwzr6_k$(_tmp_langLastChangedBy); this_1.set_langLct_kvc7xo_k$(_tmp_langLct); this_0.set_stLanguage_1uw2n6_k$(this_1); } return this_0; }; } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda(_result) { return mapRows(_result, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda$lambda($_result) { return function (it) { return $_result.getString_5demq7_k$(1); }; } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda(_result) { return mapNextRow(_result, null, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda(_result)); } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sTermsUid = $_result.getLong_3wgf2g_k$('sTermsUid'); var _tmp_termsHtml = $_result.getString_gb1pt9_k$('termsHtml'); var _tmp_sTermsLang = $_result.getString_gb1pt9_k$('sTermsLang'); var _tmp_sTermsLangUid = $_result.getLong_3wgf2g_k$('sTermsLangUid'); var _tmp_sTermsActive = $_result.getBoolean_xz3hoo_k$('sTermsActive'); var _tmp_sTermsLastChangedBy = $_result.getInt_npc9pd_k$('sTermsLastChangedBy'); var _tmp_sTermsPrimaryCsn = $_result.getLong_3wgf2g_k$('sTermsPrimaryCsn'); var _tmp_sTermsLocalCsn = $_result.getLong_3wgf2g_k$('sTermsLocalCsn'); var _tmp_sTermsLct = $_result.getLong_3wgf2g_k$('sTermsLct'); // Inline function 'kotlin.apply' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SiteTermsDao_JdbcImpl.findLatestByLanguage....' call this_0.set_sTermsUid_7kqczl_k$(_tmp_sTermsUid); this_0.set_termsHtml_lak0ny_k$(_tmp_termsHtml); this_0.set_sTermsLang_voj3eg_k$(_tmp_sTermsLang); this_0.set_sTermsLangUid_wo29bn_k$(_tmp_sTermsLangUid); this_0.set_sTermsActive_bqq1vi_k$(_tmp_sTermsActive); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_tmp_sTermsLastChangedBy); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_tmp_sTermsPrimaryCsn); this_0.set_sTermsLocalCsn_nxsa6y_k$(_tmp_sTermsLocalCsn); this_0.set_sTermsLct_skez6_k$(_tmp_sTermsLct); return this_0; }; } function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).bindPreparedStmtToEntity_pc3prt_k$ = function (stmt, entity) { if (entity.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_sTermsUid_wzk4z7_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_termsHtml_spkudz_k$()); stmt.setString_2gt7ua_k$(3, entity.get_sTermsLang_s6lm5n_k$()); stmt.setLong_j1sybo_k$(4, entity.get_sTermsLangUid_oq3ht1_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_sTermsActive_g8t937_k$()); stmt.setInt_c72a8z_k$(6, entity.get_sTermsLastChangedBy_tpixew_k$()); stmt.setLong_j1sybo_k$(7, entity.get_sTermsPrimaryCsn_dkyr3b_k$()); stmt.setLong_j1sybo_k$(8, entity.get_sTermsLocalCsn_rrf5gw_k$()); stmt.setLong_j1sybo_k$(9, entity.get_sTermsLct_wzjy68_k$()); }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_pc3prt_k$(stmt, entity instanceof SiteTerms ? entity : THROW_CCE()); }; function SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).bindPreparedStmtToEntity_pc3prt_k$ = function (stmt, entity) { if (entity.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_sTermsUid_wzk4z7_k$()); } stmt.setString_2gt7ua_k$(2, entity.get_termsHtml_spkudz_k$()); stmt.setString_2gt7ua_k$(3, entity.get_sTermsLang_s6lm5n_k$()); stmt.setLong_j1sybo_k$(4, entity.get_sTermsLangUid_oq3ht1_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_sTermsActive_g8t937_k$()); stmt.setInt_c72a8z_k$(6, entity.get_sTermsLastChangedBy_tpixew_k$()); stmt.setLong_j1sybo_k$(7, entity.get_sTermsPrimaryCsn_dkyr3b_k$()); stmt.setLong_j1sybo_k$(8, entity.get_sTermsLocalCsn_rrf5gw_k$()); stmt.setLong_j1sybo_k$(9, entity.get_sTermsLct_wzjy68_k$()); }; protoOf(SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_pc3prt_k$(stmt, entity instanceof SiteTerms ? entity : THROW_CCE()); }; function SiteTermsDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation) { this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$updateListAsync$slambda).invoke_e5ovyj_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$updateListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_e5ovyj_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._stmt_1.getConnection_hr2oto_k$().setAutoCommit_yh8u8d_k$(false); this.tmp0_iterator0__1 = this.$entityList_1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator0__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this._entity1__1 = this.tmp0_iterator0__1.next_20eer_k$(); this._stmt_1.setString_2gt7ua_k$(1, this._entity1__1.get_termsHtml_spkudz_k$()); this._stmt_1.setString_2gt7ua_k$(2, this._entity1__1.get_sTermsLang_s6lm5n_k$()); this._stmt_1.setLong_j1sybo_k$(3, this._entity1__1.get_sTermsLangUid_oq3ht1_k$()); this._stmt_1.setBoolean_pzdm1v_k$(4, this._entity1__1.get_sTermsActive_g8t937_k$()); this._stmt_1.setInt_c72a8z_k$(5, this._entity1__1.get_sTermsLastChangedBy_tpixew_k$()); this._stmt_1.setLong_j1sybo_k$(6, this._entity1__1.get_sTermsPrimaryCsn_dkyr3b_k$()); this._stmt_1.setLong_j1sybo_k$(7, this._entity1__1.get_sTermsLocalCsn_rrf5gw_k$()); this._stmt_1.setLong_j1sybo_k$(8, this._entity1__1.get_sTermsLct_wzjy68_k$()); this._stmt_1.setLong_j1sybo_k$(9, this._entity1__1.get_sTermsUid_wzk4z7_k$()); this.set_state_rjd8d0_k$(2); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: this._stmt_1.getConnection_hr2oto_k$().commit_vpt10n_k$(); return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$updateListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$updateListAsync$slambda(this.$entityList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$updateListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$updateListAsync$slambda_0($entityList, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$updateListAsync$slambda($entityList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_e5ovyj_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findSiteTerms$slambda($langCode, resultContinuation) { this.$langCode_1 = $langCode; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findSiteTerms$slambda).invoke_bdcnon_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findSiteTerms$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bdcnon_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findSiteTerms$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$langCode_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findSiteTerms$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findSiteTerms$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findSiteTerms$slambda(this.$langCode_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findSiteTerms$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findSiteTerms$slambda_0($langCode, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findSiteTerms$slambda($langCode, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bdcnon_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findByUidAsync$slambda).invoke_bdcnon_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bdcnon_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bdcnon_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) { this.this$0__1 = this$0; this.$activeOnly_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).invoke_59l66e_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_59l66e_k$($completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE ? = 0 \n OR CAST(sTermsActive AS INTEGER) = 1\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda$slambda_0(this.$activeOnly_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this.this$0__1, this.$activeOnly_1, completion); }; function SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation); var l = function ($completion) { return i.invoke_59l66e_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation) { this.$activeOnly_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).invoke_7fos2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_7fos2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$activeOnly_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllTerms$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda(this.$activeOnly_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findAllTerms$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findAllTerms$slambda_0($activeOnly, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllTerms$slambda($activeOnly, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_7fos2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda).invoke_i6suog_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_i6suog_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda_0(resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_i6suog_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $sTermsUid, resultContinuation) { this.$active_1 = $active; this.$changeTime_1 = $changeTime; this.$sTermsUid_1 = $sTermsUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$active_1); this._stmt_1.setLong_j1sybo_k$(2, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$sTermsUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$updateActiveByUid$slambda(this.$active_1, this.$changeTime_1, this.$sTermsUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$updateActiveByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$updateActiveByUid$slambda_0($active, $changeTime, $sTermsUid, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$updateActiveByUid$slambda($active, $changeTime, $sTermsUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation) { this.$active_1 = $active; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).invoke_a27tog_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_a27tog_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$active_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda(this.$active_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0($active, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda($active, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_a27tog_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation) { this.$lang_1 = $lang; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).invoke_bdcnon_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bdcnon_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$lang_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda(this.$lang_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0($lang, resultContinuation) { var i = new SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda($lang, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bdcnon_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertAsyncCOROUTINE$393(_this__u8e3s4, siteTerms, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.siteTerms_1 = siteTerms; } protoOf($insertAsyncCOROUTINE$393).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterSiteTerms_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.siteTerms_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateActiveByUidCOROUTINE$394(_this__u8e3s4, sTermsUid, active, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.sTermsUid_1 = sTermsUid; this.active_1 = active; this.changeTime_1 = changeTime; } protoOf($updateActiveByUidCOROUTINE$394).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE SiteTerms \n SET sTermsActive = ?,\n sTermsLct = CAST(? AS BIGINT)\n WHERE sTermsUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE SiteTerms \n SET sTermsActive = ?,\n sTermsLct = ?\n WHERE sTermsUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, SiteTermsDao_JdbcImpl$updateActiveByUid$slambda_0(this.active_1, this.changeTime_1, this.sTermsUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteTermsDao_JdbcImpl(_db) { SiteTermsDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterSiteTerms_abort_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterSiteTerms_upsert_1 = new SiteTermsDao_JdbcImpl$_insertAdapterSiteTerms_upsert$1(this); } protoOf(SiteTermsDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SiteTermsDao_JdbcImpl).get__insertAdapterSiteTerms_abort_s9yz7z_k$ = function () { return this._insertAdapterSiteTerms_abort_1; }; protoOf(SiteTermsDao_JdbcImpl).get__insertAdapterSiteTerms_upsert_ej3tma_k$ = function () { return this._insertAdapterSiteTerms_upsert_1; }; protoOf(SiteTermsDao_JdbcImpl).insertAsync_x6xvdz_k$ = function (siteTerms, $completion) { var tmp = new $insertAsyncCOROUTINE$393(this, siteTerms, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl).upsertList_1ikt4j_k$ = function (termList, $completion) { return this._insertAdapterSiteTerms_upsert_1.insertListAsync_it2cbm_k$(termList, $completion); }; protoOf(SiteTermsDao_JdbcImpl).insertListAsync_pj515n_k$ = function (entityList, $completion) { return this._insertAdapterSiteTerms_abort_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(SiteTermsDao_JdbcImpl).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_pj515n_k$(entityList, $completion); }; protoOf(SiteTermsDao_JdbcImpl).updateListAsync_r5r5jp_k$ = function (entityList, $completion) { var _sql = 'UPDATE SiteTerms SET termsHtml = ?, sTermsLang = ?, sTermsLangUid = ?, sTermsActive = ?, sTermsLastChangedBy = ?, sTermsPrimaryCsn = ?, sTermsLocalCsn = ?, sTermsLct = ? WHERE sTermsUid = ?'; return prepareAndUseStatementAsync_0(this._db_1, _sql, VOID, SiteTermsDao_JdbcImpl$updateListAsync$slambda_0(entityList, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_r5r5jp_k$(entityList, $completion); }; protoOf(SiteTermsDao_JdbcImpl).findSiteTerms_h3bujk_k$ = function (langCode, $completion) { var tmp = new PreparedStatementConfig("\n SELECT * FROM SiteTerms WHERE sTermsUid = coalesce(\n (SELECT sTermsUid FROM SiteTerms st_int WHERE st_int.sTermsLang = ? LIMIT 1),\n (SELECT sTermsUid FROM SiteTerms st_int WHERE st_int.sTermsLang = 'en' LIMIT 1),\n 0)\n ", VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findSiteTerms$slambda_0(langCode, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).findByUidAsync_twa5ep_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM SiteTerms WHERE sTermsUid = CAST(? AS BIGINT)', VOID, VOID, VOID, 'SELECT * FROM SiteTerms WHERE sTermsUid = ?\n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).findAllTermsAsListFlow_ao321x_k$ = function (activeOnly) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SiteTerms']; return doorFlow(this._db_1, tmp, SiteTermsDao_JdbcImpl$findAllTermsAsListFlow$slambda_0(this, activeOnly, null)); }; protoOf(SiteTermsDao_JdbcImpl).findAllTerms_x61o5h_k$ = function (activeOnly, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE ? = 0 \n OR CAST(sTermsActive AS INTEGER) = 1\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findAllTerms$slambda_0(activeOnly, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).findAllWithLanguageAsList_8zlcp2_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT SiteTerms.*, Language.*\n FROM SiteTerms\n LEFT JOIN Language ON SiteTerms.sTermsLangUid = Language.langUid\n WHERE CAST(sTermsActive AS INTEGER) = 1\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findAllWithLanguageAsList$slambda_0(null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).updateActiveByUid_i0tn2u_k$ = function (sTermsUid, active, changeTime, $completion) { var tmp = new $updateActiveByUidCOROUTINE$394(this, sTermsUid, active, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_JdbcImpl).findAvailableSiteTermLanguages_tjerik_k$ = function (active, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.sTermsLang\n FROM SiteTerms\n WHERE CAST(SiteTerms.sTermsActive AS INTEGER) = ? \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findAvailableSiteTermLanguages$slambda_0(active, null), $completion); }; protoOf(SiteTermsDao_JdbcImpl).findLatestByLanguage_6y9g14_k$ = function (lang, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SiteTerms.*\n FROM SiteTerms\n WHERE SiteTerms.sTermsLang = ?\n AND CAST(SiteTerms.sTermsActive AS INTEGER) = 1\n ORDER BY SiteTerms.sTermsLct DESC\n LIMIT 1 \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SiteTermsDao_JdbcImpl$findLatestByLanguage$slambda_0(lang, null), $completion); }; function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteTermsDao_Repo$insertAsync$slambda(this$0, $siteTerms, resultContinuation) { this.this$0__1 = this$0; this.$siteTerms_1 = $siteTerms; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$insertAsync$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(SiteTermsDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_x6xvdz_k$(this.$siteTerms_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$insertAsync$slambda(this.this$0__1, this.$siteTerms_1, completion); }; function SiteTermsDao_Repo$insertAsync$slambda_0(this$0, $siteTerms, resultContinuation) { var i = new SiteTermsDao_Repo$insertAsync$slambda(this$0, $siteTerms, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation) { this.this$0__1 = this$0; this.$activeOnly_1 = $activeOnly; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SiteTermsDao/findAllTermsAsListFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SiteTermsDao/findAllTermsAsListFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activeOnly', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$activeOnly_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SiteTermsDao_Repo$findAllTermsAsListFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SiteTermsDao_Repo$findAllTermsAsListFlow$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this.this$0__1, this.$activeOnly_1, completion); }; function SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this$0, $activeOnly, resultContinuation) { var i = new SiteTermsDao_Repo$findAllTermsAsListFlow$slambda(this$0, $activeOnly, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$findAllTerms$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation) { this.this$0__1 = this$0; this.$termList_1 = $termList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$upsertList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertList_1ikt4j_k$(this.$termList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_Repo$upsertList$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$upsertList$slambda(this.this$0__1, this.$termList_1, completion); }; function SiteTermsDao_Repo$upsertList$slambda_0(this$0, $termList, resultContinuation) { var i = new SiteTermsDao_Repo$upsertList$slambda(this$0, $termList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$updateActiveByUid$slambda(this$0, $sTermsUid, $active, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$sTermsUid_1 = $sTermsUid; this.$active_1 = $active; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$updateActiveByUid$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$updateActiveByUid$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteTermsDao_Repo$updateActiveByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateActiveByUid_i0tn2u_k$(this.$sTermsUid_1, this.$active_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_Repo$updateActiveByUid$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$updateActiveByUid$slambda(this.this$0__1, this.$sTermsUid_1, this.$active_1, this.$changeTime_1, completion); }; function SiteTermsDao_Repo$updateActiveByUid$slambda_0(this$0, $sTermsUid, $active, $changeTime, resultContinuation) { var i = new SiteTermsDao_Repo$updateActiveByUid$slambda(this$0, $sTermsUid, $active, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SiteTermsDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteTermsDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_it2cbm_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$insertListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function SiteTermsDao_Repo$insertListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new SiteTermsDao_Repo$insertListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SiteTermsDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(SiteTermsDao_Repo$updateListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo$updateListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SiteTermsDao_Repo$updateListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateListAsync_mdh99q_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SiteTermsDao_Repo$updateListAsync$slambda).create_d196fn_k$ = function (completion) { return new SiteTermsDao_Repo$updateListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function SiteTermsDao_Repo$updateListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new SiteTermsDao_Repo$updateListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findSiteTermsCOROUTINE$395(_this__u8e3s4, langCode, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.langCode_1 = langCode; } protoOf($findSiteTermsCOROUTINE$395).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findSiteTerms_h3bujk_k$(this.langCode_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertAsyncCOROUTINE$396(_this__u8e3s4, siteTerms, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.siteTerms_1 = siteTerms; } protoOf($insertAsyncCOROUTINE$396).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'SiteTerms', SiteTermsDao_Repo$insertAsync$slambda_0(this._this__u8e3s4__1, this.siteTerms_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAsyncCOROUTINE$397(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$397).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_twa5ep_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllTermsCOROUTINE$398(_this__u8e3s4, activeOnly, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activeOnly_1 = activeOnly; } protoOf($findAllTermsCOROUTINE$398).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SiteTermsDao/findAllTerms'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'SiteTermsDao/findAllTerms'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activeOnly', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.activeOnly_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, SiteTermsDao_Repo$findAllTerms$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findAllTerms_x61o5h_k$(this.activeOnly_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllWithLanguageAsListCOROUTINE$399(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($findAllWithLanguageAsListCOROUTINE$399).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllWithLanguageAsList_8zlcp2_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAvailableSiteTermLanguagesCOROUTINE$400(_this__u8e3s4, active, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.active_1 = active; } protoOf($findAvailableSiteTermLanguagesCOROUTINE$400).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SiteTermsDao/findAvailableSiteTermLanguages'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'SiteTermsDao/findAvailableSiteTermLanguages'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'active', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.active_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, SiteTermsDao_Repo$findAvailableSiteTermLanguages$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findAvailableSiteTermLanguages_tjerik_k$(this.active_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findLatestByLanguageCOROUTINE$401(_this__u8e3s4, lang, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.lang_1 = lang; } protoOf($findLatestByLanguageCOROUTINE$401).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findLatestByLanguage_6y9g14_k$(this.lang_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SiteTermsDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SiteTermsDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(SiteTermsDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SiteTermsDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(SiteTermsDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(SiteTermsDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(SiteTermsDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(SiteTermsDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(SiteTermsDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(SiteTermsDao_Repo).findSiteTerms_h3bujk_k$ = function (langCode, $completion) { var tmp = new $findSiteTermsCOROUTINE$395(this, langCode, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).insertAsync_x6xvdz_k$ = function (siteTerms, $completion) { var tmp = new $insertAsyncCOROUTINE$396(this, siteTerms, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).findByUidAsync_twa5ep_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$397(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).findAllTermsAsListFlow_ao321x_k$ = function (activeOnly) { var tmp = this._dao_1.findAllTermsAsListFlow_ao321x_k$(activeOnly); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SiteTermsDao_Repo$findAllTermsAsListFlow$slambda_0(this, activeOnly, null)); }; protoOf(SiteTermsDao_Repo).findAllTerms_x61o5h_k$ = function (activeOnly, $completion) { var tmp = new $findAllTermsCOROUTINE$398(this, activeOnly, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).findAllWithLanguageAsList_8zlcp2_k$ = function ($completion) { var tmp = new $findAllWithLanguageAsListCOROUTINE$399(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).upsertList_1ikt4j_k$ = function (termList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'SiteTerms', SiteTermsDao_Repo$upsertList$slambda_0(this, termList, null), $completion); }; protoOf(SiteTermsDao_Repo).updateActiveByUid_i0tn2u_k$ = function (sTermsUid, active, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'SiteTerms', SiteTermsDao_Repo$updateActiveByUid$slambda_0(this, sTermsUid, active, changeTime, null), $completion); }; protoOf(SiteTermsDao_Repo).findAvailableSiteTermLanguages_tjerik_k$ = function (active, $completion) { var tmp = new $findAvailableSiteTermLanguagesCOROUTINE$400(this, active, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).findLatestByLanguage_6y9g14_k$ = function (lang, $completion) { var tmp = new $findLatestByLanguageCOROUTINE$401(this, lang, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SiteTermsDao_Repo).insertListAsync_pj515n_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'SiteTerms', SiteTermsDao_Repo$insertListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(SiteTermsDao_Repo).insertListAsync_it2cbm_k$ = function (entityList, $completion) { return this.insertListAsync_pj515n_k$(entityList, $completion); }; protoOf(SiteTermsDao_Repo).updateListAsync_r5r5jp_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'SiteTerms', SiteTermsDao_Repo$updateListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(SiteTermsDao_Repo).updateListAsync_mdh99q_k$ = function (entityList, $completion) { return this.updateListAsync_r5r5jp_k$(entityList, $completion); }; function StudentResultDao() { } function _get__db__e63s44_48($this) { return $this._db_1; } function _get__dao__d2kw60_46($this) { return $this._dao_1; } function StudentResultDao_DoorWrapper(_db, _dao) { StudentResultDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StudentResultDao_DoorWrapper).insertListAsync_uu65ul_k$ = function (list, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = list.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.StudentResultDao_DoorWrapper.insertListAsync.' call element.set_srLastModified_y57rsz_k$(systemTimeInMillis()); } return this._dao_1.insertListAsync_uu65ul_k$(list, $completion); }; protoOf(StudentResultDao_DoorWrapper).upsertAsync_kbpe1b_k$ = function (studentResult, $completion) { studentResult.set_srLastModified_y57rsz_k$(systemTimeInMillis()); return this._dao_1.upsertAsync_kbpe1b_k$(studentResult, $completion); }; protoOf(StudentResultDao_DoorWrapper).findByClazzAndStudent_rckoak_k$ = function (clazzUid, studentPersonUid, accountPersonUid, $completion) { return this._dao_1.findByClazzAndStudent_rckoak_k$(clazzUid, studentPersonUid, accountPersonUid, $completion); }; protoOf(StudentResultDao_DoorWrapper).findUidBySourcedId_8mmirv_k$ = function (sourcedId, $completion) { return this._dao_1.findUidBySourcedId_8mmirv_k$(sourcedId, $completion); }; protoOf(StudentResultDao_DoorWrapper).existsByUid_ozlemp_k$ = function (srUid, $completion) { return this._dao_1.existsByUid_ozlemp_k$(srUid, $completion); }; function StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda$lambda(_result) { return mapRows(_result, StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda$lambda$lambda(_result)); } function StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda$lambda$lambda($_result) { return function (it) { var _tmp_cbSourcedId = $_result.getString_gb1pt9_k$('cbSourcedId'); var _tmp_StudentResult_nullCount = 0; var _tmp_srUid = $_result.getLong_3wgf2g_k$('srUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_srSourcedId = $_result.getString_gb1pt9_k$('srSourcedId'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_srCourseBlockUid = $_result.getLong_3wgf2g_k$('srCourseBlockUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_srLineItemSourcedId = $_result.getString_gb1pt9_k$('srLineItemSourcedId'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_srLineItemHref = $_result.getString_gb1pt9_k$('srLineItemHref'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_srClazzUid = $_result.getLong_3wgf2g_k$('srClazzUid'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_srAssignmentUid = $_result.getLong_3wgf2g_k$('srAssignmentUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_srStatus = $_result.getInt_npc9pd_k$('srStatus'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_srMetaData = $_result.getString_gb1pt9_k$('srMetaData'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_srStudentPersonUid = $_result.getLong_3wgf2g_k$('srStudentPersonUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_srStudentPersonSourcedId = $_result.getString_gb1pt9_k$('srStudentPersonSourcedId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_srStudentGroupId = $_result.getInt_npc9pd_k$('srStudentGroupId'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_srMarkerPersonUid = $_result.getLong_3wgf2g_k$('srMarkerPersonUid'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_srMarkerGroupId = $_result.getInt_npc9pd_k$('srMarkerGroupId'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_srScoreStatus = $_result.getInt_npc9pd_k$('srScoreStatus'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_srScore = $_result.getFloat_1jlp7w_k$('srScore'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_srScoreDate = $_result.getLong_3wgf2g_k$('srScoreDate'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_srLastModified = $_result.getLong_3wgf2g_k$('srLastModified'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_srComment = $_result.getString_gb1pt9_k$('srComment'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_srAppId = $_result.getString_gb1pt9_k$('srAppId'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_srDeleted = $_result.getBoolean_xz3hoo_k$('srDeleted'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StudentResult_nullCount = _tmp_StudentResult_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_StudentResult_isAllNull = _tmp_StudentResult_nullCount === 21; // Inline function 'kotlin.apply' call var this_0 = new StudentResultAndCourseBlockSourcedId(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.StudentResultDao_JdbcImpl.findByClazzAndStudent....' call this_0.set_cbSourcedId_jrt4y9_k$(_tmp_cbSourcedId); if (!_tmp_StudentResult_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StudentResult(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.StudentResultDao_JdbcImpl.findByClazzAndStudent.....' call this_1.set_srUid_gvfhvu_k$(_tmp_srUid); this_1.set_srSourcedId_fmpvan_k$(_tmp_srSourcedId); this_1.set_srCourseBlockUid_iyfk10_k$(_tmp_srCourseBlockUid); this_1.set_srLineItemSourcedId_6065cm_k$(_tmp_srLineItemSourcedId); this_1.set_srLineItemHref_75p1bd_k$(_tmp_srLineItemHref); this_1.set_srClazzUid_yoy6a2_k$(_tmp_srClazzUid); this_1.set_srAssignmentUid_5eowg9_k$(_tmp_srAssignmentUid); this_1.set_srStatus_9ew9ly_k$(_tmp_srStatus); this_1.set_srMetaData_8q330s_k$(_tmp_srMetaData); this_1.set_srStudentPersonUid_h6tq3m_k$(_tmp_srStudentPersonUid); this_1.set_srStudentPersonSourcedId_2ewhc7_k$(_tmp_srStudentPersonSourcedId); this_1.set_srStudentGroupId_p65k6l_k$(_tmp_srStudentGroupId); this_1.set_srMarkerPersonUid_sf4dlz_k$(_tmp_srMarkerPersonUid); this_1.set_srMarkerGroupId_r0xgf0_k$(_tmp_srMarkerGroupId); this_1.set_srScoreStatus_x2x1uo_k$(_tmp_srScoreStatus); this_1.set_srScore_bwp57y_k$(_tmp_srScore); this_1.set_srScoreDate_jc2ptm_k$(_tmp_srScoreDate); this_1.set_srLastModified_y57rsz_k$(_tmp_srLastModified); this_1.set_srComment_kh9apg_k$(_tmp_srComment); this_1.set_srAppId_xuecp5_k$(_tmp_srAppId); this_1.set_srDeleted_4npnq0_k$(_tmp_srDeleted); this_0.set_studentResult_erqjgo_k$(this_1); } return this_0; }; } function StudentResultDao_JdbcImpl$findUidBySourcedId$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, StudentResultDao_JdbcImpl$findUidBySourcedId$slambda$lambda$lambda(_result)); } function StudentResultDao_JdbcImpl$findUidBySourcedId$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function StudentResultDao_JdbcImpl$existsByUid$slambda$lambda(_result) { return mapNextRow(_result, false, StudentResultDao_JdbcImpl$existsByUid$slambda$lambda$lambda(_result)); } function StudentResultDao_JdbcImpl$existsByUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).bindPreparedStmtToEntity_an70nj_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_srUid_iyoe2w_k$()); stmt.setString_2gt7ua_k$(2, entity.get_srSourcedId_4iiqg4_k$()); stmt.setLong_j1sybo_k$(3, entity.get_srCourseBlockUid_9dx5mu_k$()); stmt.setString_2gt7ua_k$(4, entity.get_srLineItemSourcedId_1zv2np_k$()); stmt.setString_2gt7ua_k$(5, entity.get_srLineItemHref_huj4sa_k$()); stmt.setLong_j1sybo_k$(6, entity.get_srClazzUid_oc75sw_k$()); stmt.setLong_j1sybo_k$(7, entity.get_srAssignmentUid_85o1mj_k$()); stmt.setInt_c72a8z_k$(8, entity.get_srStatus_p1igoq_k$()); stmt.setString_2gt7ua_k$(9, entity.get_srMetaData_ro77tj_k$()); stmt.setLong_j1sybo_k$(10, entity.get_srStudentPersonUid_fa7t1k_k$()); stmt.setString_2gt7ua_k$(11, entity.get_srStudentPersonSourcedId_3ecsgs_k$()); stmt.setInt_c72a8z_k$(12, entity.get_srStudentGroupId_k5jp6v_k$()); stmt.setLong_j1sybo_k$(13, entity.get_srMarkerPersonUid_yzzhpj_k$()); stmt.setInt_c72a8z_k$(14, entity.get_srMarkerGroupId_fljmaw_k$()); stmt.setInt_c72a8z_k$(15, entity.get_srScoreStatus_kuapzw_k$()); stmt.setFloat_dia6lm_k$(16, entity.get_srScore_va1com_k$()); stmt.setLong_j1sybo_k$(17, entity.get_srScoreDate_c97b8o_k$()); stmt.setLong_j1sybo_k$(18, entity.get_srLastModified_pl91fd_k$()); stmt.setString_2gt7ua_k$(19, entity.get_srComment_sz3zqh_k$()); stmt.setString_2gt7ua_k$(20, entity.get_srAppId_vjpcrw_k$()); stmt.setBoolean_pzdm1v_k$(21, entity.get_srDeleted_j1uj1r_k$()); }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_an70nj_k$(stmt, entity instanceof StudentResult ? entity : THROW_CCE()); }; function StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO StudentResult (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).bindPreparedStmtToEntity_an70nj_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_srUid_iyoe2w_k$()); stmt.setString_2gt7ua_k$(2, entity.get_srSourcedId_4iiqg4_k$()); stmt.setLong_j1sybo_k$(3, entity.get_srCourseBlockUid_9dx5mu_k$()); stmt.setString_2gt7ua_k$(4, entity.get_srLineItemSourcedId_1zv2np_k$()); stmt.setString_2gt7ua_k$(5, entity.get_srLineItemHref_huj4sa_k$()); stmt.setLong_j1sybo_k$(6, entity.get_srClazzUid_oc75sw_k$()); stmt.setLong_j1sybo_k$(7, entity.get_srAssignmentUid_85o1mj_k$()); stmt.setInt_c72a8z_k$(8, entity.get_srStatus_p1igoq_k$()); stmt.setString_2gt7ua_k$(9, entity.get_srMetaData_ro77tj_k$()); stmt.setLong_j1sybo_k$(10, entity.get_srStudentPersonUid_fa7t1k_k$()); stmt.setString_2gt7ua_k$(11, entity.get_srStudentPersonSourcedId_3ecsgs_k$()); stmt.setInt_c72a8z_k$(12, entity.get_srStudentGroupId_k5jp6v_k$()); stmt.setLong_j1sybo_k$(13, entity.get_srMarkerPersonUid_yzzhpj_k$()); stmt.setInt_c72a8z_k$(14, entity.get_srMarkerGroupId_fljmaw_k$()); stmt.setInt_c72a8z_k$(15, entity.get_srScoreStatus_kuapzw_k$()); stmt.setFloat_dia6lm_k$(16, entity.get_srScore_va1com_k$()); stmt.setLong_j1sybo_k$(17, entity.get_srScoreDate_c97b8o_k$()); stmt.setLong_j1sybo_k$(18, entity.get_srLastModified_pl91fd_k$()); stmt.setString_2gt7ua_k$(19, entity.get_srComment_sz3zqh_k$()); stmt.setString_2gt7ua_k$(20, entity.get_srAppId_vjpcrw_k$()); stmt.setBoolean_pzdm1v_k$(21, entity.get_srDeleted_j1uj1r_k$()); }; protoOf(StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_an70nj_k$(stmt, entity instanceof StudentResult ? entity : THROW_CCE()); }; function StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda($clazzUid, $studentPersonUid, $accountPersonUid, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$studentPersonUid_1 = $studentPersonUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda).invoke_9wquvm_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9wquvm_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$studentPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda(this.$clazzUid_1, this.$studentPersonUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda_0($clazzUid, $studentPersonUid, $accountPersonUid, resultContinuation) { var i = new StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda($clazzUid, $studentPersonUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9wquvm_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StudentResultDao_JdbcImpl$findUidBySourcedId$slambda($sourcedId, resultContinuation) { this.$sourcedId_1 = $sourcedId; CoroutineImpl.call(this, resultContinuation); } protoOf(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$sourcedId_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StudentResultDao_JdbcImpl$findUidBySourcedId$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StudentResultDao_JdbcImpl$findUidBySourcedId$slambda(this.$sourcedId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StudentResultDao_JdbcImpl$findUidBySourcedId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StudentResultDao_JdbcImpl$findUidBySourcedId$slambda_0($sourcedId, resultContinuation) { var i = new StudentResultDao_JdbcImpl$findUidBySourcedId$slambda($sourcedId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StudentResultDao_JdbcImpl$existsByUid$slambda($srUid, resultContinuation) { this.$srUid_1 = $srUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StudentResultDao_JdbcImpl$existsByUid$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_JdbcImpl$existsByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StudentResultDao_JdbcImpl$existsByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$srUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StudentResultDao_JdbcImpl$existsByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StudentResultDao_JdbcImpl$existsByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StudentResultDao_JdbcImpl$existsByUid$slambda(this.$srUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StudentResultDao_JdbcImpl$existsByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StudentResultDao_JdbcImpl$existsByUid$slambda_0($srUid, resultContinuation) { var i = new StudentResultDao_JdbcImpl$existsByUid$slambda($srUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StudentResultDao_JdbcImpl(_db) { StudentResultDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStudentResult_abort_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_abort$1(this); var tmp_0 = this; tmp_0._insertAdapterStudentResult_upsert_1 = new StudentResultDao_JdbcImpl$_insertAdapterStudentResult_upsert$1(this); } protoOf(StudentResultDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StudentResultDao_JdbcImpl).get__insertAdapterStudentResult_abort_bc355_k$ = function () { return this._insertAdapterStudentResult_abort_1; }; protoOf(StudentResultDao_JdbcImpl).get__insertAdapterStudentResult_upsert_jg2jyu_k$ = function () { return this._insertAdapterStudentResult_upsert_1; }; protoOf(StudentResultDao_JdbcImpl).insertListAsync_uu65ul_k$ = function (list, $completion) { return this._insertAdapterStudentResult_abort_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(StudentResultDao_JdbcImpl).upsertAsync_kbpe1b_k$ = function (studentResult, $completion) { return this._insertAdapterStudentResult_upsert_1.insertAsync_kic9b7_k$(studentResult, $completion); }; protoOf(StudentResultDao_JdbcImpl).findByClazzAndStudent_rckoak_k$ = function (clazzUid, studentPersonUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StudentResult.*,\n CourseBlock.cbSourcedId AS cbSourcedId\n FROM StudentResult\n LEFT JOIN CourseBlock\n ON StudentResult.srCourseBlockUid = CourseBlock.cbUid \n WHERE StudentResult.srClazzUid = CAST(? AS BIGINT)\n AND StudentResult.srStudentPersonUid = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT StudentResult.*,\n CourseBlock.cbSourcedId AS cbSourcedId\n FROM StudentResult\n LEFT JOIN CourseBlock\n ON StudentResult.srCourseBlockUid = CourseBlock.cbUid \n WHERE StudentResult.srClazzUid = ?\n AND StudentResult.srStudentPersonUid = ?\n AND ? = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StudentResultDao_JdbcImpl$findByClazzAndStudent$slambda_0(clazzUid, studentPersonUid, accountPersonUid, null), $completion); }; protoOf(StudentResultDao_JdbcImpl).findUidBySourcedId_8mmirv_k$ = function (sourcedId, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT StudentResult.srUid \n FROM StudentResult \n WHERE srSourcedId = ?), 0)\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, StudentResultDao_JdbcImpl$findUidBySourcedId$slambda_0(sourcedId, null), $completion); }; protoOf(StudentResultDao_JdbcImpl).existsByUid_ozlemp_k$ = function (srUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT EXISTS(\n SELECT StudentResult.srUid\n FROM StudentResult\n WHERE StudentResult.srUid = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT EXISTS(\n SELECT StudentResult.srUid\n FROM StudentResult\n WHERE StudentResult.srUid = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StudentResultDao_JdbcImpl$existsByUid$slambda_0(srUid, null), $completion); }; function StudentResultDao_Repo$insertListAsync$slambda(this$0, $list, resultContinuation) { this.this$0__1 = this$0; this.$list_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(StudentResultDao_Repo$insertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_Repo$insertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StudentResultDao_Repo$insertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertListAsync_uu65ul_k$(this.$list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StudentResultDao_Repo$insertListAsync$slambda).create_d196fn_k$ = function (completion) { return new StudentResultDao_Repo$insertListAsync$slambda(this.this$0__1, this.$list_1, completion); }; function StudentResultDao_Repo$insertListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new StudentResultDao_Repo$insertListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StudentResultDao_Repo$upsertAsync$slambda(this$0, $studentResult, resultContinuation) { this.this$0__1 = this$0; this.$studentResult_1 = $studentResult; CoroutineImpl.call(this, resultContinuation); } protoOf(StudentResultDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StudentResultDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_kbpe1b_k$(this.$studentResult_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StudentResultDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new StudentResultDao_Repo$upsertAsync$slambda(this.this$0__1, this.$studentResult_1, completion); }; function StudentResultDao_Repo$upsertAsync$slambda_0(this$0, $studentResult, resultContinuation) { var i = new StudentResultDao_Repo$upsertAsync$slambda(this$0, $studentResult, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StudentResultDao_Repo$findByClazzAndStudent$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findByClazzAndStudentCOROUTINE$402(_this__u8e3s4, clazzUid, studentPersonUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.studentPersonUid_1 = studentPersonUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByClazzAndStudentCOROUTINE$402).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StudentResultDao/findByClazzAndStudent'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'StudentResultDao/findByClazzAndStudent'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); parameter(this_0, 'studentPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.studentPersonUid_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, StudentResultDao_Repo$findByClazzAndStudent$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByClazzAndStudent_rckoak_k$(this.clazzUid_1, this.studentPersonUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findUidBySourcedIdCOROUTINE$403(_this__u8e3s4, sourcedId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.sourcedId_1 = sourcedId; } protoOf($findUidBySourcedIdCOROUTINE$403).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findUidBySourcedId_8mmirv_k$(this.sourcedId_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $existsByUidCOROUTINE$404(_this__u8e3s4, srUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.srUid_1 = srUid; } protoOf($existsByUidCOROUTINE$404).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.existsByUid_ozlemp_k$(this.srUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function StudentResultDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StudentResultDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(StudentResultDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StudentResultDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StudentResultDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StudentResultDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StudentResultDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StudentResultDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StudentResultDao_Repo).insertListAsync_uu65ul_k$ = function (list, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StudentResult', StudentResultDao_Repo$insertListAsync$slambda_0(this, list, null), $completion); }; protoOf(StudentResultDao_Repo).upsertAsync_kbpe1b_k$ = function (studentResult, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StudentResult', StudentResultDao_Repo$upsertAsync$slambda_0(this, studentResult, null), $completion); }; protoOf(StudentResultDao_Repo).findByClazzAndStudent_rckoak_k$ = function (clazzUid, studentPersonUid, accountPersonUid, $completion) { var tmp = new $findByClazzAndStudentCOROUTINE$402(this, clazzUid, studentPersonUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_Repo).findUidBySourcedId_8mmirv_k$ = function (sourcedId, $completion) { var tmp = new $findUidBySourcedIdCOROUTINE$403(this, sourcedId, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StudentResultDao_Repo).existsByUid_ozlemp_k$ = function (srUid, $completion) { var tmp = new $existsByUidCOROUTINE$404(this, srUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function SyncNodeDao() { } function SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda$lambda$lambda(_result)); } function SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO SyncNode (nodeClientId) VALUES(?)'; }; protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).bindPreparedStmtToEntity_ufg1j2_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_nodeClientId_5fbwkx_k$()); }; protoOf(SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ufg1j2_k$(stmt, entity instanceof SyncNode ? entity : THROW_CCE()); }; function SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda_0(resultContinuation) { var i = new SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SyncNodeDao_JdbcImpl(_db) { SyncNodeDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterSyncNode_upsert_1 = new SyncNodeDao_JdbcImpl$_insertAdapterSyncNode_upsert$1(this); } protoOf(SyncNodeDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SyncNodeDao_JdbcImpl).get__insertAdapterSyncNode_upsert_fd2lu7_k$ = function () { return this._insertAdapterSyncNode_upsert_1; }; protoOf(SyncNodeDao_JdbcImpl).replace_p9tp6q_k$ = function (syncNode) { this._insertAdapterSyncNode_upsert_1.insert_fs66hy_k$(syncNode); }; protoOf(SyncNodeDao_JdbcImpl).getLocalNodeClientId_2sk90y_k$ = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0)\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, SyncNodeDao_JdbcImpl$getLocalNodeClientId$slambda_0(null), $completion); }; function SystemPermissionDao() { } function _get__db__e63s44_49($this) { return $this._db_1; } function _get__dao__d2kw60_47($this) { return $this._dao_1; } function $upsertAsyncCOROUTINE$405(_this__u8e3s4, systemPermissions, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.systemPermissions_1 = systemPermissions; } protoOf($upsertAsyncCOROUTINE$405).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.systemPermissions_1.get_spUid_iyn43u_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(10011, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.systemPermissions_1.set_spUid_gfbdxk_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.systemPermissions_1.set_spLastModified_4ht86z_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.upsertAsync_5qjk9f_k$(this.systemPermissions_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SystemPermissionDao_DoorWrapper(_db, _dao) { SystemPermissionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(SystemPermissionDao_DoorWrapper).findAllByPersonUid_vahq1f_k$ = function (accountPersonUid, includeDeleted, $completion) { return this._dao_1.findAllByPersonUid_vahq1f_k$(accountPersonUid, includeDeleted, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).findAllByPersonUidEntities_iz6f6d_k$ = function (accountPersonUid, $completion) { return this._dao_1.findAllByPersonUidEntities_iz6f6d_k$(accountPersonUid, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).findByPersonUidAsFlow_7w3yd9_k$ = function (accountPersonUid) { return this._dao_1.findByPersonUidAsFlow_7w3yd9_k$(accountPersonUid); }; protoOf(SystemPermissionDao_DoorWrapper).findByPersonUid_4fpooh_k$ = function (accountPersonUid, $completion) { return this._dao_1.findByPersonUid_4fpooh_k$(accountPersonUid, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).personHasSystemPermission_tdum2r_k$ = function (accountPersonUid, permission, $completion) { return this._dao_1.personHasSystemPermission_tdum2r_k$(accountPersonUid, permission, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).personHasSystemPermissionAsFlow_ryvoyl_k$ = function (accountPersonUid, permission) { return this._dao_1.personHasSystemPermissionAsFlow_ryvoyl_k$(accountPersonUid, permission); }; protoOf(SystemPermissionDao_DoorWrapper).personHasSystemPermissionPairAsFlow_8tn2gh_k$ = function (accountPersonUid, firstPermission, secondPermission) { return this._dao_1.personHasSystemPermissionPairAsFlow_8tn2gh_k$(accountPersonUid, firstPermission, secondPermission); }; protoOf(SystemPermissionDao_DoorWrapper).personHasSystemPermissionPair_8b81c3_k$ = function (accountPersonUid, firstPermission, secondPermission, $completion) { return this._dao_1.personHasSystemPermissionPair_8b81c3_k$(accountPersonUid, firstPermission, secondPermission, $completion); }; protoOf(SystemPermissionDao_DoorWrapper).personHasEditAndViewPermissionForPersonAsFlow_hvefqa_k$ = function (accountPersonUid, otherPersonUid) { return this._dao_1.personHasEditAndViewPermissionForPersonAsFlow_hvefqa_k$(accountPersonUid, otherPersonUid); }; protoOf(SystemPermissionDao_DoorWrapper).upsertAsync_5qjk9f_k$ = function (systemPermissions, $completion) { var tmp = new $upsertAsyncCOROUTINE$405(this, systemPermissions, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda$lambda(_result) { return mapRows(_result, SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.getLong_3wgf2g_k$('spUid'); var _tmp_spToPersonUid = $_result.getLong_3wgf2g_k$('spToPersonUid'); var _tmp_spToGroupUid = $_result.getLong_3wgf2g_k$('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.getLong_3wgf2g_k$('spPermissionsFlag'); var _tmp_spLastModified = $_result.getLong_3wgf2g_k$('spLastModified'); var _tmp_spIsDeleted = $_result.getBoolean_xz3hoo_k$('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findAllByPersonUid....' call this_0.set_spUid_gfbdxk_k$(_tmp_spUid); this_0.set_spToPersonUid_5xfgfc_k$(_tmp_spToPersonUid); this_0.set_spToGroupUid_t5o8aw_k$(_tmp_spToGroupUid); this_0.set_spPermissionsFlag_5hgv3s_k$(_tmp_spPermissionsFlag); this_0.set_spLastModified_4ht86z_k$(_tmp_spLastModified); this_0.set_spIsDeleted_kdad5s_k$(_tmp_spIsDeleted); return this_0; }; } function SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda$lambda(_result) { return mapRows(_result, SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.getLong_3wgf2g_k$('spUid'); var _tmp_spToPersonUid = $_result.getLong_3wgf2g_k$('spToPersonUid'); var _tmp_spToGroupUid = $_result.getLong_3wgf2g_k$('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.getLong_3wgf2g_k$('spPermissionsFlag'); var _tmp_spLastModified = $_result.getLong_3wgf2g_k$('spLastModified'); var _tmp_spIsDeleted = $_result.getBoolean_xz3hoo_k$('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findAllByPersonUidEntities....' call this_0.set_spUid_gfbdxk_k$(_tmp_spUid); this_0.set_spToPersonUid_5xfgfc_k$(_tmp_spToPersonUid); this_0.set_spToGroupUid_t5o8aw_k$(_tmp_spToGroupUid); this_0.set_spPermissionsFlag_5hgv3s_k$(_tmp_spPermissionsFlag); this_0.set_spLastModified_4ht86z_k$(_tmp_spLastModified); this_0.set_spIsDeleted_kdad5s_k$(_tmp_spIsDeleted); return this_0; }; } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.getLong_3wgf2g_k$('spUid'); var _tmp_spToPersonUid = $_result.getLong_3wgf2g_k$('spToPersonUid'); var _tmp_spToGroupUid = $_result.getLong_3wgf2g_k$('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.getLong_3wgf2g_k$('spPermissionsFlag'); var _tmp_spLastModified = $_result.getLong_3wgf2g_k$('spLastModified'); var _tmp_spIsDeleted = $_result.getBoolean_xz3hoo_k$('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUidAsFlow.....' call this_0.set_spUid_gfbdxk_k$(_tmp_spUid); this_0.set_spToPersonUid_5xfgfc_k$(_tmp_spToPersonUid); this_0.set_spToGroupUid_t5o8aw_k$(_tmp_spToGroupUid); this_0.set_spPermissionsFlag_5hgv3s_k$(_tmp_spPermissionsFlag); this_0.set_spLastModified_4ht86z_k$(_tmp_spLastModified); this_0.set_spIsDeleted_kdad5s_k$(_tmp_spIsDeleted); return this_0; }; } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).invoke_prro35_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_prro35_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0($accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_prro35_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_spUid = $_result.getLong_3wgf2g_k$('spUid'); var _tmp_spToPersonUid = $_result.getLong_3wgf2g_k$('spToPersonUid'); var _tmp_spToGroupUid = $_result.getLong_3wgf2g_k$('spToGroupUid'); var _tmp_spPermissionsFlag = $_result.getLong_3wgf2g_k$('spPermissionsFlag'); var _tmp_spLastModified = $_result.getLong_3wgf2g_k$('spLastModified'); var _tmp_spIsDeleted = $_result.getBoolean_xz3hoo_k$('spIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new SystemPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.findByPersonUid....' call this_0.set_spUid_gfbdxk_k$(_tmp_spUid); this_0.set_spToPersonUid_5xfgfc_k$(_tmp_spToPersonUid); this_0.set_spToGroupUid_t5o8aw_k$(_tmp_spToGroupUid); this_0.set_spPermissionsFlag_5hgv3s_k$(_tmp_spPermissionsFlag); this_0.set_spLastModified_4ht86z_k$(_tmp_spLastModified); this_0.set_spIsDeleted_kdad5s_k$(_tmp_spIsDeleted); return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda(_result) { return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, false, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { return $_result.getBoolean_oe92jq_k$(1); }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$permission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda(this.$accountPersonUid_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0($accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda($accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.getBoolean_xz3hoo_k$('firstPermission'); var _tmp_secondPermission = $_result.getBoolean_xz3hoo_k$('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPairAsFlow.....' call this_0.set_firstPermission_2e6v8t_k$(_tmp_firstPermission); this_0.set_secondPermission_lj81xn_k$(_tmp_secondPermission); return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).invoke_acelx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_acelx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$secondPermission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda(this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_acelx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda$lambda($_result) { return function (it) { var _tmp_firstPermission = $_result.getBoolean_xz3hoo_k$('firstPermission'); var _tmp_secondPermission = $_result.getBoolean_xz3hoo_k$('secondPermission'); // Inline function 'kotlin.apply' call var this_0 = new PermissionPair(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasSystemPermissionPair....' call this_0.set_firstPermission_2e6v8t_k$(_tmp_firstPermission); this_0.set_secondPermission_lj81xn_k$(_tmp_secondPermission); return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda(_result) { return mapNextRow_0(_result, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda(_result)); } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_hasViewPermission = $_result.getBoolean_xz3hoo_k$('hasViewPermission'); var _tmp_hasEditPermission = $_result.getBoolean_xz3hoo_k$('hasEditPermission'); // Inline function 'kotlin.apply' call var this_0 = new EditAndViewPermission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.SystemPermissionDao_JdbcImpl.personHasEditAndViewPermissionForPersonAsFlow.....' call this_0.set_hasViewPermission_mrtqf8_k$(_tmp_hasViewPermission); this_0.set_hasEditPermission_srxqbl_k$(_tmp_hasEditPermission); return this_0; }; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation) { this.$otherPersonUid_1 = $otherPersonUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).invoke_hzfyd8_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_hzfyd8_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$otherPersonUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda(this.$otherPersonUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0($otherPersonUid, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda($otherPersonUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_hzfyd8_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO SystemPermission (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).bindPreparedStmtToEntity_qxfblt_k$ = function (stmt, entity) { if (entity.get_spUid_iyn43u_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_spUid_iyn43u_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_spToPersonUid_4lywqu_k$()); stmt.setLong_j1sybo_k$(3, entity.get_spToGroupUid_gxogaa_k$()); stmt.setLong_j1sybo_k$(4, entity.get_spPermissionsFlag_6fqv1y_k$()); stmt.setLong_j1sybo_k$(5, entity.get_spLastModified_fvvr0b_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_spIsDeleted_owiz07_k$()); }; protoOf(SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_qxfblt_k$(stmt, entity instanceof SystemPermission ? entity : THROW_CCE()); }; function SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda($accountPersonUid, $includeDeleted, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda).invoke_eog53a_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_eog53a_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setBoolean_pzdm1v_k$(2, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda(this.$accountPersonUid_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda_0($accountPersonUid, $includeDeleted, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda($accountPersonUid, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_eog53a_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda).invoke_eog53a_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_eog53a_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda_0($accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_eog53a_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).invoke_5m30xx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_5m30xx_k$($completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda$slambda_0(this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, completion); }; function SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_5m30xx_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).invoke_tcq5bs_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_tcq5bs_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda(this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$findByPersonUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0($accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$findByPersonUid$slambda($accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_tcq5bs_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).invoke_dqij78_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_dqij78_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$permission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda(this.$accountPersonUid_1, this.$permission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0($accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda($accountPersonUid, $permission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_dqij78_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).invoke_v5bxtk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_v5bxtk_k$($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ', VOID, VOID, VOID, '\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda$slambda_0(this.$accountPersonUid_1, this.$permission_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$permission_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.invoke_v5bxtk_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).invoke_k3c9uk_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_k3c9uk_k$($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n ', VOID, VOID, VOID, '\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda$slambda_0(this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.invoke_k3c9uk_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).invoke_acelx4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_acelx4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$firstPermission_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$secondPermission_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda(this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0($accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda($accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_acelx4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$otherPersonUid_1 = $otherPersonUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).invoke_o9q1lc_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_o9q1lc_k$($completion); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n * in the WHERE clauses to narrow down the search. \n */\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given to the active\n * user for their enrolment role in that course\n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n WHERE CAST(? AS BIGINT) != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n WHERE CAST(? AS BIGINT) != 0\n AND CoursePermission.cpToPersonUid = CAST(? AS BIGINT))\n \n SELECT ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT CAST(? AS BIGINT) IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission)) \n ) AS hasViewPermission,\n \n ( (SELECT CAST(? AS BIGINT) = CAST(? AS BIGINT))\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = CAST(? AS BIGINT)\n AND PersonParentJoin.ppjParentPersonUid = CAST(? AS BIGINT))\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 32768\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n ) AS hasEditPermission\n ', VOID, VOID, VOID, '\n /* Similar to the query used on list all persons, however it uses the the otherpersonuid param \n * in the WHERE clauses to narrow down the search. \n */\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given to the active\n * user for their enrolment role in that course\n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n WHERE ? != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid = ?\n WHERE ? != 0\n AND CoursePermission.cpToPersonUid = ?)\n \n SELECT ( (SELECT ? = ?)\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = ?\n AND PersonParentJoin.ppjParentPersonUid = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (SELECT ? IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission)) \n ) AS hasViewPermission,\n \n ( (SELECT ? = ?)\n OR EXISTS(SELECT 1\n FROM PersonParentJoin\n WHERE PersonParentJoin.ppjMinorPersonUid = ?\n AND PersonParentJoin.ppjParentPersonUid = ?)\n OR (SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 32768\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n ) AS hasEditPermission\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda$slambda_0(this.$otherPersonUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.this$0__1, this.$otherPersonUid_1, this.$accountPersonUid_1, completion); }; function SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $otherPersonUid, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $otherPersonUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_o9q1lc_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_JdbcImpl(_db) { SystemPermissionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterSystemPermission_upsert_1 = new SystemPermissionDao_JdbcImpl$_insertAdapterSystemPermission_upsert$1(this); } protoOf(SystemPermissionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SystemPermissionDao_JdbcImpl).get__insertAdapterSystemPermission_upsert_thkqq8_k$ = function () { return this._insertAdapterSystemPermission_upsert_1; }; protoOf(SystemPermissionDao_JdbcImpl).upsertAsync_5qjk9f_k$ = function (systemPermissions, $completion) { return this._insertAdapterSystemPermission_upsert_1.insertAsync_kic9b7_k$(systemPermissions, $completion); }; protoOf(SystemPermissionDao_JdbcImpl).findAllByPersonUid_vahq1f_k$ = function (accountPersonUid, includeDeleted, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (CAST(? AS INTEGER) = 1 OR NOT SystemPermission.spIsDeleted)\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (CAST(? AS INTEGER) = 1 OR NOT SystemPermission.spIsDeleted)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SystemPermissionDao_JdbcImpl$findAllByPersonUid$slambda_0(accountPersonUid, includeDeleted, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).findAllByPersonUidEntities_iz6f6d_k$ = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SystemPermissionDao_JdbcImpl$findAllByPersonUidEntities$slambda_0(accountPersonUid, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).findByPersonUidAsFlow_7w3yd9_k$ = function (accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this._db_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null)); }; protoOf(SystemPermissionDao_JdbcImpl).findByPersonUid_4fpooh_k$ = function (accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT SystemPermission.*\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n LIMIT 1\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SystemPermissionDao_JdbcImpl$findByPersonUid$slambda_0(accountPersonUid, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).personHasSystemPermission_tdum2r_k$ = function (accountPersonUid, permission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n ', VOID, VOID, VOID, '\n SELECT \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermission$slambda_0(accountPersonUid, permission, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).personHasSystemPermissionAsFlow_ryvoyl_k$ = function (accountPersonUid, permission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this._db_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null)); }; protoOf(SystemPermissionDao_JdbcImpl).personHasSystemPermissionPairAsFlow_8tn2gh_k$ = function (accountPersonUid, firstPermission, secondPermission) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['SystemPermission']; return doorFlow(this._db_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(SystemPermissionDao_JdbcImpl).personHasSystemPermissionPair_8b81c3_k$ = function (accountPersonUid, firstPermission, secondPermission, $completion) { var tmp = new PreparedStatementConfig('\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n CAST(? AS BIGINT)\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n ', VOID, VOID, VOID, '\n SELECT (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as firstPermission,\n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n ?\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ) as secondPermission\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, SystemPermissionDao_JdbcImpl$personHasSystemPermissionPair$slambda_0(accountPersonUid, firstPermission, secondPermission, null), $completion); }; protoOf(SystemPermissionDao_JdbcImpl).personHasEditAndViewPermissionForPersonAsFlow_hvefqa_k$ = function (accountPersonUid, otherPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['PersonParentJoin', 'SystemPermission', 'ClazzEnrolment', 'CoursePermission']; return doorFlow(this._db_1, tmp, SystemPermissionDao_JdbcImpl$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, otherPersonUid, accountPersonUid, null)); }; function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/findByPersonUidAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/findByPersonUidAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, completion); }; function SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this$0, $accountPersonUid, resultContinuation) { var i = new SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda(this$0, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermission$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$permission_1 = $permission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/personHasSystemPermissionAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/personHasSystemPermissionAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'permission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$permission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$permission_1, completion); }; function SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this$0, $accountPersonUid, $permission, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda(this$0, $accountPersonUid, $permission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$firstPermission_1 = $firstPermission; this.$secondPermission_1 = $secondPermission; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/personHasSystemPermissionPairAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/personHasSystemPermissionPairAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'firstPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$firstPermission_1)); parameter(this_0, 'secondPermission', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$secondPermission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$firstPermission_1, this.$secondPermission_1, completion); }; function SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda(this$0, $accountPersonUid, $firstPermission, $secondPermission, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$otherPersonUid_1 = $otherPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/personHasEditAndViewPermissionForPersonAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'otherPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$otherPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this.this$0__1, this.$accountPersonUid_1, this.$otherPersonUid_1, completion); }; function SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this$0, $accountPersonUid, $otherPersonUid, resultContinuation) { var i = new SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda(this$0, $accountPersonUid, $otherPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation) { this.this$0__1 = this$0; this.$systemPermissions_1 = $systemPermissions; CoroutineImpl.call(this, resultContinuation); } protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_5qjk9f_k$(this.$systemPermissions_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(SystemPermissionDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new SystemPermissionDao_Repo$upsertAsync$slambda(this.this$0__1, this.$systemPermissions_1, completion); }; function SystemPermissionDao_Repo$upsertAsync$slambda_0(this$0, $systemPermissions, resultContinuation) { var i = new SystemPermissionDao_Repo$upsertAsync$slambda(this$0, $systemPermissions, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findAllByPersonUidCOROUTINE$406(_this__u8e3s4, accountPersonUid, includeDeleted, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.includeDeleted_1 = includeDeleted; } protoOf($findAllByPersonUidCOROUTINE$406).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllByPersonUid_vahq1f_k$(this.accountPersonUid_1, this.includeDeleted_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllByPersonUidEntitiesCOROUTINE$407(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; } protoOf($findAllByPersonUidEntitiesCOROUTINE$407).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllByPersonUidEntities_iz6f6d_k$(this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByPersonUidCOROUTINE$408(_this__u8e3s4, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByPersonUidCOROUTINE$408).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByPersonUid_4fpooh_k$(this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasSystemPermissionCOROUTINE$409(_this__u8e3s4, accountPersonUid, permission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.permission_1 = permission; } protoOf($personHasSystemPermissionCOROUTINE$409).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/personHasSystemPermission'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/personHasSystemPermission'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'permission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.permission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, SystemPermissionDao_Repo$personHasSystemPermission$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.personHasSystemPermission_tdum2r_k$(this.accountPersonUid_1, this.permission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $personHasSystemPermissionPairCOROUTINE$410(_this__u8e3s4, accountPersonUid, firstPermission, secondPermission, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.firstPermission_1 = firstPermission; this.secondPermission_1 = secondPermission; } protoOf($personHasSystemPermissionPairCOROUTINE$410).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'SystemPermissionDao/personHasSystemPermissionPair'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'SystemPermissionDao/personHasSystemPermissionPair'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'firstPermission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.firstPermission_1)); parameter(this_0, 'secondPermission', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.secondPermission_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, SystemPermissionDao_Repo$personHasSystemPermissionPair$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.personHasSystemPermissionPair_8b81c3_k$(this.accountPersonUid_1, this.firstPermission_1, this.secondPermission_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function SystemPermissionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { SystemPermissionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(SystemPermissionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(SystemPermissionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(SystemPermissionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(SystemPermissionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(SystemPermissionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(SystemPermissionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(SystemPermissionDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(SystemPermissionDao_Repo).findAllByPersonUid_vahq1f_k$ = function (accountPersonUid, includeDeleted, $completion) { var tmp = new $findAllByPersonUidCOROUTINE$406(this, accountPersonUid, includeDeleted, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo).findAllByPersonUidEntities_iz6f6d_k$ = function (accountPersonUid, $completion) { var tmp = new $findAllByPersonUidEntitiesCOROUTINE$407(this, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo).findByPersonUidAsFlow_7w3yd9_k$ = function (accountPersonUid) { var tmp = this._dao_1.findByPersonUidAsFlow_7w3yd9_k$(accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SystemPermissionDao_Repo$findByPersonUidAsFlow$slambda_0(this, accountPersonUid, null)); }; protoOf(SystemPermissionDao_Repo).findByPersonUid_4fpooh_k$ = function (accountPersonUid, $completion) { var tmp = new $findByPersonUidCOROUTINE$408(this, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo).personHasSystemPermission_tdum2r_k$ = function (accountPersonUid, permission, $completion) { var tmp = new $personHasSystemPermissionCOROUTINE$409(this, accountPersonUid, permission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo).personHasSystemPermissionAsFlow_ryvoyl_k$ = function (accountPersonUid, permission) { var tmp = this._dao_1.personHasSystemPermissionAsFlow_ryvoyl_k$(accountPersonUid, permission); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SystemPermissionDao_Repo$personHasSystemPermissionAsFlow$slambda_0(this, accountPersonUid, permission, null)); }; protoOf(SystemPermissionDao_Repo).personHasSystemPermissionPairAsFlow_8tn2gh_k$ = function (accountPersonUid, firstPermission, secondPermission) { var tmp = this._dao_1.personHasSystemPermissionPairAsFlow_8tn2gh_k$(accountPersonUid, firstPermission, secondPermission); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SystemPermissionDao_Repo$personHasSystemPermissionPairAsFlow$slambda_0(this, accountPersonUid, firstPermission, secondPermission, null)); }; protoOf(SystemPermissionDao_Repo).personHasSystemPermissionPair_8b81c3_k$ = function (accountPersonUid, firstPermission, secondPermission, $completion) { var tmp = new $personHasSystemPermissionPairCOROUTINE$410(this, accountPersonUid, firstPermission, secondPermission, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(SystemPermissionDao_Repo).personHasEditAndViewPermissionForPersonAsFlow_hvefqa_k$ = function (accountPersonUid, otherPersonUid) { var tmp = this._dao_1.personHasEditAndViewPermissionForPersonAsFlow_hvefqa_k$(accountPersonUid, otherPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, SystemPermissionDao_Repo$personHasEditAndViewPermissionForPersonAsFlow$slambda_0(this, accountPersonUid, otherPersonUid, null)); }; protoOf(SystemPermissionDao_Repo).upsertAsync_5qjk9f_k$ = function (systemPermissions, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'SystemPermission', SystemPermissionDao_Repo$upsertAsync$slambda_0(this, systemPermissions, null), $completion); }; function TransferJobDao() { } function TransferJobDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, TransferJobDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjUid = $_result.getInt_npc9pd_k$('tjUid'); var _tmp_tjType = $_result.getInt_npc9pd_k$('tjType'); var _tmp_tjStatus = $_result.getInt_npc9pd_k$('tjStatus'); var _tmp_tjName = $_result.getString_gb1pt9_k$('tjName'); var _tmp_tjUuid = $_result.getString_gb1pt9_k$('tjUuid'); var _tmp_tjTableId = $_result.getInt_npc9pd_k$('tjTableId'); var _tmp_tjEntityUid = $_result.getLong_3wgf2g_k$('tjEntityUid'); var _tmp_tjTimeCreated = $_result.getLong_3wgf2g_k$('tjTimeCreated'); var _tmp_tjCreationType = $_result.getInt_npc9pd_k$('tjCreationType'); var _tmp_tjOiUid = $_result.getLong_3wgf2g_k$('tjOiUid'); // Inline function 'kotlin.apply' call var this_0 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByUid....' call this_0.set_tjUid_n5ffgr_k$(_tmp_tjUid); this_0.set_tjType_7mlacb_k$(_tmp_tjType); this_0.set_tjStatus_83krdv_k$(_tmp_tjStatus); this_0.set_tjName_x53ltz_k$(_tmp_tjName); this_0.set_tjUuid_13if7t_k$(_tmp_tjUuid); this_0.set_tjTableId_qxjmxa_k$(_tmp_tjTableId); this_0.set_tjEntityUid_kykjj0_k$(_tmp_tjEntityUid); this_0.set_tjTimeCreated_pcsbey_k$(_tmp_tjTimeCreated); this_0.set_tjCreationType_weqt38_k$(_tmp_tjCreationType); this_0.set_tjOiUid_oaj4ez_k$(_tmp_tjOiUid); return this_0; }; } function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjUid = $_result.getInt_npc9pd_k$('tjUid'); var _tmp_tjType = $_result.getInt_npc9pd_k$('tjType'); var _tmp_tjStatus = $_result.getInt_npc9pd_k$('tjStatus'); var _tmp_tjName = $_result.getString_gb1pt9_k$('tjName'); var _tmp_tjUuid = $_result.getString_gb1pt9_k$('tjUuid'); var _tmp_tjTableId = $_result.getInt_npc9pd_k$('tjTableId'); var _tmp_tjEntityUid = $_result.getLong_3wgf2g_k$('tjEntityUid'); var _tmp_tjTimeCreated = $_result.getLong_3wgf2g_k$('tjTimeCreated'); var _tmp_tjCreationType = $_result.getInt_npc9pd_k$('tjCreationType'); var _tmp_tjOiUid = $_result.getLong_3wgf2g_k$('tjOiUid'); // Inline function 'kotlin.apply' call var this_0 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByUidAsFlow.....' call this_0.set_tjUid_n5ffgr_k$(_tmp_tjUid); this_0.set_tjType_7mlacb_k$(_tmp_tjType); this_0.set_tjStatus_83krdv_k$(_tmp_tjStatus); this_0.set_tjName_x53ltz_k$(_tmp_tjName); this_0.set_tjUuid_13if7t_k$(_tmp_tjUuid); this_0.set_tjTableId_qxjmxa_k$(_tmp_tjTableId); this_0.set_tjEntityUid_kykjj0_k$(_tmp_tjEntityUid); this_0.set_tjTimeCreated_pcsbey_k$(_tmp_tjTimeCreated); this_0.set_tjCreationType_weqt38_k$(_tmp_tjCreationType); this_0.set_tjOiUid_oaj4ez_k$(_tmp_tjOiUid); return this_0; }; } function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_5a6am1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5a6am1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5a6am1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$getJobStatus$slambda$lambda(_result) { return mapNextRow(_result, 0, TransferJobDao_JdbcImpl$getJobStatus$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$getJobStatus$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda$lambda(_result) { return mapRows(_result, TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjUid = $_result.getInt_npc9pd_k$('tjUid'); var _tmp_tjType = $_result.getInt_npc9pd_k$('tjType'); var _tmp_tjStatus = $_result.getInt_npc9pd_k$('tjStatus'); var _tmp_tjName = $_result.getString_gb1pt9_k$('tjName'); var _tmp_tjUuid = $_result.getString_gb1pt9_k$('tjUuid'); var _tmp_tjTableId = $_result.getInt_npc9pd_k$('tjTableId'); var _tmp_tjEntityUid = $_result.getLong_3wgf2g_k$('tjEntityUid'); var _tmp_tjTimeCreated = $_result.getLong_3wgf2g_k$('tjTimeCreated'); var _tmp_tjCreationType = $_result.getInt_npc9pd_k$('tjCreationType'); var _tmp_tjOiUid = $_result.getLong_3wgf2g_k$('tjOiUid'); // Inline function 'kotlin.apply' call var this_0 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findJobByEntityAndTableUid....' call this_0.set_tjUid_n5ffgr_k$(_tmp_tjUid); this_0.set_tjType_7mlacb_k$(_tmp_tjType); this_0.set_tjStatus_83krdv_k$(_tmp_tjStatus); this_0.set_tjName_x53ltz_k$(_tmp_tjName); this_0.set_tjUuid_13if7t_k$(_tmp_tjUuid); this_0.set_tjTableId_qxjmxa_k$(_tmp_tjTableId); this_0.set_tjEntityUid_kykjj0_k$(_tmp_tjEntityUid); this_0.set_tjTimeCreated_pcsbey_k$(_tmp_tjTimeCreated); this_0.set_tjCreationType_weqt38_k$(_tmp_tjCreationType); this_0.set_tjOiUid_oaj4ez_k$(_tmp_tjOiUid); return this_0; }; } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_totalSize = $_result.getLong_3wgf2g_k$('totalSize'); var _tmp_transferred = $_result.getLong_3wgf2g_k$('transferred'); var _tmp_latestErrorStr = $_result.getString_gb1pt9_k$('latestErrorStr'); var _tmp_TransferJob_nullCount = 0; var _tmp_tjUid = $_result.getInt_npc9pd_k$('tjUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_tjType = $_result.getInt_npc9pd_k$('tjType'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_tjStatus = $_result.getInt_npc9pd_k$('tjStatus'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_tjName = $_result.getString_gb1pt9_k$('tjName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_tjUuid = $_result.getString_gb1pt9_k$('tjUuid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_tjTableId = $_result.getInt_npc9pd_k$('tjTableId'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_tjEntityUid = $_result.getLong_3wgf2g_k$('tjEntityUid'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_tjTimeCreated = $_result.getLong_3wgf2g_k$('tjTimeCreated'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_tjCreationType = $_result.getInt_npc9pd_k$('tjCreationType'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_tjOiUid = $_result.getLong_3wgf2g_k$('tjOiUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_TransferJob_nullCount = _tmp_TransferJob_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_TransferJob_isAllNull = _tmp_TransferJob_nullCount === 10; // Inline function 'kotlin.apply' call var this_0 = new TransferJobAndTotals(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow.....' call this_0.set_totalSize_fm10ve_k$(_tmp_totalSize); this_0.set_transferred_ke07v9_k$(_tmp_transferred); this_0.set_latestErrorStr_c5kaei_k$(_tmp_latestErrorStr); if (!_tmp_TransferJob_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new TransferJob(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobDao_JdbcImpl.findByContentEntryUidWithTotalsAsFlow......' call this_1.set_tjUid_n5ffgr_k$(_tmp_tjUid); this_1.set_tjType_7mlacb_k$(_tmp_tjType); this_1.set_tjStatus_83krdv_k$(_tmp_tjStatus); this_1.set_tjName_x53ltz_k$(_tmp_tjName); this_1.set_tjUuid_13if7t_k$(_tmp_tjUuid); this_1.set_tjTableId_qxjmxa_k$(_tmp_tjTableId); this_1.set_tjEntityUid_kykjj0_k$(_tmp_tjEntityUid); this_1.set_tjTimeCreated_pcsbey_k$(_tmp_tjTimeCreated); this_1.set_tjCreationType_weqt38_k$(_tmp_tjCreationType); this_1.set_tjOiUid_oaj4ez_k$(_tmp_tjOiUid); this_0.set_transferJob_oljvx_k$(this_1); } return this_0; }; } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$jobType_1 = $jobType; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).invoke_54b9nz_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_54b9nz_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobType_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda(this.$contentEntryUid_1, this.$jobType_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0($contentEntryUid, $jobType, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda($contentEntryUid, $jobType, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_54b9nz_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda$lambda(_result) { var tmp = new Long(0, 0); return mapNextRow(_result, tmp, TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda$lambda$lambda(_result)); } function TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO TransferJob (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).bindPreparedStmtToEntity_gmqbv_k$ = function (stmt, entity) { if (entity.get_tjUid_iz32s1_k$() === 0) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setInt_c72a8z_k$(1, entity.get_tjUid_iz32s1_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_tjType_jyqnkp_k$()); stmt.setInt_c72a8z_k$(3, entity.get_tjStatus_7h2pxt_k$()); stmt.setString_2gt7ua_k$(4, entity.get_tjName_jymbsa_k$()); stmt.setString_2gt7ua_k$(5, entity.get_tjUuid_jyr7fe_k$()); stmt.setInt_c72a8z_k$(6, entity.get_tjTableId_oaxytm_k$()); stmt.setLong_j1sybo_k$(7, entity.get_tjEntityUid_7lvr5a_k$()); stmt.setLong_j1sybo_k$(8, entity.get_tjTimeCreated_2k23fg_k$()); stmt.setInt_c72a8z_k$(9, entity.get_tjCreationType_1atu3s_k$()); stmt.setLong_j1sybo_k$(10, entity.get_tjOiUid_kg3xk9_k$()); }; protoOf(TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_gmqbv_k$(stmt, entity instanceof TransferJob ? entity : THROW_CCE()); }; function TransferJobDao_JdbcImpl$findByUid$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByUid$slambda).invoke_5a6am1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5a6am1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findByUid$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$findByUid$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByUid$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5a6am1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $jobUid, resultContinuation) { this.this$0__1 = this$0; this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda).invoke_x2vo8j_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_x2vo8j_k$($completion); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT TransferJob.*\n FROM TransferJob\n WHERE TransferJob.tjUid = ?\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, TransferJobDao_JdbcImpl$findByUidAsFlow$slambda$slambda_0(this.$jobUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByUidAsFlow$slambda).create_d196fn_k$ = function (completion) { return new TransferJobDao_JdbcImpl$findByUidAsFlow$slambda(this.this$0__1, this.$jobUid_1, completion); }; function TransferJobDao_JdbcImpl$findByUidAsFlow$slambda_0(this$0, $jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByUidAsFlow$slambda(this$0, $jobUid, resultContinuation); var l = function ($completion) { return i.invoke_x2vo8j_k$($completion); }; l.$arity = 0; return l; } function TransferJobDao_JdbcImpl$updateStatus$slambda($status, $jobUid, resultContinuation) { this.$status_1 = $status; this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$updateStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$updateStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$updateStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$updateStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$updateStatus$slambda(this.$status_1, this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$updateStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$updateStatus$slambda_0($status, $jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$updateStatus$slambda($status, $jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$getJobStatus$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$getJobStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$getJobStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$getJobStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$getJobStatus$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$getJobStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$getJobStatus$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$getJobStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$getJobStatus$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$getJobStatus$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda($tableId, $entityUid, resultContinuation) { this.$tableId_1 = $tableId; this.$entityUid_1 = $entityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda).invoke_rr5wjg_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_rr5wjg_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$tableId_1); this._stmt_1.setLong_j1sybo_k$(2, this.$entityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda(this.$tableId_1, this.$entityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda_0($tableId, $entityUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda($tableId, $entityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_rr5wjg_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$jobType_1 = $jobType; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).invoke_3a6z5p_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_3a6z5p_k$($completion); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n TransferJobError.tjeErrorStr AS latestErrorStr\n FROM TransferJob\n LEFT JOIN TransferJobError\n ON TransferJobError.tjeId = \n (SELECT TransferJobError.tjeId\n FROM TransferJobError\n WHERE TransferJob.tjStatus = 22\n AND TransferJobError.tjeTjUid = TransferJob.tjUid\n ORDER BY TransferJobError.tjeDismissed DESC \n LIMIT 1)\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = CAST(? AS BIGINT))\n \n AND ( TransferJob.tjStatus < 21\n OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n AND TransferJob.tjType = ? \n ', VOID, VOID, VOID, '\n SELECT TransferJob.*,\n \n (SELECT SUM(TransferJobItem.tjTotalSize)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS totalSize,\n (SELECT SUM(TransferJobItem.tjTransferred)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid) AS transferred \n ,\n TransferJobError.tjeErrorStr AS latestErrorStr\n FROM TransferJob\n LEFT JOIN TransferJobError\n ON TransferJobError.tjeId = \n (SELECT TransferJobError.tjeId\n FROM TransferJobError\n WHERE TransferJob.tjStatus = 22\n AND TransferJobError.tjeTjUid = TransferJob.tjUid\n ORDER BY TransferJobError.tjeDismissed DESC \n LIMIT 1)\n WHERE TransferJob.tjTableId = 738\n AND TransferJob.tjEntityUid IN \n \n (SELECT ContentEntryVersion.cevUid\n FROM ContentEntryVersion\n WHERE ContentEntryVersion.cevContentEntryUid = ?)\n \n AND ( TransferJob.tjStatus < 21\n OR (TransferJobError.tjeErrorStr IS NOT NULL AND NOT TransferJobError.tjeDismissed))\n AND TransferJob.tjType = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda$slambda_0(this.$contentEntryUid_1, this.$jobType_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda).create_d196fn_k$ = function (completion) { return new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this.this$0__1, this.$contentEntryUid_1, this.$jobType_1, completion); }; function TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this$0, $contentEntryUid, $jobType, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda(this$0, $contentEntryUid, $jobType, resultContinuation); var l = function ($completion) { return i.invoke_3a6z5p_k$($completion); }; l.$arity = 0; return l; } function TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda).invoke_5pfha5_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_5pfha5_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda_0($jobUid, resultContinuation) { var i = new TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_5pfha5_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertCOROUTINE$411(_this__u8e3s4, job, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.job_1 = job; } protoOf($insertCOROUTINE$411).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterTransferJob_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.job_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateStatusCOROUTINE$412(_this__u8e3s4, jobUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobUid_1 = jobUid; this.status_1 = status; } protoOf($updateStatusCOROUTINE$412).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJob\n SET tjStatus = ?\n WHERE tjUid = ? \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobDao_JdbcImpl$updateStatus$slambda_0(this.status_1, this.jobUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function TransferJobDao_JdbcImpl(_db) { TransferJobDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterTransferJob_abort_1 = new TransferJobDao_JdbcImpl$_insertAdapterTransferJob_abort$1(this); } protoOf(TransferJobDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(TransferJobDao_JdbcImpl).get__insertAdapterTransferJob_abort_2g7ib_k$ = function () { return this._insertAdapterTransferJob_abort_1; }; protoOf(TransferJobDao_JdbcImpl).insert_9kueoh_k$ = function (job, $completion) { var tmp = new $insertCOROUTINE$411(this, job, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl).findByUid_ot90cz_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT TransferJob.*\n FROM TransferJob\n WHERE TransferJob.tjUid = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobDao_JdbcImpl$findByUid$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobDao_JdbcImpl).findByUidAsFlow_j3fmuw_k$ = function (jobUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJob']; return doorFlow(this._db_1, tmp, TransferJobDao_JdbcImpl$findByUidAsFlow$slambda_0(this, jobUid, null)); }; protoOf(TransferJobDao_JdbcImpl).updateStatus_xnormk_k$ = function (jobUid, status, $completion) { var tmp = new $updateStatusCOROUTINE$412(this, jobUid, status, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobDao_JdbcImpl).getJobStatus_p9cwdi_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT TransferJob.tjStatus\n FROM TransferJob\n WHERE tjUid = ?), 0)\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobDao_JdbcImpl$getJobStatus$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobDao_JdbcImpl).updateStatusIfComplete_rgyde6_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n UPDATE TransferJob\n SET tjStatus = 21\n WHERE tjUid = ?\n AND NOT EXISTS(\n SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = ?\n AND TransferJobItem.tjiStatus != 21) \n ', VOID, VOID, VOID, VOID, false); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobDao_JdbcImpl$updateStatusIfComplete$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobDao_JdbcImpl).findJobByEntityAndTableUid_d6a5mp_k$ = function (tableId, entityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT TransferJob.*\n FROM TransferJob\n WHERE EXISTS(\n SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid\n AND TransferJobItem.tjiTableId = ?\n AND TransferJobItem.tjiEntityUid = CAST(? AS BIGINT)) \n ', VOID, VOID, VOID, '\n SELECT TransferJob.*\n FROM TransferJob\n WHERE EXISTS(\n SELECT TransferJobItem.tjiUid\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = TransferJob.tjUid\n AND TransferJobItem.tjiTableId = ?\n AND TransferJobItem.tjiEntityUid = ?) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobDao_JdbcImpl$findJobByEntityAndTableUid$slambda_0(tableId, entityUid, null), $completion); }; protoOf(TransferJobDao_JdbcImpl).findByContentEntryUidWithTotalsAsFlow_xx462u_k$ = function (contentEntryUid, jobType) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ContentEntryVersion', 'TransferJobItem', 'TransferJobError', 'TransferJob']; return doorFlow(this._db_1, tmp, TransferJobDao_JdbcImpl$findByContentEntryUidWithTotalsAsFlow$slambda_0(this, contentEntryUid, jobType, null)); }; protoOf(TransferJobDao_JdbcImpl).findOfflineItemUidForTransferJobUid_qa4uyd_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COALESCE(\n (SELECT TransferJob.tjOiUid\n FROM TransferJob\n WHERE TransferJob.tjUid = ?), 0)\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobDao_JdbcImpl$findOfflineItemUidForTransferJobUid$slambda_0(jobUid, null), $completion); }; function TransferJobErrorDao() { } function TransferJobErrorDao_JdbcImpl$findByJobId$slambda$lambda(_result) { return mapRows(_result, TransferJobErrorDao_JdbcImpl$findByJobId$slambda$lambda$lambda(_result)); } function TransferJobErrorDao_JdbcImpl$findByJobId$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjeId = $_result.getInt_npc9pd_k$('tjeId'); var _tmp_tjeTjUid = $_result.getInt_npc9pd_k$('tjeTjUid'); var _tmp_tjeTime = $_result.getLong_3wgf2g_k$('tjeTime'); var _tmp_tjeErrorStr = $_result.getString_gb1pt9_k$('tjeErrorStr'); var _tmp_tjeDismissed = $_result.getBoolean_xz3hoo_k$('tjeDismissed'); // Inline function 'kotlin.apply' call var this_0 = new TransferJobError(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobErrorDao_JdbcImpl.findByJobId....' call this_0.set_tjeId_6xtfx7_k$(_tmp_tjeId); this_0.set_tjeTjUid_v9j1hc_k$(_tmp_tjeTjUid); this_0.set_tjeTime_zfk0cf_k$(_tmp_tjeTime); this_0.set_tjeErrorStr_i9bjvg_k$(_tmp_tjeErrorStr); this_0.set_tjeDismissed_xr611e_k$(_tmp_tjeDismissed); return this_0; }; } function TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO TransferJobError (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) VALUES(?, ?, ?, ?, ?)'; }; protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).bindPreparedStmtToEntity_dhbrt5_k$ = function (stmt, entity) { if (entity.get_tjeId_iz3dvl_k$() === 0) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setInt_c72a8z_k$(1, entity.get_tjeId_iz3dvl_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_tjeTjUid_fifln8_k$()); stmt.setLong_j1sybo_k$(3, entity.get_tjeTime_k4dgb1_k$()); stmt.setString_2gt7ua_k$(4, entity.get_tjeErrorStr_ox66c1_k$()); stmt.setBoolean_pzdm1v_k$(5, entity.get_tjeDismissed_5yod8j_k$()); }; protoOf(TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_dhbrt5_k$(stmt, entity instanceof TransferJobError ? entity : THROW_CCE()); }; function TransferJobErrorDao_JdbcImpl$findByJobId$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobErrorDao_JdbcImpl$findByJobId$slambda).invoke_sx170e_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobErrorDao_JdbcImpl$findByJobId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_sx170e_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobErrorDao_JdbcImpl$findByJobId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobErrorDao_JdbcImpl$findByJobId$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobErrorDao_JdbcImpl$findByJobId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobErrorDao_JdbcImpl$findByJobId$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobErrorDao_JdbcImpl$findByJobId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobErrorDao_JdbcImpl$findByJobId$slambda_0($jobUid, resultContinuation) { var i = new TransferJobErrorDao_JdbcImpl$findByJobId$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_sx170e_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda($dismissed, $jobUid, resultContinuation) { this.$dismissed_1 = $dismissed; this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$dismissed_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda(this.$dismissed_1, this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda_0($dismissed, $jobUid, resultContinuation) { var i = new TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda($dismissed, $jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $dismissErrorByJobIdCOROUTINE$413(_this__u8e3s4, jobUid, dismissed, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobUid_1 = jobUid; this.dismissed_1 = dismissed; } protoOf($dismissErrorByJobIdCOROUTINE$413).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobError\n SET tjeDismissed = ?\n WHERE TransferJobError.tjeTjUid = ? \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobErrorDao_JdbcImpl$dismissErrorByJobId$slambda_0(this.dismissed_1, this.jobUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function TransferJobErrorDao_JdbcImpl(_db) { TransferJobErrorDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterTransferJobError_abort_1 = new TransferJobErrorDao_JdbcImpl$_insertAdapterTransferJobError_abort$1(this); } protoOf(TransferJobErrorDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(TransferJobErrorDao_JdbcImpl).get__insertAdapterTransferJobError_abort_b4ygl5_k$ = function () { return this._insertAdapterTransferJobError_abort_1; }; protoOf(TransferJobErrorDao_JdbcImpl).insertAsync_5v2l2n_k$ = function (error, $completion) { return this._insertAdapterTransferJobError_abort_1.insertAsync_kic9b7_k$(error, $completion); }; protoOf(TransferJobErrorDao_JdbcImpl).findByJobId_vecahu_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT TransferJobError.*\n FROM TransferJobError\n WHERE TransferJobError.tjeTjUid = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobErrorDao_JdbcImpl$findByJobId$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobErrorDao_JdbcImpl).dismissErrorByJobId_3aq6op_k$ = function (jobUid, dismissed, $completion) { var tmp = new $dismissErrorByJobIdCOROUTINE$413(this, jobUid, dismissed, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function TransferJobItemDao() { } function TransferJobItemDao_JdbcImpl$findByJobUid$slambda$lambda(_result) { return mapRows(_result, TransferJobItemDao_JdbcImpl$findByJobUid$slambda$lambda$lambda(_result)); } function TransferJobItemDao_JdbcImpl$findByJobUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); // Inline function 'kotlin.apply' call var this_0 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobItemDao_JdbcImpl.findByJobUid....' call this_0.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_0.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_0.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_0.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_0.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_0.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_0.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_0.set_tjiType_zua7c_k$(_tmp_tjiType); this_0.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_0.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_0.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_0.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_0.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_0.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); return this_0; }; } function TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda$lambda(_result) { return mapRows(_result, TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda$lambda$lambda(_result)); } function TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); // Inline function 'kotlin.apply' call var this_0 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobItemDao_JdbcImpl.findPendingByJobUid....' call this_0.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_0.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_0.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_0.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_0.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_0.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_0.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_0.set_tjiType_zua7c_k$(_tmp_tjiType); this_0.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_0.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_0.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_0.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_0.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_0.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); return this_0; }; } function TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda$lambda(_result) { return mapNextRow(_result, 0, TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda$lambda$lambda(_result)); } function TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda$lambda(_result) { return mapRows(_result, TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda$lambda$lambda(_result)); } function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_tjiUid = $_result.getInt_npc9pd_k$('tjiUid'); var _tmp_tjiTjUid = $_result.getInt_npc9pd_k$('tjiTjUid'); var _tmp_tjTotalSize = $_result.getLong_3wgf2g_k$('tjTotalSize'); var _tmp_tjTransferred = $_result.getLong_3wgf2g_k$('tjTransferred'); var _tmp_tjAttemptCount = $_result.getInt_npc9pd_k$('tjAttemptCount'); var _tmp_tjiSrc = $_result.getString_gb1pt9_k$('tjiSrc'); var _tmp_tjiDest = $_result.getString_gb1pt9_k$('tjiDest'); var _tmp_tjiType = $_result.getInt_npc9pd_k$('tjiType'); var _tmp_tjiStatus = $_result.getInt_npc9pd_k$('tjiStatus'); var _tmp_tjiTableId = $_result.getInt_npc9pd_k$('tjiTableId'); var _tmp_tjiEntityUid = $_result.getLong_3wgf2g_k$('tjiEntityUid'); var _tmp_tjiEntityEtag = $_result.getLong_3wgf2g_k$('tjiEntityEtag'); var _tmp_tjiLockIdToRelease = $_result.getLong_3wgf2g_k$('tjiLockIdToRelease'); var _tmp_tjiPartialTmpFile = $_result.getString_gb1pt9_k$('tjiPartialTmpFile'); // Inline function 'kotlin.apply' call var this_0 = new TransferJobItem(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.TransferJobItemDao_JdbcImpl.findByEntityUidList.....' call this_0.set_tjiUid_myc2qa_k$(_tmp_tjiUid); this_0.set_tjiTjUid_udatks_k$(_tmp_tjiTjUid); this_0.set_tjTotalSize_7pxuqc_k$(_tmp_tjTotalSize); this_0.set_tjTransferred_3nl9gr_k$(_tmp_tjTransferred); this_0.set_tjAttemptCount_igjael_k$(_tmp_tjAttemptCount); this_0.set_tjiSrc_jzibvt_k$(_tmp_tjiSrc); this_0.set_tjiDest_cnj5xd_k$(_tmp_tjiDest); this_0.set_tjiType_zua7c_k$(_tmp_tjiType); this_0.set_tjiStatus_vw3q8w_k$(_tmp_tjiStatus); this_0.set_tjiTableId_bnu1h_k$(_tmp_tjiTableId); this_0.set_tjiEntityUid_rwqonb_k$(_tmp_tjiEntityUid); this_0.set_tjiEntityEtag_l7x60g_k$(_tmp_tjiEntityEtag); this_0.set_tjiLockIdToRelease_gx0a0i_k$(_tmp_tjiLockIdToRelease); this_0.set_tjiPartialTmpFile_3ekqa9_k$(_tmp_tjiPartialTmpFile); return this_0; }; } function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda($tableId, $entityUidList, resultContinuation) { this.$tableId_1 = $tableId; this.$entityUidList_1 = $entityUidList; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda).invoke_1gncbt_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gncbt_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$tableId_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$entityUidList_1; this._stmt_1.setArray_61y2p9_k$(2, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda(this.$tableId_1, this.$entityUidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda_0($tableId, $entityUidList, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda($tableId, $entityUidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gncbt_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO TransferJobItem (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).bindPreparedStmtToEntity_xanhlq_k$ = function (stmt, entity) { if (entity.get_tjiUid_jz3bfq_k$() === 0) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setInt_c72a8z_k$(1, entity.get_tjiUid_jz3bfq_k$()); } stmt.setInt_c72a8z_k$(2, entity.get_tjiTjUid_hem380_k$()); stmt.setLong_j1sybo_k$(3, entity.get_tjTotalSize_ab321y_k$()); stmt.setLong_j1sybo_k$(4, entity.get_tjTransferred_bpsx1j_k$()); stmt.setInt_c72a8z_k$(5, entity.get_tjAttemptCount_ojcg69_k$()); stmt.setString_2gt7ua_k$(6, entity.get_tjiSrc_jz3a62_k$()); stmt.setString_2gt7ua_k$(7, entity.get_tjiDest_k2gkj8_k$()); stmt.setInt_c72a8z_k$(8, entity.get_tjiType_k25xzw_k$()); stmt.setInt_c72a8z_k$(9, entity.get_tjiStatus_sz7fvo_k$()); stmt.setInt_c72a8z_k$(10, entity.get_tjiTableId_urzu1r_k$()); stmt.setLong_j1sybo_k$(11, entity.get_tjiEntityUid_lx6if1_k$()); stmt.setLong_j1sybo_k$(12, entity.get_tjiEntityEtag_uq8p6q_k$()); stmt.setLong_j1sybo_k$(13, entity.get_tjiLockIdToRelease_peqr38_k$()); stmt.setString_2gt7ua_k$(14, entity.get_tjiPartialTmpFile_vfy1es_k$()); }; protoOf(TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xanhlq_k$(stmt, entity instanceof TransferJobItem ? entity : THROW_CCE()); }; function TransferJobItemDao_JdbcImpl$findByJobUid$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$findByJobUid$slambda).invoke_1gncbt_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$findByJobUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gncbt_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$findByJobUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobItemDao_JdbcImpl$findByJobUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$findByJobUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$findByJobUid$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$findByJobUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$findByJobUid$slambda_0($jobUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$findByJobUid$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gncbt_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda).invoke_1gncbt_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1gncbt_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda_0($jobUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1gncbt_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation) { this.$transferred_1 = $transferred; this.$jobItemUid_1 = $jobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$transferred_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobItemUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda(this.$transferred_1, this.$jobItemUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0($transferred, $jobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda($transferred, $jobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation) { this.$status_1 = $status; this.$jobItemUid_1 = $jobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobItemUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda(this.$status_1, this.$jobItemUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$updateStatus$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$updateStatus$slambda_0($status, $jobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateStatus$slambda($status, $jobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation) { this.$destNodeId_1 = $destNodeId; this.$transferJobItemUid_1 = $transferJobItemUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$destNodeId_1); this._stmt_1.setInt_c72a8z_k$(2, this.$transferJobItemUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda(this.$destNodeId_1, this.$transferJobItemUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0($destNodeId, $transferJobItemUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda($destNodeId, $transferJobItemUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation) { this.$status_1 = $status; this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$status_1); this._stmt_1.setInt_c72a8z_k$(2, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda(this.$status_1, this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0($status, $jobUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda($status, $jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda($jobUid, resultContinuation) { this.$jobUid_1 = $jobUid; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$jobUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda(this.$jobUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda_0($jobUid, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda($jobUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda(this$0, $tableId, $entityUidList, resultContinuation) { this.this$0__1 = this$0; this.$tableId_1 = $tableId; this.$entityUidList_1 = $entityUidList; CoroutineImpl.call(this, resultContinuation); } protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda).invoke_ut376z_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_ut376z_k$($completion); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT TransferJobItem.*\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTableId = ?\n AND TransferJobItem.tjiEntityUid IN (?)\n ', true, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda$slambda_0(this.$tableId_1, this.$entityUidList_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda).create_d196fn_k$ = function (completion) { return new TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda(this.this$0__1, this.$tableId_1, this.$entityUidList_1, completion); }; function TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda_0(this$0, $tableId, $entityUidList, resultContinuation) { var i = new TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda(this$0, $tableId, $entityUidList, resultContinuation); var l = function ($completion) { return i.invoke_ut376z_k$($completion); }; l.$arity = 0; return l; } function $insertCOROUTINE$414(_this__u8e3s4, item, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.item_1 = item; } protoOf($insertCOROUTINE$414).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterTransferJobItem_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.item_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateTransferredProgressCOROUTINE$415(_this__u8e3s4, jobItemUid, transferred, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobItemUid_1 = jobItemUid; this.transferred_1 = transferred; } protoOf($updateTransferredProgressCOROUTINE$415).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjTransferred = CAST(? AS BIGINT)\n WHERE tjiUid = ?\n ', VOID, VOID, VOID, '\n UPDATE TransferJobItem\n SET tjTransferred = ?\n WHERE tjiUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobItemDao_JdbcImpl$updateTransferredProgress$slambda_0(this.transferred_1, this.jobItemUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateStatusCOROUTINE$416(_this__u8e3s4, jobItemUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobItemUid_1 = jobItemUid; this.status_1 = status; } protoOf($updateStatusCOROUTINE$416).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiStatus = ?\n WHERE tjiUid = ? \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatus$slambda_0(this.status_1, this.jobItemUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417(_this__u8e3s4, destNodeId, transferJobItemUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.destNodeId_1 = destNodeId; this.transferJobItemUid_1 = transferJobItemUid; } protoOf($insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT CAST(? AS BIGINT) AS destNodeId, \n TransferJobItem.tjiTableId AS orTableId,\n TransferJobItem.tjiEntityUid AS orPk1,\n 0 AS orPk2\n FROM TransferJobItem\n WHERE TransferJobItem.tjiUid = ?\n AND TransferJobItem.tjiTableId != 0\n AND TransferJobItem.tjiStatus = 21\n AND NOT EXISTS(\n SELECT OtherJob.tjiUid\n FROM TransferJobItem OtherJob\n WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n AND OtherJob.tjiStatus != 21)\n ', VOID, VOID, VOID, '\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT ? AS destNodeId, \n TransferJobItem.tjiTableId AS orTableId,\n TransferJobItem.tjiEntityUid AS orPk1,\n 0 AS orPk2\n FROM TransferJobItem\n WHERE TransferJobItem.tjiUid = ?\n AND TransferJobItem.tjiTableId != 0\n AND TransferJobItem.tjiStatus = 21\n AND NOT EXISTS(\n SELECT OtherJob.tjiUid\n FROM TransferJobItem OtherJob\n WHERE OtherJob.tjiTableId = TransferJobItem.tjiTableId\n AND OtherJob.tjiEntityUid = TransferJobItem.tjiEntityUid\n AND OtherJob.tjiEntityEtag = TransferJobItem.tjiEntityEtag\n AND OtherJob.tjiStatus != 21)\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobItemDao_JdbcImpl$insertOutgoingReplicationForTransferJobItemIfDone$slambda_0(this.destNodeId_1, this.transferJobItemUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateStatusIfNotCompleteForAllInJobCOROUTINE$418(_this__u8e3s4, jobUid, status, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.jobUid_1 = jobUid; this.status_1 = status; } protoOf($updateStatusIfNotCompleteForAllInJobCOROUTINE$418).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE TransferJobItem\n SET tjiStatus = ?\n WHERE tjiTjUid = ?\n AND tjiStatus != 21 \n ', VOID, VOID, VOID, VOID, false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, TransferJobItemDao_JdbcImpl$updateStatusIfNotCompleteForAllInJob$slambda_0(this.status_1, this.jobUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function TransferJobItemDao_JdbcImpl(_db) { TransferJobItemDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterTransferJobItem_abort_1 = new TransferJobItemDao_JdbcImpl$_insertAdapterTransferJobItem_abort$1(this); } protoOf(TransferJobItemDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(TransferJobItemDao_JdbcImpl).get__insertAdapterTransferJobItem_abort_rwak22_k$ = function () { return this._insertAdapterTransferJobItem_abort_1; }; protoOf(TransferJobItemDao_JdbcImpl).insertList_k5d7r0_k$ = function (items, $completion) { return this._insertAdapterTransferJobItem_abort_1.insertListAsync_it2cbm_k$(items, $completion); }; protoOf(TransferJobItemDao_JdbcImpl).insert_8ku336_k$ = function (item, $completion) { var tmp = new $insertCOROUTINE$414(this, item, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl).findByJobUid_42u5wy_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT TransferJobItem.*\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = ?\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobItemDao_JdbcImpl$findByJobUid$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobItemDao_JdbcImpl).findPendingByJobUid_75n9g3_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT TransferJobItem.*\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = ?\n AND TransferJobItem.tjiStatus < 21\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobItemDao_JdbcImpl$findPendingByJobUid$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobItemDao_JdbcImpl).updateTransferredProgress_vpanex_k$ = function (jobItemUid, transferred, $completion) { var tmp = new $updateTransferredProgressCOROUTINE$415(this, jobItemUid, transferred, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl).updateStatus_xnormk_k$ = function (jobItemUid, status, $completion) { var tmp = new $updateStatusCOROUTINE$416(this, jobItemUid, status, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl).insertOutgoingReplicationForTransferJobItemIfDone_pia14b_k$ = function (destNodeId, transferJobItemUid, $completion) { var tmp = new $insertOutgoingReplicationForTransferJobItemIfDoneCOROUTINE$417(this, destNodeId, transferJobItemUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl).updateStatusIfNotCompleteForAllInJob_3rzg51_k$ = function (jobUid, status, $completion) { var tmp = new $updateStatusIfNotCompleteForAllInJobCOROUTINE$418(this, jobUid, status, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(TransferJobItemDao_JdbcImpl).findNumberJobItemsNotComplete_1ba9aw_k$ = function (jobUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COUNT(*)\n FROM TransferJobItem\n WHERE TransferJobItem.tjiTjUid = ?\n AND TransferjobItem.tjiStatus != 21\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, TransferJobItemDao_JdbcImpl$findNumberJobItemsNotComplete$slambda_0(jobUid, null), $completion); }; protoOf(TransferJobItemDao_JdbcImpl).findByEntityUidList_tujek3_k$ = function (entityUidList, tableId) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['TransferJobItem']; return doorFlow(this._db_1, tmp, TransferJobItemDao_JdbcImpl$findByEntityUidList$slambda_0(this, tableId, entityUidList, null)); }; function UserSessionDao() { } function _get__db__e63s44_50($this) { return $this._db_1; } function _get__dao__d2kw60_48($this) { return $this._dao_1; } function $insertSessionCOROUTINE$419(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.session_1 = session; } protoOf($insertSessionCOROUTINE$419).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.session_1.get_usUid_izsm95_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(679, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.session_1.set_usUid_uz0ydl_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.session_1.set_usLct_vosbms_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertSession_qt18s4_k$(this.session_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return this.session_1.get_usUid_izsm95_k$(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function UserSessionDao_DoorWrapper(_db, _dao) { UserSessionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(UserSessionDao_DoorWrapper).insertSession_qt18s4_k$ = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$419(this, session, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_DoorWrapper).findSessionsByPerson_h8478d_k$ = function (personUid, $completion) { return this._dao_1.findSessionsByPerson_h8478d_k$(personUid, $completion); }; protoOf(UserSessionDao_DoorWrapper).findAllLocalSessionsLive_oahd04_k$ = function () { return this._dao_1.findAllLocalSessionsLive_oahd04_k$(); }; protoOf(UserSessionDao_DoorWrapper).findAllLocalSessionsAsync_cfwi87_k$ = function ($completion) { return this._dao_1.findAllLocalSessionsAsync_cfwi87_k$($completion); }; protoOf(UserSessionDao_DoorWrapper).findLocalSessionByUsername_86u3xs_k$ = function (username, $completion) { return this._dao_1.findLocalSessionByUsername_86u3xs_k$(username, $completion); }; protoOf(UserSessionDao_DoorWrapper).countAllLocalSessionsAsync_ffg7ox_k$ = function (maxDateOfBirth, $completion) { return this._dao_1.countAllLocalSessionsAsync_ffg7ox_k$(maxDateOfBirth, $completion); }; protoOf(UserSessionDao_DoorWrapper).endSession_dg3idg_k$ = function (sessionUid, newStatus, reason, endTime, $completion) { return this._dao_1.endSession_dg3idg_k$(sessionUid, newStatus, reason, endTime, $completion); }; protoOf(UserSessionDao_DoorWrapper).findByUidLive_jdot2a_k$ = function (sessionUid) { return this._dao_1.findByUidLive_jdot2a_k$(sessionUid); }; protoOf(UserSessionDao_DoorWrapper).endOtherSessions_kp48uz_k$ = function (personUid, exemptNodeId, newStatus, reason, changeTime, $completion) { return this._dao_1.endOtherSessions_kp48uz_k$(personUid, exemptNodeId, newStatus, reason, changeTime, $completion); }; protoOf(UserSessionDao_DoorWrapper).findActiveNodeIdsByPersonUids_d6v2rl_k$ = function (personUids, $completion) { return this._dao_1.findActiveNodeIdsByPersonUids_d6v2rl_k$(personUids, $completion); }; protoOf(UserSessionDao_DoorWrapper).findActiveNodesIdsByGroupUids_i539ge_k$ = function (groupUids, $completion) { return this._dao_1.findActiveNodesIdsByGroupUids_i539ge_k$(groupUids, $completion); }; protoOf(UserSessionDao_DoorWrapper).countActiveSessionsForUserAndNode_pm9nge_k$ = function (personUid, nodeId, $completion) { return this._dao_1.countActiveSessionsForUserAndNode_pm9nge_k$(personUid, nodeId, $completion); }; function UserSessionDao_JdbcImpl$findSessionsByPerson$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findSessionsByPerson$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findSessionsByPerson$slambda$lambda$lambda($_result) { return function (it) { var _tmp_usUid = $_result.getLong_3wgf2g_k$('usUid'); var _tmp_usPcsn = $_result.getLong_3wgf2g_k$('usPcsn'); var _tmp_usLcsn = $_result.getLong_3wgf2g_k$('usLcsn'); var _tmp_usLcb = $_result.getLong_3wgf2g_k$('usLcb'); var _tmp_usLct = $_result.getLong_3wgf2g_k$('usLct'); var _tmp_usPersonUid = $_result.getLong_3wgf2g_k$('usPersonUid'); var _tmp_usClientNodeId = $_result.getLong_3wgf2g_k$('usClientNodeId'); var _tmp_usStartTime = $_result.getLong_3wgf2g_k$('usStartTime'); var _tmp_usEndTime = $_result.getLong_3wgf2g_k$('usEndTime'); var _tmp_usStatus = $_result.getInt_npc9pd_k$('usStatus'); var _tmp_usReason = $_result.getInt_npc9pd_k$('usReason'); var _tmp_usAuth = $_result.getString_gb1pt9_k$('usAuth'); var _tmp_usSessionType = $_result.getInt_npc9pd_k$('usSessionType'); // Inline function 'kotlin.apply' call var this_0 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findSessionsByPerson....' call this_0.set_usUid_uz0ydl_k$(_tmp_usUid); this_0.set_usPcsn_2whoxh_k$(_tmp_usPcsn); this_0.set_usLcsn_209h0x_k$(_tmp_usLcsn); this_0.set_usLcb_lomlg2_k$(_tmp_usLcb); this_0.set_usLct_vosbms_k$(_tmp_usLct); this_0.set_usPersonUid_tlsji_k$(_tmp_usPersonUid); this_0.set_usClientNodeId_ydzvad_k$(_tmp_usClientNodeId); this_0.set_usStartTime_u7c7u2_k$(_tmp_usStartTime); this_0.set_usEndTime_mkqy5r_k$(_tmp_usEndTime); this_0.set_usStatus_1hwltn_k$(_tmp_usStatus); this_0.set_usReason_bwzm6v_k$(_tmp_usReason); this_0.set_usAuth_u14j5g_k$(_tmp_usAuth); this_0.set_usSessionType_diqz59_k$(_tmp_usSessionType); return this_0; }; } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_UserSession_nullCount = 0; var _tmp_usUid = $_result.getLong_3wgf2g_k$('usUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_usPcsn = $_result.getLong_3wgf2g_k$('usPcsn'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_usLcsn = $_result.getLong_3wgf2g_k$('usLcsn'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_usLcb = $_result.getLong_3wgf2g_k$('usLcb'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_usLct = $_result.getLong_3wgf2g_k$('usLct'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_usPersonUid = $_result.getLong_3wgf2g_k$('usPersonUid'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_usClientNodeId = $_result.getLong_3wgf2g_k$('usClientNodeId'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_usStartTime = $_result.getLong_3wgf2g_k$('usStartTime'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_usEndTime = $_result.getLong_3wgf2g_k$('usEndTime'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_usStatus = $_result.getInt_npc9pd_k$('usStatus'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_usReason = $_result.getInt_npc9pd_k$('usReason'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_usAuth = $_result.getString_gb1pt9_k$('usAuth'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_usSessionType = $_result.getInt_npc9pd_k$('usSessionType'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13; // Inline function 'kotlin.apply' call var this_0 = new UserSessionAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive.....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } if (!_tmp_UserSession_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsLive......' call this_3.set_usUid_uz0ydl_k$(_tmp_usUid); this_3.set_usPcsn_2whoxh_k$(_tmp_usPcsn); this_3.set_usLcsn_209h0x_k$(_tmp_usLcsn); this_3.set_usLcb_lomlg2_k$(_tmp_usLcb); this_3.set_usLct_vosbms_k$(_tmp_usLct); this_3.set_usPersonUid_tlsji_k$(_tmp_usPersonUid); this_3.set_usClientNodeId_ydzvad_k$(_tmp_usClientNodeId); this_3.set_usStartTime_u7c7u2_k$(_tmp_usStartTime); this_3.set_usEndTime_mkqy5r_k$(_tmp_usEndTime); this_3.set_usStatus_1hwltn_k$(_tmp_usStatus); this_3.set_usReason_bwzm6v_k$(_tmp_usReason); this_3.set_usAuth_u14j5g_k$(_tmp_usAuth); this_3.set_usSessionType_diqz59_k$(_tmp_usSessionType); this_0.set_userSession_ftoebf_k$(this_3); } return this_0; }; } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).invoke_yz1053_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_yz1053_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_yz1053_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_UserSession_nullCount = 0; var _tmp_usUid = $_result.getLong_3wgf2g_k$('usUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_usPcsn = $_result.getLong_3wgf2g_k$('usPcsn'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_usLcsn = $_result.getLong_3wgf2g_k$('usLcsn'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_usLcb = $_result.getLong_3wgf2g_k$('usLcb'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_usLct = $_result.getLong_3wgf2g_k$('usLct'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_usPersonUid = $_result.getLong_3wgf2g_k$('usPersonUid'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_usClientNodeId = $_result.getLong_3wgf2g_k$('usClientNodeId'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_usStartTime = $_result.getLong_3wgf2g_k$('usStartTime'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_usEndTime = $_result.getLong_3wgf2g_k$('usEndTime'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_usStatus = $_result.getInt_npc9pd_k$('usStatus'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_usReason = $_result.getInt_npc9pd_k$('usReason'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_usAuth = $_result.getString_gb1pt9_k$('usAuth'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_usSessionType = $_result.getInt_npc9pd_k$('usSessionType'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13; // Inline function 'kotlin.apply' call var this_0 = new UserSessionAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } if (!_tmp_UserSession_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findAllLocalSessionsAsync.....' call this_3.set_usUid_uz0ydl_k$(_tmp_usUid); this_3.set_usPcsn_2whoxh_k$(_tmp_usPcsn); this_3.set_usLcsn_209h0x_k$(_tmp_usLcsn); this_3.set_usLcb_lomlg2_k$(_tmp_usLcb); this_3.set_usLct_vosbms_k$(_tmp_usLct); this_3.set_usPersonUid_tlsji_k$(_tmp_usPersonUid); this_3.set_usClientNodeId_ydzvad_k$(_tmp_usClientNodeId); this_3.set_usStartTime_u7c7u2_k$(_tmp_usStartTime); this_3.set_usEndTime_mkqy5r_k$(_tmp_usEndTime); this_3.set_usStatus_1hwltn_k$(_tmp_usStatus); this_3.set_usReason_bwzm6v_k$(_tmp_usReason); this_3.set_usAuth_u14j5g_k$(_tmp_usAuth); this_3.set_usSessionType_diqz59_k$(_tmp_usSessionType); this_0.set_userSession_ftoebf_k$(this_3); } return this_0; }; } function UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda$lambda(_result) { return mapNextRow(_result, null, UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda$lambda$lambda($_result) { return function (it) { var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; var _tmp_UserSession_nullCount = 0; var _tmp_usUid = $_result.getLong_3wgf2g_k$('usUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_usPcsn = $_result.getLong_3wgf2g_k$('usPcsn'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_usLcsn = $_result.getLong_3wgf2g_k$('usLcsn'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_usLcb = $_result.getLong_3wgf2g_k$('usLcb'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_usLct = $_result.getLong_3wgf2g_k$('usLct'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_usPersonUid = $_result.getLong_3wgf2g_k$('usPersonUid'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_usClientNodeId = $_result.getLong_3wgf2g_k$('usClientNodeId'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_usStartTime = $_result.getLong_3wgf2g_k$('usStartTime'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_usEndTime = $_result.getLong_3wgf2g_k$('usEndTime'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_usStatus = $_result.getInt_npc9pd_k$('usStatus'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_usReason = $_result.getInt_npc9pd_k$('usReason'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_usAuth = $_result.getString_gb1pt9_k$('usAuth'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_usSessionType = $_result.getInt_npc9pd_k$('usSessionType'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_UserSession_nullCount = _tmp_UserSession_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_UserSession_isAllNull = _tmp_UserSession_nullCount === 13; // Inline function 'kotlin.apply' call var this_0 = new UserSessionAndPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findLocalSessionByUsername....' call if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findLocalSessionByUsername.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findLocalSessionByUsername.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_personPicture_c5dce7_k$(this_2); } if (!_tmp_UserSession_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findLocalSessionByUsername.....' call this_3.set_usUid_uz0ydl_k$(_tmp_usUid); this_3.set_usPcsn_2whoxh_k$(_tmp_usPcsn); this_3.set_usLcsn_209h0x_k$(_tmp_usLcsn); this_3.set_usLcb_lomlg2_k$(_tmp_usLcb); this_3.set_usLct_vosbms_k$(_tmp_usLct); this_3.set_usPersonUid_tlsji_k$(_tmp_usPersonUid); this_3.set_usClientNodeId_ydzvad_k$(_tmp_usClientNodeId); this_3.set_usStartTime_u7c7u2_k$(_tmp_usStartTime); this_3.set_usEndTime_mkqy5r_k$(_tmp_usEndTime); this_3.set_usStatus_1hwltn_k$(_tmp_usStatus); this_3.set_usReason_bwzm6v_k$(_tmp_usReason); this_3.set_usAuth_u14j5g_k$(_tmp_usAuth); this_3.set_usSessionType_diqz59_k$(_tmp_usSessionType); this_0.set_userSession_ftoebf_k$(this_3); } return this_0; }; } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda(_result) { return mapNextRow(_result, 0, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_usUid = $_result.getLong_3wgf2g_k$('usUid'); var _tmp_usPcsn = $_result.getLong_3wgf2g_k$('usPcsn'); var _tmp_usLcsn = $_result.getLong_3wgf2g_k$('usLcsn'); var _tmp_usLcb = $_result.getLong_3wgf2g_k$('usLcb'); var _tmp_usLct = $_result.getLong_3wgf2g_k$('usLct'); var _tmp_usPersonUid = $_result.getLong_3wgf2g_k$('usPersonUid'); var _tmp_usClientNodeId = $_result.getLong_3wgf2g_k$('usClientNodeId'); var _tmp_usStartTime = $_result.getLong_3wgf2g_k$('usStartTime'); var _tmp_usEndTime = $_result.getLong_3wgf2g_k$('usEndTime'); var _tmp_usStatus = $_result.getInt_npc9pd_k$('usStatus'); var _tmp_usReason = $_result.getInt_npc9pd_k$('usReason'); var _tmp_usAuth = $_result.getString_gb1pt9_k$('usAuth'); var _tmp_usSessionType = $_result.getInt_npc9pd_k$('usSessionType'); // Inline function 'kotlin.apply' call var this_0 = new UserSession(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.UserSessionDao_JdbcImpl.findByUidLive.....' call this_0.set_usUid_uz0ydl_k$(_tmp_usUid); this_0.set_usPcsn_2whoxh_k$(_tmp_usPcsn); this_0.set_usLcsn_209h0x_k$(_tmp_usLcsn); this_0.set_usLcb_lomlg2_k$(_tmp_usLcb); this_0.set_usLct_vosbms_k$(_tmp_usLct); this_0.set_usPersonUid_tlsji_k$(_tmp_usPersonUid); this_0.set_usClientNodeId_ydzvad_k$(_tmp_usClientNodeId); this_0.set_usStartTime_u7c7u2_k$(_tmp_usStartTime); this_0.set_usEndTime_mkqy5r_k$(_tmp_usEndTime); this_0.set_usStatus_1hwltn_k$(_tmp_usStatus); this_0.set_usReason_bwzm6v_k$(_tmp_usReason); this_0.set_usAuth_u14j5g_k$(_tmp_usAuth); this_0.set_usSessionType_diqz59_k$(_tmp_usSessionType); return this_0; }; } function UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda($sessionUid, resultContinuation) { this.$sessionUid_1 = $sessionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_koozde_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_koozde_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$sessionUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda(this.$sessionUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda_0($sessionUid, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda($sessionUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_koozde_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda$lambda(_result) { return mapRows(_result, UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda$lambda(_result) { return mapNextRow(_result, 0, UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda$lambda$lambda(_result)); } function UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).bindPreparedStmtToEntity_phnz6s_k$ = function (stmt, entity) { if (entity.get_usUid_izsm95_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_usUid_izsm95_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_usPcsn_kknf4l_k$()); stmt.setLong_j1sybo_k$(3, entity.get_usLcsn_kkkv6h_k$()); stmt.setLong_j1sybo_k$(4, entity.get_usLcb_izsffo_k$()); stmt.setLong_j1sybo_k$(5, entity.get_usLct_izsfg6_k$()); stmt.setLong_j1sybo_k$(6, entity.get_usPersonUid_p037ak_k$()); stmt.setLong_j1sybo_k$(7, entity.get_usClientNodeId_yobpw1_k$()); stmt.setLong_j1sybo_k$(8, entity.get_usStartTime_3anvo8_k$()); stmt.setLong_j1sybo_k$(9, entity.get_usEndTime_v7cna7_k$()); stmt.setInt_c72a8z_k$(10, entity.get_usStatus_qc1n21_k$()); stmt.setInt_c72a8z_k$(11, entity.get_usReason_pmr2vf_k$()); stmt.setString_2gt7ua_k$(12, entity.get_usAuth_kke7ov_k$()); stmt.setInt_c72a8z_k$(13, entity.get_usSessionType_c3pu47_k$()); }; protoOf(UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_phnz6s_k$(stmt, entity instanceof UserSession ? entity : THROW_CCE()); }; function UserSessionDao_JdbcImpl$findSessionsByPerson$slambda($personUid, resultContinuation) { this.$personUid_1 = $personUid; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda).invoke_ccn7s3_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ccn7s3_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findSessionsByPerson$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findSessionsByPerson$slambda(this.$personUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findSessionsByPerson$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findSessionsByPerson$slambda_0($personUid, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findSessionsByPerson$slambda($personUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ccn7s3_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).invoke_fuo1h_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_fuo1h_k$($completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT UserSession.*, Person.*, PersonPicture.*\n FROM UserSession\n JOIN Person \n ON Person.personUid = UserSession.usPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = UserSession.usPersonUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (UserSession.usSessionType & 8) != 8\n ', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda).create_d196fn_k$ = function (completion) { return new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this.this$0__1, completion); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this$0, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_fuo1h_k$($completion); }; l.$arity = 0; return l; } function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).invoke_yz1053_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_yz1053_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(resultContinuation) { var i = new UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_yz1053_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda($username, resultContinuation) { this.$username_1 = $username; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda).invoke_8qrwby_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_8qrwby_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$username_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda(this.$username_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda_0($username, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda($username, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_8qrwby_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation) { this.$maxDateOfBirth_1 = $maxDateOfBirth; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$maxDateOfBirth_1); this._stmt_1.setLong_j1sybo_k$(2, this.$maxDateOfBirth_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda(this.$maxDateOfBirth_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0($maxDateOfBirth, resultContinuation) { var i = new UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda($maxDateOfBirth, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation) { this.$newStatus_1 = $newStatus; this.$reason_1 = $reason; this.$endTime_1 = $endTime; this.$sessionUid_1 = $sessionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$endSession$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$newStatus_1); this._stmt_1.setInt_c72a8z_k$(2, this.$reason_1); this._stmt_1.setLong_j1sybo_k$(3, this.$endTime_1); this._stmt_1.setLong_j1sybo_k$(4, this.$endTime_1); this._stmt_1.setLong_j1sybo_k$(5, this.$sessionUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$endSession$slambda(this.$newStatus_1, this.$reason_1, this.$endTime_1, this.$sessionUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$endSession$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$endSession$slambda_0($newStatus, $reason, $endTime, $sessionUid, resultContinuation) { var i = new UserSessionDao_JdbcImpl$endSession$slambda($newStatus, $reason, $endTime, $sessionUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findByUidLive$slambda(this$0, $sessionUid, resultContinuation) { this.this$0__1 = this$0; this.$sessionUid_1 = $sessionUid; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda).invoke_hoczh6_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_hoczh6_k$($completion); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n SELECT UserSession.*\n FROM UserSession\n WHERE UserSession.usUid = CAST(? AS BIGINT)\n LIMIT 1\n ', VOID, VOID, VOID, '\n SELECT UserSession.*\n FROM UserSession\n WHERE UserSession.usUid = ?\n LIMIT 1\n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, UserSessionDao_JdbcImpl$findByUidLive$slambda$slambda_0(this.$sessionUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findByUidLive$slambda).create_d196fn_k$ = function (completion) { return new UserSessionDao_JdbcImpl$findByUidLive$slambda(this.this$0__1, this.$sessionUid_1, completion); }; function UserSessionDao_JdbcImpl$findByUidLive$slambda_0(this$0, $sessionUid, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findByUidLive$slambda(this$0, $sessionUid, resultContinuation); var l = function ($completion) { return i.invoke_hoczh6_k$($completion); }; l.$arity = 0; return l; } function UserSessionDao_JdbcImpl$endOtherSessions$slambda($newStatus, $reason, $changeTime, $personUid, $exemptNodeId, resultContinuation) { this.$newStatus_1 = $newStatus; this.$reason_1 = $reason; this.$changeTime_1 = $changeTime; this.$personUid_1 = $personUid; this.$exemptNodeId_1 = $exemptNodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$endOtherSessions$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$endOtherSessions$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$endOtherSessions$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setInt_c72a8z_k$(1, this.$newStatus_1); this._stmt_1.setInt_c72a8z_k$(2, this.$reason_1); this._stmt_1.setLong_j1sybo_k$(3, this.$changeTime_1); this._stmt_1.setLong_j1sybo_k$(4, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$exemptNodeId_1); this._stmt_1.setInt_c72a8z_k$(6, this.$newStatus_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$endOtherSessions$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$endOtherSessions$slambda(this.$newStatus_1, this.$reason_1, this.$changeTime_1, this.$personUid_1, this.$exemptNodeId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$endOtherSessions$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$endOtherSessions$slambda_0($newStatus, $reason, $changeTime, $personUid, $exemptNodeId, resultContinuation) { var i = new UserSessionDao_JdbcImpl$endOtherSessions$slambda($newStatus, $reason, $changeTime, $personUid, $exemptNodeId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda($personUids, resultContinuation) { this.$personUids_1 = $personUids; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda).invoke_20grgb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_20grgb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$personUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda(this.$personUids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda_0($personUids, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda($personUids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_20grgb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda($groupUids, resultContinuation) { this.$groupUids_1 = $groupUids; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda).invoke_20grgb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_20grgb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$groupUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda(this.$groupUids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda_0($groupUids, resultContinuation) { var i = new UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda($groupUids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_20grgb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda($personUid, $nodeId, resultContinuation) { this.$personUid_1 = $personUid; this.$nodeId_1 = $nodeId; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$nodeId_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda(this.$personUid_1, this.$nodeId_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda_0($personUid, $nodeId, resultContinuation) { var i = new UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda($personUid, $nodeId, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $insertSessionCOROUTINE$420(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.session_1 = session; } protoOf($insertSessionCOROUTINE$420).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._insertAdapterUserSession_abort_1.insertAndReturnIdAsync_jrwaz_k$(this.session_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _retVal = suspendResult; return _retVal; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $endSessionCOROUTINE$421(_this__u8e3s4, sessionUid, newStatus, reason, endTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.sessionUid_1 = sessionUid; this.newStatus_1 = newStatus; this.reason_1 = reason; this.endTime_1 = endTime; } protoOf($endSessionCOROUTINE$421).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usEndTime = CAST(? AS BIGINT),\n usLct = CAST(? AS BIGINT)\n WHERE UserSession.usUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usEndTime = ?,\n usLct = ?\n WHERE UserSession.usUid = ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, UserSessionDao_JdbcImpl$endSession$slambda_0(this.newStatus_1, this.reason_1, this.endTime_1, this.sessionUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $endOtherSessionsCOROUTINE$422(_this__u8e3s4, personUid, exemptNodeId, newStatus, reason, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.exemptNodeId_1 = exemptNodeId; this.newStatus_1 = newStatus; this.reason_1 = reason; this.changeTime_1 = changeTime; } protoOf($endOtherSessionsCOROUTINE$422).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usLct = CAST(? AS BIGINT)\n WHERE usPersonUid = CAST(? AS BIGINT)\n AND usClientNodeId != CAST(? AS BIGINT)\n AND usStatus != ? \n ', VOID, VOID, VOID, '\n UPDATE UserSession\n SET usAuth = null,\n usStatus = ?,\n usReason = ?,\n usLct = ?\n WHERE usPersonUid = ?\n AND usClientNodeId != ?\n AND usStatus != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, UserSessionDao_JdbcImpl$endOtherSessions$slambda_0(this.newStatus_1, this.reason_1, this.changeTime_1, this.personUid_1, this.exemptNodeId_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function UserSessionDao_JdbcImpl(_db) { UserSessionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterUserSession_abort_1 = new UserSessionDao_JdbcImpl$_insertAdapterUserSession_abort$1(this); } protoOf(UserSessionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(UserSessionDao_JdbcImpl).get__insertAdapterUserSession_abort_czqnus_k$ = function () { return this._insertAdapterUserSession_abort_1; }; protoOf(UserSessionDao_JdbcImpl).insertSession_qt18s4_k$ = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$420(this, session, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl).findSessionsByPerson_h8478d_k$ = function (personUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT UserSession.*\n FROM UserSession\n WHERE usPersonUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT UserSession.*\n FROM UserSession\n WHERE usPersonUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$findSessionsByPerson$slambda_0(personUid, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).findAllLocalSessionsLive_oahd04_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['UserSession', 'Person', 'PersonPicture', 'SyncNode']; return doorFlow(this._db_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsLive$slambda_0(this, null)); }; protoOf(UserSessionDao_JdbcImpl).findAllLocalSessionsAsync_cfwi87_k$ = function ($completion) { var tmp = new PreparedStatementConfig('\n SELECT UserSession.*, Person.*, PersonPicture.*\n FROM UserSession\n JOIN Person \n ON Person.personUid = UserSession.usPersonUid\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = UserSession.usPersonUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (UserSession.usSessionType & 8) != 8\n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$findAllLocalSessionsAsync$slambda_0(null), $completion); }; protoOf(UserSessionDao_JdbcImpl).findLocalSessionByUsername_86u3xs_k$ = function (username, $completion) { var tmp = new PreparedStatementConfig('\n SELECT UserSession.*, Person.*\n FROM UserSession\n JOIN Person ON UserSession.usPersonUid = Person.personUid\n WHERE Person.username = ?\n AND UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$findLocalSessionByUsername$slambda_0(username, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).countAllLocalSessionsAsync_ffg7ox_k$ = function (maxDateOfBirth, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COUNT(*)\n FROM UserSession\n JOIN Person \n ON UserSession.usPersonUid = Person.personUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (CAST(? AS BIGINT) = 0 OR Person.dateOfBirth < CAST(? AS BIGINT))\n AND (UserSession.usSessionType & 8) != 8 \n ', VOID, VOID, VOID, '\n SELECT COUNT(*)\n FROM UserSession\n JOIN Person \n ON UserSession.usPersonUid = Person.personUid\n WHERE UserSession.usClientNodeId = (\n SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode\n LIMIT 1), 0))\n AND UserSession.usStatus = 1 \n AND (? = 0 OR Person.dateOfBirth < ?)\n AND (UserSession.usSessionType & 8) != 8 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$countAllLocalSessionsAsync$slambda_0(maxDateOfBirth, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).endSession_dg3idg_k$ = function (sessionUid, newStatus, reason, endTime, $completion) { var tmp = new $endSessionCOROUTINE$421(this, sessionUid, newStatus, reason, endTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl).findByUidLive_jdot2a_k$ = function (sessionUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['UserSession']; return doorFlow(this._db_1, tmp, UserSessionDao_JdbcImpl$findByUidLive$slambda_0(this, sessionUid, null)); }; protoOf(UserSessionDao_JdbcImpl).endOtherSessions_kp48uz_k$ = function (personUid, exemptNodeId, newStatus, reason, changeTime, $completion) { var tmp = new $endOtherSessionsCOROUTINE$422(this, personUid, exemptNodeId, newStatus, reason, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_JdbcImpl).findActiveNodeIdsByPersonUids_d6v2rl_k$ = function (personUids, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DISTINCT UserSession.usClientNodeId\n FROM UserSession\n WHERE UserSession.usPersonUid IN (?)\n AND UserSession.usStatus = 1\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$findActiveNodeIdsByPersonUids$slambda_0(personUids, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).findActiveNodesIdsByGroupUids_i539ge_k$ = function (groupUids, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DISTINCT UserSession.usClientNodeId\n FROM UserSession\n JOIN PersonGroupMember \n ON PersonGroupMember.groupMemberPersonUid = UserSession.usPersonUid\n WHERE PersonGroupMember.groupMemberGroupUid IN (?) \n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$findActiveNodesIdsByGroupUids$slambda_0(groupUids, null), $completion); }; protoOf(UserSessionDao_JdbcImpl).countActiveSessionsForUserAndNode_pm9nge_k$ = function (personUid, nodeId, $completion) { var tmp = new PreparedStatementConfig('\n SELECT COUNT(*)\n FROM UserSession\n WHERE UserSession.usPersonUid = CAST(? AS BIGINT)\n AND UserSession.usStatus = 1\n AND UserSession.usClientNodeId = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT COUNT(*)\n FROM UserSession\n WHERE UserSession.usPersonUid = ?\n AND UserSession.usStatus = 1\n AND UserSession.usClientNodeId = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, UserSessionDao_JdbcImpl$countActiveSessionsForUserAndNode$slambda_0(personUid, nodeId, null), $completion); }; function UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation) { this.this$0__1 = this$0; this.$session_1 = $session; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_Repo$insertSession$slambda).invoke_xy5axj_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo$insertSession$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_xy5axj_k$($completion); }; protoOf(UserSessionDao_Repo$insertSession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertSession_qt18s4_k$(this.$session_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_Repo$insertSession$slambda).create_d196fn_k$ = function (completion) { return new UserSessionDao_Repo$insertSession$slambda(this.this$0__1, this.$session_1, completion); }; function UserSessionDao_Repo$insertSession$slambda_0(this$0, $session, resultContinuation) { var i = new UserSessionDao_Repo$insertSession$slambda(this$0, $session, resultContinuation); var l = function ($completion) { return i.invoke_xy5axj_k$($completion); }; l.$arity = 0; return l; } function UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) { this.this$0__1 = this$0; this.$sessionUid_1 = $sessionUid; this.$newStatus_1 = $newStatus; this.$reason_1 = $reason; this.$endTime_1 = $endTime; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_Repo$endSession$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo$endSession$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(UserSessionDao_Repo$endSession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.endSession_dg3idg_k$(this.$sessionUid_1, this.$newStatus_1, this.$reason_1, this.$endTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_Repo$endSession$slambda).create_d196fn_k$ = function (completion) { return new UserSessionDao_Repo$endSession$slambda(this.this$0__1, this.$sessionUid_1, this.$newStatus_1, this.$reason_1, this.$endTime_1, completion); }; function UserSessionDao_Repo$endSession$slambda_0(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation) { var i = new UserSessionDao_Repo$endSession$slambda(this$0, $sessionUid, $newStatus, $reason, $endTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function UserSessionDao_Repo$endOtherSessions$slambda(this$0, $personUid, $exemptNodeId, $newStatus, $reason, $changeTime, resultContinuation) { this.this$0__1 = this$0; this.$personUid_1 = $personUid; this.$exemptNodeId_1 = $exemptNodeId; this.$newStatus_1 = $newStatus; this.$reason_1 = $reason; this.$changeTime_1 = $changeTime; CoroutineImpl.call(this, resultContinuation); } protoOf(UserSessionDao_Repo$endOtherSessions$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo$endOtherSessions$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(UserSessionDao_Repo$endOtherSessions$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.endOtherSessions_kp48uz_k$(this.$personUid_1, this.$exemptNodeId_1, this.$newStatus_1, this.$reason_1, this.$changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(UserSessionDao_Repo$endOtherSessions$slambda).create_d196fn_k$ = function (completion) { return new UserSessionDao_Repo$endOtherSessions$slambda(this.this$0__1, this.$personUid_1, this.$exemptNodeId_1, this.$newStatus_1, this.$reason_1, this.$changeTime_1, completion); }; function UserSessionDao_Repo$endOtherSessions$slambda_0(this$0, $personUid, $exemptNodeId, $newStatus, $reason, $changeTime, resultContinuation) { var i = new UserSessionDao_Repo$endOtherSessions$slambda(this$0, $personUid, $exemptNodeId, $newStatus, $reason, $changeTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $insertSessionCOROUTINE$423(_this__u8e3s4, session, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.session_1 = session; } protoOf($insertSessionCOROUTINE$423).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = withRepoChangeMonitorAsync(this._this__u8e3s4__1._repo_1, 'UserSession', UserSessionDao_Repo$insertSession$slambda_0(this._this__u8e3s4__1, this.session_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findSessionsByPersonCOROUTINE$424(_this__u8e3s4, personUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; } protoOf($findSessionsByPersonCOROUTINE$424).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findSessionsByPerson_h8478d_k$(this.personUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllLocalSessionsAsyncCOROUTINE$425(_this__u8e3s4, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; } protoOf($findAllLocalSessionsAsyncCOROUTINE$425).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllLocalSessionsAsync_cfwi87_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findLocalSessionByUsernameCOROUTINE$426(_this__u8e3s4, username, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.username_1 = username; } protoOf($findLocalSessionByUsernameCOROUTINE$426).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findLocalSessionByUsername_86u3xs_k$(this.username_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $countAllLocalSessionsAsyncCOROUTINE$427(_this__u8e3s4, maxDateOfBirth, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.maxDateOfBirth_1 = maxDateOfBirth; } protoOf($countAllLocalSessionsAsyncCOROUTINE$427).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.countAllLocalSessionsAsync_ffg7ox_k$(this.maxDateOfBirth_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findActiveNodeIdsByPersonUidsCOROUTINE$428(_this__u8e3s4, personUids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUids_1 = personUids; } protoOf($findActiveNodeIdsByPersonUidsCOROUTINE$428).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActiveNodeIdsByPersonUids_d6v2rl_k$(this.personUids_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findActiveNodesIdsByGroupUidsCOROUTINE$429(_this__u8e3s4, groupUids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupUids_1 = groupUids; } protoOf($findActiveNodesIdsByGroupUidsCOROUTINE$429).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActiveNodesIdsByGroupUids_i539ge_k$(this.groupUids_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $countActiveSessionsForUserAndNodeCOROUTINE$430(_this__u8e3s4, personUid, nodeId, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.personUid_1 = personUid; this.nodeId_1 = nodeId; } protoOf($countActiveSessionsForUserAndNodeCOROUTINE$430).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.countActiveSessionsForUserAndNode_pm9nge_k$(this.personUid_1, this.nodeId_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function UserSessionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { UserSessionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(UserSessionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(UserSessionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(UserSessionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(UserSessionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(UserSessionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(UserSessionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(UserSessionDao_Repo).insertSession_qt18s4_k$ = function (session, $completion) { var tmp = new $insertSessionCOROUTINE$423(this, session, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).findSessionsByPerson_h8478d_k$ = function (personUid, $completion) { var tmp = new $findSessionsByPersonCOROUTINE$424(this, personUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).findAllLocalSessionsLive_oahd04_k$ = function () { var _result = this._dao_1.findAllLocalSessionsLive_oahd04_k$(); return _result; }; protoOf(UserSessionDao_Repo).findAllLocalSessionsAsync_cfwi87_k$ = function ($completion) { var tmp = new $findAllLocalSessionsAsyncCOROUTINE$425(this, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).findLocalSessionByUsername_86u3xs_k$ = function (username, $completion) { var tmp = new $findLocalSessionByUsernameCOROUTINE$426(this, username, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).countAllLocalSessionsAsync_ffg7ox_k$ = function (maxDateOfBirth, $completion) { var tmp = new $countAllLocalSessionsAsyncCOROUTINE$427(this, maxDateOfBirth, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).endSession_dg3idg_k$ = function (sessionUid, newStatus, reason, endTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'UserSession', UserSessionDao_Repo$endSession$slambda_0(this, sessionUid, newStatus, reason, endTime, null), $completion); }; protoOf(UserSessionDao_Repo).findByUidLive_jdot2a_k$ = function (sessionUid) { var _result = this._dao_1.findByUidLive_jdot2a_k$(sessionUid); return _result; }; protoOf(UserSessionDao_Repo).endOtherSessions_kp48uz_k$ = function (personUid, exemptNodeId, newStatus, reason, changeTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'UserSession', UserSessionDao_Repo$endOtherSessions$slambda_0(this, personUid, exemptNodeId, newStatus, reason, changeTime, null), $completion); }; protoOf(UserSessionDao_Repo).findActiveNodeIdsByPersonUids_d6v2rl_k$ = function (personUids, $completion) { var tmp = new $findActiveNodeIdsByPersonUidsCOROUTINE$428(this, personUids, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).findActiveNodesIdsByGroupUids_i539ge_k$ = function (groupUids, $completion) { var tmp = new $findActiveNodesIdsByGroupUidsCOROUTINE$429(this, groupUids, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(UserSessionDao_Repo).countActiveSessionsForUserAndNode_pm9nge_k$ = function (personUid, nodeId, $completion) { var tmp = new $countActiveSessionsForUserAndNodeCOROUTINE$430(this, personUid, nodeId, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ActivityEntityDao() { } function _get__db__e63s44_51($this) { return $this._db_1; } function _get__dao__d2kw60_49($this) { return $this._dao_1; } function ActivityEntityDao_DoorWrapper(_db, _dao) { ActivityEntityDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ActivityEntityDao_DoorWrapper).insertOrIgnoreAsync_r8ju3x_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityEntityDao_DoorWrapper.insertOrIgnoreAsync.' call element.set_actLct_ydmoja_k$(systemTimeInMillis()); } return this._dao_1.insertOrIgnoreAsync_r8ju3x_k$(entities, $completion); }; protoOf(ActivityEntityDao_DoorWrapper).updateIfMoreInfoChanged_dtrbgl_k$ = function (activityUid, actMoreInfo, actLct, $completion) { return this._dao_1.updateIfMoreInfoChanged_dtrbgl_k$(activityUid, actMoreInfo, actLct, $completion); }; protoOf(ActivityEntityDao_DoorWrapper).updateIfNotYetDefined_9uboiw_k$ = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { return this._dao_1.updateIfNotYetDefined_9uboiw_k$(actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion); }; protoOf(ActivityEntityDao_DoorWrapper).findByUidAsync_dc9540_k$ = function (activityUid, $completion) { return this._dao_1.findByUidAsync_dc9540_k$(activityUid, $completion); }; function ActivityEntityDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ActivityEntityDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ActivityEntityDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actUid = $_result.getLong_3wgf2g_k$('actUid'); var _tmp_actIdIri = $_result.getString_gb1pt9_k$('actIdIri'); var _tmp_actType = $_result.getString_gb1pt9_k$('actType'); var _tmp_actMoreInfo = $_result.getString_gb1pt9_k$('actMoreInfo'); var _tmp_actInteractionType = $_result.getInt_npc9pd_k$('actInteractionType'); var _tmp_actCorrectResponsePatterns = $_result.getString_gb1pt9_k$('actCorrectResponsePatterns'); var _tmp_actLct = $_result.getLong_3wgf2g_k$('actLct'); // Inline function 'kotlin.apply' call var this_0 = new ActivityEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityEntityDao_JdbcImpl.findByUidAsync....' call this_0.set_actUid_q0bwkj_k$(_tmp_actUid); this_0.set_actIdIri_5ttk1l_k$(_tmp_actIdIri); this_0.set_actType_a6ke9k_k$(_tmp_actType); this_0.set_actMoreInfo_1gakyp_k$(_tmp_actMoreInfo); this_0.set_actInteractionType_gf7tn3_k$(_tmp_actInteractionType); this_0.set_actCorrectResponsePatterns_j78agu_k$(_tmp_actCorrectResponsePatterns); this_0.set_actLct_ydmoja_k$(_tmp_actLct); return this_0; }; } function ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO ActivityEntity (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).bindPreparedStmtToEntity_dbf3g8_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_actUid_avkynb_k$()); stmt.setString_2gt7ua_k$(2, entity.get_actIdIri_bcbmho_k$()); stmt.setString_2gt7ua_k$(3, entity.get_actType_hyiqkd_k$()); stmt.setString_2gt7ua_k$(4, entity.get_actMoreInfo_gclkvg_k$()); stmt.setInt_c72a8z_k$(5, entity.get_actInteractionType_fg57ul_k$()); stmt.setString_2gt7ua_k$(6, entity.get_actCorrectResponsePatterns_vnfhy3_k$()); stmt.setLong_j1sybo_k$(7, entity.get_actLct_avkruc_k$()); }; protoOf(ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_dbf3g8_k$(stmt, entity instanceof ActivityEntity ? entity : THROW_CCE()); }; function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation) { this.$actMoreInfo_1 = $actMoreInfo; this.$actLct_1 = $actLct; this.$activityUid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$actMoreInfo_1); this._stmt_1.setLong_j1sybo_k$(2, this.$actLct_1); this._stmt_1.setLong_j1sybo_k$(3, this.$activityUid_1); this._stmt_1.setString_2gt7ua_k$(4, this.$actMoreInfo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda(this.$actMoreInfo_1, this.$actLct_1, this.$activityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0($actMoreInfo, $actLct, $activityUid, resultContinuation) { var i = new ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda($actMoreInfo, $actLct, $activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) { this.$actType_1 = $actType; this.$actMoreInfo_1 = $actMoreInfo; this.$actInteractionType_1 = $actInteractionType; this.$actCorrectResponsePatterns_1 = $actCorrectResponsePatterns; this.$actLct_1 = $actLct; this.$actUid_1 = $actUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$actType_1); this._stmt_1.setString_2gt7ua_k$(2, this.$actMoreInfo_1); this._stmt_1.setInt_c72a8z_k$(3, this.$actInteractionType_1); this._stmt_1.setString_2gt7ua_k$(4, this.$actCorrectResponsePatterns_1); this._stmt_1.setLong_j1sybo_k$(5, this.$actLct_1); this._stmt_1.setLong_j1sybo_k$(6, this.$actUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$actUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$actUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$actUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda(this.$actType_1, this.$actMoreInfo_1, this.$actInteractionType_1, this.$actCorrectResponsePatterns_1, this.$actLct_1, this.$actUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation) { var i = new ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda($actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, $actUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityEntityDao_JdbcImpl$findByUidAsync$slambda($activityUid, resultContinuation) { this.$activityUid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda).invoke_nisk9m_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_nisk9m_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$activityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityEntityDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityEntityDao_JdbcImpl$findByUidAsync$slambda(this.$activityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityEntityDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityEntityDao_JdbcImpl$findByUidAsync$slambda_0($activityUid, resultContinuation) { var i = new ActivityEntityDao_JdbcImpl$findByUidAsync$slambda($activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_nisk9m_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateIfMoreInfoChangedCOROUTINE$431(_this__u8e3s4, activityUid, actMoreInfo, actLct, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; this.actMoreInfo_1 = actMoreInfo; this.actLct_1 = actLct; } protoOf($updateIfMoreInfoChangedCOROUTINE$431).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityEntity\n SET actMoreInfo = ?,\n actLct = CAST(? AS BIGINT)\n WHERE actUid = CAST(? AS BIGINT)\n AND actMoreInfo != ? \n ', VOID, VOID, VOID, '\n UPDATE ActivityEntity\n SET actMoreInfo = ?,\n actLct = ?\n WHERE actUid = ?\n AND actMoreInfo != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfMoreInfoChanged$slambda_0(this.actMoreInfo_1, this.actLct_1, this.activityUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateIfNotYetDefinedCOROUTINE$432(_this__u8e3s4, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.actUid_1 = actUid; this.actType_1 = actType; this.actMoreInfo_1 = actMoreInfo; this.actInteractionType_1 = actInteractionType; this.actCorrectResponsePatterns_1 = actCorrectResponsePatterns; this.actLct_1 = actLct; } protoOf($updateIfNotYetDefinedCOROUTINE$432).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityEntity\n SET actType = ?,\n actMoreInfo = ?,\n actInteractionType = ?,\n actCorrectResponsePatterns = ?,\n actLct = CAST(? AS BIGINT)\n WHERE actUid = CAST(? AS BIGINT)\n AND (SELECT ActivityEntityInternal.actType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL\n AND (SELECT ActivityEntityInternal.actInteractionType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) = 0\n AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = CAST(? AS BIGINT)) IS NULL \n ', VOID, VOID, VOID, '\n UPDATE ActivityEntity\n SET actType = ?,\n actMoreInfo = ?,\n actInteractionType = ?,\n actCorrectResponsePatterns = ?,\n actLct = ?\n WHERE actUid = ?\n AND (SELECT ActivityEntityInternal.actType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) IS NULL\n AND (SELECT ActivityEntityInternal.actInteractionType \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) = 0\n AND (SELECT ActivityEntityInternal.actCorrectResponsePatterns \n FROM ActivityEntity ActivityEntityInternal \n WHERE ActivityEntityInternal.actUid = ?) IS NULL \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ActivityEntityDao_JdbcImpl$updateIfNotYetDefined$slambda_0(this.actType_1, this.actMoreInfo_1, this.actInteractionType_1, this.actCorrectResponsePatterns_1, this.actLct_1, this.actUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityEntityDao_JdbcImpl(_db) { ActivityEntityDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterActivityEntity_ignore_1 = new ActivityEntityDao_JdbcImpl$_insertAdapterActivityEntity_ignore$1(this); } protoOf(ActivityEntityDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityEntityDao_JdbcImpl).get__insertAdapterActivityEntity_ignore_bi64in_k$ = function () { return this._insertAdapterActivityEntity_ignore_1; }; protoOf(ActivityEntityDao_JdbcImpl).insertOrIgnoreAsync_r8ju3x_k$ = function (entities, $completion) { return this._insertAdapterActivityEntity_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ActivityEntityDao_JdbcImpl).updateIfMoreInfoChanged_dtrbgl_k$ = function (activityUid, actMoreInfo, actLct, $completion) { var tmp = new $updateIfMoreInfoChangedCOROUTINE$431(this, activityUid, actMoreInfo, actLct, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_JdbcImpl).updateIfNotYetDefined_9uboiw_k$ = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { var tmp = new $updateIfNotYetDefinedCOROUTINE$432(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_JdbcImpl).findByUidAsync_dc9540_k$ = function (activityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityEntity.*\n FROM ActivityEntity\n WHERE ActivityEntity.actUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ActivityEntity.*\n FROM ActivityEntity\n WHERE ActivityEntity.actUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActivityEntityDao_JdbcImpl$findByUidAsync$slambda_0(activityUid, null), $completion); }; function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreAsync_r8ju3x_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda).create_d196fn_k$ = function (completion) { return new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) { this.this$0__1 = this$0; this.$activityUid_1 = $activityUid; this.$actMoreInfo_1 = $actMoreInfo; this.$actLct_1 = $actLct; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateIfMoreInfoChanged_dtrbgl_k$(this.$activityUid_1, this.$actMoreInfo_1, this.$actLct_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda).create_d196fn_k$ = function (completion) { return new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this.this$0__1, this.$activityUid_1, this.$actMoreInfo_1, this.$actLct_1, completion); }; function ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation) { var i = new ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda(this$0, $activityUid, $actMoreInfo, $actLct, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) { this.this$0__1 = this$0; this.$actUid_1 = $actUid; this.$actType_1 = $actType; this.$actMoreInfo_1 = $actMoreInfo; this.$actInteractionType_1 = $actInteractionType; this.$actCorrectResponsePatterns_1 = $actCorrectResponsePatterns; this.$actLct_1 = $actLct; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateIfNotYetDefined_9uboiw_k$(this.$actUid_1, this.$actType_1, this.$actMoreInfo_1, this.$actInteractionType_1, this.$actCorrectResponsePatterns_1, this.$actLct_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityEntityDao_Repo$updateIfNotYetDefined$slambda).create_d196fn_k$ = function (completion) { return new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this.this$0__1, this.$actUid_1, this.$actType_1, this.$actMoreInfo_1, this.$actInteractionType_1, this.$actCorrectResponsePatterns_1, this.$actLct_1, completion); }; function ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation) { var i = new ActivityEntityDao_Repo$updateIfNotYetDefined$slambda(this$0, $actUid, $actType, $actMoreInfo, $actInteractionType, $actCorrectResponsePatterns, $actLct, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$433(_this__u8e3s4, activityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; } protoOf($findByUidAsyncCOROUTINE$433).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_dc9540_k$(this.activityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityEntityDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ActivityEntityDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityEntityDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ActivityEntityDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ActivityEntityDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ActivityEntityDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ActivityEntityDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ActivityEntityDao_Repo).insertOrIgnoreAsync_r8ju3x_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityEntity', ActivityEntityDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActivityEntityDao_Repo).updateIfMoreInfoChanged_dtrbgl_k$ = function (activityUid, actMoreInfo, actLct, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfMoreInfoChanged$slambda_0(this, activityUid, actMoreInfo, actLct, null), $completion); }; protoOf(ActivityEntityDao_Repo).updateIfNotYetDefined_9uboiw_k$ = function (actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityEntity', ActivityEntityDao_Repo$updateIfNotYetDefined$slambda_0(this, actUid, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, null), $completion); }; protoOf(ActivityEntityDao_Repo).findByUidAsync_dc9540_k$ = function (activityUid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$433(this, activityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ActivityExtensionDao() { } function _get__db__e63s44_52($this) { return $this._db_1; } function _get__dao__d2kw60_50($this) { return $this._dao_1; } function ActivityExtensionDao_DoorWrapper(_db, _dao) { ActivityExtensionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ActivityExtensionDao_DoorWrapper).upsertListAsync_9ba3gt_k$ = function (list, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = list.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityExtensionDao_DoorWrapper.upsertListAsync.' call element.set_aeeLastMod_aeo67e_k$(systemTimeInMillis()); } return this._dao_1.upsertListAsync_9ba3gt_k$(list, $completion); }; protoOf(ActivityExtensionDao_DoorWrapper).findAllByActivityUid_hzb2fm_k$ = function (activityUid, $completion) { return this._dao_1.findAllByActivityUid_hzb2fm_k$(activityUid, $completion); }; function ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda$lambda(_result) { return mapRows(_result, ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda(_result)); } function ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_aeeActivityUid = $_result.getLong_3wgf2g_k$('aeeActivityUid'); var _tmp_aeeKeyHash = $_result.getLong_3wgf2g_k$('aeeKeyHash'); var _tmp_aeeKey = $_result.getString_gb1pt9_k$('aeeKey'); var _tmp_aeeJson = $_result.getString_gb1pt9_k$('aeeJson'); var _tmp_aeeLastMod = $_result.getLong_3wgf2g_k$('aeeLastMod'); var _tmp_aeeIsDeleted = $_result.getBoolean_xz3hoo_k$('aeeIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new ActivityExtensionEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityExtensionDao_JdbcImpl.findAllByActivityUid....' call this_0.set_aeeActivityUid_enlk3l_k$(_tmp_aeeActivityUid); this_0.set_aeeKeyHash_4zn2yz_k$(_tmp_aeeKeyHash); this_0.set_aeeKey_kxecuc_k$(_tmp_aeeKey); this_0.set_aeeJson_m69skr_k$(_tmp_aeeJson); this_0.set_aeeLastMod_aeo67e_k$(_tmp_aeeLastMod); this_0.set_aeeIsDeleted_xn2fkm_k$(_tmp_aeeIsDeleted); return this_0; }; } function ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ActivityExtensionEntity (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).bindPreparedStmtToEntity_u2yys9_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_aeeActivityUid_pqtxzd_k$()); stmt.setLong_j1sybo_k$(2, entity.get_aeeKeyHash_36cfhn_k$()); stmt.setString_2gt7ua_k$(3, entity.get_aeeKey_awerjb_k$()); stmt.setString_2gt7ua_k$(4, entity.get_aeeJson_h8ux0g_k$()); stmt.setLong_j1sybo_k$(5, entity.get_aeeLastMod_9jca38_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_aeeIsDeleted_enh4vd_k$()); }; protoOf(ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_u2yys9_k$(stmt, entity instanceof ActivityExtensionEntity ? entity : THROW_CCE()); }; function ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation) { this.$activityUid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda).invoke_oep9v2_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_oep9v2_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$activityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda(this.$activityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda_0($activityUid, resultContinuation) { var i = new ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_oep9v2_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityExtensionDao_JdbcImpl(_db) { ActivityExtensionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterActivityExtensionEntity_upsert_1 = new ActivityExtensionDao_JdbcImpl$_insertAdapterActivityExtensionEntity_upsert$1(this); } protoOf(ActivityExtensionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityExtensionDao_JdbcImpl).get__insertAdapterActivityExtensionEntity_upsert_wxrgjf_k$ = function () { return this._insertAdapterActivityExtensionEntity_upsert_1; }; protoOf(ActivityExtensionDao_JdbcImpl).upsertListAsync_9ba3gt_k$ = function (list, $completion) { return this._insertAdapterActivityExtensionEntity_upsert_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(ActivityExtensionDao_JdbcImpl).findAllByActivityUid_hzb2fm_k$ = function (activityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityExtensionEntity.*\n FROM ActivityExtensionEntity\n WHERE ActivityExtensionEntity.aeeActivityUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ActivityExtensionEntity.*\n FROM ActivityExtensionEntity\n WHERE ActivityExtensionEntity.aeeActivityUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActivityExtensionDao_JdbcImpl$findAllByActivityUid$slambda_0(activityUid, null), $completion); }; function ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation) { this.this$0__1 = this$0; this.$list_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_9ba3gt_k$(this.$list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityExtensionDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ActivityExtensionDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$list_1, completion); }; function ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this$0, $list, resultContinuation) { var i = new ActivityExtensionDao_Repo$upsertListAsync$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findAllByActivityUidCOROUTINE$434(_this__u8e3s4, activityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; } protoOf($findAllByActivityUidCOROUTINE$434).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllByActivityUid_hzb2fm_k$(this.activityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityExtensionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityExtensionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ActivityExtensionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityExtensionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ActivityExtensionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ActivityExtensionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ActivityExtensionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ActivityExtensionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ActivityExtensionDao_Repo).upsertListAsync_9ba3gt_k$ = function (list, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityExtensionEntity', ActivityExtensionDao_Repo$upsertListAsync$slambda_0(this, list, null), $completion); }; protoOf(ActivityExtensionDao_Repo).findAllByActivityUid_hzb2fm_k$ = function (activityUid, $completion) { var tmp = new $findAllByActivityUidCOROUTINE$434(this, activityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ActivityInteractionDao() { } function _get__db__e63s44_53($this) { return $this._db_1; } function _get__dao__d2kw60_51($this) { return $this._dao_1; } function ActivityInteractionDao_DoorWrapper(_db, _dao) { ActivityInteractionDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ActivityInteractionDao_DoorWrapper).insertOrIgnoreAsync_djqrwn_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityInteractionDao_DoorWrapper.insertOrIgnoreAsync.' call element.set_aieLastMod_tm63u6_k$(systemTimeInMillis()); } return this._dao_1.insertOrIgnoreAsync_djqrwn_k$(entities, $completion); }; protoOf(ActivityInteractionDao_DoorWrapper).findActivityUidsWithInteractionEntitiesAsync_orucml_k$ = function (activityUids, $completion) { return this._dao_1.findActivityUidsWithInteractionEntitiesAsync_orucml_k$(activityUids, $completion); }; protoOf(ActivityInteractionDao_DoorWrapper).findAllByActivityUidAsync_4cov3r_k$ = function (activityUid, $completion) { return this._dao_1.findAllByActivityUidAsync_4cov3r_k$(activityUid, $completion); }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda(_result) { return mapRows(_result, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda(_result)); } function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda$lambda($_result) { return function (it) { return $_result.getLong_rneply_k$(1); }; } function ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda$lambda(_result) { return mapRows(_result, ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda$lambda$lambda(_result)); } function ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_aieActivityUid = $_result.getLong_3wgf2g_k$('aieActivityUid'); var _tmp_aieHash = $_result.getLong_3wgf2g_k$('aieHash'); var _tmp_aieProp = $_result.getInt_npc9pd_k$('aieProp'); var _tmp_aieId = $_result.getString_gb1pt9_k$('aieId'); var _tmp_aieLastMod = $_result.getLong_3wgf2g_k$('aieLastMod'); var _tmp_aieIsDeleted = $_result.getBoolean_xz3hoo_k$('aieIsDeleted'); // Inline function 'kotlin.apply' call var this_0 = new ActivityInteractionEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityInteractionDao_JdbcImpl.findAllByActivityUidAsync....' call this_0.set_aieActivityUid_kwji4d_k$(_tmp_aieActivityUid); this_0.set_aieHash_tjkngw_k$(_tmp_aieHash); this_0.set_aieProp_rbvdtx_k$(_tmp_aieProp); this_0.set_aieId_d3k14s_k$(_tmp_aieId); this_0.set_aieLastMod_tm63u6_k$(_tmp_aieLastMod); this_0.set_aieIsDeleted_vbjgey_k$(_tmp_aieIsDeleted); return this_0; }; } function ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO ActivityInteractionEntity (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) VALUES(?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).bindPreparedStmtToEntity_thoyee_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_aieActivityUid_6c3d59_k$()); stmt.setLong_j1sybo_k$(2, entity.get_aieHash_fcq2ny_k$()); stmt.setInt_c72a8z_k$(3, entity.get_aieProp_fckm95_k$()); stmt.setString_2gt7ua_k$(4, entity.get_aieId_iomnm7_k$()); stmt.setLong_j1sybo_k$(5, entity.get_aieLastMod_w14avs_k$()); stmt.setBoolean_pzdm1v_k$(6, entity.get_aieIsDeleted_8jbcwr_k$()); }; protoOf(ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_thoyee_k$(stmt, entity instanceof ActivityInteractionEntity ? entity : THROW_CCE()); }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation) { this.$activityUids_1 = $activityUids; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).invoke_20grgb_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_20grgb_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$activityUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda(this.$activityUids_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0($activityUids, resultContinuation) { var i = new ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda($activityUids, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_20grgb_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda($activityUid, resultContinuation) { this.$activityUid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda).invoke_jat6ox_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jat6ox_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$activityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda(this.$activityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda_0($activityUid, resultContinuation) { var i = new ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda($activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jat6ox_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityInteractionDao_JdbcImpl(_db) { ActivityInteractionDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterActivityInteractionEntity_ignore_1 = new ActivityInteractionDao_JdbcImpl$_insertAdapterActivityInteractionEntity_ignore$1(this); } protoOf(ActivityInteractionDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityInteractionDao_JdbcImpl).get__insertAdapterActivityInteractionEntity_ignore_uhcodn_k$ = function () { return this._insertAdapterActivityInteractionEntity_ignore_1; }; protoOf(ActivityInteractionDao_JdbcImpl).insertOrIgnoreAsync_djqrwn_k$ = function (entities, $completion) { return this._insertAdapterActivityInteractionEntity_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ActivityInteractionDao_JdbcImpl).findActivityUidsWithInteractionEntitiesAsync_orucml_k$ = function (activityUids, $completion) { var tmp = new PreparedStatementConfig('\n SELECT DISTINCT ActivityInteractionEntity.aieActivityUid\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid IN (?)\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ActivityInteractionDao_JdbcImpl$findActivityUidsWithInteractionEntitiesAsync$slambda_0(activityUids, null), $completion); }; protoOf(ActivityInteractionDao_JdbcImpl).findAllByActivityUidAsync_4cov3r_k$ = function (activityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityInteractionEntity.*\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ActivityInteractionEntity.*\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActivityInteractionDao_JdbcImpl$findAllByActivityUidAsync$slambda_0(activityUid, null), $completion); }; function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreAsync_djqrwn_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda).create_d196fn_k$ = function (completion) { return new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435(_this__u8e3s4, activityUids, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUids_1 = activityUids; } protoOf($findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActivityUidsWithInteractionEntitiesAsync_orucml_k$(this.activityUids_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findAllByActivityUidAsyncCOROUTINE$436(_this__u8e3s4, activityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; } protoOf($findAllByActivityUidAsyncCOROUTINE$436).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllByActivityUidAsync_4cov3r_k$(this.activityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityInteractionDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityInteractionDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ActivityInteractionDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityInteractionDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ActivityInteractionDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ActivityInteractionDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ActivityInteractionDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ActivityInteractionDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ActivityInteractionDao_Repo).insertOrIgnoreAsync_djqrwn_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityInteractionEntity', ActivityInteractionDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActivityInteractionDao_Repo).findActivityUidsWithInteractionEntitiesAsync_orucml_k$ = function (activityUids, $completion) { var tmp = new $findActivityUidsWithInteractionEntitiesAsyncCOROUTINE$435(this, activityUids, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityInteractionDao_Repo).findAllByActivityUidAsync_4cov3r_k$ = function (activityUid, $completion) { var tmp = new $findAllByActivityUidAsyncCOROUTINE$436(this, activityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ActivityLangMapEntryDao() { } function _get__db__e63s44_54($this) { return $this._db_1; } function _get__dao__d2kw60_52($this) { return $this._dao_1; } function ActivityLangMapEntryDao_DoorWrapper(_db, _dao) { ActivityLangMapEntryDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ActivityLangMapEntryDao_DoorWrapper).upsertList_q16n8z_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_DoorWrapper.upsertList.' call element.set_almeLastMod_eesr1u_k$(systemTimeInMillis()); } return this._dao_1.upsertList_q16n8z_k$(entities, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).upsertIfInteractionEntityExists_34ld2f_k$ = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { return this._dao_1.upsertIfInteractionEntityExists_34ld2f_k$(almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).updateIfChanged_9r6tow_k$ = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { return this._dao_1.updateIfChanged_9r6tow_k$(almeActivityUid, almeHash, almeValue, almeLastMod, $completion); }; protoOf(ActivityLangMapEntryDao_DoorWrapper).findAllByActivityUid_d92euq_k$ = function (activityUid, $completion) { return this._dao_1.findAllByActivityUid_d92euq_k$(activityUid, $completion); }; function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda(_result) { return mapRows(_result, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda(_result)); } function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_almeActivityUid = $_result.getLong_3wgf2g_k$('almeActivityUid'); var _tmp_almeHash = $_result.getLong_3wgf2g_k$('almeHash'); var _tmp_almeLangCode = $_result.getString_gb1pt9_k$('almeLangCode'); var _tmp_almePropName = $_result.getString_gb1pt9_k$('almePropName'); var _tmp_almeValue = $_result.getString_gb1pt9_k$('almeValue'); var _tmp_almeAieHash = $_result.getLong_3wgf2g_k$('almeAieHash'); var _tmp_almeLastMod = $_result.getLong_3wgf2g_k$('almeLastMod'); // Inline function 'kotlin.apply' call var this_0 = new ActivityLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActivityLangMapEntryDao_JdbcImpl.findAllByActivityUid....' call this_0.set_almeActivityUid_b53eeb_k$(_tmp_almeActivityUid); this_0.set_almeHash_yja2gg_k$(_tmp_almeHash); this_0.set_almeLangCode_omlfr0_k$(_tmp_almeLangCode); this_0.set_almePropName_bcr8q1_k$(_tmp_almePropName); this_0.set_almeValue_ynoy12_k$(_tmp_almeValue); this_0.set_almeAieHash_gievt9_k$(_tmp_almeAieHash); this_0.set_almeLastMod_eesr1u_k$(_tmp_almeLastMod); return this_0; }; } function ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ActivityLangMapEntry (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).bindPreparedStmtToEntity_qnd3lz_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_almeActivityUid_o9qzhn_k$()); stmt.setLong_j1sybo_k$(2, entity.get_almeHash_1iqfeu_k$()); stmt.setString_2gt7ua_k$(3, entity.get_almeLangCode_45kvbt_k$()); stmt.setString_2gt7ua_k$(4, entity.get_almePropName_64a396_k$()); stmt.setString_2gt7ua_k$(5, entity.get_almeValue_o41rph_k$()); stmt.setLong_j1sybo_k$(6, entity.get_almeAieHash_4fnbb5_k$()); stmt.setLong_j1sybo_k$(7, entity.get_almeLastMod_beliu8_k$()); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_qnd3lz_k$(stmt, entity instanceof ActivityLangMapEntry ? entity : THROW_CCE()); }; function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { this.$almeActivityUid_1 = $almeActivityUid; this.$almeHash_1 = $almeHash; this.$almeLangCode_1 = $almeLangCode; this.$almePropName_1 = $almePropName; this.$almeValue_1 = $almeValue; this.$almeAieHash_1 = $almeAieHash; this.$almeLastMod_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$almeActivityUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$almeHash_1); this._stmt_1.setString_2gt7ua_k$(3, this.$almeLangCode_1); this._stmt_1.setString_2gt7ua_k$(4, this.$almePropName_1); this._stmt_1.setString_2gt7ua_k$(5, this.$almeValue_1); this._stmt_1.setLong_j1sybo_k$(6, this.$almeAieHash_1); this._stmt_1.setLong_j1sybo_k$(7, this.$almeLastMod_1); this._stmt_1.setLong_j1sybo_k$(8, this.$almeActivityUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$almeAieHash_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda(this.$almeActivityUid_1, this.$almeHash_1, this.$almeLangCode_1, this.$almePropName_1, this.$almeValue_1, this.$almeAieHash_1, this.$almeLastMod_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda($almeActivityUid, $almeHash, $almeLangCode, $almePropName, $almeValue, $almeAieHash, $almeLastMod, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) { this.$almeValue_1 = $almeValue; this.$almeLastMod_1 = $almeLastMod; this.$almeActivityUid_1 = $almeActivityUid; this.$almeHash_1 = $almeHash; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$almeValue_1); this._stmt_1.setLong_j1sybo_k$(2, this.$almeLastMod_1); this._stmt_1.setLong_j1sybo_k$(3, this.$almeActivityUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$almeHash_1); this._stmt_1.setString_2gt7ua_k$(5, this.$almeValue_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda(this.$almeValue_1, this.$almeLastMod_1, this.$almeActivityUid_1, this.$almeHash_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda($almeValue, $almeLastMod, $almeActivityUid, $almeHash, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation) { this.$activityUid_1 = $activityUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).invoke_yknlgy_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_yknlgy_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$activityUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda(this.$activityUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0($activityUid, resultContinuation) { var i = new ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda($activityUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_yknlgy_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $upsertIfInteractionEntityExistsCOROUTINE$437(_this__u8e3s4, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.almeActivityUid_1 = almeActivityUid; this.almeHash_1 = almeHash; this.almePropName_1 = almePropName; this.almeLangCode_1 = almeLangCode; this.almeValue_1 = almeValue; this.almeAieHash_1 = almeAieHash; this.almeLastMod_1 = almeLastMod; } protoOf($upsertIfInteractionEntityExistsCOROUTINE$437).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n INSERT OR REPLACE \n INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod)\n SELECT CAST(? AS BIGINT) AS almeActivityUid,\n CAST(? AS BIGINT) AS almeHash,\n ? AS almeLangCode,\n ? AS almePropName,\n ? AS almeValue,\n CAST(? AS BIGINT) AS almeAieHash,\n CAST(? AS BIGINT) AS almeLastMod\n WHERE EXISTS(SELECT 1\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = CAST(? AS BIGINT)\n AND ActivityInteractionEntity.aieHash = CAST(? AS BIGINT))\n \n ', VOID, VOID, VOID, '\n INSERT \n INTO ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod)\n SELECT ? AS almeActivityUid,\n ? AS almeHash,\n ? AS almeLangCode,\n ? AS almePropName,\n ? AS almeValue,\n ? AS almeAieHash,\n ? AS almeLastMod\n WHERE EXISTS(SELECT 1\n FROM ActivityInteractionEntity\n WHERE ActivityInteractionEntity.aieActivityUid = ?\n AND ActivityInteractionEntity.aieHash = ?)\n \n ON CONFLICT(almeActivityUid, almeHash) DO UPDATE\n SET almeValue = EXCLUDED.almeValue,\n almeLastMod = EXCLUDED.almeLastMod\n ', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$upsertIfInteractionEntityExists$slambda_0(this.almeActivityUid_1, this.almeHash_1, this.almeLangCode_1, this.almePropName_1, this.almeValue_1, this.almeAieHash_1, this.almeLastMod_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $updateIfChangedCOROUTINE$438(_this__u8e3s4, almeActivityUid, almeHash, almeValue, almeLastMod, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.almeActivityUid_1 = almeActivityUid; this.almeHash_1 = almeHash; this.almeValue_1 = almeValue; this.almeLastMod_1 = almeLastMod; } protoOf($updateIfChangedCOROUTINE$438).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ActivityLangMapEntry\n SET almeValue = ?,\n almeLastMod = CAST(? AS BIGINT)\n WHERE almeActivityUid = CAST(? AS BIGINT)\n AND almeHash = CAST(? AS BIGINT)\n AND almeValue != ? \n ', VOID, VOID, VOID, '\n UPDATE ActivityLangMapEntry\n SET almeValue = ?,\n almeLastMod = ?\n WHERE almeActivityUid = ?\n AND almeHash = ?\n AND almeValue != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ActivityLangMapEntryDao_JdbcImpl$updateIfChanged$slambda_0(this.almeValue_1, this.almeLastMod_1, this.almeActivityUid_1, this.almeHash_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityLangMapEntryDao_JdbcImpl(_db) { ActivityLangMapEntryDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterActivityLangMapEntry_upsert_1 = new ActivityLangMapEntryDao_JdbcImpl$_insertAdapterActivityLangMapEntry_upsert$1(this); } protoOf(ActivityLangMapEntryDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityLangMapEntryDao_JdbcImpl).get__insertAdapterActivityLangMapEntry_upsert_w35jjv_k$ = function () { return this._insertAdapterActivityLangMapEntry_upsert_1; }; protoOf(ActivityLangMapEntryDao_JdbcImpl).upsertList_q16n8z_k$ = function (entities, $completion) { return this._insertAdapterActivityLangMapEntry_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).upsertIfInteractionEntityExists_34ld2f_k$ = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { var tmp = new $upsertIfInteractionEntityExistsCOROUTINE$437(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).updateIfChanged_9r6tow_k$ = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { var tmp = new $updateIfChangedCOROUTINE$438(this, almeActivityUid, almeHash, almeValue, almeLastMod, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_JdbcImpl).findAllByActivityUid_d92euq_k$ = function (activityUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActivityLangMapEntryDao_JdbcImpl$findAllByActivityUid$slambda_0(activityUid, null), $completion); }; function ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertList_q16n8z_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$upsertList$slambda).create_d196fn_k$ = function (completion) { return new ActivityLangMapEntryDao_Repo$upsertList$slambda(this.this$0__1, this.$entities_1, completion); }; function ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $entities, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$upsertList$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { this.this$0__1 = this$0; this.$almeActivityUid_1 = $almeActivityUid; this.$almeHash_1 = $almeHash; this.$almePropName_1 = $almePropName; this.$almeLangCode_1 = $almeLangCode; this.$almeValue_1 = $almeValue; this.$almeAieHash_1 = $almeAieHash; this.$almeLastMod_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertIfInteractionEntityExists_34ld2f_k$(this.$almeActivityUid_1, this.$almeHash_1, this.$almePropName_1, this.$almeLangCode_1, this.$almeValue_1, this.$almeAieHash_1, this.$almeLastMod_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda).create_d196fn_k$ = function (completion) { return new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this.this$0__1, this.$almeActivityUid_1, this.$almeHash_1, this.$almePropName_1, this.$almeLangCode_1, this.$almeValue_1, this.$almeAieHash_1, this.$almeLastMod_1, completion); }; function ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda(this$0, $almeActivityUid, $almeHash, $almePropName, $almeLangCode, $almeValue, $almeAieHash, $almeLastMod, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) { this.this$0__1 = this$0; this.$almeActivityUid_1 = $almeActivityUid; this.$almeHash_1 = $almeHash; this.$almeValue_1 = $almeValue; this.$almeLastMod_1 = $almeLastMod; CoroutineImpl.call(this, resultContinuation); } protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateIfChanged_9r6tow_k$(this.$almeActivityUid_1, this.$almeHash_1, this.$almeValue_1, this.$almeLastMod_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActivityLangMapEntryDao_Repo$updateIfChanged$slambda).create_d196fn_k$ = function (completion) { return new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this.this$0__1, this.$almeActivityUid_1, this.$almeHash_1, this.$almeValue_1, this.$almeLastMod_1, completion); }; function ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation) { var i = new ActivityLangMapEntryDao_Repo$updateIfChanged$slambda(this$0, $almeActivityUid, $almeHash, $almeValue, $almeLastMod, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findAllByActivityUidCOROUTINE$439(_this__u8e3s4, activityUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; } protoOf($findAllByActivityUidCOROUTINE$439).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'ActivityLangMapEntryDao/findAllByActivityUid'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'ActivityLangMapEntryDao/findAllByActivityUid'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'activityUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.activityUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, ActivityLangMapEntryDao_Repo$findAllByActivityUid$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findAllByActivityUid_d92euq_k$(this.activityUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActivityLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActivityLangMapEntryDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ActivityLangMapEntryDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActivityLangMapEntryDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ActivityLangMapEntryDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ActivityLangMapEntryDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ActivityLangMapEntryDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ActivityLangMapEntryDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ActivityLangMapEntryDao_Repo).upsertList_q16n8z_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertList$slambda_0(this, entities, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).upsertIfInteractionEntityExists_34ld2f_k$ = function (almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$upsertIfInteractionEntityExists$slambda_0(this, almeActivityUid, almeHash, almePropName, almeLangCode, almeValue, almeAieHash, almeLastMod, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).updateIfChanged_9r6tow_k$ = function (almeActivityUid, almeHash, almeValue, almeLastMod, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActivityLangMapEntry', ActivityLangMapEntryDao_Repo$updateIfChanged$slambda_0(this, almeActivityUid, almeHash, almeValue, almeLastMod, null), $completion); }; protoOf(ActivityLangMapEntryDao_Repo).findAllByActivityUid_d92euq_k$ = function (activityUid, $completion) { var tmp = new $findAllByActivityUidCOROUTINE$439(this, activityUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function ActorDao() { } function _get__db__e63s44_55($this) { return $this._db_1; } function _get__dao__d2kw60_53($this) { return $this._dao_1; } function $insertOrIgnoreListAsyncCOROUTINE$440(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($insertOrIgnoreListAsyncCOROUTINE$440).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_actorUid_bxgzj8_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(68, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_actorUid_wjpps6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_actorLct_u43k87_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.insertOrIgnoreListAsync_yi1xvt_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $upsertListAsyncCOROUTINE$441(_this__u8e3s4, entities, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.entities_1 = entities; } protoOf($upsertListAsyncCOROUTINE$441).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); var tmp_0 = this; tmp_0._generatedPks1__1 = ArrayList_init_$Create$(); var tmp_1 = this; tmp_1.this2__1 = this.entities_1.iterator_jk1svi_k$(); var tmp_2 = this; tmp_2.tmp0_iterator3__1 = this.this2__1; this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator3__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(4); continue $sm; } this.element4__1 = this.tmp0_iterator3__1.next_20eer_k$(); var tmp_3 = this; tmp_3.it5__1 = this.element4__1; if (this.it5__1.get_actorUid_bxgzj8_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(2); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(68, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(3); continue $sm; } case 2: this._newPk6__1 = suspendResult; this.it5__1.set_actorUid_wjpps6_k$(this._newPk6__1); var this_0 = this._generatedPks1__1; var element = this._newPk6__1; this_0.add_utx5q5_k$(element); this.set_state_rjd8d0_k$(3); continue $sm; case 3: this.it5__1.set_actorLct_u43k87_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(1); continue $sm; case 4: this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.upsertListAsync_gg74o8_k$(this.entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: return Unit_getInstance(); case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActorDao_DoorWrapper(_db, _dao) { ActorDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(ActorDao_DoorWrapper).insertOrIgnoreListAsync_yi1xvt_k$ = function (entities, $completion) { var tmp = new $insertOrIgnoreListAsyncCOROUTINE$440(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_DoorWrapper).upsertListAsync_gg74o8_k$ = function (entities, $completion) { var tmp = new $upsertListAsyncCOROUTINE$441(this, entities, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_DoorWrapper).updateIfNameChanged_rzegtp_k$ = function (uid, name, updateTime, $completion) { return this._dao_1.updateIfNameChanged_rzegtp_k$(uid, name, updateTime, $completion); }; protoOf(ActorDao_DoorWrapper).findByUidAsync_rr0a76_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_rr0a76_k$(uid, $completion); }; protoOf(ActorDao_DoorWrapper).findByUidAndPersonUidAsync_xyu2aw_k$ = function (actorUid, accountPersonUid, $completion) { return this._dao_1.findByUidAndPersonUidAsync_xyu2aw_k$(actorUid, accountPersonUid, $completion); }; protoOf(ActorDao_DoorWrapper).findUidAndEtagByListAsync_ye0fym_k$ = function (uidList, $completion) { return this._dao_1.findUidAndEtagByListAsync_ye0fym_k$(uidList, $completion); }; protoOf(ActorDao_DoorWrapper).findGroupMembers_amsola_k$ = function (groupActorUid, $completion) { return this._dao_1.findGroupMembers_amsola_k$(groupActorUid, $completion); }; function ActorDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ActorDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function ActorDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); // Inline function 'kotlin.apply' call var this_0 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findByUidAsync....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_0.set_actorName_t0c818_k$(_tmp_actorName); this_0.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_0.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_0.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_0.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_0.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); this_0.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); return this_0; }; } function ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda$lambda$lambda(_result)); } function ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); // Inline function 'kotlin.apply' call var this_0 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findByUidAndPersonUidAsync....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_0.set_actorName_t0c818_k$(_tmp_actorName); this_0.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_0.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_0.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_0.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_0.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); this_0.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); return this_0; }; } function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda(_result) { return mapRows(_result, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda(_result)); } function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); // Inline function 'kotlin.apply' call var this_0 = new ActorUidEtagAndLastMod(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findUidAndEtagByListAsync....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); return this_0; }; } function ActorDao_JdbcImpl$findGroupMembers$slambda$lambda(_result) { return mapRows(_result, ActorDao_JdbcImpl$findGroupMembers$slambda$lambda$lambda(_result)); } function ActorDao_JdbcImpl$findGroupMembers$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); // Inline function 'kotlin.apply' call var this_0 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.ActorDao_JdbcImpl.findGroupMembers....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_0.set_actorName_t0c818_k$(_tmp_actorName); this_0.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_0.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_0.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_0.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_0.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); this_0.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); return this_0; }; } function ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).bindPreparedStmtToEntity_vbe6r8_k$ = function (stmt, entity) { if (entity.get_actorUid_bxgzj8_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_actorUid_bxgzj8_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_actorPersonUid_fdd67l_k$()); stmt.setString_2gt7ua_k$(3, entity.get_actorName_enxp4n_k$()); stmt.setString_2gt7ua_k$(4, entity.get_actorMbox_enx2y2_k$()); stmt.setString_2gt7ua_k$(5, entity.get_actorMbox_sha1sum_wa7f5_k$()); stmt.setString_2gt7ua_k$(6, entity.get_actorOpenid_tjemdt_k$()); stmt.setString_2gt7ua_k$(7, entity.get_actorAccountName_o5fzl8_k$()); stmt.setString_2gt7ua_k$(8, entity.get_actorAccountHomePage_53pq8h_k$()); stmt.setLong_j1sybo_k$(9, entity.get_actorEtag_ensc1t_k$()); stmt.setLong_j1sybo_k$(10, entity.get_actorLct_bxgsq9_k$()); stmt.setInt_c72a8z_k$(11, entity.get_actorObjectType_r4jksl_k$()); }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_vbe6r8_k$(stmt, entity instanceof ActorEntity ? entity : THROW_CCE()); }; function ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO ActorEntity (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).bindPreparedStmtToEntity_vbe6r8_k$ = function (stmt, entity) { if (entity.get_actorUid_bxgzj8_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_actorUid_bxgzj8_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_actorPersonUid_fdd67l_k$()); stmt.setString_2gt7ua_k$(3, entity.get_actorName_enxp4n_k$()); stmt.setString_2gt7ua_k$(4, entity.get_actorMbox_enx2y2_k$()); stmt.setString_2gt7ua_k$(5, entity.get_actorMbox_sha1sum_wa7f5_k$()); stmt.setString_2gt7ua_k$(6, entity.get_actorOpenid_tjemdt_k$()); stmt.setString_2gt7ua_k$(7, entity.get_actorAccountName_o5fzl8_k$()); stmt.setString_2gt7ua_k$(8, entity.get_actorAccountHomePage_53pq8h_k$()); stmt.setLong_j1sybo_k$(9, entity.get_actorEtag_ensc1t_k$()); stmt.setLong_j1sybo_k$(10, entity.get_actorLct_bxgsq9_k$()); stmt.setInt_c72a8z_k$(11, entity.get_actorObjectType_r4jksl_k$()); }; protoOf(ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_vbe6r8_k$(stmt, entity instanceof ActorEntity ? entity : THROW_CCE()); }; function ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation) { this.$name_1 = $name; this.$updateTime_1 = $updateTime; this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$name_1); this._stmt_1.setLong_j1sybo_k$(2, this.$updateTime_1); this._stmt_1.setLong_j1sybo_k$(3, this.$uid_1); this._stmt_1.setString_2gt7ua_k$(4, this.$name_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda(this.$name_1, this.$updateTime_1, this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActorDao_JdbcImpl$updateIfNameChanged$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActorDao_JdbcImpl$updateIfNameChanged$slambda_0($name, $updateTime, $uid, resultContinuation) { var i = new ActorDao_JdbcImpl$updateIfNameChanged$slambda($name, $updateTime, $uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActorDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$findByUidAsync$slambda).invoke_t8duxo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_t8duxo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActorDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActorDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActorDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new ActorDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_t8duxo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda($actorUid, $accountPersonUid, resultContinuation) { this.$actorUid_1 = $actorUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda).invoke_t8duxo_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_t8duxo_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda(this.$actorUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda_0($actorUid, $accountPersonUid, resultContinuation) { var i = new ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda($actorUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_t8duxo_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation) { this.$uidList_1 = $uidList; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).invoke_tclz1e_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_tclz1e_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$uidList_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda(this.$uidList_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0($uidList, resultContinuation) { var i = new ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda($uidList, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_tclz1e_k$(_stmt, $completion); }; l.$arity = 1; return l; } function ActorDao_JdbcImpl$findGroupMembers$slambda($groupActorUid, resultContinuation) { this.$groupActorUid_1 = $groupActorUid; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_JdbcImpl$findGroupMembers$slambda).invoke_1cidv1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl$findGroupMembers$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1cidv1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(ActorDao_JdbcImpl$findGroupMembers$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$groupActorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$groupActorUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, ActorDao_JdbcImpl$findGroupMembers$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_JdbcImpl$findGroupMembers$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new ActorDao_JdbcImpl$findGroupMembers$slambda(this.$groupActorUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(ActorDao_JdbcImpl$findGroupMembers$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function ActorDao_JdbcImpl$findGroupMembers$slambda_0($groupActorUid, resultContinuation) { var i = new ActorDao_JdbcImpl$findGroupMembers$slambda($groupActorUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1cidv1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateIfNameChangedCOROUTINE$442(_this__u8e3s4, uid, name, updateTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; this.name_1 = name; this.updateTime_1 = updateTime; } protoOf($updateIfNameChangedCOROUTINE$442).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE ActorEntity\n SET actorName = ?,\n actorLct = CAST(? AS BIGINT)\n WHERE actorUid = CAST(? AS BIGINT)\n AND ActorEntity.actorName != ?\n ', VOID, VOID, VOID, '\n UPDATE ActorEntity\n SET actorName = ?,\n actorLct = ?\n WHERE actorUid = ?\n AND ActorEntity.actorName != ?\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, ActorDao_JdbcImpl$updateIfNameChanged$slambda_0(this.name_1, this.updateTime_1, this.uid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActorDao_JdbcImpl(_db) { ActorDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterActorEntity_ignore_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_ignore$1(this); var tmp_0 = this; tmp_0._insertAdapterActorEntity_upsert_1 = new ActorDao_JdbcImpl$_insertAdapterActorEntity_upsert$1(this); } protoOf(ActorDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActorDao_JdbcImpl).get__insertAdapterActorEntity_ignore_xwavjt_k$ = function () { return this._insertAdapterActorEntity_ignore_1; }; protoOf(ActorDao_JdbcImpl).get__insertAdapterActorEntity_upsert_vb8ktm_k$ = function () { return this._insertAdapterActorEntity_upsert_1; }; protoOf(ActorDao_JdbcImpl).insertOrIgnoreListAsync_yi1xvt_k$ = function (entities, $completion) { return this._insertAdapterActorEntity_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ActorDao_JdbcImpl).upsertListAsync_gg74o8_k$ = function (entities, $completion) { return this._insertAdapterActorEntity_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(ActorDao_JdbcImpl).updateIfNameChanged_rzegtp_k$ = function (uid, name, updateTime, $completion) { var tmp = new $updateIfNameChangedCOROUTINE$442(this, uid, name, updateTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_JdbcImpl).findByUidAsync_rr0a76_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActorDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(ActorDao_JdbcImpl).findByUidAndPersonUidAsync_xyu2aw_k$ = function (actorUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)\n AND ActorEntity.actorPersonUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?\n AND ActorEntity.actorPersonUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActorDao_JdbcImpl$findByUidAndPersonUidAsync$slambda_0(actorUid, accountPersonUid, null), $completion); }; protoOf(ActorDao_JdbcImpl).findUidAndEtagByListAsync_ye0fym_k$ = function (uidList, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActorEntity.actorUid, ActorEntity.actorEtag, ActorEntity.actorLct\n FROM ActorEntity\n WHERE ActorEntity.actorUid IN (?)\n ', true, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, ActorDao_JdbcImpl$findUidAndEtagByListAsync$slambda_0(uidList, null), $completion); }; protoOf(ActorDao_JdbcImpl).findGroupMembers_amsola_k$ = function (groupActorUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid IN (\n SELECT GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = CAST(? AS BIGINT)\n AND GroupMemberActorJoin.gmajLastMod = (\n SELECT GroupActorEntity.actorLct\n FROM ActorEntity GroupActorEntity\n WHERE GroupActorEntity.actorUid = CAST(? AS BIGINT))\n ) \n ', VOID, VOID, VOID, '\n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorUid IN (\n SELECT GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = ?\n AND GroupMemberActorJoin.gmajLastMod = (\n SELECT GroupActorEntity.actorLct\n FROM ActorEntity GroupActorEntity\n WHERE GroupActorEntity.actorUid = ?)\n ) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, ActorDao_JdbcImpl$findGroupMembers$slambda_0(groupActorUid, null), $completion); }; function ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreListAsync_yi1xvt_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_Repo$insertOrIgnoreListAsync$slambda).create_d196fn_k$ = function (completion) { return new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActorDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_gg74o8_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new ActorDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function ActorDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new ActorDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation) { this.this$0__1 = this$0; this.$uid_1 = $uid; this.$name_1 = $name; this.$updateTime_1 = $updateTime; CoroutineImpl.call(this, resultContinuation); } protoOf(ActorDao_Repo$updateIfNameChanged$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateIfNameChanged_rzegtp_k$(this.$uid_1, this.$name_1, this.$updateTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(ActorDao_Repo$updateIfNameChanged$slambda).create_d196fn_k$ = function (completion) { return new ActorDao_Repo$updateIfNameChanged$slambda(this.this$0__1, this.$uid_1, this.$name_1, this.$updateTime_1, completion); }; function ActorDao_Repo$updateIfNameChanged$slambda_0(this$0, $uid, $name, $updateTime, resultContinuation) { var i = new ActorDao_Repo$updateIfNameChanged$slambda(this$0, $uid, $name, $updateTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidAsyncCOROUTINE$443(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$443).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_rr0a76_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidAndPersonUidAsyncCOROUTINE$444(_this__u8e3s4, actorUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.actorUid_1 = actorUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findByUidAndPersonUidAsyncCOROUTINE$444).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAndPersonUidAsync_xyu2aw_k$(this.actorUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findUidAndEtagByListAsyncCOROUTINE$445(_this__u8e3s4, uidList, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; } protoOf($findUidAndEtagByListAsyncCOROUTINE$445).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findUidAndEtagByListAsync_ye0fym_k$(this.uidList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findGroupMembersCOROUTINE$446(_this__u8e3s4, groupActorUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.groupActorUid_1 = groupActorUid; } protoOf($findGroupMembersCOROUTINE$446).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findGroupMembers_amsola_k$(this.groupActorUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function ActorDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { ActorDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(ActorDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(ActorDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(ActorDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(ActorDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(ActorDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(ActorDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(ActorDao_Repo).insertOrIgnoreListAsync_yi1xvt_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActorEntity', ActorDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActorDao_Repo).upsertListAsync_gg74o8_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActorEntity', ActorDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(ActorDao_Repo).updateIfNameChanged_rzegtp_k$ = function (uid, name, updateTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'ActorEntity', ActorDao_Repo$updateIfNameChanged$slambda_0(this, uid, name, updateTime, null), $completion); }; protoOf(ActorDao_Repo).findByUidAsync_rr0a76_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$443(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo).findByUidAndPersonUidAsync_xyu2aw_k$ = function (actorUid, accountPersonUid, $completion) { var tmp = new $findByUidAndPersonUidAsyncCOROUTINE$444(this, actorUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo).findUidAndEtagByListAsync_ye0fym_k$ = function (uidList, $completion) { var tmp = new $findUidAndEtagByListAsyncCOROUTINE$445(this, uidList, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(ActorDao_Repo).findGroupMembers_amsola_k$ = function (groupActorUid, $completion) { var tmp = new $findGroupMembersCOROUTINE$446(this, groupActorUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function GroupMemberActorJoinDao() { } function _get__db__e63s44_56($this) { return $this._db_1; } function _get__dao__d2kw60_54($this) { return $this._dao_1; } function GroupMemberActorJoinDao_DoorWrapper(_db, _dao) { GroupMemberActorJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(GroupMemberActorJoinDao_DoorWrapper).insertOrIgnoreListAsync_6rsnc3_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.insertOrIgnoreListAsync.' call element.set_gmajLastMod_ign14y_k$(systemTimeInMillis()); } return this._dao_1.insertOrIgnoreListAsync_6rsnc3_k$(entities, $completion); }; protoOf(GroupMemberActorJoinDao_DoorWrapper).upsertListAsync_2yfwma_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.GroupMemberActorJoinDao_DoorWrapper.upsertListAsync.' call element.set_gmajLastMod_ign14y_k$(systemTimeInMillis()); } return this._dao_1.upsertListAsync_2yfwma_k$(entities, $completion); }; protoOf(GroupMemberActorJoinDao_DoorWrapper).updateLastModifiedTimeIfNeededAsync_xmt3em_k$ = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { return this._dao_1.updateLastModifiedTimeIfNeededAsync_xmt3em_k$(gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion); }; function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)'; }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).bindPreparedStmtToEntity_xwmajw_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_gmajGroupActorUid_48ehxa_k$()); stmt.setLong_j1sybo_k$(2, entity.get_gmajMemberActorUid_c3ucz7_k$()); stmt.setLong_j1sybo_k$(3, entity.get_gmajLastMod_mhnib0_k$()); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xwmajw_k$(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE()); }; function GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO GroupMemberActorJoin (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) VALUES(?, ?, ?)'; }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).bindPreparedStmtToEntity_xwmajw_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_gmajGroupActorUid_48ehxa_k$()); stmt.setLong_j1sybo_k$(2, entity.get_gmajMemberActorUid_c3ucz7_k$()); stmt.setLong_j1sybo_k$(3, entity.get_gmajLastMod_mhnib0_k$()); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_xwmajw_k$(stmt, entity instanceof GroupMemberActorJoin ? entity : THROW_CCE()); }; function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) { this.$lastModTime_1 = $lastModTime; this.$gmajGroupActorUid_1 = $gmajGroupActorUid; this.$gmajMemberActorUid_1 = $gmajMemberActorUid; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$lastModTime_1); this._stmt_1.setLong_j1sybo_k$(2, this.$gmajGroupActorUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$gmajMemberActorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$lastModTime_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda(this.$lastModTime_1, this.$gmajGroupActorUid_1, this.$gmajMemberActorUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation) { var i = new GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda($lastModTime, $gmajGroupActorUid, $gmajMemberActorUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateLastModifiedTimeIfNeededAsyncCOROUTINE$447(_this__u8e3s4, gmajGroupActorUid, gmajMemberActorUid, lastModTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.gmajGroupActorUid_1 = gmajGroupActorUid; this.gmajMemberActorUid_1 = gmajMemberActorUid; this.lastModTime_1 = lastModTime; } protoOf($updateLastModifiedTimeIfNeededAsyncCOROUTINE$447).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE GroupMemberActorJoin\n SET gmajLastMod = CAST(? AS BIGINT)\n WHERE gmajGroupActorUid = CAST(? AS BIGINT)\n AND gmajMemberActorUid = CAST(? AS BIGINT)\n AND gmajLastMod != CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n UPDATE GroupMemberActorJoin\n SET gmajLastMod = ?\n WHERE gmajGroupActorUid = ?\n AND gmajMemberActorUid = ?\n AND gmajLastMod != ? \n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, GroupMemberActorJoinDao_JdbcImpl$updateLastModifiedTimeIfNeededAsync$slambda_0(this.lastModTime_1, this.gmajGroupActorUid_1, this.gmajMemberActorUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function GroupMemberActorJoinDao_JdbcImpl(_db) { GroupMemberActorJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterGroupMemberActorJoin_ignore_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_ignore$1(this); var tmp_0 = this; tmp_0._insertAdapterGroupMemberActorJoin_upsert_1 = new GroupMemberActorJoinDao_JdbcImpl$_insertAdapterGroupMemberActorJoin_upsert$1(this); } protoOf(GroupMemberActorJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(GroupMemberActorJoinDao_JdbcImpl).get__insertAdapterGroupMemberActorJoin_ignore_3fk44r_k$ = function () { return this._insertAdapterGroupMemberActorJoin_ignore_1; }; protoOf(GroupMemberActorJoinDao_JdbcImpl).get__insertAdapterGroupMemberActorJoin_upsert_994pqg_k$ = function () { return this._insertAdapterGroupMemberActorJoin_upsert_1; }; protoOf(GroupMemberActorJoinDao_JdbcImpl).insertOrIgnoreListAsync_6rsnc3_k$ = function (entities, $completion) { return this._insertAdapterGroupMemberActorJoin_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl).upsertListAsync_2yfwma_k$ = function (entities, $completion) { return this._insertAdapterGroupMemberActorJoin_upsert_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(GroupMemberActorJoinDao_JdbcImpl).updateLastModifiedTimeIfNeededAsync_xmt3em_k$ = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { var tmp = new $updateLastModifiedTimeIfNeededAsyncCOROUTINE$447(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreListAsync_6rsnc3_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda).create_d196fn_k$ = function (completion) { return new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertListAsync_2yfwma_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$upsertListAsync$slambda).create_d196fn_k$ = function (completion) { return new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$upsertListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) { this.this$0__1 = this$0; this.$gmajGroupActorUid_1 = $gmajGroupActorUid; this.$gmajMemberActorUid_1 = $gmajMemberActorUid; this.$lastModTime_1 = $lastModTime; CoroutineImpl.call(this, resultContinuation); } protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateLastModifiedTimeIfNeededAsync_xmt3em_k$(this.$gmajGroupActorUid_1, this.$gmajMemberActorUid_1, this.$lastModTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda).create_d196fn_k$ = function (completion) { return new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this.this$0__1, this.$gmajGroupActorUid_1, this.$gmajMemberActorUid_1, this.$lastModTime_1, completion); }; function GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation) { var i = new GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda(this$0, $gmajGroupActorUid, $gmajMemberActorUid, $lastModTime, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function GroupMemberActorJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { GroupMemberActorJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(GroupMemberActorJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(GroupMemberActorJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(GroupMemberActorJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(GroupMemberActorJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(GroupMemberActorJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(GroupMemberActorJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(GroupMemberActorJoinDao_Repo).insertOrIgnoreListAsync_6rsnc3_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; protoOf(GroupMemberActorJoinDao_Repo).upsertListAsync_2yfwma_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$upsertListAsync$slambda_0(this, entities, null), $completion); }; protoOf(GroupMemberActorJoinDao_Repo).updateLastModifiedTimeIfNeededAsync_xmt3em_k$ = function (gmajGroupActorUid, gmajMemberActorUid, lastModTime, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'GroupMemberActorJoin', GroupMemberActorJoinDao_Repo$updateLastModifiedTimeIfNeededAsync$slambda_0(this, gmajGroupActorUid, gmajMemberActorUid, lastModTime, null), $completion); }; function StateDeleteCommandDao() { } function _get__db__e63s44_57($this) { return $this._db_1; } function _get__dao__d2kw60_55($this) { return $this._dao_1; } function StateDeleteCommandDao_DoorWrapper(_db, _dao) { StateDeleteCommandDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StateDeleteCommandDao_DoorWrapper).insertAsync_t065yt_k$ = function (deleteCommand, $completion) { deleteCommand.set_sdcLastMod_lrjbw9_k$(systemTimeInMillis()); return this._dao_1.insertAsync_t065yt_k$(deleteCommand, $completion); }; function StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO StateDeleteCommand (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).bindPreparedStmtToEntity_m3gnit_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_sdcActorUid_xozwuc_k$()); stmt.setLong_j1sybo_k$(2, entity.get_sdcHash_xcr69j_k$()); stmt.setLong_j1sybo_k$(3, entity.get_sdcActivityUid_hw3jug_k$()); stmt.setString_2gt7ua_k$(4, entity.get_sdcStateId_yqyxs3_k$()); stmt.setLong_j1sybo_k$(5, entity.get_sdcLastMod_5onzi5_k$()); setLongNullable(stmt, 6, entity.get_sdcRegistrationHi_n4a6kj_k$()); setLongNullable(stmt, 7, entity.get_sdcRegistrationLo_n4a6o5_k$()); }; protoOf(StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_m3gnit_k$(stmt, entity instanceof StateDeleteCommand ? entity : THROW_CCE()); }; function StateDeleteCommandDao_JdbcImpl(_db) { StateDeleteCommandDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStateDeleteCommand_upsert_1 = new StateDeleteCommandDao_JdbcImpl$_insertAdapterStateDeleteCommand_upsert$1(this); } protoOf(StateDeleteCommandDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StateDeleteCommandDao_JdbcImpl).get__insertAdapterStateDeleteCommand_upsert_yqpxpb_k$ = function () { return this._insertAdapterStateDeleteCommand_upsert_1; }; protoOf(StateDeleteCommandDao_JdbcImpl).insertAsync_t065yt_k$ = function (deleteCommand, $completion) { return this._insertAdapterStateDeleteCommand_upsert_1.insertAsync_kic9b7_k$(deleteCommand, $completion); }; function StateDeleteCommandDao_Repo$insertAsync$slambda(this$0, $deleteCommand, resultContinuation) { this.this$0__1 = this$0; this.$deleteCommand_1 = $deleteCommand; CoroutineImpl.call(this, resultContinuation); } protoOf(StateDeleteCommandDao_Repo$insertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateDeleteCommandDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StateDeleteCommandDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_t065yt_k$(this.$deleteCommand_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateDeleteCommandDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new StateDeleteCommandDao_Repo$insertAsync$slambda(this.this$0__1, this.$deleteCommand_1, completion); }; function StateDeleteCommandDao_Repo$insertAsync$slambda_0(this$0, $deleteCommand, resultContinuation) { var i = new StateDeleteCommandDao_Repo$insertAsync$slambda(this$0, $deleteCommand, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StateDeleteCommandDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StateDeleteCommandDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(StateDeleteCommandDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StateDeleteCommandDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StateDeleteCommandDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StateDeleteCommandDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StateDeleteCommandDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StateDeleteCommandDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StateDeleteCommandDao_Repo).insertAsync_t065yt_k$ = function (deleteCommand, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StateDeleteCommand', StateDeleteCommandDao_Repo$insertAsync$slambda_0(this, deleteCommand, null), $completion); }; function StateEntityDao() { } function _get__db__e63s44_58($this) { return $this._db_1; } function _get__dao__d2kw60_56($this) { return $this._dao_1; } function StateEntityDao_DoorWrapper(_db, _dao) { StateEntityDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StateEntityDao_DoorWrapper).upsertAsync_jow7yi_k$ = function (stateEntities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = stateEntities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.StateEntityDao_DoorWrapper.upsertAsync.' call element.set_seLastMod_rbj81t_k$(systemTimeInMillis()); } return this._dao_1.upsertAsync_jow7yi_k$(stateEntities, $completion); }; protoOf(StateEntityDao_DoorWrapper).findByActorAndHash_priqot_k$ = function (accountPersonUid, actorUid, seHash, includeDeleted, $completion) { return this._dao_1.findByActorAndHash_priqot_k$(accountPersonUid, actorUid, seHash, includeDeleted, $completion); }; protoOf(StateEntityDao_DoorWrapper).findByAgentAndActivity_ti58q_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { return this._dao_1.findByAgentAndActivity_ti58q_k$(accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion); }; protoOf(StateEntityDao_DoorWrapper).getStateIds_s1g69f_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { return this._dao_1.getStateIds_s1g69f_k$(accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion); }; protoOf(StateEntityDao_DoorWrapper).getH5PPreload_f6pidb_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, $completion) { return this._dao_1.getH5PPreload_f6pidb_k$(accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, $completion); }; function StateEntityDao_JdbcImpl$findByActorAndHash$slambda$lambda(_result) { return mapNextRow(_result, null, StateEntityDao_JdbcImpl$findByActorAndHash$slambda$lambda$lambda(_result)); } function StateEntityDao_JdbcImpl$findByActorAndHash$slambda$lambda$lambda($_result) { return function (it) { var _tmp_seActorUid = $_result.getLong_3wgf2g_k$('seActorUid'); var _tmp_seHash = $_result.getLong_3wgf2g_k$('seHash'); var _tmp_seActivityUid = $_result.getLong_3wgf2g_k$('seActivityUid'); var _tmp_seStateId = getStringNonNull($_result, 'seStateId'); var _tmp_seLastMod = $_result.getLong_3wgf2g_k$('seLastMod'); var _tmp_seTimeStored = $_result.getLong_3wgf2g_k$('seTimeStored'); var _tmp_seContentType = getStringNonNull($_result, 'seContentType'); var _tmp_seCompressed = $_result.getInt_npc9pd_k$('seCompressed'); var _tmp_seContent = getStringNonNull($_result, 'seContent'); var _tmp_seDeleted = $_result.getBoolean_xz3hoo_k$('seDeleted'); var _tmp_seRegistrationHi = getLongNullable($_result, 'seRegistrationHi'); var _tmp_seRegistrationLo = getLongNullable($_result, 'seRegistrationLo'); var _tmp_seH5PPreloaded = $_result.getBoolean_xz3hoo_k$('seH5PPreloaded'); var _tmp_seH5PSubContentId = $_result.getString_gb1pt9_k$('seH5PSubContentId'); // Inline function 'kotlin.apply' call var this_0 = new StateEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StateEntityDao_JdbcImpl.findByActorAndHash....' call this_0.set_seActorUid_jihbg_k$(_tmp_seActorUid); this_0.set_seHash_wek43l_k$(_tmp_seHash); this_0.set_seActivityUid_s47jpw_k$(_tmp_seActivityUid); this_0.set_seStateId_7jplxp_k$(_tmp_seStateId); this_0.set_seLastMod_rbj81t_k$(_tmp_seLastMod); this_0.set_seTimeStored_hhu2kf_k$(_tmp_seTimeStored); this_0.set_seContentType_m6nc6_k$(_tmp_seContentType); this_0.set_seCompressed_jbdkrc_k$(_tmp_seCompressed); this_0.set_seContent_9n5b28_k$(_tmp_seContent); this_0.set_seDeleted_300q0l_k$(_tmp_seDeleted); this_0.set_seRegistrationHi_1ij56m_k$(_tmp_seRegistrationHi); this_0.set_seRegistrationLo_iu9p1c_k$(_tmp_seRegistrationLo); this_0.set_seH5PPreloaded_fnkoin_k$(_tmp_seH5PPreloaded); this_0.set_seH5PSubContentId_ax8zwv_k$(_tmp_seH5PSubContentId); return this_0; }; } function StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda$lambda(_result) { return mapRows(_result, StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda$lambda$lambda(_result)); } function StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda$lambda$lambda($_result) { return function (it) { var _tmp_seActorUid = $_result.getLong_3wgf2g_k$('seActorUid'); var _tmp_seHash = $_result.getLong_3wgf2g_k$('seHash'); var _tmp_seActivityUid = $_result.getLong_3wgf2g_k$('seActivityUid'); var _tmp_seStateId = getStringNonNull($_result, 'seStateId'); var _tmp_seLastMod = $_result.getLong_3wgf2g_k$('seLastMod'); var _tmp_seTimeStored = $_result.getLong_3wgf2g_k$('seTimeStored'); var _tmp_seContentType = getStringNonNull($_result, 'seContentType'); var _tmp_seCompressed = $_result.getInt_npc9pd_k$('seCompressed'); var _tmp_seContent = getStringNonNull($_result, 'seContent'); var _tmp_seDeleted = $_result.getBoolean_xz3hoo_k$('seDeleted'); var _tmp_seRegistrationHi = getLongNullable($_result, 'seRegistrationHi'); var _tmp_seRegistrationLo = getLongNullable($_result, 'seRegistrationLo'); var _tmp_seH5PPreloaded = $_result.getBoolean_xz3hoo_k$('seH5PPreloaded'); var _tmp_seH5PSubContentId = $_result.getString_gb1pt9_k$('seH5PSubContentId'); // Inline function 'kotlin.apply' call var this_0 = new StateEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StateEntityDao_JdbcImpl.findByAgentAndActivity....' call this_0.set_seActorUid_jihbg_k$(_tmp_seActorUid); this_0.set_seHash_wek43l_k$(_tmp_seHash); this_0.set_seActivityUid_s47jpw_k$(_tmp_seActivityUid); this_0.set_seStateId_7jplxp_k$(_tmp_seStateId); this_0.set_seLastMod_rbj81t_k$(_tmp_seLastMod); this_0.set_seTimeStored_hhu2kf_k$(_tmp_seTimeStored); this_0.set_seContentType_m6nc6_k$(_tmp_seContentType); this_0.set_seCompressed_jbdkrc_k$(_tmp_seCompressed); this_0.set_seContent_9n5b28_k$(_tmp_seContent); this_0.set_seDeleted_300q0l_k$(_tmp_seDeleted); this_0.set_seRegistrationHi_1ij56m_k$(_tmp_seRegistrationHi); this_0.set_seRegistrationLo_iu9p1c_k$(_tmp_seRegistrationLo); this_0.set_seH5PPreloaded_fnkoin_k$(_tmp_seH5PPreloaded); this_0.set_seH5PSubContentId_ax8zwv_k$(_tmp_seH5PSubContentId); return this_0; }; } function StateEntityDao_JdbcImpl$getStateIds$slambda$lambda(_result) { return mapRows(_result, StateEntityDao_JdbcImpl$getStateIds$slambda$lambda$lambda(_result)); } function StateEntityDao_JdbcImpl$getStateIds$slambda$lambda$lambda($_result) { return function (it) { var _tmp_seStateId = getStringNonNull($_result, 'seStateId'); var _tmp_seLastMod = $_result.getLong_3wgf2g_k$('seLastMod'); // Inline function 'kotlin.apply' call var this_0 = new StateIdAndLastModified(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StateEntityDao_JdbcImpl.getStateIds....' call this_0.set_seStateId_7jplxp_k$(_tmp_seStateId); this_0.set_seLastMod_rbj81t_k$(_tmp_seLastMod); return this_0; }; } function StateEntityDao_JdbcImpl$getH5PPreload$slambda$lambda(_result) { return mapRows(_result, StateEntityDao_JdbcImpl$getH5PPreload$slambda$lambda$lambda(_result)); } function StateEntityDao_JdbcImpl$getH5PPreload$slambda$lambda$lambda($_result) { return function (it) { var _tmp_seActorUid = $_result.getLong_3wgf2g_k$('seActorUid'); var _tmp_seHash = $_result.getLong_3wgf2g_k$('seHash'); var _tmp_seActivityUid = $_result.getLong_3wgf2g_k$('seActivityUid'); var _tmp_seStateId = getStringNonNull($_result, 'seStateId'); var _tmp_seLastMod = $_result.getLong_3wgf2g_k$('seLastMod'); var _tmp_seTimeStored = $_result.getLong_3wgf2g_k$('seTimeStored'); var _tmp_seContentType = getStringNonNull($_result, 'seContentType'); var _tmp_seCompressed = $_result.getInt_npc9pd_k$('seCompressed'); var _tmp_seContent = getStringNonNull($_result, 'seContent'); var _tmp_seDeleted = $_result.getBoolean_xz3hoo_k$('seDeleted'); var _tmp_seRegistrationHi = getLongNullable($_result, 'seRegistrationHi'); var _tmp_seRegistrationLo = getLongNullable($_result, 'seRegistrationLo'); var _tmp_seH5PPreloaded = $_result.getBoolean_xz3hoo_k$('seH5PPreloaded'); var _tmp_seH5PSubContentId = $_result.getString_gb1pt9_k$('seH5PSubContentId'); // Inline function 'kotlin.apply' call var this_0 = new StateEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StateEntityDao_JdbcImpl.getH5PPreload....' call this_0.set_seActorUid_jihbg_k$(_tmp_seActorUid); this_0.set_seHash_wek43l_k$(_tmp_seHash); this_0.set_seActivityUid_s47jpw_k$(_tmp_seActivityUid); this_0.set_seStateId_7jplxp_k$(_tmp_seStateId); this_0.set_seLastMod_rbj81t_k$(_tmp_seLastMod); this_0.set_seTimeStored_hhu2kf_k$(_tmp_seTimeStored); this_0.set_seContentType_m6nc6_k$(_tmp_seContentType); this_0.set_seCompressed_jbdkrc_k$(_tmp_seCompressed); this_0.set_seContent_9n5b28_k$(_tmp_seContent); this_0.set_seDeleted_300q0l_k$(_tmp_seDeleted); this_0.set_seRegistrationHi_1ij56m_k$(_tmp_seRegistrationHi); this_0.set_seRegistrationLo_iu9p1c_k$(_tmp_seRegistrationLo); this_0.set_seH5PPreloaded_fnkoin_k$(_tmp_seH5PPreloaded); this_0.set_seH5PSubContentId_ax8zwv_k$(_tmp_seH5PSubContentId); return this_0; }; } function StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO StateEntity (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).bindPreparedStmtToEntity_9i4qqw_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_seActorUid_tr8kiy_k$()); stmt.setLong_j1sybo_k$(2, entity.get_seHash_jepwnd_k$()); stmt.setLong_j1sybo_k$(3, entity.get_seActivityUid_ny2k12_k$()); stmt.setString_2gt7ua_k$(4, entity.get_seStateId_okwh5b_k$()); stmt.setLong_j1sybo_k$(5, entity.get_seLastMod_60knjl_k$()); stmt.setLong_j1sybo_k$(6, entity.get_seTimeStored_68pib9_k$()); stmt.setString_2gt7ua_k$(7, entity.get_seContentType_woisfs_k$()); stmt.setInt_c72a8z_k$(8, entity.get_seCompressed_pgx744_k$()); stmt.setString_2gt7ua_k$(9, entity.get_seContent_mj4ftq_k$()); stmt.setBoolean_pzdm1v_k$(10, entity.get_seDeleted_wfpn0e_k$()); setLongNullable(stmt, 11, entity.get_seRegistrationHi_h747u3_k$()); setLongNullable(stmt, 12, entity.get_seRegistrationLo_h747qh_k$()); stmt.setBoolean_pzdm1v_k$(13, entity.get_seH5PPreloaded_ujtkw0_k$()); stmt.setString_2gt7ua_k$(14, entity.get_seH5PSubContentId_clqi6c_k$()); }; protoOf(StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_9i4qqw_k$(stmt, entity instanceof StateEntity ? entity : THROW_CCE()); }; function StateEntityDao_JdbcImpl$findByActorAndHash$slambda($actorUid, $accountPersonUid, $seHash, $includeDeleted, resultContinuation) { this.$actorUid_1 = $actorUid; this.$accountPersonUid_1 = $accountPersonUid; this.$seHash_1 = $seHash; this.$includeDeleted_1 = $includeDeleted; CoroutineImpl.call(this, resultContinuation); } protoOf(StateEntityDao_JdbcImpl$findByActorAndHash$slambda).invoke_iwbzso_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_JdbcImpl$findByActorAndHash$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_iwbzso_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StateEntityDao_JdbcImpl$findByActorAndHash$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$seHash_1); this._stmt_1.setBoolean_pzdm1v_k$(5, this.$includeDeleted_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StateEntityDao_JdbcImpl$findByActorAndHash$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateEntityDao_JdbcImpl$findByActorAndHash$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StateEntityDao_JdbcImpl$findByActorAndHash$slambda(this.$actorUid_1, this.$accountPersonUid_1, this.$seHash_1, this.$includeDeleted_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StateEntityDao_JdbcImpl$findByActorAndHash$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StateEntityDao_JdbcImpl$findByActorAndHash$slambda_0($actorUid, $accountPersonUid, $seHash, $includeDeleted, resultContinuation) { var i = new StateEntityDao_JdbcImpl$findByActorAndHash$slambda($actorUid, $accountPersonUid, $seHash, $includeDeleted, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_iwbzso_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation) { this.$actorUid_1 = $actorUid; this.$accountPersonUid_1 = $accountPersonUid; this.$seActivityUid_1 = $seActivityUid; this.$modifiedSince_1 = $modifiedSince; this.$registrationUuidHi_1 = $registrationUuidHi; this.$registrationUuidLo_1 = $registrationUuidLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda).invoke_bok901_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bok901_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$seActivityUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$modifiedSince_1); this._stmt_1.setLong_j1sybo_k$(6, this.$modifiedSince_1); setLongNullable(this._stmt_1, 7, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 8, this.$registrationUuidLo_1); setLongNullable(this._stmt_1, 9, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 10, this.$registrationUuidLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda(this.$actorUid_1, this.$accountPersonUid_1, this.$seActivityUid_1, this.$modifiedSince_1, this.$registrationUuidHi_1, this.$registrationUuidLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda_0($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation) { var i = new StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bok901_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StateEntityDao_JdbcImpl$getStateIds$slambda($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation) { this.$actorUid_1 = $actorUid; this.$accountPersonUid_1 = $accountPersonUid; this.$seActivityUid_1 = $seActivityUid; this.$modifiedSince_1 = $modifiedSince; this.$registrationUuidHi_1 = $registrationUuidHi; this.$registrationUuidLo_1 = $registrationUuidLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StateEntityDao_JdbcImpl$getStateIds$slambda).invoke_46s3kk_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_JdbcImpl$getStateIds$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_46s3kk_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StateEntityDao_JdbcImpl$getStateIds$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$seActivityUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$modifiedSince_1); this._stmt_1.setLong_j1sybo_k$(6, this.$modifiedSince_1); setLongNullable(this._stmt_1, 7, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 8, this.$registrationUuidLo_1); setLongNullable(this._stmt_1, 9, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 10, this.$registrationUuidLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StateEntityDao_JdbcImpl$getStateIds$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateEntityDao_JdbcImpl$getStateIds$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StateEntityDao_JdbcImpl$getStateIds$slambda(this.$actorUid_1, this.$accountPersonUid_1, this.$seActivityUid_1, this.$modifiedSince_1, this.$registrationUuidHi_1, this.$registrationUuidLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StateEntityDao_JdbcImpl$getStateIds$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StateEntityDao_JdbcImpl$getStateIds$slambda_0($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation) { var i = new StateEntityDao_JdbcImpl$getStateIds$slambda($actorUid, $accountPersonUid, $seActivityUid, $modifiedSince, $registrationUuidHi, $registrationUuidLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_46s3kk_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StateEntityDao_JdbcImpl$getH5PPreload$slambda($actorUid, $accountPersonUid, $seActivityUid, $registrationUuidHi, $registrationUuidLo, resultContinuation) { this.$actorUid_1 = $actorUid; this.$accountPersonUid_1 = $accountPersonUid; this.$seActivityUid_1 = $seActivityUid; this.$registrationUuidHi_1 = $registrationUuidHi; this.$registrationUuidLo_1 = $registrationUuidLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StateEntityDao_JdbcImpl$getH5PPreload$slambda).invoke_bok901_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_JdbcImpl$getH5PPreload$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_bok901_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StateEntityDao_JdbcImpl$getH5PPreload$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$seActivityUid_1); setLongNullable(this._stmt_1, 5, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 6, this.$registrationUuidLo_1); setLongNullable(this._stmt_1, 7, this.$registrationUuidHi_1); setLongNullable(this._stmt_1, 8, this.$registrationUuidLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StateEntityDao_JdbcImpl$getH5PPreload$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateEntityDao_JdbcImpl$getH5PPreload$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StateEntityDao_JdbcImpl$getH5PPreload$slambda(this.$actorUid_1, this.$accountPersonUid_1, this.$seActivityUid_1, this.$registrationUuidHi_1, this.$registrationUuidLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StateEntityDao_JdbcImpl$getH5PPreload$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StateEntityDao_JdbcImpl$getH5PPreload$slambda_0($actorUid, $accountPersonUid, $seActivityUid, $registrationUuidHi, $registrationUuidLo, resultContinuation) { var i = new StateEntityDao_JdbcImpl$getH5PPreload$slambda($actorUid, $accountPersonUid, $seActivityUid, $registrationUuidHi, $registrationUuidLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_bok901_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StateEntityDao_JdbcImpl(_db) { StateEntityDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStateEntity_upsert_1 = new StateEntityDao_JdbcImpl$_insertAdapterStateEntity_upsert$1(this); } protoOf(StateEntityDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StateEntityDao_JdbcImpl).get__insertAdapterStateEntity_upsert_jy0sxm_k$ = function () { return this._insertAdapterStateEntity_upsert_1; }; protoOf(StateEntityDao_JdbcImpl).upsertAsync_jow7yi_k$ = function (stateEntities, $completion) { return this._insertAdapterStateEntity_upsert_1.insertListAsync_it2cbm_k$(stateEntities, $completion); }; protoOf(StateEntityDao_JdbcImpl).findByActorAndHash_priqot_k$ = function (accountPersonUid, actorUid, seHash, includeDeleted, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)) = CAST(? AS BIGINT)\n AND seActorUid = CAST(? AS BIGINT)\n AND seHash = CAST(? AS BIGINT)\n AND ( CAST(? AS INTEGER) = 1 \n OR CAST(StateEntity.seDeleted AS INTEGER) = 0)\n ', VOID, VOID, VOID, '\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?) = ?\n AND seActorUid = ?\n AND seHash = ?\n AND ( CAST(? AS INTEGER) = 1 \n OR CAST(StateEntity.seDeleted AS INTEGER) = 0)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StateEntityDao_JdbcImpl$findByActorAndHash$slambda_0(actorUid, accountPersonUid, seHash, includeDeleted, null), $completion); }; protoOf(StateEntityDao_JdbcImpl).findByAgentAndActivity_ti58q_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)) = CAST(? AS BIGINT)\n AND seActorUid = CAST(? AS BIGINT)\n AND seActivityUid = CAST(? AS BIGINT)\n AND (CAST(? AS BIGINT) = 0 OR StateEntity.seLastMod > CAST(? AS BIGINT))\n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seStateId IS NOT NULL \n ', VOID, VOID, VOID, '\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?) = ?\n AND seActorUid = ?\n AND seActivityUid = ?\n AND (? = 0 OR StateEntity.seLastMod > ?)\n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seStateId IS NOT NULL \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StateEntityDao_JdbcImpl$findByAgentAndActivity$slambda_0(actorUid, accountPersonUid, seActivityUid, modifiedSince, registrationUuidHi, registrationUuidLo, null), $completion); }; protoOf(StateEntityDao_JdbcImpl).getStateIds_s1g69f_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StateEntity.seStateId, StateEntity.seLastMod\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)) = CAST(? AS BIGINT)\n AND seActorUid = CAST(? AS BIGINT)\n AND seActivityUid = CAST(? AS BIGINT)\n AND (CAST(? AS BIGINT) = 0 OR StateEntity.seLastMod > CAST(? AS BIGINT))\n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seStateId IS NOT NULL \n AND CAST(StateEntity.seDeleted AS INTEGER) = 0 \n ', VOID, VOID, VOID, '\n SELECT StateEntity.seStateId, StateEntity.seLastMod\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?) = ?\n AND seActorUid = ?\n AND seActivityUid = ?\n AND (? = 0 OR StateEntity.seLastMod > ?)\n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seStateId IS NOT NULL \n AND CAST(StateEntity.seDeleted AS INTEGER) = 0 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StateEntityDao_JdbcImpl$getStateIds$slambda_0(actorUid, accountPersonUid, seActivityUid, modifiedSince, registrationUuidHi, registrationUuidLo, null), $completion); }; protoOf(StateEntityDao_JdbcImpl).getH5PPreload_f6pidb_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)) = CAST(? AS BIGINT)\n AND seActorUid = CAST(? AS BIGINT)\n AND seActivityUid = CAST(? AS BIGINT) \n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seH5PSubContentId IS NOT NULL \n AND CAST(StateEntity.seH5PPreloaded AS INTEGER) = 1 \n ', VOID, VOID, VOID, '\n SELECT StateEntity.*\n FROM StateEntity\n WHERE (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?) = ?\n AND seActorUid = ?\n AND seActivityUid = ? \n AND (( ? IS NULL\n AND StateEntity.seRegistrationHi IS NULL\n AND ? IS NULL \n AND StateEntity.seRegistrationLo IS NULL)\n OR ( StateEntity.seRegistrationHi = ? \n AND StateEntity.seRegistrationLo = ?))\n AND StateEntity.seH5PSubContentId IS NOT NULL \n AND CAST(StateEntity.seH5PPreloaded AS INTEGER) = 1 \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StateEntityDao_JdbcImpl$getH5PPreload$slambda_0(actorUid, accountPersonUid, seActivityUid, registrationUuidHi, registrationUuidLo, null), $completion); }; function StateEntityDao_Repo$upsertAsync$slambda(this$0, $stateEntities, resultContinuation) { this.this$0__1 = this$0; this.$stateEntities_1 = $stateEntities; CoroutineImpl.call(this, resultContinuation); } protoOf(StateEntityDao_Repo$upsertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_Repo$upsertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StateEntityDao_Repo$upsertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertAsync_jow7yi_k$(this.$stateEntities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StateEntityDao_Repo$upsertAsync$slambda).create_d196fn_k$ = function (completion) { return new StateEntityDao_Repo$upsertAsync$slambda(this.this$0__1, this.$stateEntities_1, completion); }; function StateEntityDao_Repo$upsertAsync$slambda_0(this$0, $stateEntities, resultContinuation) { var i = new StateEntityDao_Repo$upsertAsync$slambda(this$0, $stateEntities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StateEntityDao_Repo$findByActorAndHash$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StateEntityDao_Repo$findByAgentAndActivity$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StateEntityDao_Repo$getStateIds$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findByActorAndHashCOROUTINE$448(_this__u8e3s4, accountPersonUid, actorUid, seHash, includeDeleted, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; this.seHash_1 = seHash; this.includeDeleted_1 = includeDeleted; } protoOf($findByActorAndHashCOROUTINE$448).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StateEntityDao/findByActorAndHash'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'StateEntityDao/findByActorAndHash'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'actorUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.actorUid_1)); parameter(this_0, 'seHash', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.seHash_1)); parameter(this_0, 'includeDeleted', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_2(BooleanCompanionObject_getInstance()), this.includeDeleted_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, StateEntityDao_Repo$findByActorAndHash$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByActorAndHash_priqot_k$(this.accountPersonUid_1, this.actorUid_1, this.seHash_1, this.includeDeleted_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByAgentAndActivityCOROUTINE$449(_this__u8e3s4, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; this.seActivityUid_1 = seActivityUid; this.registrationUuidHi_1 = registrationUuidHi; this.registrationUuidLo_1 = registrationUuidLo; this.modifiedSince_1 = modifiedSince; } protoOf($findByAgentAndActivityCOROUTINE$449).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StateEntityDao/findByAgentAndActivity'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'StateEntityDao/findByAgentAndActivity'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'actorUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.actorUid_1)); parameter(this_0, 'seActivityUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.seActivityUid_1)); parameter(this_0, 'registrationUuidHi', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer(Companion_getInstance())), this.registrationUuidHi_1)); parameter(this_0, 'registrationUuidLo', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer(Companion_getInstance())), this.registrationUuidLo_1)); parameter(this_0, 'modifiedSince', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.modifiedSince_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, StateEntityDao_Repo$findByAgentAndActivity$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findByAgentAndActivity_ti58q_k$(this.accountPersonUid_1, this.actorUid_1, this.seActivityUid_1, this.registrationUuidHi_1, this.registrationUuidLo_1, this.modifiedSince_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getStateIdsCOROUTINE$450(_this__u8e3s4, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; this.seActivityUid_1 = seActivityUid; this.registrationUuidHi_1 = registrationUuidHi; this.registrationUuidLo_1 = registrationUuidLo; this.modifiedSince_1 = modifiedSince; } protoOf($getStateIdsCOROUTINE$450).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StateEntityDao/getStateIds'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'StateEntityDao/getStateIds'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'actorUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.actorUid_1)); parameter(this_0, 'seActivityUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.seActivityUid_1)); parameter(this_0, 'registrationUuidHi', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer(Companion_getInstance())), this.registrationUuidHi_1)); parameter(this_0, 'registrationUuidLo', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer(Companion_getInstance())), this.registrationUuidLo_1)); parameter(this_0, 'modifiedSince', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.modifiedSince_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, StateEntityDao_Repo$getStateIds$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.getStateIds_s1g69f_k$(this.accountPersonUid_1, this.actorUid_1, this.seActivityUid_1, this.registrationUuidHi_1, this.registrationUuidLo_1, this.modifiedSince_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getH5PPreloadCOROUTINE$451(_this__u8e3s4, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; this.seActivityUid_1 = seActivityUid; this.registrationUuidHi_1 = registrationUuidHi; this.registrationUuidLo_1 = registrationUuidLo; } protoOf($getH5PPreloadCOROUTINE$451).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getH5PPreload_f6pidb_k$(this.accountPersonUid_1, this.actorUid_1, this.seActivityUid_1, this.registrationUuidHi_1, this.registrationUuidLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function StateEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StateEntityDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(StateEntityDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StateEntityDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StateEntityDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StateEntityDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StateEntityDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StateEntityDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StateEntityDao_Repo).upsertAsync_jow7yi_k$ = function (stateEntities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StateEntity', StateEntityDao_Repo$upsertAsync$slambda_0(this, stateEntities, null), $completion); }; protoOf(StateEntityDao_Repo).findByActorAndHash_priqot_k$ = function (accountPersonUid, actorUid, seHash, includeDeleted, $completion) { var tmp = new $findByActorAndHashCOROUTINE$448(this, accountPersonUid, actorUid, seHash, includeDeleted, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_Repo).findByAgentAndActivity_ti58q_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { var tmp = new $findByAgentAndActivityCOROUTINE$449(this, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_Repo).getStateIds_s1g69f_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion) { var tmp = new $getStateIdsCOROUTINE$450(this, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, modifiedSince, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StateEntityDao_Repo).getH5PPreload_f6pidb_k$ = function (accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, $completion) { var tmp = new $getH5PPreloadCOROUTINE$451(this, accountPersonUid, actorUid, seActivityUid, registrationUuidHi, registrationUuidLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function StatementContextActivityJoinDao() { } function _get__db__e63s44_59($this) { return $this._db_1; } function _get__dao__d2kw60_57($this) { return $this._dao_1; } function StatementContextActivityJoinDao_DoorWrapper(_db, _dao) { StatementContextActivityJoinDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StatementContextActivityJoinDao_DoorWrapper).insertOrIgnoreListAsync_gq420m_k$ = function (entities, $completion) { return this._dao_1.insertOrIgnoreListAsync_gq420m_k$(entities, $completion); }; protoOf(StatementContextActivityJoinDao_DoorWrapper).findAllByStatementId_q9mbkn_k$ = function (statementIdHi, statementIdLo, scajContextType, $completion) { return this._dao_1.findAllByStatementId_q9mbkn_k$(statementIdHi, statementIdLo, scajContextType, $completion); }; function StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda$lambda(_result) { return mapRows(_result, StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda$lambda$lambda(_result)); } function StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda$lambda$lambda($_result) { return function (it) { var _tmp_scajFromStatementIdHi = $_result.getLong_3wgf2g_k$('scajFromStatementIdHi'); var _tmp_scajFromStatementIdLo = $_result.getLong_3wgf2g_k$('scajFromStatementIdLo'); var _tmp_scajToHash = $_result.getLong_3wgf2g_k$('scajToHash'); var _tmp_scajContextType = $_result.getInt_npc9pd_k$('scajContextType'); var _tmp_scajToActivityUid = $_result.getLong_3wgf2g_k$('scajToActivityUid'); var _tmp_scajToActivityId = $_result.getString_gb1pt9_k$('scajToActivityId'); var _tmp_scajEtag = $_result.getLong_3wgf2g_k$('scajEtag'); // Inline function 'kotlin.apply' call var this_0 = new StatementContextActivityJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementContextActivityJoinDao_JdbcImpl.findAllByStatementId....' call this_0.set_scajFromStatementIdHi_xv9hil_k$(_tmp_scajFromStatementIdHi); this_0.set_scajFromStatementIdLo_3iszsf_k$(_tmp_scajFromStatementIdLo); this_0.set_scajToHash_icqxof_k$(_tmp_scajToHash); this_0.set_scajContextType_yrssz9_k$(_tmp_scajContextType); this_0.set_scajToActivityUid_5fdjzi_k$(_tmp_scajToActivityUid); this_0.set_scajToActivityId_z87bw_k$(_tmp_scajToActivityId); this_0.set_scajEtag_frphwt_k$(_tmp_scajEtag); return this_0; }; } function StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO StatementContextActivityJoin (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) VALUES(?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).bindPreparedStmtToEntity_4mwwjl_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_scajFromStatementIdHi_qulo69_k$()); stmt.setLong_j1sybo_k$(2, entity.get_scajFromStatementIdLo_qulo2n_k$()); stmt.setLong_j1sybo_k$(3, entity.get_scajToHash_pj4nzp_k$()); stmt.setInt_c72a8z_k$(4, entity.get_scajContextType_dvqb8n_k$()); stmt.setLong_j1sybo_k$(5, entity.get_scajToActivityUid_smm9b8_k$()); stmt.setString_2gt7ua_k$(6, entity.get_scajToActivityId_f460ft_k$()); stmt.setLong_j1sybo_k$(7, entity.get_scajEtag_ofj8qf_k$()); }; protoOf(StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_4mwwjl_k$(stmt, entity instanceof StatementContextActivityJoin ? entity : THROW_CCE()); }; function StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda($statementIdHi, $statementIdLo, $scajContextType, resultContinuation) { this.$statementIdHi_1 = $statementIdHi; this.$statementIdLo_1 = $statementIdLo; this.$scajContextType_1 = $scajContextType; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda).invoke_6z0dyw_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_6z0dyw_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$statementIdHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$statementIdLo_1); this._stmt_1.setInt_c72a8z_k$(3, this.$scajContextType_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda(this.$statementIdHi_1, this.$statementIdLo_1, this.$scajContextType_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda_0($statementIdHi, $statementIdLo, $scajContextType, resultContinuation) { var i = new StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda($statementIdHi, $statementIdLo, $scajContextType, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_6z0dyw_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementContextActivityJoinDao_JdbcImpl(_db) { StatementContextActivityJoinDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStatementContextActivityJoin_ignore_1 = new StatementContextActivityJoinDao_JdbcImpl$_insertAdapterStatementContextActivityJoin_ignore$1(this); } protoOf(StatementContextActivityJoinDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementContextActivityJoinDao_JdbcImpl).get__insertAdapterStatementContextActivityJoin_ignore_f6wq20_k$ = function () { return this._insertAdapterStatementContextActivityJoin_ignore_1; }; protoOf(StatementContextActivityJoinDao_JdbcImpl).insertOrIgnoreListAsync_gq420m_k$ = function (entities, $completion) { return this._insertAdapterStatementContextActivityJoin_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(StatementContextActivityJoinDao_JdbcImpl).findAllByStatementId_q9mbkn_k$ = function (statementIdHi, statementIdLo, scajContextType, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementContextActivityJoin.*\n FROM StatementContextActivityJoin\n WHERE StatementContextActivityJoin.scajFromStatementIdHi = CAST(? AS BIGINT)\n AND StatementContextActivityJoin.scajFromStatementIdLo = CAST(? AS BIGINT)\n AND StatementContextActivityJoin.scajContextType = ?\n ', VOID, VOID, VOID, '\n SELECT StatementContextActivityJoin.*\n FROM StatementContextActivityJoin\n WHERE StatementContextActivityJoin.scajFromStatementIdHi = ?\n AND StatementContextActivityJoin.scajFromStatementIdLo = ?\n AND StatementContextActivityJoin.scajContextType = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementContextActivityJoinDao_JdbcImpl$findAllByStatementId$slambda_0(statementIdHi, statementIdLo, scajContextType, null), $completion); }; function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreListAsync_gq420m_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda).create_d196fn_k$ = function (completion) { return new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findAllByStatementIdCOROUTINE$452(_this__u8e3s4, statementIdHi, statementIdLo, scajContextType, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.statementIdHi_1 = statementIdHi; this.statementIdLo_1 = statementIdLo; this.scajContextType_1 = scajContextType; } protoOf($findAllByStatementIdCOROUTINE$452).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findAllByStatementId_q9mbkn_k$(this.statementIdHi_1, this.statementIdLo_1, this.scajContextType_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function StatementContextActivityJoinDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementContextActivityJoinDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(StatementContextActivityJoinDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementContextActivityJoinDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StatementContextActivityJoinDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StatementContextActivityJoinDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StatementContextActivityJoinDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StatementContextActivityJoinDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StatementContextActivityJoinDao_Repo).insertOrIgnoreListAsync_gq420m_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StatementContextActivityJoin', StatementContextActivityJoinDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entities, null), $completion); }; protoOf(StatementContextActivityJoinDao_Repo).findAllByStatementId_q9mbkn_k$ = function (statementIdHi, statementIdLo, scajContextType, $completion) { var tmp = new $findAllByStatementIdCOROUTINE$452(this, statementIdHi, statementIdLo, scajContextType, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function StatementDao() { } protoOf(StatementDao).findStatusForStudentsInClazzStatements$default_ad95o8_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findStatusForStudentsInClazzStatements_i1i1tv_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion) : $super.findStatusForStudentsInClazzStatements_i1i1tv_k$.call(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion); }; protoOf(StatementDao).findPersonsWithAttemptsStatements$default_re3bog_k$ = function (contentEntryUid, accountPersonUid, searchText, $completion, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findPersonsWithAttemptsStatements_oks7ch_k$(contentEntryUid, accountPersonUid, searchText, $completion) : $super.findPersonsWithAttemptsStatements_oks7ch_k$.call(this, contentEntryUid, accountPersonUid, searchText, $completion); }; protoOf(StatementDao).findPersonsWithAttempts$default_62yynp_k$ = function (contentEntryUid, accountPersonUid, searchText, sortOrder, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findPersonsWithAttempts_5xkx72_k$(contentEntryUid, accountPersonUid, searchText, sortOrder) : $super.findPersonsWithAttempts_5xkx72_k$.call(this, contentEntryUid, accountPersonUid, searchText, sortOrder); }; protoOf(StatementDao).findStatementsBySession$default_kyetur_k$ = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids, $super) { searchText = searchText === VOID ? '%' : searchText; return $super === VOID ? this.findStatementsBySession_149c38_k$(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) : $super.findStatementsBySession_149c38_k$.call(this, registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids); }; function _get__db__e63s44_60($this) { return $this._db_1; } function _get__dao__d2kw60_58($this) { return $this._dao_1; } function StatementDao_DoorWrapper(_db, _dao) { StatementDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StatementDao_DoorWrapper).insertOrIgnoreListAsync_9xzgy7_k$ = function (entityList, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entityList.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_DoorWrapper.insertOrIgnoreListAsync.' call element.set_statementLct_j41a6r_k$(systemTimeInMillis()); } return this._dao_1.insertOrIgnoreListAsync_9xzgy7_k$(entityList, $completion); }; protoOf(StatementDao_DoorWrapper).getOneStatement_3pmz33_k$ = function () { return this._dao_1.getOneStatement_3pmz33_k$(); }; protoOf(StatementDao_DoorWrapper).runReportQuery_ohgtcq_k$ = function (query, $completion) { return this._dao_1.runReportQuery_ohgtcq_k$(query, $completion); }; protoOf(StatementDao_DoorWrapper).getResults_ao1sua_k$ = function (query, $completion) { return this._dao_1.getResults_ao1sua_k$(query, $completion); }; protoOf(StatementDao_DoorWrapper).getListResults_e48hpn_k$ = function (query) { return this._dao_1.getListResults_e48hpn_k$(query); }; protoOf(StatementDao_DoorWrapper).getPerson_bnbk97_k$ = function () { throw IllegalStateException_init_$Create$('getPerson: synchronous db access is NOT possible on Javascript!'); }; protoOf(StatementDao_DoorWrapper).getStatements_yttaat_k$ = function (statementIdHi, statementIdLo, $completion) { return this._dao_1.getStatements_yttaat_k$(statementIdHi, statementIdLo, $completion); }; protoOf(StatementDao_DoorWrapper).findById_y0urkl_k$ = function (statementIdHi, statementIdLo, $completion) { return this._dao_1.findById_y0urkl_k$(statementIdHi, statementIdLo, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusStatementsByContentEntryUid_heu932_k$ = function (contentEntryUid, courseBlockUid, accountPersonUid, $completion) { return this._dao_1.findStatusStatementsByContentEntryUid_heu932_k$(contentEntryUid, courseBlockUid, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusStatementByParentContentEntryUid_52knt9_k$ = function (parentUid, accountPersonUid, $completion) { return this._dao_1.findStatusStatementByParentContentEntryUid_52knt9_k$(parentUid, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusStatementsForStudentByClazzUid_oz5le9_k$ = function (clazzUid, accountPersonUid, $completion) { return this._dao_1.findStatusStatementsForStudentByClazzUid_oz5le9_k$(clazzUid, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusForStudentsInClazzStatements_i1i1tv_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion) { return this._dao_1.findStatusForStudentsInClazzStatements_i1i1tv_k$(clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusForStudentsInClazzByUidList_jc2sb3_k$ = function (clazzUid, studentPersonUids, completionOrProgressTrueVal, $completion) { return this._dao_1.findStatusForStudentsInClazzByUidList_jc2sb3_k$(clazzUid, studentPersonUids, completionOrProgressTrueVal, $completion); }; protoOf(StatementDao_DoorWrapper).findActorEntitiesForStudentInClazzByUidList_4d9wuo_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { return this._dao_1.findActorEntitiesForStudentInClazzByUidList_4d9wuo_k$(clazzUid, studentPersonUids, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusForStudentsInClazz_96xzp1_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { return this._dao_1.findStatusForStudentsInClazz_96xzp1_k$(clazzUid, studentPersonUids, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findStatusForStudentsInClazzAsFlow_qt624z_k$ = function (clazzUid, studentPersonUids, accountPersonUid) { return this._dao_1.findStatusForStudentsInClazzAsFlow_qt624z_k$(clazzUid, studentPersonUids, accountPersonUid); }; protoOf(StatementDao_DoorWrapper).findResumableRegistration_5usfie_k$ = function (activityUid, accountPersonUid, actorUid, $completion) { return this._dao_1.findResumableRegistration_5usfie_k$(activityUid, accountPersonUid, actorUid, $completion); }; protoOf(StatementDao_DoorWrapper).findPersonsWithAttemptsStatements_oks7ch_k$ = function (contentEntryUid, accountPersonUid, searchText, $completion) { return this._dao_1.findPersonsWithAttemptsStatements_oks7ch_k$(contentEntryUid, accountPersonUid, searchText, $completion); }; protoOf(StatementDao_DoorWrapper).findPersonsWithAttempts_5xkx72_k$ = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { return this._dao_1.findPersonsWithAttempts_5xkx72_k$(contentEntryUid, accountPersonUid, searchText, sortOrder); }; protoOf(StatementDao_DoorWrapper).findSessionsByPersonAndContentStatements_232xtz_k$ = function (contentEntryUid, personUid, accountPersonUid, $completion) { return this._dao_1.findSessionsByPersonAndContentStatements_232xtz_k$(contentEntryUid, personUid, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findSessionsByPersonAndContent_et9scu_k$ = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { return this._dao_1.findSessionsByPersonAndContent_et9scu_k$(contentEntryUid, personUid, accountPersonUid, sortOrder); }; protoOf(StatementDao_DoorWrapper).findActivityEntryLangMapsForStatementsBySession_rhsfr7_k$ = function (registrationHi, registrationLo, $completion) { return this._dao_1.findActivityEntryLangMapsForStatementsBySession_rhsfr7_k$(registrationHi, registrationLo, $completion); }; protoOf(StatementDao_DoorWrapper).findStatementsBySession_149c38_k$ = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { return this._dao_1.findStatementsBySession_149c38_k$(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids); }; protoOf(StatementDao_DoorWrapper).getUniqueVerbsForSession_3y3dye_k$ = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { return this._dao_1.getUniqueVerbsForSession_3y3dye_k$(registrationHi, registrationLo, selectedPersonUid, contentEntryUid); }; protoOf(StatementDao_DoorWrapper).scoreOrProgressDataExistsForContent_or4jlz_k$ = function (contentEntryUid, accountPersonUid, $completion) { return this._dao_1.scoreOrProgressDataExistsForContent_or4jlz_k$(contentEntryUid, accountPersonUid, $completion); }; protoOf(StatementDao_DoorWrapper).findByUidWithActivityAsync_4260rf_k$ = function (statementIdHi, statementIdLo, $completion) { return this._dao_1.findByUidWithActivityAsync_4260rf_k$(statementIdHi, statementIdLo, $completion); }; function StatementDao_JdbcImpl$getOneStatement$slambda$slambda$lambda(_result) { return mapNextRow(_result, null, StatementDao_JdbcImpl$getOneStatement$slambda$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getOneStatement$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getOneStatement.....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$getOneStatement$slambda$slambda(resultContinuation) { CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getOneStatement$slambda$slambda).invoke_jbnrze_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jbnrze_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getOneStatement$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getOneStatement$slambda$slambda(completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getOneStatement$slambda$slambda_0(resultContinuation) { var i = new StatementDao_JdbcImpl$getOneStatement$slambda$slambda(resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jbnrze_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$runReportQuery$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$runReportQuery$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$runReportQuery$slambda$lambda$lambda($_result) { return function (it) { var _tmp_yAxis = $_result.getDouble_v37ict_k$('yAxis'); var _tmp_xAxis = getStringNonNull($_result, 'xAxis'); var _tmp_subgroup = getStringNonNull($_result, 'subgroup'); // Inline function 'kotlin.apply' call var this_0 = new StatementReportRow(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.runReportQuery....' call this_0.set_yAxis_h38e1_k$(_tmp_yAxis); this_0.set_xAxis_kfwwsu_k$(_tmp_xAxis); this_0.set_subgroup_fm60tq_k$(_tmp_subgroup); return this_0; }; } function StatementDao_JdbcImpl$getResults$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$getResults$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getResults$slambda$lambda$lambda($_result) { return function (it) { var _tmp_yAxis = $_result.getFloat_1jlp7w_k$('yAxis'); var _tmp_xAxis = $_result.getString_gb1pt9_k$('xAxis'); var _tmp_subgroup = $_result.getString_gb1pt9_k$('subgroup'); // Inline function 'kotlin.apply' call var this_0 = new StatementReportData(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getResults....' call this_0.set_yAxis_r9ssut_k$(_tmp_yAxis); this_0.set_xAxis_4spznp_k$(_tmp_xAxis); this_0.set_subgroup_2r7fmj_k$(_tmp_subgroup); return this_0; }; } function StatementDao_JdbcImpl$getListResults$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$getListResults$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getListResults$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_57; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_57 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_58; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_58 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; // Inline function 'kotlin.apply' call var this_0 = new StatementEntityAndDisplayDetails(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call if (!_tmp_StatementEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_1.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_1.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_1.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_1.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_1.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_1.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_1.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_1.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_1.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_1.set_teamUid_1x72ew_k$(_tmp_teamUid); this_1.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_1.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_1.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_1.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_1.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_1.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_1.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_1.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_1.set_timestamp_eha0cb_k$(_tmp_timestamp); this_1.set_stored_dr5tz2_k$(_tmp_stored); this_1.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_1.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_1.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_1.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_1.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_1.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_1.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_1.set_statementLct_j41a6r_k$(_tmp_statementLct); this_1.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_1.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_1.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_1.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_1.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_1.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_1.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_1.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); this_0.set_statement_bzd1hr_k$(this_1); } if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_2.set_personUid_j3idds_k$(_tmp_personUid); this_2.set_username_tgnlmk_k$(_tmp_username); this_2.set_firstNames_audc9u_k$(_tmp_firstNames); this_2.set_lastName_6ukpbb_k$(_tmp_lastName); this_2.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_2.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_2.set_gender_5r7pfa_k$(_tmp_gender); this_2.set_active_nmha5u_k$(_tmp_active); this_2.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_2.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_2.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_2.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_2.set_personLct_aq7lf1_k$(_tmp_personLct); this_2.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_2.set_personType_przf38_k$(_tmp_personType); this_2.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_2.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_2.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_2.set_admin_llzh0j_k$(_tmp_admin); this_2.set_personNotes_4l39dk_k$(_tmp_personNotes); this_2.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_2.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_2.set_motherName_y7zjzg_k$(_tmp_motherName); this_2.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_xr31gf_k$(this_2); } return this_0; }; } function StatementDao_JdbcImpl$getListResults$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$getListResults$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getListResults$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function StatementDao_JdbcImpl$getListResults$o$loadRows$slambda($query, this$0, resultContinuation) { this.$query_1 = $query; this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda).invoke_ms2nn7_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ms2nn7_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.$query_1.bindToPreparedStmt_le67fq_k$(this._stmt_1, this.this$0__1._db_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getListResults$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getListResults$o$loadRows$slambda(this.$query_1, this.this$0__1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getListResults$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getListResults$o$loadRows$slambda_0($query, this$0, resultContinuation) { var i = new StatementDao_JdbcImpl$getListResults$o$loadRows$slambda($query, this$0, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ms2nn7_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getListResults$o$countRows$slambda($query, this$0, resultContinuation) { this.$query_1 = $query; this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getListResults$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getListResults$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getListResults$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.$query_1.bindToPreparedStmt_le67fq_k$(this._stmt_1, this.this$0__1._db_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getListResults$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getListResults$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getListResults$o$countRows$slambda(this.$query_1, this.this$0__1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getListResults$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getListResults$o$countRows$slambda_0($query, this$0, resultContinuation) { var i = new StatementDao_JdbcImpl$getListResults$o$countRows$slambda($query, this$0, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getStatements$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$getStatements$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getStatements$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getStatements....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findById$slambda$lambda(_result) { return mapNextRow(_result, null, StatementDao_JdbcImpl$findById$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findById$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findById....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusStatementsByContentEntryUid....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusStatementByParentContentEntryUid....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusStatementsForStudentByClazzUid....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda$lambda$lambda($_result) { return function (it) { var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_GroupMemberActorJoin_nullCount = 0; var _tmp_gmajGroupActorUid = $_result.getLong_3wgf2g_k$('gmajGroupActorUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_gmajMemberActorUid = $_result.getLong_3wgf2g_k$('gmajMemberActorUid'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_gmajLastMod = $_result.getLong_3wgf2g_k$('gmajLastMod'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_GroupMemberActorJoin_isAllNull = _tmp_GroupMemberActorJoin_nullCount === 3; var _tmp_ActorEntity_nullCount = 0; var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_ActorEntity_isAllNull = _tmp_ActorEntity_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new StatementEntityAndRelated(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzStatements....' call if (!_tmp_StatementEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzStatements.....' call this_1.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_1.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_1.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_1.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_1.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_1.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_1.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_1.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_1.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_1.set_teamUid_1x72ew_k$(_tmp_teamUid); this_1.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_1.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_1.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_1.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_1.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_1.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_1.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_1.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_1.set_timestamp_eha0cb_k$(_tmp_timestamp); this_1.set_stored_dr5tz2_k$(_tmp_stored); this_1.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_1.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_1.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_1.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_1.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_1.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_1.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_1.set_statementLct_j41a6r_k$(_tmp_statementLct); this_1.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_1.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_1.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_1.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_1.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_1.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_1.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_1.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); this_0.set_statementEntity_5iilp0_k$(this_1); } if (!_tmp_GroupMemberActorJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new GroupMemberActorJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzStatements.....' call this_2.set_gmajGroupActorUid_t579cg_k$(_tmp_gmajGroupActorUid); this_2.set_gmajMemberActorUid_fnocj_k$(_tmp_gmajMemberActorUid); this_2.set_gmajLastMod_ign14y_k$(_tmp_gmajLastMod); this_0.set_groupMemberActorJoin_12ntwe_k$(this_2); } if (!_tmp_ActorEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzStatements.....' call this_3.set_actorUid_wjpps6_k$(_tmp_actorUid); this_3.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_3.set_actorName_t0c818_k$(_tmp_actorName); this_3.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_3.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_3.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_3.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_3.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_3.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_3.set_actorLct_u43k87_k$(_tmp_actorLct); this_3.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); this_0.set_actorEntity_e8g3kk_k$(this_3); } return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda$lambda$lambda($_result) { return function (it) { var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_GroupMemberActorJoin_nullCount = 0; var _tmp_gmajGroupActorUid = $_result.getLong_3wgf2g_k$('gmajGroupActorUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_gmajMemberActorUid = $_result.getLong_3wgf2g_k$('gmajMemberActorUid'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_gmajLastMod = $_result.getLong_3wgf2g_k$('gmajLastMod'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_GroupMemberActorJoin_nullCount = _tmp_GroupMemberActorJoin_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_GroupMemberActorJoin_isAllNull = _tmp_GroupMemberActorJoin_nullCount === 3; var _tmp_ActorEntity_nullCount = 0; var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActorEntity_nullCount = _tmp_ActorEntity_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_ActorEntity_isAllNull = _tmp_ActorEntity_nullCount === 11; // Inline function 'kotlin.apply' call var this_0 = new StatementEntityAndRelated(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzByUidList....' call if (!_tmp_StatementEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzByUidList.....' call this_1.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_1.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_1.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_1.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_1.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_1.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_1.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_1.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_1.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_1.set_teamUid_1x72ew_k$(_tmp_teamUid); this_1.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_1.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_1.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_1.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_1.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_1.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_1.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_1.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_1.set_timestamp_eha0cb_k$(_tmp_timestamp); this_1.set_stored_dr5tz2_k$(_tmp_stored); this_1.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_1.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_1.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_1.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_1.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_1.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_1.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_1.set_statementLct_j41a6r_k$(_tmp_statementLct); this_1.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_1.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_1.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_1.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_1.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_1.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_1.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_1.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); this_0.set_statementEntity_5iilp0_k$(this_1); } if (!_tmp_GroupMemberActorJoin_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new GroupMemberActorJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzByUidList.....' call this_2.set_gmajGroupActorUid_t579cg_k$(_tmp_gmajGroupActorUid); this_2.set_gmajMemberActorUid_fnocj_k$(_tmp_gmajMemberActorUid); this_2.set_gmajLastMod_ign14y_k$(_tmp_gmajLastMod); this_0.set_groupMemberActorJoin_12ntwe_k$(this_2); } if (!_tmp_ActorEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzByUidList.....' call this_3.set_actorUid_wjpps6_k$(_tmp_actorUid); this_3.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_3.set_actorName_t0c818_k$(_tmp_actorName); this_3.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_3.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_3.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_3.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_3.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_3.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_3.set_actorLct_u43k87_k$(_tmp_actorLct); this_3.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); this_0.set_actorEntity_e8g3kk_k$(this_3); } return this_0; }; } function StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda$lambda$lambda($_result) { return function (it) { var _tmp_actorUid = $_result.getLong_3wgf2g_k$('actorUid'); var _tmp_actorPersonUid = $_result.getLong_3wgf2g_k$('actorPersonUid'); var _tmp_actorName = $_result.getString_gb1pt9_k$('actorName'); var _tmp_actorMbox = $_result.getString_gb1pt9_k$('actorMbox'); var _tmp_actorMbox_sha1sum = $_result.getString_gb1pt9_k$('actorMbox_sha1sum'); var _tmp_actorOpenid = $_result.getString_gb1pt9_k$('actorOpenid'); var _tmp_actorAccountName = $_result.getString_gb1pt9_k$('actorAccountName'); var _tmp_actorAccountHomePage = $_result.getString_gb1pt9_k$('actorAccountHomePage'); var _tmp_actorEtag = $_result.getLong_3wgf2g_k$('actorEtag'); var _tmp_actorLct = $_result.getLong_3wgf2g_k$('actorLct'); var _tmp_actorObjectType = $_result.getInt_npc9pd_k$('actorObjectType'); // Inline function 'kotlin.apply' call var this_0 = new ActorEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findActorEntitiesForStudentInClazzByUidList....' call this_0.set_actorUid_wjpps6_k$(_tmp_actorUid); this_0.set_actorPersonUid_sqwdrv_k$(_tmp_actorPersonUid); this_0.set_actorName_t0c818_k$(_tmp_actorName); this_0.set_actorMbox_otojz5_k$(_tmp_actorMbox); this_0.set_actorMbox_sha1sum_2m4at6_k$(_tmp_actorMbox_sha1sum); this_0.set_actorOpenid_iurhfq_k$(_tmp_actorOpenid); this_0.set_actorAccountName_yw5pfb_k$(_tmp_actorAccountName); this_0.set_actorAccountHomePage_r9422c_k$(_tmp_actorAccountHomePage); this_0.set_actorEtag_jhzarz_k$(_tmp_actorEtag); this_0.set_actorLct_u43k87_k$(_tmp_actorLct); this_0.set_actorObjectType_1zrrft_k$(_tmp_actorObjectType); return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); // Inline function 'kotlin.apply' call var this_0 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazz....' call this_0.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_0.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_0.set_sProgress_srgi2g_k$(_tmp_sProgress); this_0.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_0.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_0.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_sPersonUid = $_result.getLong_3wgf2g_k$('sPersonUid'); var _tmp_sCbUid = $_result.getLong_3wgf2g_k$('sCbUid'); var _tmp_sProgress = getIntNullable($_result, 'sProgress'); var _tmp_sIsCompleted = $_result.getBoolean_xz3hoo_k$('sIsCompleted'); var _tmp_sIsSuccess = getBooleanNullable($_result, 'sIsSuccess'); var _tmp_sScoreScaled = getFloatNullable($_result, 'sScoreScaled'); // Inline function 'kotlin.apply' call var this_0 = new BlockStatus(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findStatusForStudentsInClazzAsFlow.....' call this_0.set_sPersonUid_lssuyv_k$(_tmp_sPersonUid); this_0.set_sCbUid_m7svr1_k$(_tmp_sCbUid); this_0.set_sProgress_srgi2g_k$(_tmp_sProgress); this_0.set_sIsCompleted_5mif8q_k$(_tmp_sIsCompleted); this_0.set_sIsSuccess_bie1v_k$(_tmp_sIsSuccess); this_0.set_sScoreScaled_z3w9sv_k$(_tmp_sScoreScaled); return this_0; }; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.$studentPersonUids_1 = $studentPersonUids; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).invoke_4hctss_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_4hctss_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); var tmp_1 = this._stmt_1.getConnection_hr2oto_k$(); var this_1 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda(this.$studentPersonUids_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_4hctss_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findResumableRegistration$slambda$lambda(_result) { return mapNextRow(_result, null, StatementDao_JdbcImpl$findResumableRegistration$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findResumableRegistration$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findResumableRegistration....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findPersonsWithAttemptsStatements....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_numAttempts = $_result.getInt_npc9pd_k$('numAttempts'); var _tmp_isCompleted = $_result.getBoolean_xz3hoo_k$('isCompleted'); var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful'); var _tmp_maxScore = getFloatNullable($_result, 'maxScore'); var _tmp_maxProgress = getIntNullable($_result, 'maxProgress'); var _tmp_Person_nullCount = 0; var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_username = $_result.getString_gb1pt9_k$('username'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_Person_nullCount = _tmp_Person_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_Person_isAllNull = _tmp_Person_nullCount === 24; var _tmp_PersonPicture_nullCount = 0; var _tmp_personPictureUid = $_result.getLong_3wgf2g_k$('personPictureUid'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_personPictureLct = $_result.getLong_3wgf2g_k$('personPictureLct'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_personPictureUri = $_result.getString_gb1pt9_k$('personPictureUri'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_personPictureThumbnailUri = $_result.getString_gb1pt9_k$('personPictureThumbnailUri'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_fileSize = $_result.getInt_npc9pd_k$('fileSize'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_personPictureActive = $_result.getBoolean_xz3hoo_k$('personPictureActive'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_PersonPicture_nullCount = _tmp_PersonPicture_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_PersonPicture_isAllNull = _tmp_PersonPicture_nullCount === 6; // Inline function 'kotlin.apply' call var this_0 = new PersonAndPictureAndNumAttempts(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.set_numAttempts_bsexax_k$(_tmp_numAttempts); this_0.set_isCompleted_euye0h_k$(_tmp_isCompleted); this_0.set_isSuccessful_spnyf5_k$(_tmp_isSuccessful); this_0.set_maxScore_ur4jze_k$(_tmp_maxScore); this_0.set_maxProgress_5ucchz_k$(_tmp_maxProgress); if (!_tmp_Person_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_1.set_personUid_j3idds_k$(_tmp_personUid); this_1.set_username_tgnlmk_k$(_tmp_username); this_1.set_firstNames_audc9u_k$(_tmp_firstNames); this_1.set_lastName_6ukpbb_k$(_tmp_lastName); this_1.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_1.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_1.set_gender_5r7pfa_k$(_tmp_gender); this_1.set_active_nmha5u_k$(_tmp_active); this_1.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_1.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_1.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_1.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_1.set_personLct_aq7lf1_k$(_tmp_personLct); this_1.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_1.set_personType_przf38_k$(_tmp_personType); this_1.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_1.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_1.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_1.set_admin_llzh0j_k$(_tmp_admin); this_1.set_personNotes_4l39dk_k$(_tmp_personNotes); this_1.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_1.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_1.set_motherName_y7zjzg_k$(_tmp_motherName); this_1.set_motherNum_mxb55b_k$(_tmp_motherNum); this_0.set_person_ndsgqg_k$(this_1); } if (!_tmp_PersonPicture_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new PersonPicture(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_2.set_personPictureUid_dypqo6_k$(_tmp_personPictureUid); this_2.set_personPictureLct_5leypf_k$(_tmp_personPictureLct); this_2.set_personPictureUri_20k97t_k$(_tmp_personPictureUri); this_2.set_personPictureThumbnailUri_yqm2dn_k$(_tmp_personPictureThumbnailUri); this_2.set_fileSize_q7ooeq_k$(_tmp_fileSize); this_2.set_personPictureActive_7ld0rn_k$(_tmp_personPictureActive); this_0.set_picture_dxcvme_k$(this_2); } return this_0; }; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).invoke_uyeg0e_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_uyeg0e_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(14, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(15, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(17, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(19, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(20, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(21, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(22, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(23, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(24, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(25, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(27, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(28, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(29, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(30, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(31, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(32, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(33, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda(this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_uyeg0e_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(14, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(15, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(17, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(18, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(19, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(20, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(21, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(22, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(23, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(24, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(25, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(27, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(28, this.$sortOrder_1); this._stmt_1.setLong_j1sybo_k$(29, this.$contentEntryUid_1); this._stmt_1.setInt_c72a8z_k$(30, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(31, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda(this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda($contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findSessionsByPersonAndContentStatements....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_timeStarted = $_result.getLong_3wgf2g_k$('timeStarted'); var _tmp_maxProgress = getIntNullable($_result, 'maxProgress'); var _tmp_maxScore = getFloatNullable($_result, 'maxScore'); var _tmp_isCompleted = $_result.getBoolean_xz3hoo_k$('isCompleted'); var _tmp_isSuccessful = getBooleanNullable($_result, 'isSuccessful'); var _tmp_resultDuration = $_result.getLong_3wgf2g_k$('resultDuration'); // Inline function 'kotlin.apply' call var this_0 = new SessionTimeAndProgressInfo(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_timeStarted_xc5raf_k$(_tmp_timeStarted); this_0.set_maxProgress_5ucchz_k$(_tmp_maxProgress); this_0.set_maxScore_ur4jze_k$(_tmp_maxScore); this_0.set_isCompleted_euye0h_k$(_tmp_isCompleted); this_0.set_isSuccessful_spnyf5_k$(_tmp_isSuccessful); this_0.set_resultDuration_su510w_k$(_tmp_resultDuration); return this_0; }; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).invoke_7olkrr_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_7olkrr_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(23, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(24, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(25, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(27, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(28, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(29, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(30, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda(this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_7olkrr_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(14, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(15, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(16, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(17, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(18, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(19, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(20, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(21, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(22, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(23, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(24, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(25, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(26, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(27, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(28, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda(this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda($contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda$lambda$lambda($_result) { return function (it) { var _tmp_almeActivityUid = $_result.getLong_3wgf2g_k$('almeActivityUid'); var _tmp_almeHash = $_result.getLong_3wgf2g_k$('almeHash'); var _tmp_almeLangCode = $_result.getString_gb1pt9_k$('almeLangCode'); var _tmp_almePropName = $_result.getString_gb1pt9_k$('almePropName'); var _tmp_almeValue = $_result.getString_gb1pt9_k$('almeValue'); var _tmp_almeAieHash = $_result.getLong_3wgf2g_k$('almeAieHash'); var _tmp_almeLastMod = $_result.getLong_3wgf2g_k$('almeLastMod'); // Inline function 'kotlin.apply' call var this_0 = new ActivityLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findActivityEntryLangMapsForStatementsBySession....' call this_0.set_almeActivityUid_b53eeb_k$(_tmp_almeActivityUid); this_0.set_almeHash_yja2gg_k$(_tmp_almeHash); this_0.set_almeLangCode_omlfr0_k$(_tmp_almeLangCode); this_0.set_almePropName_bcr8q1_k$(_tmp_almePropName); this_0.set_almeValue_ynoy12_k$(_tmp_almeValue); this_0.set_almeAieHash_gievt9_k$(_tmp_almeAieHash); this_0.set_almeLastMod_eesr1u_k$(_tmp_almeLastMod); return this_0; }; } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementActivityDescription = $_result.getString_gb1pt9_k$('statementActivityDescription'); var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_VerbEntity_nullCount = 0; var _tmp_verbUid = $_result.getLong_3wgf2g_k$('verbUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_verbUrlId = $_result.getString_gb1pt9_k$('verbUrlId'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_verbDeleted = $_result.getBoolean_xz3hoo_k$('verbDeleted'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_verbLct = $_result.getLong_3wgf2g_k$('verbLct'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4; var _tmp_VerbLangMapEntry_nullCount = 0; var _tmp_vlmeVerbUid = $_result.getLong_3wgf2g_k$('vlmeVerbUid'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_vlmeLangHash = $_result.getLong_3wgf2g_k$('vlmeLangHash'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_vlmeLangCode = $_result.getString_gb1pt9_k$('vlmeLangCode'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_vlmeEntryString = $_result.getString_gb1pt9_k$('vlmeEntryString'); var tmp_42; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_42 = Unit_getInstance(); } var _tmp_vlmeLastModified = $_result.getLong_3wgf2g_k$('vlmeLastModified'); var tmp_43; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_43 = Unit_getInstance(); } var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5; var _tmp_ActivityEntity_nullCount = 0; var _tmp_actUid = $_result.getLong_3wgf2g_k$('actUid'); var tmp_44; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_44 = Unit_getInstance(); } var _tmp_actIdIri = $_result.getString_gb1pt9_k$('actIdIri'); var tmp_45; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_45 = Unit_getInstance(); } var _tmp_actType = $_result.getString_gb1pt9_k$('actType'); var tmp_46; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_46 = Unit_getInstance(); } var _tmp_actMoreInfo = $_result.getString_gb1pt9_k$('actMoreInfo'); var tmp_47; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_47 = Unit_getInstance(); } var _tmp_actInteractionType = $_result.getInt_npc9pd_k$('actInteractionType'); var tmp_48; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_48 = Unit_getInstance(); } var _tmp_actCorrectResponsePatterns = $_result.getString_gb1pt9_k$('actCorrectResponsePatterns'); var tmp_49; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_49 = Unit_getInstance(); } var _tmp_actLct = $_result.getLong_3wgf2g_k$('actLct'); var tmp_50; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_50 = Unit_getInstance(); } var _tmp_ActivityEntity_isAllNull = _tmp_ActivityEntity_nullCount === 7; var _tmp_ActivityLangMapEntry_nullCount = 0; var _tmp_almeActivityUid = $_result.getLong_3wgf2g_k$('almeActivityUid'); var tmp_51; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_51 = Unit_getInstance(); } var _tmp_almeHash = $_result.getLong_3wgf2g_k$('almeHash'); var tmp_52; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_52 = Unit_getInstance(); } var _tmp_almeLangCode = $_result.getString_gb1pt9_k$('almeLangCode'); var tmp_53; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_53 = Unit_getInstance(); } var _tmp_almePropName = $_result.getString_gb1pt9_k$('almePropName'); var tmp_54; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_54 = Unit_getInstance(); } var _tmp_almeValue = $_result.getString_gb1pt9_k$('almeValue'); var tmp_55; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_55 = Unit_getInstance(); } var _tmp_almeAieHash = $_result.getLong_3wgf2g_k$('almeAieHash'); var tmp_56; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_56 = Unit_getInstance(); } var _tmp_almeLastMod = $_result.getLong_3wgf2g_k$('almeLastMod'); var tmp_57; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityLangMapEntry_nullCount = _tmp_ActivityLangMapEntry_nullCount + 1 | 0; tmp_57 = Unit_getInstance(); } var _tmp_ActivityLangMapEntry_isAllNull = _tmp_ActivityLangMapEntry_nullCount === 7; // Inline function 'kotlin.apply' call var this_0 = new StatementEntityAndVerb(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows....' call this_0.set_statementActivityDescription_rpnujo_k$(_tmp_statementActivityDescription); if (!_tmp_StatementEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_1.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_1.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_1.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_1.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_1.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_1.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_1.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_1.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_1.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_1.set_teamUid_1x72ew_k$(_tmp_teamUid); this_1.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_1.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_1.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_1.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_1.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_1.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_1.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_1.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_1.set_timestamp_eha0cb_k$(_tmp_timestamp); this_1.set_stored_dr5tz2_k$(_tmp_stored); this_1.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_1.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_1.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_1.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_1.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_1.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_1.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_1.set_statementLct_j41a6r_k$(_tmp_statementLct); this_1.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_1.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_1.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_1.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_1.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_1.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_1.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_1.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); this_0.set_statementEntity_jyzh7_k$(this_1); } if (!_tmp_VerbEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_2.set_verbUid_nmxeq2_k$(_tmp_verbUid); this_2.set_verbUrlId_xpu76x_k$(_tmp_verbUrlId); this_2.set_verbDeleted_a4kb3c_k$(_tmp_verbDeleted); this_2.set_verbLct_w086ot_k$(_tmp_verbLct); this_0.set_verb_jxiuon_k$(this_2); } if (!_tmp_VerbLangMapEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_3 = new VerbLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_3.set_vlmeVerbUid_t3b07c_k$(_tmp_vlmeVerbUid); this_3.set_vlmeLangHash_dt707d_k$(_tmp_vlmeLangHash); this_3.set_vlmeLangCode_4ynuj3_k$(_tmp_vlmeLangCode); this_3.set_vlmeEntryString_ugbsv_k$(_tmp_vlmeEntryString); this_3.set_vlmeLastModified_xbp1o4_k$(_tmp_vlmeLastModified); this_0.set_verbDisplay_xz9wbm_k$(this_3); } if (!_tmp_ActivityEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_4 = new ActivityEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_4.set_actUid_q0bwkj_k$(_tmp_actUid); this_4.set_actIdIri_5ttk1l_k$(_tmp_actIdIri); this_4.set_actType_a6ke9k_k$(_tmp_actType); this_4.set_actMoreInfo_1gakyp_k$(_tmp_actMoreInfo); this_4.set_actInteractionType_gf7tn3_k$(_tmp_actInteractionType); this_4.set_actCorrectResponsePatterns_j78agu_k$(_tmp_actCorrectResponsePatterns); this_4.set_actLct_ydmoja_k$(_tmp_actLct); this_0.set_activity_ffu349_k$(this_4); } if (!_tmp_ActivityLangMapEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_5 = new ActivityLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi..loadRows.....' call this_5.set_almeActivityUid_b53eeb_k$(_tmp_almeActivityUid); this_5.set_almeHash_yja2gg_k$(_tmp_almeHash); this_5.set_almeLangCode_omlfr0_k$(_tmp_almeLangCode); this_5.set_almePropName_bcr8q1_k$(_tmp_almePropName); this_5.set_almeValue_ynoy12_k$(_tmp_almeValue); this_5.set_almeAieHash_gievt9_k$(_tmp_almeAieHash); this_5.set_almeLastMod_eesr1u_k$(_tmp_almeLastMod); this_0.set_activityLangMapEntry_xsig70_k$(this_5); } return this_0; }; } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda(_result) { return mapNextRow(_result, 0, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda$lambda($_result) { return function (it) { return $_result.getInt_s8uc8x_k$(1); }; } function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; this.$searchText_1 = $searchText; this.$deSelectedVerbUids_1 = $deSelectedVerbUids; this.$sortOrder_1 = $sortOrder; this.$_limit_1 = $_limit; this.$_offset_1 = $_offset; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).invoke_1egmxa_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1egmxa_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$registrationHi_1); this._stmt_1.setLong_j1sybo_k$(3, this.$registrationLo_1); this._stmt_1.setLong_j1sybo_k$(4, this.$selectedPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$contentEntryUid_1); this._stmt_1.setString_2gt7ua_k$(6, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(7, this.$searchText_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$deSelectedVerbUids_1; this._stmt_1.setArray_61y2p9_k$(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$selectedPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$_limit_1); this._stmt_1.setInt_c72a8z_k$(19, this.$_offset_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda(this.$accountPersonUid_1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, this.$searchText_1, this.$deSelectedVerbUids_1, this.$sortOrder_1, this.$_limit_1, this.$_offset_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, $_limit, $_offset, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1egmxa_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; this.$searchText_1 = $searchText; this.$deSelectedVerbUids_1 = $deSelectedVerbUids; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$registrationHi_1); this._stmt_1.setLong_j1sybo_k$(3, this.$registrationLo_1); this._stmt_1.setLong_j1sybo_k$(4, this.$selectedPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$contentEntryUid_1); this._stmt_1.setString_2gt7ua_k$(6, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(7, this.$searchText_1); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$deSelectedVerbUids_1; this._stmt_1.setArray_61y2p9_k$(8, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$selectedPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(13, this.$accountPersonUid_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda(this.$accountPersonUid_1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, this.$searchText_1, this.$deSelectedVerbUids_1, this.$sortOrder_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda($accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda$lambda($_result) { return function (it) { var _tmp_VerbEntity_nullCount = 0; var _tmp_verbUid = $_result.getLong_3wgf2g_k$('verbUid'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_verbUrlId = $_result.getString_gb1pt9_k$('verbUrlId'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_verbDeleted = $_result.getBoolean_xz3hoo_k$('verbDeleted'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_verbLct = $_result.getLong_3wgf2g_k$('verbLct'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbEntity_nullCount = _tmp_VerbEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_VerbEntity_isAllNull = _tmp_VerbEntity_nullCount === 4; var _tmp_VerbLangMapEntry_nullCount = 0; var _tmp_vlmeVerbUid = $_result.getLong_3wgf2g_k$('vlmeVerbUid'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_vlmeLangHash = $_result.getLong_3wgf2g_k$('vlmeLangHash'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_vlmeLangCode = $_result.getString_gb1pt9_k$('vlmeLangCode'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_vlmeEntryString = $_result.getString_gb1pt9_k$('vlmeEntryString'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_vlmeLastModified = $_result.getLong_3wgf2g_k$('vlmeLastModified'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_VerbLangMapEntry_nullCount = _tmp_VerbLangMapEntry_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_VerbLangMapEntry_isAllNull = _tmp_VerbLangMapEntry_nullCount === 5; // Inline function 'kotlin.apply' call var this_0 = new VerbEntityAndName(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession.....' call if (!_tmp_VerbEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession......' call this_1.set_verbUid_nmxeq2_k$(_tmp_verbUid); this_1.set_verbUrlId_xpu76x_k$(_tmp_verbUrlId); this_1.set_verbDeleted_a4kb3c_k$(_tmp_verbDeleted); this_1.set_verbLct_w086ot_k$(_tmp_verbLct); this_0.set_verbEntity_oyga7h_k$(this_1); } if (!_tmp_VerbLangMapEntry_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new VerbLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getUniqueVerbsForSession......' call this_2.set_vlmeVerbUid_t3b07c_k$(_tmp_vlmeVerbUid); this_2.set_vlmeLangHash_dt707d_k$(_tmp_vlmeLangHash); this_2.set_vlmeLangCode_4ynuj3_k$(_tmp_vlmeLangCode); this_2.set_vlmeEntryString_ugbsv_k$(_tmp_vlmeEntryString); this_2.set_vlmeLastModified_xbp1o4_k$(_tmp_vlmeLastModified); this_0.set_verbName_7o3gf7_k$(this_2); } return this_0; }; } function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).invoke_om0mls_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_om0mls_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$registrationHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$registrationLo_1); this._stmt_1.setLong_j1sybo_k$(3, this.$selectedPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$contentEntryUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda(this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda($registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_om0mls_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda(_result) { return mapRows(_result, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda$lambda($_result) { return function (it) { var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.scoreOrProgressDataExistsForContent....' call this_0.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_0.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_0.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_0.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_0.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_0.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_0.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_0.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_0.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_0.set_teamUid_1x72ew_k$(_tmp_teamUid); this_0.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_0.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_0.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_0.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_0.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_0.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_0.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_0.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_0.set_timestamp_eha0cb_k$(_tmp_timestamp); this_0.set_stored_dr5tz2_k$(_tmp_stored); this_0.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_0.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_0.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_0.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_0.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_0.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_0.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_0.set_statementLct_j41a6r_k$(_tmp_statementLct); this_0.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_0.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_0.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_0.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_0.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_0.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_0.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_0.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); return this_0; }; } function StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda$lambda(_result) { return mapNextRow(_result, null, StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_StatementEntity_nullCount = 0; var _tmp_statementIdHi = $_result.getLong_3wgf2g_k$('statementIdHi'); var tmp; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp = Unit_getInstance(); } var _tmp_statementIdLo = $_result.getLong_3wgf2g_k$('statementIdLo'); var tmp_0; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_0 = Unit_getInstance(); } var _tmp_statementActorPersonUid = $_result.getLong_3wgf2g_k$('statementActorPersonUid'); var tmp_1; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_1 = Unit_getInstance(); } var _tmp_statementVerbUid = $_result.getLong_3wgf2g_k$('statementVerbUid'); var tmp_2; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_2 = Unit_getInstance(); } var _tmp_statementObjectType = $_result.getInt_npc9pd_k$('statementObjectType'); var tmp_3; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_3 = Unit_getInstance(); } var _tmp_statementObjectUid1 = $_result.getLong_3wgf2g_k$('statementObjectUid1'); var tmp_4; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_4 = Unit_getInstance(); } var _tmp_statementObjectUid2 = $_result.getLong_3wgf2g_k$('statementObjectUid2'); var tmp_5; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_5 = Unit_getInstance(); } var _tmp_statementActorUid = $_result.getLong_3wgf2g_k$('statementActorUid'); var tmp_6; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_6 = Unit_getInstance(); } var _tmp_authorityActorUid = $_result.getLong_3wgf2g_k$('authorityActorUid'); var tmp_7; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_7 = Unit_getInstance(); } var _tmp_teamUid = $_result.getLong_3wgf2g_k$('teamUid'); var tmp_8; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_8 = Unit_getInstance(); } var _tmp_resultCompletion = getBooleanNullable($_result, 'resultCompletion'); var tmp_9; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_9 = Unit_getInstance(); } var _tmp_resultSuccess = getBooleanNullable($_result, 'resultSuccess'); var tmp_10; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_10 = Unit_getInstance(); } var _tmp_resultScoreScaled = getFloatNullable($_result, 'resultScoreScaled'); var tmp_11; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_11 = Unit_getInstance(); } var _tmp_resultScoreRaw = getFloatNullable($_result, 'resultScoreRaw'); var tmp_12; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_12 = Unit_getInstance(); } var _tmp_resultScoreMin = getFloatNullable($_result, 'resultScoreMin'); var tmp_13; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_13 = Unit_getInstance(); } var _tmp_resultScoreMax = getFloatNullable($_result, 'resultScoreMax'); var tmp_14; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_14 = Unit_getInstance(); } var _tmp_resultDuration = getLongNullable($_result, 'resultDuration'); var tmp_15; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_15 = Unit_getInstance(); } var _tmp_resultResponse = $_result.getString_gb1pt9_k$('resultResponse'); var tmp_16; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_16 = Unit_getInstance(); } var _tmp_timestamp = $_result.getLong_3wgf2g_k$('timestamp'); var tmp_17; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_17 = Unit_getInstance(); } var _tmp_stored = $_result.getLong_3wgf2g_k$('stored'); var tmp_18; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_18 = Unit_getInstance(); } var _tmp_contextRegistrationHi = $_result.getLong_3wgf2g_k$('contextRegistrationHi'); var tmp_19; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_19 = Unit_getInstance(); } var _tmp_contextRegistrationLo = $_result.getLong_3wgf2g_k$('contextRegistrationLo'); var tmp_20; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_20 = Unit_getInstance(); } var _tmp_contextRegistrationHash = $_result.getLong_3wgf2g_k$('contextRegistrationHash'); var tmp_21; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_21 = Unit_getInstance(); } var _tmp_contextPlatform = $_result.getString_gb1pt9_k$('contextPlatform'); var tmp_22; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_22 = Unit_getInstance(); } var _tmp_contextStatementRefIdHi = $_result.getLong_3wgf2g_k$('contextStatementRefIdHi'); var tmp_23; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_23 = Unit_getInstance(); } var _tmp_contextStatementRefIdLo = $_result.getLong_3wgf2g_k$('contextStatementRefIdLo'); var tmp_24; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_24 = Unit_getInstance(); } var _tmp_contextInstructorActorUid = $_result.getLong_3wgf2g_k$('contextInstructorActorUid'); var tmp_25; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_25 = Unit_getInstance(); } var _tmp_statementLct = $_result.getLong_3wgf2g_k$('statementLct'); var tmp_26; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_26 = Unit_getInstance(); } var _tmp_extensionProgress = getIntNullable($_result, 'extensionProgress'); var tmp_27; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_27 = Unit_getInstance(); } var _tmp_completionOrProgress = $_result.getBoolean_xz3hoo_k$('completionOrProgress'); var tmp_28; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_28 = Unit_getInstance(); } var _tmp_statementContentEntryUid = $_result.getLong_3wgf2g_k$('statementContentEntryUid'); var tmp_29; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_29 = Unit_getInstance(); } var _tmp_statementLearnerGroupUid = $_result.getLong_3wgf2g_k$('statementLearnerGroupUid'); var tmp_30; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_30 = Unit_getInstance(); } var _tmp_statementClazzUid = $_result.getLong_3wgf2g_k$('statementClazzUid'); var tmp_31; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_31 = Unit_getInstance(); } var _tmp_statementCbUid = $_result.getLong_3wgf2g_k$('statementCbUid'); var tmp_32; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_32 = Unit_getInstance(); } var _tmp_statementDoorNode = $_result.getLong_3wgf2g_k$('statementDoorNode'); var tmp_33; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_33 = Unit_getInstance(); } var _tmp_isSubStatement = $_result.getBoolean_xz3hoo_k$('isSubStatement'); var tmp_34; if ($_result.wasNull_ilge1c_k$()) { _tmp_StatementEntity_nullCount = _tmp_StatementEntity_nullCount + 1 | 0; tmp_34 = Unit_getInstance(); } var _tmp_StatementEntity_isAllNull = _tmp_StatementEntity_nullCount === 36; var _tmp_ActivityEntity_nullCount = 0; var _tmp_actUid = $_result.getLong_3wgf2g_k$('actUid'); var tmp_35; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_35 = Unit_getInstance(); } var _tmp_actIdIri = $_result.getString_gb1pt9_k$('actIdIri'); var tmp_36; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_36 = Unit_getInstance(); } var _tmp_actType = $_result.getString_gb1pt9_k$('actType'); var tmp_37; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_37 = Unit_getInstance(); } var _tmp_actMoreInfo = $_result.getString_gb1pt9_k$('actMoreInfo'); var tmp_38; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_38 = Unit_getInstance(); } var _tmp_actInteractionType = $_result.getInt_npc9pd_k$('actInteractionType'); var tmp_39; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_39 = Unit_getInstance(); } var _tmp_actCorrectResponsePatterns = $_result.getString_gb1pt9_k$('actCorrectResponsePatterns'); var tmp_40; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_40 = Unit_getInstance(); } var _tmp_actLct = $_result.getLong_3wgf2g_k$('actLct'); var tmp_41; if ($_result.wasNull_ilge1c_k$()) { _tmp_ActivityEntity_nullCount = _tmp_ActivityEntity_nullCount + 1 | 0; tmp_41 = Unit_getInstance(); } var _tmp_ActivityEntity_isAllNull = _tmp_ActivityEntity_nullCount === 7; // Inline function 'kotlin.apply' call var this_0 = new StatementAndActivity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findByUidWithActivityAsync....' call if (!_tmp_StatementEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_1 = new StatementEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findByUidWithActivityAsync.....' call this_1.set_statementIdHi_ht84ts_k$(_tmp_statementIdHi); this_1.set_statementIdLo_mvfff6_k$(_tmp_statementIdLo); this_1.set_statementActorPersonUid_6n8j8m_k$(_tmp_statementActorPersonUid); this_1.set_statementVerbUid_acgosh_k$(_tmp_statementVerbUid); this_1.set_statementObjectType_hm60m5_k$(_tmp_statementObjectType); this_1.set_statementObjectUid1_z8y5lg_k$(_tmp_statementObjectUid1); this_1.set_statementObjectUid2_rwu0tx_k$(_tmp_statementObjectUid2); this_1.set_statementActorUid_qhujin_k$(_tmp_statementActorUid); this_1.set_authorityActorUid_6x95v_k$(_tmp_authorityActorUid); this_1.set_teamUid_1x72ew_k$(_tmp_teamUid); this_1.set_resultCompletion_5f1e16_k$(_tmp_resultCompletion); this_1.set_resultSuccess_mdy2on_k$(_tmp_resultSuccess); this_1.set_resultScoreScaled_wa4hlp_k$(_tmp_resultScoreScaled); this_1.set_resultScoreRaw_cy7vjv_k$(_tmp_resultScoreRaw); this_1.set_resultScoreMin_eitzkr_k$(_tmp_resultScoreMin); this_1.set_resultScoreMax_38p03b_k$(_tmp_resultScoreMax); this_1.set_resultDuration_v7t3k3_k$(_tmp_resultDuration); this_1.set_resultResponse_8cpijo_k$(_tmp_resultResponse); this_1.set_timestamp_eha0cb_k$(_tmp_timestamp); this_1.set_stored_dr5tz2_k$(_tmp_stored); this_1.set_contextRegistrationHi_74s32q_k$(_tmp_contextRegistrationHi); this_1.set_contextRegistrationLo_xjvh68_k$(_tmp_contextRegistrationLo); this_1.set_contextRegistrationHash_i5l9gb_k$(_tmp_contextRegistrationHash); this_1.set_contextPlatform_1fcrke_k$(_tmp_contextPlatform); this_1.set_contextStatementRefIdHi_a6xqz8_k$(_tmp_contextStatementRefIdHi); this_1.set_contextStatementRefIdLo_k5iqqy_k$(_tmp_contextStatementRefIdLo); this_1.set_contextInstructorActorUid_l3lkc_k$(_tmp_contextInstructorActorUid); this_1.set_statementLct_j41a6r_k$(_tmp_statementLct); this_1.set_extensionProgress_iqe2j8_k$(_tmp_extensionProgress); this_1.set_completionOrProgress_lw0kjw_k$(_tmp_completionOrProgress); this_1.set_statementContentEntryUid_h38zbt_k$(_tmp_statementContentEntryUid); this_1.set_statementLearnerGroupUid_2c7m5q_k$(_tmp_statementLearnerGroupUid); this_1.set_statementClazzUid_hmeo30_k$(_tmp_statementClazzUid); this_1.set_statementCbUid_uxmitd_k$(_tmp_statementCbUid); this_1.set_statementDoorNode_yzgvvo_k$(_tmp_statementDoorNode); this_1.set_isSubStatement_3kaenz_k$(_tmp_isSubStatement); this_0.set_statementEntity_jyzh7_k$(this_1); } if (!_tmp_ActivityEntity_isAllNull) { // Inline function 'kotlin.apply' call var this_2 = new ActivityEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.findByUidWithActivityAsync.....' call this_2.set_actUid_q0bwkj_k$(_tmp_actUid); this_2.set_actIdIri_5ttk1l_k$(_tmp_actIdIri); this_2.set_actType_a6ke9k_k$(_tmp_actType); this_2.set_actMoreInfo_1gakyp_k$(_tmp_actMoreInfo); this_2.set_actInteractionType_gf7tn3_k$(_tmp_actInteractionType); this_2.set_actCorrectResponsePatterns_j78agu_k$(_tmp_actCorrectResponsePatterns); this_2.set_actLct_ydmoja_k$(_tmp_actLct); this_0.set_activityEntity_1vk8xy_k$(this_2); } return this_0; }; } function StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO StatementEntity (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).bindPreparedStmtToEntity_ou03e_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_statementIdHi_5i876q_k$()); stmt.setLong_j1sybo_k$(2, entity.get_statementIdLo_5i87ac_k$()); stmt.setLong_j1sybo_k$(3, entity.get_statementActorPersonUid_s001n8_k$()); stmt.setLong_j1sybo_k$(4, entity.get_statementVerbUid_7g8du3_k$()); stmt.setInt_c72a8z_k$(5, entity.get_statementObjectType_2adnr3_k$()); stmt.setLong_j1sybo_k$(6, entity.get_statementObjectUid1_2adyjq_k$()); stmt.setLong_j1sybo_k$(7, entity.get_statementObjectUid2_2adyjr_k$()); stmt.setLong_j1sybo_k$(8, entity.get_statementActorUid_noqeip_k$()); stmt.setLong_j1sybo_k$(9, entity.get_authorityActorUid_2sx1hx_k$()); stmt.setLong_j1sybo_k$(10, entity.get_teamUid_mjd6wm_k$()); setBooleanNullable(stmt, 11, entity.get_resultCompletion_gquu72_k$()); setBooleanNullable(stmt, 12, entity.get_resultSuccess_nwwgl9_k$()); setFloatNullable(stmt, 13, entity.get_resultScoreScaled_3to03e_k$()); setFloatNullable(stmt, 14, entity.get_resultScoreRaw_e67ipw_k$()); setFloatNullable(stmt, 15, entity.get_resultScoreMin_e67m8q_k$()); setFloatNullable(stmt, 16, entity.get_resultScoreMax_e67mfc_k$()); setLongNullable(stmt, 17, entity.get_resultDuration_vxz2l6_k$()); stmt.setString_2gt7ua_k$(18, entity.get_resultResponse_brrjw9_k$()); stmt.setLong_j1sybo_k$(19, entity.get_timestamp_9fccx9_k$()); stmt.setLong_j1sybo_k$(20, entity.get_stored_jno2b0_k$()); stmt.setLong_j1sybo_k$(21, entity.get_contextRegistrationHi_dkx0jk_k$()); stmt.setLong_j1sybo_k$(22, entity.get_contextRegistrationLo_dkx0fy_k$()); stmt.setLong_j1sybo_k$(23, entity.get_contextRegistrationHash_ibeibx_k$()); stmt.setString_2gt7ua_k$(24, entity.get_contextPlatform_7ahoih_k$()); stmt.setLong_j1sybo_k$(25, entity.get_contextStatementRefIdHi_c24rvq_k$()); stmt.setLong_j1sybo_k$(26, entity.get_contextStatementRefIdLo_c24rzc_k$()); stmt.setLong_j1sybo_k$(27, entity.get_contextInstructorActorUid_qx6uo2_k$()); stmt.setLong_j1sybo_k$(28, entity.get_statementLct_4eku6h_k$()); setIntNullable(stmt, 29, entity.get_extensionProgress_sopfj7_k$()); stmt.setBoolean_pzdm1v_k$(30, entity.get_completionOrProgress_n546lx_k$()); stmt.setLong_j1sybo_k$(31, entity.get_statementContentEntryUid_8usy29_k$()); stmt.setLong_j1sybo_k$(32, entity.get_statementLearnerGroupUid_r54b0c_k$()); stmt.setLong_j1sybo_k$(33, entity.get_statementClazzUid_8hg8ci_k$()); stmt.setLong_j1sybo_k$(34, entity.get_statementCbUid_sjib0r_k$()); stmt.setLong_j1sybo_k$(35, entity.get_statementDoorNode_6a62y_k$()); stmt.setBoolean_pzdm1v_k$(36, entity.get_isSubStatement_kxok82_k$()); }; protoOf(StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ou03e_k$(stmt, entity instanceof StatementEntity ? entity : THROW_CCE()); }; function StatementDao_JdbcImpl$getOneStatement$slambda(this$0, resultContinuation) { this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getOneStatement$slambda).invoke_low9tu_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_low9tu_k$($completion); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('SELECT * From StatementEntity LIMIT 1', VOID, VOID, VOID, VOID, true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, StatementDao_JdbcImpl$getOneStatement$slambda$slambda_0(null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getOneStatement$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_JdbcImpl$getOneStatement$slambda(this.this$0__1, completion); }; function StatementDao_JdbcImpl$getOneStatement$slambda_0(this$0, resultContinuation) { var i = new StatementDao_JdbcImpl$getOneStatement$slambda(this$0, resultContinuation); var l = function ($completion) { return i.invoke_low9tu_k$($completion); }; l.$arity = 0; return l; } function StatementDao_JdbcImpl$runReportQuery$slambda($query, this$0, resultContinuation) { this.$query_1 = $query; this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$runReportQuery$slambda).invoke_epv1g4_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$runReportQuery$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_epv1g4_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$runReportQuery$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.$query_1.bindToPreparedStmt_le67fq_k$(this._stmt_1, this.this$0__1._db_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$runReportQuery$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$runReportQuery$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$runReportQuery$slambda(this.$query_1, this.this$0__1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$runReportQuery$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$runReportQuery$slambda_0($query, this$0, resultContinuation) { var i = new StatementDao_JdbcImpl$runReportQuery$slambda($query, this$0, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_epv1g4_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getResults$slambda($query, this$0, resultContinuation) { this.$query_1 = $query; this.this$0__1 = this$0; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getResults$slambda).invoke_r69usf_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getResults$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_r69usf_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getResults$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.$query_1.bindToPreparedStmt_le67fq_k$(this._stmt_1, this.this$0__1._db_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getResults$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getResults$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getResults$slambda(this.$query_1, this.this$0__1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getResults$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getResults$slambda_0($query, this$0, resultContinuation) { var i = new StatementDao_JdbcImpl$getResults$slambda($query, this$0, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_r69usf_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$getListResults$1(this$0, $query) { this.this$0__1 = this$0; this.$query_1 = $query; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['StatementEntity', 'Person']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$getListResults$1).loadRows_xddqv4_k$ = function (_limit, _offset, $completion) { var tmp = 'SELECT * FROM (' + this.$query_1.get_sql_18iw0r_k$() + ') AS _PagingData LIMIT ? OFFSET ?'; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = [_limit, _offset]; var query = copyWithExtraParams(this.$query_1, tmp, tmp$ret$2); var tmp_0 = new PreparedStatementConfig(query.get_sql_18iw0r_k$(), hasListOrArrayParams(query), VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, StatementDao_JdbcImpl$getListResults$o$loadRows$slambda_0(query, this.this$0__1, null), $completion); }; protoOf(StatementDao_JdbcImpl$getListResults$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_xddqv4_k$(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$getListResults$1).countRows_kb9fe9_k$ = function ($completion) { var query = copy(this.$query_1, 'SELECT COUNT(*) FROM (' + this.$query_1.get_sql_18iw0r_k$() + ')'); var tmp = new PreparedStatementConfig(query.get_sql_18iw0r_k$(), hasListOrArrayParams(query), VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$getListResults$o$countRows$slambda_0(query, this.this$0__1, null), $completion); }; function StatementDao_JdbcImpl$getPerson$lambda(_stmt) { var tmp = _stmt.executeQuery_mh7xd9_k$(); return useResults(tmp, StatementDao_JdbcImpl$getPerson$lambda$lambda); } function StatementDao_JdbcImpl$getPerson$lambda$lambda(_result) { return mapNextRow(_result, null, StatementDao_JdbcImpl$getPerson$lambda$lambda$lambda(_result)); } function StatementDao_JdbcImpl$getPerson$lambda$lambda$lambda($_result) { return function (it) { var _tmp_personUid = $_result.getLong_3wgf2g_k$('personUid'); var _tmp_username = $_result.getString_gb1pt9_k$('username'); var _tmp_firstNames = $_result.getString_gb1pt9_k$('firstNames'); var _tmp_lastName = $_result.getString_gb1pt9_k$('lastName'); var _tmp_emailAddr = $_result.getString_gb1pt9_k$('emailAddr'); var _tmp_phoneNum = $_result.getString_gb1pt9_k$('phoneNum'); var _tmp_gender = $_result.getInt_npc9pd_k$('gender'); var _tmp_active = $_result.getBoolean_xz3hoo_k$('active'); var _tmp_dateOfBirth = $_result.getLong_3wgf2g_k$('dateOfBirth'); var _tmp_personAddress = $_result.getString_gb1pt9_k$('personAddress'); var _tmp_personOrgId = $_result.getString_gb1pt9_k$('personOrgId'); var _tmp_personGroupUid = $_result.getLong_3wgf2g_k$('personGroupUid'); var _tmp_personLct = $_result.getLong_3wgf2g_k$('personLct'); var _tmp_personCountry = $_result.getString_gb1pt9_k$('personCountry'); var _tmp_personType = $_result.getInt_npc9pd_k$('personType'); var _tmp_personMasterChangeSeqNum = $_result.getLong_3wgf2g_k$('personMasterChangeSeqNum'); var _tmp_personLocalChangeSeqNum = $_result.getLong_3wgf2g_k$('personLocalChangeSeqNum'); var _tmp_personLastChangedBy = $_result.getInt_npc9pd_k$('personLastChangedBy'); var _tmp_admin = $_result.getBoolean_xz3hoo_k$('admin'); var _tmp_personNotes = $_result.getString_gb1pt9_k$('personNotes'); var _tmp_fatherName = $_result.getString_gb1pt9_k$('fatherName'); var _tmp_fatherNumber = $_result.getString_gb1pt9_k$('fatherNumber'); var _tmp_motherName = $_result.getString_gb1pt9_k$('motherName'); var _tmp_motherNum = $_result.getString_gb1pt9_k$('motherNum'); // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementDao_JdbcImpl.getPerson....' call this_0.set_personUid_j3idds_k$(_tmp_personUid); this_0.set_username_tgnlmk_k$(_tmp_username); this_0.set_firstNames_audc9u_k$(_tmp_firstNames); this_0.set_lastName_6ukpbb_k$(_tmp_lastName); this_0.set_emailAddr_n0lw07_k$(_tmp_emailAddr); this_0.set_phoneNum_jo9xeq_k$(_tmp_phoneNum); this_0.set_gender_5r7pfa_k$(_tmp_gender); this_0.set_active_nmha5u_k$(_tmp_active); this_0.set_dateOfBirth_1iysn5_k$(_tmp_dateOfBirth); this_0.set_personAddress_v4k1w5_k$(_tmp_personAddress); this_0.set_personOrgId_8oeidy_k$(_tmp_personOrgId); this_0.set_personGroupUid_eex3gl_k$(_tmp_personGroupUid); this_0.set_personLct_aq7lf1_k$(_tmp_personLct); this_0.set_personCountry_2dq7zn_k$(_tmp_personCountry); this_0.set_personType_przf38_k$(_tmp_personType); this_0.set_personMasterChangeSeqNum_5x91v_k$(_tmp_personMasterChangeSeqNum); this_0.set_personLocalChangeSeqNum_isxxla_k$(_tmp_personLocalChangeSeqNum); this_0.set_personLastChangedBy_ghtfvp_k$(_tmp_personLastChangedBy); this_0.set_admin_llzh0j_k$(_tmp_admin); this_0.set_personNotes_4l39dk_k$(_tmp_personNotes); this_0.set_fatherName_jpjuzx_k$(_tmp_fatherName); this_0.set_fatherNumber_pch0b9_k$(_tmp_fatherNumber); this_0.set_motherName_y7zjzg_k$(_tmp_motherName); this_0.set_motherNum_mxb55b_k$(_tmp_motherNum); return this_0; }; } function StatementDao_JdbcImpl$getStatements$slambda($statementIdHi, $statementIdLo, resultContinuation) { this.$statementIdHi_1 = $statementIdHi; this.$statementIdLo_1 = $statementIdLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getStatements$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getStatements$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$getStatements$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$statementIdHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$statementIdLo_1); this._stmt_1.setLong_j1sybo_k$(3, this.$statementIdHi_1); this._stmt_1.setLong_j1sybo_k$(4, this.$statementIdLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$getStatements$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getStatements$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$getStatements$slambda(this.$statementIdHi_1, this.$statementIdLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$getStatements$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$getStatements$slambda_0($statementIdHi, $statementIdLo, resultContinuation) { var i = new StatementDao_JdbcImpl$getStatements$slambda($statementIdHi, $statementIdLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findById$slambda($statementIdHi, $statementIdLo, resultContinuation) { this.$statementIdHi_1 = $statementIdHi; this.$statementIdLo_1 = $statementIdLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findById$slambda).invoke_jbnrze_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findById$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jbnrze_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findById$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$statementIdHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$statementIdLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findById$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findById$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findById$slambda(this.$statementIdHi_1, this.$statementIdLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findById$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findById$slambda_0($statementIdHi, $statementIdLo, resultContinuation) { var i = new StatementDao_JdbcImpl$findById$slambda($statementIdHi, $statementIdLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jbnrze_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda($accountPersonUid, $contentEntryUid, $courseBlockUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$contentEntryUid_1 = $contentEntryUid; this.$courseBlockUid_1 = $courseBlockUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$courseBlockUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$courseBlockUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda(this.$accountPersonUid_1, this.$contentEntryUid_1, this.$courseBlockUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda_0($accountPersonUid, $contentEntryUid, $courseBlockUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda($accountPersonUid, $contentEntryUid, $courseBlockUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda($accountPersonUid, $parentUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$parentUid_1 = $parentUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$parentUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda(this.$accountPersonUid_1, this.$parentUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda_0($accountPersonUid, $parentUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda($accountPersonUid, $parentUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda($accountPersonUid, $clazzUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$clazzUid_1 = $clazzUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda(this.$accountPersonUid_1, this.$clazzUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda_0($accountPersonUid, $clazzUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda($accountPersonUid, $clazzUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $completionOrProgressTrueVal, resultContinuation) { this.$clazzUid_1 = $clazzUid; this.$roleId_1 = $roleId; this.$filter_1 = $filter; this.$currentTime_1 = $currentTime; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$studentsLimit_1 = $studentsLimit; this.$studentsOffset_1 = $studentsOffset; this.$completionOrProgressTrueVal_1 = $completionOrProgressTrueVal; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda).invoke_sq2096_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_sq2096_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setInt_c72a8z_k$(3, this.$roleId_1); this._stmt_1.setInt_c72a8z_k$(4, this.$filter_1); this._stmt_1.setLong_j1sybo_k$(5, this.$currentTime_1); this._stmt_1.setLong_j1sybo_k$(6, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(13, this.$searchText_1); this._stmt_1.setInt_c72a8z_k$(14, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(15, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(16, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(17, this.$sortOrder_1); this._stmt_1.setInt_c72a8z_k$(18, this.$studentsLimit_1); this._stmt_1.setInt_c72a8z_k$(19, this.$studentsOffset_1); this._stmt_1.setLong_j1sybo_k$(20, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(21, this.$completionOrProgressTrueVal_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda(this.$clazzUid_1, this.$roleId_1, this.$filter_1, this.$currentTime_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, this.$studentsLimit_1, this.$studentsOffset_1, this.$completionOrProgressTrueVal_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda_0($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $completionOrProgressTrueVal, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda($clazzUid, $roleId, $filter, $currentTime, $accountPersonUid, $searchText, $sortOrder, $studentsLimit, $studentsOffset, $completionOrProgressTrueVal, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_sq2096_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda($studentPersonUids, $clazzUid, $completionOrProgressTrueVal, resultContinuation) { this.$studentPersonUids_1 = $studentPersonUids; this.$clazzUid_1 = $clazzUid; this.$completionOrProgressTrueVal_1 = $completionOrProgressTrueVal; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda).invoke_sq2096_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_sq2096_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setBoolean_pzdm1v_k$(3, this.$completionOrProgressTrueVal_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda(this.$studentPersonUids_1, this.$clazzUid_1, this.$completionOrProgressTrueVal_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda_0($studentPersonUids, $clazzUid, $completionOrProgressTrueVal, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda($studentPersonUids, $clazzUid, $completionOrProgressTrueVal, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_sq2096_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.$studentPersonUids_1 = $studentPersonUids; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda).invoke_1cidv1_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_1cidv1_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda(this.$studentPersonUids_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_1cidv1_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.$studentPersonUids_1 = $studentPersonUids; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).invoke_4hctss_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_4hctss_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); var tmp_0 = this._stmt_1.getConnection_hr2oto_k$(); var this_0 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(1, createArrayOrProxyArrayOf(tmp_0, 'BIGINT', copyToArray(this_0))); this._stmt_1.setLong_j1sybo_k$(2, this.$clazzUid_1); var tmp_1 = this._stmt_1.getConnection_hr2oto_k$(); var this_1 = this.$studentPersonUids_1; this._stmt_1.setArray_61y2p9_k$(3, createArrayOrProxyArrayOf(tmp_1, 'BIGINT', copyToArray(this_1))); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda(this.$studentPersonUids_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda($studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_4hctss_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$studentPersonUids_1 = $studentPersonUids; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).invoke_fnuuog_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_fnuuog_k$($completion); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = ?\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE ? = ? \n \n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda$slambda_0(this.$studentPersonUids_1, this.$clazzUid_1, this.$accountPersonUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this.this$0__1, this.$studentPersonUids_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); }; function StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda(this$0, $studentPersonUids, $clazzUid, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_fnuuog_k$($completion); }; l.$arity = 0; return l; } function StatementDao_JdbcImpl$findResumableRegistration$slambda($actorUid, $activityUid, $accountPersonUid, resultContinuation) { this.$actorUid_1 = $actorUid; this.$activityUid_1 = $activityUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findResumableRegistration$slambda).invoke_jbnrze_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findResumableRegistration$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_jbnrze_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findResumableRegistration$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$activityUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$activityUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$actorUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findResumableRegistration$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findResumableRegistration$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findResumableRegistration$slambda(this.$actorUid_1, this.$activityUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findResumableRegistration$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findResumableRegistration$slambda_0($actorUid, $activityUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findResumableRegistration$slambda($actorUid, $activityUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_jbnrze_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda($contentEntryUid, $accountPersonUid, $searchText, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setString_2gt7ua_k$(10, this.$searchText_1); this._stmt_1.setString_2gt7ua_k$(11, this.$searchText_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda(this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda_0($contentEntryUid, $accountPersonUid, $searchText, resultContinuation) { var i = new StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda($contentEntryUid, $accountPersonUid, $searchText, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findPersonsWithAttempts$1(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'Person', 'PersonPicture', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).loadRows_kd3csh_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingData LIMIT ? OFFSET ?", VOID, VOID, VOID, "SELECT * FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$loadRows$slambda_0(this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_kd3csh_k$(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findPersonsWithAttempts$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingCount", VOID, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT Person.*, PersonPicture.*,\n (SELECT COUNT(*)\n FROM (SELECT DISTINCT StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS DistinctRegistrations) AS numAttempts,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1)) AS isCompleted,\n (SELECT CASE\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ) AS mostRecentAttemptTime \n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n ORDER BY \n CASE \n WHEN ? = 5 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 7 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 9 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END ASC,\n CASE \n WHEN ? = 1 THEN Person.firstNames\n WHEN ? = 3 THEN Person.lastName\n ELSE ''\n END ASC, \n CASE \n WHEN ? = 6 THEN (\n SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 8 THEN (\n SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n )\n WHEN ? = 10 THEN (\n SELECT MAX(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n )\n ELSE 0\n END DESC,\n CASE\n WHEN ? = 2 THEN Person.firstNames\n WHEN ? = 4 THEN Person.lastName\n END DESC \n) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttempts$o$countRows$slambda_0(this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, null), $completion); }; function StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda($contentEntryUid, $personUid, $accountPersonUid, resultContinuation) { this.$contentEntryUid_1 = $contentEntryUid; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$personUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda(this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda_0($contentEntryUid, $personUid, $accountPersonUid, resultContinuation) { var i = new StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda($contentEntryUid, $personUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ClazzEnrolment', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).loadRows_j4exae_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig('SELECT * FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingData LIMIT ? OFFSET ?', VOID, VOID, VOID, 'SELECT * FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = ?)\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingData LIMIT ? OFFSET ?\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$loadRows$slambda_0(this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_j4exae_k$(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findSessionsByPersonAndContent$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig('SELECT COUNT(*) FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingCount', VOID, VOID, VOID, 'SELECT COUNT(*) FROM (\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = ?)\n ,\n SessionsByPerson(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) AS (\n SELECT DistinctRegistrationUids.contextRegistrationHi AS contextRegistrationHi,\n DistinctRegistrationUids.contextRegistrationLo AS contextRegistrationLo,\n (SELECT MIN(StatementEntity.timestamp)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n ) AS timeStarted,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxProgress,\n \n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS maxScore,\n \n (SELECT EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS isCompleted,\n (SELECT CASE \n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1) THEN 1\n WHEN EXISTS(\n SELECT 1 \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND StatementEntity.resultSuccess IS NOT NULL\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0) THEN 0\n ELSE NULL\n END) AS isSuccessful,\n (SELECT MAX(StatementEntity.resultDuration)\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?) AS resultDuration\n FROM DistinctRegistrationUids\n WHERE (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )) \n SELECT SessionsByPerson.*\n FROM SessionsByPerson\n ORDER BY \n CASE ?\n WHEN 1 THEN timeStarted\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN timeStarted\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 4 THEN maxScore\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 3 THEN maxScore\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 6 THEN maxProgress\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 5 THEN maxProgress\n ELSE NULL\n END ASC\n ) AS _PagingCount\n', true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContent$o$countRows$slambda_0(this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, this.$sortOrder_1, null), $completion); }; function StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda($registrationHi, $registrationLo, resultContinuation) { this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda).invoke_yknlgy_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_yknlgy_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$registrationHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$registrationLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda(this.$registrationHi_1, this.$registrationLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda_0($registrationHi, $registrationLo, resultContinuation) { var i = new StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda($registrationHi, $registrationLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_yknlgy_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findStatementsBySession$1(this$0, $accountPersonUid, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, $searchText, $deSelectedVerbUids, $sortOrder) { this.this$0__1 = this$0; this.$accountPersonUid_1 = $accountPersonUid; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; this.$searchText_1 = $searchText; this.$deSelectedVerbUids_1 = $deSelectedVerbUids; this.$sortOrder_1 = $sortOrder; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$2 = ['SystemPermission', 'ActivityEntity', 'VerbEntity', 'ActivityLangMapEntry', 'ClazzEnrolment', 'VerbLangMapEntry', 'StatementEntity', 'CoursePermission']; DoorLimitOffsetPagingSource.call(this, this$0._db_1, tmp$ret$2); } protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).loadRows_hwrrp7_k$ = function (_limit, _offset, $completion) { var tmp = new PreparedStatementConfig("SELECT * FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT) \n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingData LIMIT ? OFFSET ?", true, VOID, VOID, "SELECT * FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ? \n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingData LIMIT ? OFFSET ?\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$loadRows$slambda_0(this.$accountPersonUid_1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, this.$searchText_1, this.$deSelectedVerbUids_1, this.$sortOrder_1, _limit, _offset, null), $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).loadRows_5yyyd5_k$ = function (_limit, _offset, $completion) { return this.loadRows_hwrrp7_k$(_limit, _offset, $completion); }; protoOf(StatementDao_JdbcImpl$findStatementsBySession$1).countRows_kb9fe9_k$ = function ($completion) { var tmp = new PreparedStatementConfig("SELECT COUNT(*) FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT) \n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingCount", true, VOID, VOID, "SELECT COUNT(*) FROM (\n SELECT StatementEntity.*, VerbEntity.*, VerbLangMapEntry.*, ActivityEntity.*,\n ActivityLangMapEntry.*,\n ActivityLangMapDescription.almeValue AS statementActivityDescription\n FROM StatementEntity\n LEFT JOIN VerbEntity\n ON StatementEntity.statementVerbUid = VerbEntity.verbUid\n LEFT JOIN VerbLangMapEntry \n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = VerbEntity.verbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n LEFT JOIN ActivityLangMapEntry\n ON (ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash) = \n (SELECT ActivityLangMapEntry.almeActivityUid, ActivityLangMapEntry.almeHash\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapEntry.almePropName = 'name'\n LIMIT 1)\n LEFT JOIN ActivityLangMapEntry ActivityLangMapDescription\n ON (ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash) = \n (SELECT ActivityLangMapDescription.almeActivityUid, ActivityLangMapDescription.almeHash\n FROM ActivityLangMapEntry ActivityLangMapDescription\n WHERE ActivityLangMapDescription.almeActivityUid = StatementEntity.statementObjectUid1\n AND ActivityLangMapDescription.almePropName = 'description'\n LIMIT 1)\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ? \n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND (? = '%' OR VerbEntity.verbUrlId LIKE ?)\n AND StatementEntity.statementVerbUid NOT IN (?)\n /* Permission check */\n AND (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND (\n CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole\n )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted\n )\n OR (\n \n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n \n )\n )\n ORDER BY \n CASE ?\n WHEN 1 THEN StatementEntity.timestamp\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 2 THEN StatementEntity.timestamp\n ELSE NULL\n END ASC,\n CASE ?\n WHEN 3 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END DESC,\n CASE ?\n WHEN 4 THEN StatementEntity.resultScoreRaw\n ELSE NULL\n END ASC\n) AS _PagingCount\n", true); return prepareAndUseStatementAsync(this.this$0__1._db_1, tmp, StatementDao_JdbcImpl$findStatementsBySession$o$countRows$slambda_0(this.$accountPersonUid_1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, this.$searchText_1, this.$deSelectedVerbUids_1, this.$sortOrder_1, null), $completion); }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).invoke_o5aq4c_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_o5aq4c_k$($completion); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n WITH DistinctVerbUrls(statementVerbUid) AS (\n SELECT DISTINCT StatementEntity.statementVerbUid\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n )\n \n SELECT VerbEntity.*,\n VerbLangMapEntry.*\n FROM DistinctVerbUrls\n JOIN VerbEntity \n ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n LEFT JOIN VerbLangMapEntry\n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n', VOID, VOID, VOID, '\n WITH DistinctVerbUrls(statementVerbUid) AS (\n SELECT DISTINCT StatementEntity.statementVerbUid\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ?\n AND StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n )\n \n SELECT VerbEntity.*,\n VerbLangMapEntry.*\n FROM DistinctVerbUrls\n JOIN VerbEntity \n ON VerbEntity.verbUid = DistinctVerbUrls.statementVerbUid\n LEFT JOIN VerbLangMapEntry\n ON (VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash) = \n (SELECT VerbLangMapEntry.vlmeVerbUid, VerbLangMapEntry.vlmeLangHash\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = DistinctVerbUrls.statementVerbUid\n ORDER BY VerbLangMapEntry.vlmeLastModified DESC\n LIMIT 1)\n\n', true); suspendResult = prepareAndUseStatementAsync(this.this$0__1._db_1, tmp_0, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda$slambda_0(this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this.this$0__1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, completion); }; function StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_o5aq4c_k$($completion); }; l.$arity = 0; return l; } function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation) { this.$accountPersonUid_1 = $accountPersonUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).invoke_ph766l_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_ph766l_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(7, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(8, this.$contentEntryUid_1); this._stmt_1.setLong_j1sybo_k$(9, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(10, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(11, this.$accountPersonUid_1); this._stmt_1.setLong_j1sybo_k$(12, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda(this.$accountPersonUid_1, this.$contentEntryUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0($accountPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda($accountPersonUid, $contentEntryUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_ph766l_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda($statementIdHi, $statementIdLo, resultContinuation) { this.$statementIdHi_1 = $statementIdHi; this.$statementIdLo_1 = $statementIdLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda).invoke_kdekza_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_kdekza_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$statementIdHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$statementIdLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda(this.$statementIdHi_1, this.$statementIdLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda_0($statementIdHi, $statementIdLo, resultContinuation) { var i = new StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda($statementIdHi, $statementIdLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_kdekza_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementDao_JdbcImpl(_db) { StatementDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStatementEntity_ignore_1 = new StatementDao_JdbcImpl$_insertAdapterStatementEntity_ignore$1(this); } protoOf(StatementDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementDao_JdbcImpl).get__insertAdapterStatementEntity_ignore_mqm8ld_k$ = function () { return this._insertAdapterStatementEntity_ignore_1; }; protoOf(StatementDao_JdbcImpl).insertOrIgnoreListAsync_9xzgy7_k$ = function (entityList, $completion) { return this._insertAdapterStatementEntity_ignore_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(StatementDao_JdbcImpl).getOneStatement_3pmz33_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['StatementEntity']; return doorFlow(this._db_1, tmp, StatementDao_JdbcImpl$getOneStatement$slambda_0(this, null)); }; protoOf(StatementDao_JdbcImpl).runReportQuery_ohgtcq_k$ = function (query, $completion) { var tmp = new PreparedStatementConfig(query.get_sql_18iw0r_k$(), hasListOrArrayParams(query), VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$runReportQuery$slambda_0(query, this, null), $completion); }; protoOf(StatementDao_JdbcImpl).getResults_ao1sua_k$ = function (query, $completion) { var tmp = new PreparedStatementConfig(query.get_sql_18iw0r_k$(), hasListOrArrayParams(query), VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$getResults$slambda_0(query, this, null), $completion); }; protoOf(StatementDao_JdbcImpl).getListResults_e48hpn_k$ = function (query) { return new StatementDao_JdbcImpl$getListResults$1(this, query); }; protoOf(StatementDao_JdbcImpl).getPerson_bnbk97_k$ = function () { var tmp = new PreparedStatementConfig('SELECT * FROM PERSON LIMIT 1', VOID, VOID, VOID, VOID, true); return prepareAndUseStatement_0(this._db_1, tmp, StatementDao_JdbcImpl$getPerson$lambda); }; protoOf(StatementDao_JdbcImpl).getStatements_yttaat_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE ( (CAST(? AS BIGINT) = 0 AND CAST(? AS BIGINT) = 0) \n OR (statementIdHi = CAST(? AS BIGINT) AND statementIdLo = CAST(? AS BIGINT)))\n \n ', VOID, VOID, VOID, '\n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE ( (? = 0 AND ? = 0) \n OR (statementIdHi = ? AND statementIdLo = ?))\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$getStatements$slambda_0(statementIdHi, statementIdLo, null), $completion); }; protoOf(StatementDao_JdbcImpl).findById_y0urkl_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE statementIdHi = CAST(? AS BIGINT) \n AND statementIdLo = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE statementIdHi = ? \n AND statementIdLo = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findById$slambda_0(statementIdHi, statementIdLo, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusStatementsByContentEntryUid_heu932_k$ = function (contentEntryUid, courseBlockUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntity.*\n \n \n FROM StatementEntity\n WHERE StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND (CAST(? AS BIGINT) = 0 OR StatementEntity.statementCbUid = CAST(? AS BIGINT))\n \n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL))\n \n \n \n ', VOID, VOID, VOID, '\n SELECT StatementEntity.*\n \n \n FROM StatementEntity\n WHERE StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid = ?\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND (? = 0 OR StatementEntity.statementCbUid = ?)\n \n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL))\n \n \n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusStatementsByContentEntryUid$slambda_0(accountPersonUid, contentEntryUid, courseBlockUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusStatementByParentContentEntryUid_52knt9_k$ = function (parentUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntity.*\n \n FROM StatementEntity\n WHERE StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n AND StatementEntity.statementContentEntryUid IN (\n SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = CAST(? AS BIGINT))\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL)) \n \n ', VOID, VOID, VOID, '\n SELECT StatementEntity.*\n \n FROM StatementEntity\n WHERE StatementEntity.statementActorPersonUid = ?\n AND StatementEntity.statementContentEntryUid IN (\n SELECT ContentEntryParentChildJoin.cepcjChildContentEntryUid\n FROM ContentEntryParentChildJoin\n WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?)\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL)) \n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusStatementByParentContentEntryUid$slambda_0(accountPersonUid, parentUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusStatementsForStudentByClazzUid_oz5le9_k$ = function (clazzUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT CAST(? AS BIGINT) AS personUid\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n SELECT StatementEntity.*\n \n FROM StatementEntity\n WHERE (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n AND StatementEntity.statementClazzUid = CAST(? AS BIGINT)\n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL))\n \n ', VOID, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT ? AS personUid\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n SELECT StatementEntity.*\n \n FROM StatementEntity\n WHERE (\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n AND ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n )\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n AND StatementEntity.statementClazzUid = ?\n AND ( (CAST(StatementEntity.resultCompletion AS INTEGER) = 1)\n OR (StatementEntity.extensionProgress IS NOT NULL))\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusStatementsForStudentByClazzUid$slambda_0(accountPersonUid, clazzUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusForStudentsInClazzStatements_i1i1tv_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion) { var tmp = new PreparedStatementConfig("\n -- Get the PersonUids for those that are within the current page as per studentsLimit and \n -- studentsOffset\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = CAST(? AS BIGINT) \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (CAST(? AS BIGINT) \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = CAST(? AS BIGINT)), 0) = CAST(? AS BIGINT))\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = CAST(? AS BIGINT)\n AND (CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = CAST(? AS BIGINT)\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n ,\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n\n \n -- Fetch all statements that could be completion or progress for the Gradebook report\n SELECT StatementEntity.*, ActorEntity.*, GroupMemberActorJoin.*\n FROM StatementEntity\n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n WHERE StatementEntity.statementClazzUid = CAST(? AS BIGINT)\n AND StatementEntity.completionOrProgress = ?\n AND StatementEntity.statementActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid) \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n OR StatementEntity.resultCompletion IS NOT NULL\n OR StatementEntity.resultSuccess IS NOT NULL\n OR StatementEntity.extensionProgress IS NOT NULL \n )\n \n ", VOID, VOID, VOID, "\n -- Get the PersonUids for those that are within the current page as per studentsLimit and \n -- studentsOffset\n WITH \n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = ? \n AND (? != 1 \n OR (? \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = ?), 0) = ?)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = ?\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = ?\n AND (CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = ?\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE ?\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(?)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(?)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(?)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(?)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT ?\n OFFSET ? \n )\n ,\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n\n \n -- Fetch all statements that could be completion or progress for the Gradebook report\n SELECT StatementEntity.*, ActorEntity.*, GroupMemberActorJoin.*\n FROM StatementEntity\n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n WHERE StatementEntity.statementClazzUid = ?\n AND StatementEntity.completionOrProgress = ?\n AND StatementEntity.statementActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid) \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n OR StatementEntity.resultCompletion IS NOT NULL\n OR StatementEntity.resultSuccess IS NOT NULL\n OR StatementEntity.extensionProgress IS NOT NULL \n )\n \n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzStatements$slambda_0(clazzUid, roleId, filter, currentTime, accountPersonUid, searchText, sortOrder, studentsLimit, studentsOffset, completionOrProgressTrueVal, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusForStudentsInClazzByUidList_jc2sb3_k$ = function (clazzUid, studentPersonUids, completionOrProgressTrueVal, $completion) { var tmp = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?) \n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n \n -- Fetch all statements that could be completion or progress for the Gradebook report\n SELECT StatementEntity.*, ActorEntity.*, GroupMemberActorJoin.*\n FROM StatementEntity\n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n WHERE StatementEntity.statementClazzUid = CAST(? AS BIGINT)\n AND StatementEntity.completionOrProgress = ?\n AND StatementEntity.statementActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid) \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n OR StatementEntity.resultCompletion IS NOT NULL\n OR StatementEntity.resultSuccess IS NOT NULL\n OR StatementEntity.extensionProgress IS NOT NULL \n )\n \n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?) \n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n \n -- Fetch all statements that could be completion or progress for the Gradebook report\n SELECT StatementEntity.*, ActorEntity.*, GroupMemberActorJoin.*\n FROM StatementEntity\n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid)\n WHERE StatementEntity.statementClazzUid = ?\n AND StatementEntity.completionOrProgress = ?\n AND StatementEntity.statementActorUid IN (\n SELECT DISTINCT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid) \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n OR StatementEntity.resultCompletion IS NOT NULL\n OR StatementEntity.resultSuccess IS NOT NULL\n OR StatementEntity.extensionProgress IS NOT NULL \n )\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzByUidList$slambda_0(studentPersonUids, clazzUid, completionOrProgressTrueVal, null), $completion); }; protoOf(StatementDao_JdbcImpl).findActorEntitiesForStudentInClazzByUidList_4d9wuo_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?) \n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN \n (SELECT PersonUids.personUid\n FROM PersonUids)\n AND CAST(? AS BIGINT) = CAST(? AS BIGINT)\n AND CAST(? AS BIGINT) = CAST(? AS BIGINT)\n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?) \n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n \n \n SELECT ActorEntity.*\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN \n (SELECT PersonUids.personUid\n FROM PersonUids)\n AND ? = ?\n AND ? = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findActorEntitiesForStudentInClazzByUidList$slambda_0(studentPersonUids, clazzUid, accountPersonUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusForStudentsInClazz_96xzp1_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = CAST(? AS BIGINT)\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE CAST(? AS BIGINT) = CAST(? AS BIGINT) \n ', true, VOID, VOID, '\n WITH PersonUids(personUid) AS (\n SELECT Person.personUid\n FROM Person\n WHERE Person.personUid IN (?)\n ),\n \n \n -- Get the ActorUids for the PersonUids See ActoryEntity doc for info on this join relationship\n AgentActorUidsForPersonUid(actorUid, actorPersonUid) AS(\n SELECT ActorEntity.actorUid AS actorUid, \n ActorEntity.actorPersonUid AS actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorPersonUid IN\n (SELECT PersonUids.personUid\n FROM PersonUids) \n ),\n \n -- Add in group actor uids\n ActorUidsForPersonUid(actorUid, actorPersonUid) AS (\n SELECT AgentActorUidsForPersonUid.actorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid \n UNION \n SELECT GroupMemberActorJoin.gmajGroupActorUid AS actorUid,\n AgentActorUidsForPersonUid.actorPersonUid AS actorPersonUid\n FROM AgentActorUidsForPersonUid\n JOIN GroupMemberActorJoin \n ON GroupMemberActorJoin.gmajMemberActorUid = AgentActorUidsForPersonUid.actorUid\n )\n ,\n \n PersonUidsAndCourseBlocks(personUid, cbUid, cbType, caMarkingType) AS (\n SELECT Person.personUid AS personUid,\n CourseBlock.cbUid AS cbUid,\n CourseBlock.cbType AS cbType,\n ClazzAssignment.caMarkingType AS caMarkingType\n FROM Person\n JOIN CourseBlock\n ON CourseBlock.cbClazzUid = ?\n LEFT JOIN ClazzAssignment\n ON CourseBlock.cbType = 103\n AND ClazzAssignment.caUid = CourseBlock.cbEntityUid \n WHERE Person.personUid IN (?) \n )\n \n SELECT PersonUidsAndCourseBlocks.personUid AS sPersonUid,\n PersonUidsAndCourseBlocks.cbUid AS sCbUid,\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE \n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n \n ) AS sProgress,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n )) AS sIsCompleted,\n (SELECT CASE\n /*If there is a statement marked as success, then count as successful even if\n *there were subsequent failed attempts\n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n ) \n ) THEN 1\n /*If there are no statements marked as success, however there are statements marekd as fail,\n *then count as fail \n */\n WHEN (\n SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n ) \n ) THEN 0\n /* Else there is no known success/fail result*/\n ELSE NULL\n END\n ) AS sIsSuccess,\n -- See ClazzGradebookScreen for info on which score is selected\n (SELECT CASE\n -- When there is a peer marked assignment, take the average of the latest distinct ...\n WHEN ( PersonUidsAndCourseBlocks.cbType = 103\n AND PersonUidsAndCourseBlocks.caMarkingType = 2\n ) \n THEN (SELECT AVG(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity.timestamp = (\n SELECT MAX(StatementEntity_Inner.timestamp)\n FROM StatementEntity StatementEntity_Inner\n \n JOIN ActorEntity ActorEntity_Inner\n ON ActorEntity_Inner.actorUid = StatementEntity_Inner.statementActorUid\n LEFT JOIN GroupMemberActorJoin GroupMemberActorJoin_Inner\n ON ActorEntity_Inner.actorObjectType = 2\n AND (GroupMemberActorJoin_Inner.gmajGroupActorUid, GroupMemberActorJoin_Inner.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity_Inner.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity_Inner.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n AND StatementEntity_Inner.contextInstructorActorUid = StatementEntity.contextInstructorActorUid)\n LIMIT 1)\n -- When an assignment, but not peer marked, then the latest score \n WHEN PersonUidsAndCourseBlocks.cbType = 103\n THEN (SELECT StatementEntity.resultScoreScaled\n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1)\n -- else the best score accomplished so far \n ELSE (SELECT MAX(StatementEntity.resultScoreScaled) \n FROM StatementEntity\n \n JOIN ActorEntity\n ON ActorEntity.actorUid = StatementEntity.statementActorUid\n LEFT JOIN GroupMemberActorJoin\n ON ActorEntity.actorObjectType = 2\n AND (GroupMemberActorJoin.gmajGroupActorUid, GroupMemberActorJoin.gmajMemberActorUid) IN (\n SELECT GroupMemberActorJoin.gmajGroupActorUid, \n GroupMemberActorJoin.gmajMemberActorUid\n FROM GroupMemberActorJoin\n WHERE GroupMemberActorJoin.gmajGroupActorUid = StatementEntity.statementActorUid\n AND GroupMemberActorJoin.gmajMemberActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid))\n \n WHERE (\n StatementEntity.statementCbUid = PersonUidsAndCourseBlocks.cbUid\n AND StatementEntity.statementActorUid IN (\n SELECT ActorUidsForPersonUid.actorUid\n FROM ActorUidsForPersonUid\n WHERE ActorUidsForPersonUid.actorPersonUid = PersonUidsAndCourseBlocks.personUid) \n \n )) \n END\n ) AS sScoreScaled\n FROM PersonUidsAndCourseBlocks\n WHERE ? = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazz$slambda_0(studentPersonUids, clazzUid, accountPersonUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatusForStudentsInClazzAsFlow_qt624z_k$ = function (clazzUid, studentPersonUids, accountPersonUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['ClazzAssignment', 'CourseBlock', 'Person', 'GroupMemberActorJoin', 'ActorEntity', 'StatementEntity']; return doorFlow(this._db_1, tmp, StatementDao_JdbcImpl$findStatusForStudentsInClazzAsFlow$slambda_0(this, studentPersonUids, clazzUid, accountPersonUid, null)); }; protoOf(StatementDao_JdbcImpl).findResumableRegistration_5usfie_k$ = function (activityUid, accountPersonUid, actorUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH MostRecentRegistration(statementIdHi, statementIdLo, contextRegistrationHi, contextRegistrationLo) AS (\n SELECT StatementEntity.statementIdHi, StatementEntity.contextRegistrationLo,\n StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementActorUid = CAST(? AS BIGINT)\n AND StatementEntity.statementObjectUid1 = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationHi != 0\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1\n )\n \n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE StatementEntity.statementIdHi = (SELECT statementIdHi FROM MostRecentRegistration)\n AND StatementEntity.statementIdLo = (SELECT statementIdLo FROM MostRecentRegistration)\n AND NOT EXISTS(\n SELECT 1\n FROM StatementEntity StatementEntity_Inner\n WHERE StatementEntity_Inner.statementActorUid = CAST(? AS BIGINT)\n AND StatementEntity_Inner.statementObjectUid1 = CAST(? AS BIGINT)\n AND StatementEntity_Inner.contextRegistrationHi = (SELECT contextRegistrationHi FROM MostRecentRegistration)\n AND StatementEntity_Inner.contextRegistrationLo = (SELECT contextRegistrationLo FROM MostRecentRegistration)\n AND CAST(StatementEntity_Inner.completionOrProgress AS INTEGER) = 1\n AND ( StatementEntity_Inner.resultCompletion IS NOT NULL \n AND CAST(StatementEntity_Inner.resultCompletion AS INTEGER) = 1)\n )\n AND CAST(? AS BIGINT) IN \n (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)) \n \n ', VOID, VOID, VOID, '\n WITH MostRecentRegistration(statementIdHi, statementIdLo, contextRegistrationHi, contextRegistrationLo) AS (\n SELECT StatementEntity.statementIdHi, StatementEntity.contextRegistrationLo,\n StatementEntity.contextRegistrationHi, StatementEntity.contextRegistrationLo\n FROM StatementEntity\n WHERE StatementEntity.statementActorUid = ?\n AND StatementEntity.statementObjectUid1 = ?\n AND StatementEntity.contextRegistrationHi != 0\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1\n )\n \n SELECT StatementEntity.*\n FROM StatementEntity\n WHERE StatementEntity.statementIdHi = (SELECT statementIdHi FROM MostRecentRegistration)\n AND StatementEntity.statementIdLo = (SELECT statementIdLo FROM MostRecentRegistration)\n AND NOT EXISTS(\n SELECT 1\n FROM StatementEntity StatementEntity_Inner\n WHERE StatementEntity_Inner.statementActorUid = ?\n AND StatementEntity_Inner.statementObjectUid1 = ?\n AND StatementEntity_Inner.contextRegistrationHi = (SELECT contextRegistrationHi FROM MostRecentRegistration)\n AND StatementEntity_Inner.contextRegistrationLo = (SELECT contextRegistrationLo FROM MostRecentRegistration)\n AND CAST(StatementEntity_Inner.completionOrProgress AS INTEGER) = 1\n AND ( StatementEntity_Inner.resultCompletion IS NOT NULL \n AND CAST(StatementEntity_Inner.resultCompletion AS INTEGER) = 1)\n )\n AND ? IN \n (SELECT ActorEntity.actorPersonUid\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?) \n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findResumableRegistration$slambda_0(actorUid, activityUid, accountPersonUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findPersonsWithAttemptsStatements_oks7ch_k$ = function (contentEntryUid, accountPersonUid, searchText, $completion) { var tmp = new PreparedStatementConfig("\n SELECT StatementEntity.*\n FROM Person\n JOIN StatementEntity\n ON (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN\n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.extensionProgress DESC\n LIMIT 1)\n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.resultScoreScaled DESC\n LIMIT 1)\n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1) \n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?) \n \n ", VOID, VOID, VOID, "\n SELECT StatementEntity.*\n FROM Person\n JOIN StatementEntity\n ON (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN\n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.extensionProgress DESC\n LIMIT 1)\n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.resultScoreScaled DESC\n LIMIT 1)\n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = Person.personUid\n ORDER BY StatementEntity.timestamp DESC\n LIMIT 1) \n WHERE Person.personUid IN\n (SELECT DISTINCT StatementEntity.statementActorPersonUid\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n ) \n AND ( ? = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE ?) \n \n \n", true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findPersonsWithAttemptsStatements$slambda_0(contentEntryUid, accountPersonUid, searchText, null), $completion); }; protoOf(StatementDao_JdbcImpl).findPersonsWithAttempts_5xkx72_k$ = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { return new StatementDao_JdbcImpl$findPersonsWithAttempts$1(this, contentEntryUid, accountPersonUid, searchText, sortOrder); }; protoOf(StatementDao_JdbcImpl).findSessionsByPersonAndContentStatements_232xtz_k$ = function (contentEntryUid, personUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n AND StatementEntity.statementActorPersonUid = CAST(? AS BIGINT))\n \n SELECT StatementEntity.*\n FROM DistinctRegistrationUids\n JOIN StatementEntity \n ON (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n -- Statement for time started\n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n ORDER BY StatementEntity.timestamp ASC\n LIMIT 1)\n \n --statement for max progress \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.extensionProgress DESC\n LIMIT 1) \n \n --statement for max score \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.resultScoreScaled DESC\n LIMIT 1)\n \n --statement with completion \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n LIMIT 1)\n WHERE (\n CAST(? AS BIGINT) = CAST(? AS BIGINT) \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )\n ', VOID, VOID, VOID, '\n WITH \n DistinctRegistrationUids(contextRegistrationHi, contextRegistrationLo, statementClazzUid) AS (\n SELECT DISTINCT StatementEntity.contextRegistrationHi, \n StatementEntity.contextRegistrationLo,\n StatementEntity.statementClazzUid\n FROM StatementEntity\n WHERE StatementEntity.statementContentEntryUid = ?\n AND StatementEntity.statementActorPersonUid = ?)\n \n SELECT StatementEntity.*\n FROM DistinctRegistrationUids\n JOIN StatementEntity \n ON (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n -- Statement for time started\n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n ORDER BY StatementEntity.timestamp ASC\n LIMIT 1)\n \n --statement for max progress \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.extensionProgress DESC\n LIMIT 1) \n \n --statement for max score \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ORDER BY StatementEntity.resultScoreScaled DESC\n LIMIT 1)\n \n --statement with completion \n OR (StatementEntity.statementIdHi, StatementEntity.statementIdLo) IN \n (SELECT StatementEntity.statementIdHi, StatementEntity.statementIdLo \n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = DistinctRegistrationUids.contextRegistrationHi\n AND StatementEntity.contextRegistrationLo = DistinctRegistrationUids.contextRegistrationLo\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n LIMIT 1)\n WHERE (\n ? = ? \n OR EXISTS(\n SELECT CoursePermission.cpUid\n FROM CoursePermission\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = DistinctRegistrationUids.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE CoursePermission.cpClazzUid = DistinctRegistrationUids.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n )\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findSessionsByPersonAndContentStatements$slambda_0(contentEntryUid, personUid, accountPersonUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findSessionsByPersonAndContent_et9scu_k$ = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { return new StatementDao_JdbcImpl$findSessionsByPersonAndContent$1(this, contentEntryUid, personUid, accountPersonUid, sortOrder); }; protoOf(StatementDao_JdbcImpl).findActivityEntryLangMapsForStatementsBySession_rhsfr7_k$ = function (registrationHi, registrationLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid IN (\n SELECT DISTINCT StatementEntity.statementObjectUid1\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = CAST(? AS BIGINT)\n AND StatementEntity.contextRegistrationLo = CAST(? AS BIGINT))\n ', VOID, VOID, VOID, '\n SELECT ActivityLangMapEntry.*\n FROM ActivityLangMapEntry\n WHERE ActivityLangMapEntry.almeActivityUid IN (\n SELECT DISTINCT StatementEntity.statementObjectUid1\n FROM StatementEntity\n WHERE StatementEntity.contextRegistrationHi = ?\n AND StatementEntity.contextRegistrationLo = ?)\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findActivityEntryLangMapsForStatementsBySession$slambda_0(registrationHi, registrationLo, null), $completion); }; protoOf(StatementDao_JdbcImpl).findStatementsBySession_149c38_k$ = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { return new StatementDao_JdbcImpl$findStatementsBySession$1(this, accountPersonUid, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, searchText, deSelectedVerbUids, sortOrder); }; protoOf(StatementDao_JdbcImpl).getUniqueVerbsForSession_3y3dye_k$ = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp = ['VerbEntity', 'VerbLangMapEntry', 'StatementEntity']; return doorFlow(this._db_1, tmp, StatementDao_JdbcImpl$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null)); }; protoOf(StatementDao_JdbcImpl).scoreOrProgressDataExistsForContent_or4jlz_k$ = function (contentEntryUid, accountPersonUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.extensionProgress IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ProgressStatements\n UNION\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = CAST(? AS BIGINT)\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = CAST(? AS BIGINT)\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = CAST(? AS BIGINT)\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = CAST(? AS BIGINT) \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE CAST(? AS BIGINT) != 0 \n AND SystemPermission.spToPersonUid = CAST(? AS BIGINT)\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ScoreStatements\n ', VOID, VOID, VOID, '\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.extensionProgress IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ProgressStatements\n UNION\n SELECT * \n FROM (SELECT StatementEntity.*\n \n FROM StatementEntity\n LEFT JOIN ClazzEnrolment \n ON ClazzEnrolment.clazzEnrolmentUid =\n COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentUid \n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n AND ClazzEnrolment.clazzEnrolmentActive\n AND ClazzEnrolment.clazzEnrolmentClazzUid = StatementEntity.statementClazzUid \n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0)\n WHERE StatementEntity.statementContentEntryUid = ?\n /* permission check */\n AND ( StatementEntity.statementActorPersonUid = ?\n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n WHERE CoursePermission.cpClazzUid = StatementEntity.statementClazzUid\n AND ( CoursePermission.cpToPersonUid = ? \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment.clazzEnrolmentRole )\n AND (CoursePermission.cpPermissionsFlag & 128) > 0 \n AND NOT CoursePermission.cpIsDeleted)\n OR (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE ? != 0 \n AND SystemPermission.spToPersonUid = ?\n AND (SystemPermission.spPermissionsFlag &\n \n 128\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n ))\n \n AND ( StatementEntity.resultScoreScaled IS NOT NULL\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n LIMIT 1) AS ScoreStatements\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$scoreOrProgressDataExistsForContent$slambda_0(accountPersonUid, contentEntryUid, null), $completion); }; protoOf(StatementDao_JdbcImpl).findByUidWithActivityAsync_4260rf_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntity.*, ActivityEntity.*\n FROM StatementEntity\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n WHERE StatementEntity.statementIdHi = CAST(? AS BIGINT)\n AND StatementEntity.statementIdLo = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT StatementEntity.*, ActivityEntity.*\n FROM StatementEntity\n LEFT JOIN ActivityEntity\n ON ActivityEntity.actUid = StatementEntity.statementObjectUid1\n WHERE StatementEntity.statementIdHi = ?\n AND StatementEntity.statementIdLo = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementDao_JdbcImpl$findByUidWithActivityAsync$slambda_0(statementIdHi, statementIdLo, null), $completion); }; function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findPersonsWithAttempts$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$findStatementsBySession$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreListAsync_9xzgy7_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementDao_Repo$insertOrIgnoreListAsync$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new StatementDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) { this.this$0__1 = this$0; this.$clazzUid_1 = $clazzUid; this.$studentPersonUids_1 = $studentPersonUids; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StatementDao/findStatusForStudentsInClazzAsFlow'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'StatementDao/findStatusForStudentsInClazzAsFlow'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'clazzUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$clazzUid_1)); parameter(this_0, 'studentPersonUids', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer(Companion_getInstance())), this.$studentPersonUids_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this.this$0__1, this.$clazzUid_1, this.$studentPersonUids_1, this.$accountPersonUid_1, completion); }; function StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation) { var i = new StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda(this$0, $clazzUid, $studentPersonUids, $accountPersonUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$accountPersonUid_1 = $accountPersonUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'StatementDao/findPersonsWithAttempts'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'StatementDao/findPersonsWithAttempts'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(get_nullable(serializer_0(StringCompanionObject_getInstance())), this.$searchText_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, StatementDao_Repo$findPersonsWithAttempts$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this.this$0__1, this.$contentEntryUid_1, this.$accountPersonUid_1, this.$searchText_1, this.$sortOrder_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(StatementDao_Repo$findPersonsWithAttempts$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function StatementDao_Repo$findPersonsWithAttempts$slambda_0(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation) { var i = new StatementDao_Repo$findPersonsWithAttempts$slambda(this$0, $contentEntryUid, $accountPersonUid, $searchText, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { this.this$0__1 = this$0; this.$contentEntryUid_1 = $contentEntryUid; this.$personUid_1 = $personUid; this.$accountPersonUid_1 = $accountPersonUid; this.$sortOrder_1 = $sortOrder; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'StatementDao/findSessionsByPersonAndContent'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'StatementDao/findSessionsByPersonAndContent'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); parameter(this_0, 'personUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$personUid_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, StatementDao_Repo$findSessionsByPersonAndContent$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this.this$0__1, this.$contentEntryUid_1, this.$personUid_1, this.$accountPersonUid_1, this.$sortOrder_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(StatementDao_Repo$findSessionsByPersonAndContent$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation) { var i = new StatementDao_Repo$findSessionsByPersonAndContent$slambda(this$0, $contentEntryUid, $personUid, $accountPersonUid, $sortOrder, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) { this.this$0__1 = this$0; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$accountPersonUid_1 = $accountPersonUid; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; this.$searchText_1 = $searchText; this.$sortOrder_1 = $sortOrder; this.$deSelectedVerbUids_1 = $deSelectedVerbUids; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$findStatementsBySession$slambda).invoke_z7jm38_k$ = function (_pagingParams, $completion) { var tmp = this.create_ux6qf3_k$(_pagingParams, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_z7jm38_k$(p1 instanceof LoadParams ? p1 : THROW_CCE(), $completion); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(1); continue $sm; case 1: var tmp_0 = this; tmp_0.this1__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath2__1 = 'StatementDao/findStatementsBySession'; this.set_exceptionState_fex74n_k$(4); var tmp_2 = this; tmp_2.this3__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this4__1 = this.this3__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'StatementDao/findStatementsBySession'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'registrationHi', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$registrationHi_1)); parameter(this_0, 'registrationLo', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$registrationLo_1)); parameter(this_0, 'accountPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$accountPersonUid_1)); parameter(this_0, 'selectedPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$selectedPersonUid_1)); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); parameter(this_0, 'searchText', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_0(StringCompanionObject_getInstance()), this.$searchText_1)); parameter(this_0, 'sortOrder', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer_1(IntCompanionObject_getInstance()), this.$sortOrder_1)); parameter(this_0, 'deSelectedVerbUids', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(ListSerializer(serializer(Companion_getInstance())), this.$deSelectedVerbUids_1)); pagingSourceLoadParameters(this_0, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), get_nullable(serializer_1(IntCompanionObject_getInstance())), this._pagingParams_1); tmp_4.builder5__1 = this_0; this.builder5__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this6__1 = this.this4__1; var tmp_6 = this; tmp_6.builder7__1 = this.builder5__1; this.set_state_rjd8d0_k$(2); suspendResult = (new HttpStatement(this.builder7__1, this.this6__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this._response8__1 = suspendResult; this.set_state_rjd8d0_k$(3); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response8__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: this.tmp$ret$00__1 = endOfPaginationReached(this._response8__1); this.set_exceptionState_fex74n_k$(5); this.set_state_rjd8d0_k$(7); continue $sm; case 4: this.set_exceptionState_fex74n_k$(5); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, StatementDao_Repo$findStatementsBySession$slambda$lambda(this.this1__1, this.repoPath2__1)); throw e; } else { throw this.get_exception_x0n6w6_k$(); } case 5: throw this.get_exception_x0n6w6_k$(); case 6: this.set_exceptionState_fex74n_k$(5); if (false) { this.set_state_rjd8d0_k$(1); continue $sm; } this.set_state_rjd8d0_k$(7); continue $sm; case 7: return this.tmp$ret$00__1; } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 5) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).create_ux6qf3_k$ = function (_pagingParams, completion) { var i = new StatementDao_Repo$findStatementsBySession$slambda(this.this$0__1, this.$registrationHi_1, this.$registrationLo_1, this.$accountPersonUid_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, this.$searchText_1, this.$sortOrder_1, this.$deSelectedVerbUids_1, completion); i._pagingParams_1 = _pagingParams; return i; }; protoOf(StatementDao_Repo$findStatementsBySession$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_ux6qf3_k$(value instanceof LoadParams ? value : THROW_CCE(), completion); }; function StatementDao_Repo$findStatementsBySession$slambda_0(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation) { var i = new StatementDao_Repo$findStatementsBySession$slambda(this$0, $registrationHi, $registrationLo, $accountPersonUid, $selectedPersonUid, $contentEntryUid, $searchText, $sortOrder, $deSelectedVerbUids, resultContinuation); var l = function (_pagingParams, $completion) { return i.invoke_z7jm38_k$(_pagingParams, $completion); }; l.$arity = 1; return l; } function StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { this.this$0__1 = this$0; this.$registrationHi_1 = $registrationHi; this.$registrationLo_1 = $registrationLo; this.$selectedPersonUid_1 = $selectedPersonUid; this.$contentEntryUid_1 = $contentEntryUid; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.this$0__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StatementDao/getUniqueVerbsForSession'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this.this$0__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this.this$0__1._repo_1.get_config_c0698r_k$(), 'StatementDao/getUniqueVerbsForSession'); doorNodeIdHeader(this_0, this.this$0__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'registrationHi', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$registrationHi_1)); parameter(this_0, 'registrationLo', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$registrationLo_1)); parameter(this_0, 'selectedPersonUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$selectedPersonUid_1)); parameter(this_0, 'contentEntryUid', this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.$contentEntryUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this.this$0__1._db_1, this._response7__1, this.this$0__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(4); this.set_state_rjd8d0_k$(5); continue $sm; case 3: this.set_exceptionState_fex74n_k$(4); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { var e = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(e, tmp1_tag, StatementDao_Repo$getUniqueVerbsForSession$slambda$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(5); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: throw this.get_exception_x0n6w6_k$(); case 5: this.set_exceptionState_fex74n_k$(4); return Unit_getInstance(); } } catch ($p) { var e_0 = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e_0; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e_0); } } while (true); }; protoOf(StatementDao_Repo$getUniqueVerbsForSession$slambda).create_d196fn_k$ = function (completion) { return new StatementDao_Repo$getUniqueVerbsForSession$slambda(this.this$0__1, this.$registrationHi_1, this.$registrationLo_1, this.$selectedPersonUid_1, this.$contentEntryUid_1, completion); }; function StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation) { var i = new StatementDao_Repo$getUniqueVerbsForSession$slambda(this$0, $registrationHi, $registrationLo, $selectedPersonUid, $contentEntryUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $runReportQueryCOROUTINE$453(_this__u8e3s4, query, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.query_1 = query; } protoOf($runReportQueryCOROUTINE$453).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.runReportQuery_ohgtcq_k$(this.query_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getResultsCOROUTINE$454(_this__u8e3s4, query, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.query_1 = query; } protoOf($getResultsCOROUTINE$454).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getResults_ao1sua_k$(this.query_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $getStatementsCOROUTINE$455(_this__u8e3s4, statementIdHi, statementIdLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.statementIdHi_1 = statementIdHi; this.statementIdLo_1 = statementIdLo; } protoOf($getStatementsCOROUTINE$455).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getStatements_yttaat_k$(this.statementIdHi_1, this.statementIdLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByIdCOROUTINE$456(_this__u8e3s4, statementIdHi, statementIdLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.statementIdHi_1 = statementIdHi; this.statementIdLo_1 = statementIdLo; } protoOf($findByIdCOROUTINE$456).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findById_y0urkl_k$(this.statementIdHi_1, this.statementIdLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusStatementsByContentEntryUidCOROUTINE$457(_this__u8e3s4, contentEntryUid, courseBlockUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; this.courseBlockUid_1 = courseBlockUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findStatusStatementsByContentEntryUidCOROUTINE$457).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusStatementsByContentEntryUid_heu932_k$(this.contentEntryUid_1, this.courseBlockUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusStatementByParentContentEntryUidCOROUTINE$458(_this__u8e3s4, parentUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.parentUid_1 = parentUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findStatusStatementByParentContentEntryUidCOROUTINE$458).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusStatementByParentContentEntryUid_52knt9_k$(this.parentUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusStatementsForStudentByClazzUidCOROUTINE$459(_this__u8e3s4, clazzUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findStatusStatementsForStudentByClazzUidCOROUTINE$459).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusStatementsForStudentByClazzUid_oz5le9_k$(this.clazzUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusForStudentsInClazzStatementsCOROUTINE$460(_this__u8e3s4, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.roleId_1 = roleId; this.sortOrder_1 = sortOrder; this.searchText_1 = searchText; this.filter_1 = filter; this.accountPersonUid_1 = accountPersonUid; this.currentTime_1 = currentTime; this.studentsLimit_1 = studentsLimit; this.studentsOffset_1 = studentsOffset; this.completionOrProgressTrueVal_1 = completionOrProgressTrueVal; } protoOf($findStatusForStudentsInClazzStatementsCOROUTINE$460).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusForStudentsInClazzStatements_i1i1tv_k$(this.clazzUid_1, this.roleId_1, this.sortOrder_1, this.searchText_1, this.filter_1, this.accountPersonUid_1, this.currentTime_1, this.studentsLimit_1, this.studentsOffset_1, this.completionOrProgressTrueVal_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusForStudentsInClazzByUidListCOROUTINE$461(_this__u8e3s4, clazzUid, studentPersonUids, completionOrProgressTrueVal, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.studentPersonUids_1 = studentPersonUids; this.completionOrProgressTrueVal_1 = completionOrProgressTrueVal; } protoOf($findStatusForStudentsInClazzByUidListCOROUTINE$461).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusForStudentsInClazzByUidList_jc2sb3_k$(this.clazzUid_1, this.studentPersonUids_1, this.completionOrProgressTrueVal_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findActorEntitiesForStudentInClazzByUidListCOROUTINE$462(_this__u8e3s4, clazzUid, studentPersonUids, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.studentPersonUids_1 = studentPersonUids; this.accountPersonUid_1 = accountPersonUid; } protoOf($findActorEntitiesForStudentInClazzByUidListCOROUTINE$462).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActorEntitiesForStudentInClazzByUidList_4d9wuo_k$(this.clazzUid_1, this.studentPersonUids_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findStatusForStudentsInClazzCOROUTINE$463(_this__u8e3s4, clazzUid, studentPersonUids, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.clazzUid_1 = clazzUid; this.studentPersonUids_1 = studentPersonUids; this.accountPersonUid_1 = accountPersonUid; } protoOf($findStatusForStudentsInClazzCOROUTINE$463).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findStatusForStudentsInClazz_96xzp1_k$(this.clazzUid_1, this.studentPersonUids_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findResumableRegistrationCOROUTINE$464(_this__u8e3s4, activityUid, accountPersonUid, actorUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.activityUid_1 = activityUid; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; } protoOf($findResumableRegistrationCOROUTINE$464).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findResumableRegistration_5usfie_k$(this.activityUid_1, this.accountPersonUid_1, this.actorUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findPersonsWithAttemptsStatementsCOROUTINE$465(_this__u8e3s4, contentEntryUid, accountPersonUid, searchText, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; this.accountPersonUid_1 = accountPersonUid; this.searchText_1 = searchText; } protoOf($findPersonsWithAttemptsStatementsCOROUTINE$465).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findPersonsWithAttemptsStatements_oks7ch_k$(this.contentEntryUid_1, this.accountPersonUid_1, this.searchText_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findSessionsByPersonAndContentStatementsCOROUTINE$466(_this__u8e3s4, contentEntryUid, personUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; this.personUid_1 = personUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($findSessionsByPersonAndContentStatementsCOROUTINE$466).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findSessionsByPersonAndContentStatements_232xtz_k$(this.contentEntryUid_1, this.personUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findActivityEntryLangMapsForStatementsBySessionCOROUTINE$467(_this__u8e3s4, registrationHi, registrationLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.registrationHi_1 = registrationHi; this.registrationLo_1 = registrationLo; } protoOf($findActivityEntryLangMapsForStatementsBySessionCOROUTINE$467).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findActivityEntryLangMapsForStatementsBySession_rhsfr7_k$(this.registrationHi_1, this.registrationLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $scoreOrProgressDataExistsForContentCOROUTINE$468(_this__u8e3s4, contentEntryUid, accountPersonUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.contentEntryUid_1 = contentEntryUid; this.accountPersonUid_1 = accountPersonUid; } protoOf($scoreOrProgressDataExistsForContentCOROUTINE$468).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'StatementDao/scoreOrProgressDataExistsForContent'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'StatementDao/scoreOrProgressDataExistsForContent'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'contentEntryUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.contentEntryUid_1)); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, StatementDao_Repo$scoreOrProgressDataExistsForContent$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.scoreOrProgressDataExistsForContent_or4jlz_k$(this.contentEntryUid_1, this.accountPersonUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByUidWithActivityAsyncCOROUTINE$469(_this__u8e3s4, statementIdHi, statementIdLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.statementIdHi_1 = statementIdHi; this.statementIdLo_1 = statementIdLo; } protoOf($findByUidWithActivityAsyncCOROUTINE$469).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidWithActivityAsync_4260rf_k$(this.statementIdHi_1, this.statementIdLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function StatementDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; this.repoDaoFlowHelper_1 = new RepoDaoFlowHelper(this._repo_1); } protoOf(StatementDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StatementDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StatementDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StatementDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StatementDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StatementDao_Repo).get_repoDaoFlowHelper_4lqbar_k$ = function () { return this.repoDaoFlowHelper_1; }; protoOf(StatementDao_Repo).insertOrIgnoreListAsync_9xzgy7_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StatementEntity', StatementDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(StatementDao_Repo).getOneStatement_3pmz33_k$ = function () { var _result = this._dao_1.getOneStatement_3pmz33_k$(); return _result; }; protoOf(StatementDao_Repo).runReportQuery_ohgtcq_k$ = function (query, $completion) { var tmp = new $runReportQueryCOROUTINE$453(this, query, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).getResults_ao1sua_k$ = function (query, $completion) { var tmp = new $getResultsCOROUTINE$454(this, query, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).getListResults_e48hpn_k$ = function (query) { var _result = this._dao_1.getListResults_e48hpn_k$(query); return _result; }; protoOf(StatementDao_Repo).getPerson_bnbk97_k$ = function () { var _result = this._dao_1.getPerson_bnbk97_k$(); return _result; }; protoOf(StatementDao_Repo).getStatements_yttaat_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new $getStatementsCOROUTINE$455(this, statementIdHi, statementIdLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findById_y0urkl_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new $findByIdCOROUTINE$456(this, statementIdHi, statementIdLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusStatementsByContentEntryUid_heu932_k$ = function (contentEntryUid, courseBlockUid, accountPersonUid, $completion) { var tmp = new $findStatusStatementsByContentEntryUidCOROUTINE$457(this, contentEntryUid, courseBlockUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusStatementByParentContentEntryUid_52knt9_k$ = function (parentUid, accountPersonUid, $completion) { var tmp = new $findStatusStatementByParentContentEntryUidCOROUTINE$458(this, parentUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusStatementsForStudentByClazzUid_oz5le9_k$ = function (clazzUid, accountPersonUid, $completion) { var tmp = new $findStatusStatementsForStudentByClazzUidCOROUTINE$459(this, clazzUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusForStudentsInClazzStatements_i1i1tv_k$ = function (clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion) { var tmp = new $findStatusForStudentsInClazzStatementsCOROUTINE$460(this, clazzUid, roleId, sortOrder, searchText, filter, accountPersonUid, currentTime, studentsLimit, studentsOffset, completionOrProgressTrueVal, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusForStudentsInClazzByUidList_jc2sb3_k$ = function (clazzUid, studentPersonUids, completionOrProgressTrueVal, $completion) { var tmp = new $findStatusForStudentsInClazzByUidListCOROUTINE$461(this, clazzUid, studentPersonUids, completionOrProgressTrueVal, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findActorEntitiesForStudentInClazzByUidList_4d9wuo_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new $findActorEntitiesForStudentInClazzByUidListCOROUTINE$462(this, clazzUid, studentPersonUids, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusForStudentsInClazz_96xzp1_k$ = function (clazzUid, studentPersonUids, accountPersonUid, $completion) { var tmp = new $findStatusForStudentsInClazzCOROUTINE$463(this, clazzUid, studentPersonUids, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatusForStudentsInClazzAsFlow_qt624z_k$ = function (clazzUid, studentPersonUids, accountPersonUid) { var tmp = this._dao_1.findStatusForStudentsInClazzAsFlow_qt624z_k$(clazzUid, studentPersonUids, accountPersonUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, StatementDao_Repo$findStatusForStudentsInClazzAsFlow$slambda_0(this, clazzUid, studentPersonUids, accountPersonUid, null)); }; protoOf(StatementDao_Repo).findResumableRegistration_5usfie_k$ = function (activityUid, accountPersonUid, actorUid, $completion) { var tmp = new $findResumableRegistrationCOROUTINE$464(this, activityUid, accountPersonUid, actorUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findPersonsWithAttemptsStatements_oks7ch_k$ = function (contentEntryUid, accountPersonUid, searchText, $completion) { var tmp = new $findPersonsWithAttemptsStatementsCOROUTINE$465(this, contentEntryUid, accountPersonUid, searchText, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findPersonsWithAttempts_5xkx72_k$ = function (contentEntryUid, accountPersonUid, searchText, sortOrder) { var tmp = this._dao_1.findPersonsWithAttempts_5xkx72_k$(contentEntryUid, accountPersonUid, searchText, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'StatementDao/findPersonsWithAttempts', tmp, StatementDao_Repo$findPersonsWithAttempts$slambda_0(this, contentEntryUid, accountPersonUid, searchText, sortOrder, null)); }; protoOf(StatementDao_Repo).findSessionsByPersonAndContentStatements_232xtz_k$ = function (contentEntryUid, personUid, accountPersonUid, $completion) { var tmp = new $findSessionsByPersonAndContentStatementsCOROUTINE$466(this, contentEntryUid, personUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findSessionsByPersonAndContent_et9scu_k$ = function (contentEntryUid, personUid, accountPersonUid, sortOrder) { var tmp = this._dao_1.findSessionsByPersonAndContent_et9scu_k$(contentEntryUid, personUid, accountPersonUid, sortOrder); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'StatementDao/findSessionsByPersonAndContent', tmp, StatementDao_Repo$findSessionsByPersonAndContent$slambda_0(this, contentEntryUid, personUid, accountPersonUid, sortOrder, null)); }; protoOf(StatementDao_Repo).findActivityEntryLangMapsForStatementsBySession_rhsfr7_k$ = function (registrationHi, registrationLo, $completion) { var tmp = new $findActivityEntryLangMapsForStatementsBySessionCOROUTINE$467(this, registrationHi, registrationLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findStatementsBySession_149c38_k$ = function (registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids) { var tmp = this._dao_1.findStatementsBySession_149c38_k$(registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids); return new DoorRepositoryReplicatePullPagingSource(this._repo_1, 'StatementDao/findStatementsBySession', tmp, StatementDao_Repo$findStatementsBySession$slambda_0(this, registrationHi, registrationLo, accountPersonUid, selectedPersonUid, contentEntryUid, searchText, sortOrder, deSelectedVerbUids, null)); }; protoOf(StatementDao_Repo).getUniqueVerbsForSession_3y3dye_k$ = function (registrationHi, registrationLo, selectedPersonUid, contentEntryUid) { var tmp = this._dao_1.getUniqueVerbsForSession_3y3dye_k$(registrationHi, registrationLo, selectedPersonUid, contentEntryUid); return this.repoDaoFlowHelper_1.asRepoFlow_dk2js1_k$(tmp, StatementDao_Repo$getUniqueVerbsForSession$slambda_0(this, registrationHi, registrationLo, selectedPersonUid, contentEntryUid, null)); }; protoOf(StatementDao_Repo).scoreOrProgressDataExistsForContent_or4jlz_k$ = function (contentEntryUid, accountPersonUid, $completion) { var tmp = new $scoreOrProgressDataExistsForContentCOROUTINE$468(this, contentEntryUid, accountPersonUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementDao_Repo).findByUidWithActivityAsync_4260rf_k$ = function (statementIdHi, statementIdLo, $completion) { var tmp = new $findByUidWithActivityAsyncCOROUTINE$469(this, statementIdHi, statementIdLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function StatementEntityJsonDao() { } function _get__db__e63s44_61($this) { return $this._db_1; } function _get__dao__d2kw60_59($this) { return $this._dao_1; } function StatementEntityJsonDao_DoorWrapper(_db, _dao) { StatementEntityJsonDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(StatementEntityJsonDao_DoorWrapper).insertOrIgnoreListAsync_362yvb_k$ = function (entityList, $completion) { return this._dao_1.insertOrIgnoreListAsync_362yvb_k$(entityList, $completion); }; protoOf(StatementEntityJsonDao_DoorWrapper).getStatements_yg8cil_k$ = function (stmtJsonIdHi, stmtJsonIdLo, $completion) { return this._dao_1.getStatements_yg8cil_k$(stmtJsonIdHi, stmtJsonIdLo, $completion); }; function StatementEntityJsonDao_JdbcImpl$getStatements$slambda$lambda(_result) { return mapRows(_result, StatementEntityJsonDao_JdbcImpl$getStatements$slambda$lambda$lambda(_result)); } function StatementEntityJsonDao_JdbcImpl$getStatements$slambda$lambda$lambda($_result) { return function (it) { var _tmp_stmtJsonIdHi = $_result.getLong_3wgf2g_k$('stmtJsonIdHi'); var _tmp_stmtJsonIdLo = $_result.getLong_3wgf2g_k$('stmtJsonIdLo'); var _tmp_stmtEtag = $_result.getLong_3wgf2g_k$('stmtEtag'); var _tmp_fullStatement = $_result.getString_gb1pt9_k$('fullStatement'); // Inline function 'kotlin.apply' call var this_0 = new StatementEntityJson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.StatementEntityJsonDao_JdbcImpl.getStatements....' call this_0.set_stmtJsonIdHi_sfel1x_k$(_tmp_stmtJsonIdHi); this_0.set_stmtJsonIdLo_c98z71_k$(_tmp_stmtJsonIdLo); this_0.set_stmtEtag_c4jmxo_k$(_tmp_stmtEtag); this_0.set_fullStatement_tuiij8_k$(_tmp_fullStatement); return this_0; }; } function StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO StatementEntityJson (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) VALUES(?, ?, ?, ?)'; }; protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).bindPreparedStmtToEntity_ytinpq_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_stmtJsonIdHi_ij7qkr_k$()); stmt.setLong_j1sybo_k$(2, entity.get_stmtJsonIdLo_ij7qh5_k$()); stmt.setLong_j1sybo_k$(3, entity.get_stmtEtag_4c4qpm_k$()); stmt.setString_2gt7ua_k$(4, entity.get_fullStatement_rdb5o7_k$()); }; protoOf(StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_ytinpq_k$(stmt, entity instanceof StatementEntityJson ? entity : THROW_CCE()); }; function StatementEntityJsonDao_JdbcImpl$getStatements$slambda($stmtJsonIdHi, $stmtJsonIdLo, resultContinuation) { this.$stmtJsonIdHi_1 = $stmtJsonIdHi; this.$stmtJsonIdLo_1 = $stmtJsonIdLo; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementEntityJsonDao_JdbcImpl$getStatements$slambda).invoke_wcdh4b_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementEntityJsonDao_JdbcImpl$getStatements$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_wcdh4b_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(StatementEntityJsonDao_JdbcImpl$getStatements$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$stmtJsonIdHi_1); this._stmt_1.setLong_j1sybo_k$(2, this.$stmtJsonIdLo_1); this._stmt_1.setLong_j1sybo_k$(3, this.$stmtJsonIdHi_1); this._stmt_1.setLong_j1sybo_k$(4, this.$stmtJsonIdLo_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, StatementEntityJsonDao_JdbcImpl$getStatements$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementEntityJsonDao_JdbcImpl$getStatements$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new StatementEntityJsonDao_JdbcImpl$getStatements$slambda(this.$stmtJsonIdHi_1, this.$stmtJsonIdLo_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(StatementEntityJsonDao_JdbcImpl$getStatements$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function StatementEntityJsonDao_JdbcImpl$getStatements$slambda_0($stmtJsonIdHi, $stmtJsonIdLo, resultContinuation) { var i = new StatementEntityJsonDao_JdbcImpl$getStatements$slambda($stmtJsonIdHi, $stmtJsonIdLo, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_wcdh4b_k$(_stmt, $completion); }; l.$arity = 1; return l; } function StatementEntityJsonDao_JdbcImpl(_db) { StatementEntityJsonDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterStatementEntityJson_ignore_1 = new StatementEntityJsonDao_JdbcImpl$_insertAdapterStatementEntityJson_ignore$1(this); } protoOf(StatementEntityJsonDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementEntityJsonDao_JdbcImpl).get__insertAdapterStatementEntityJson_ignore_xdhomv_k$ = function () { return this._insertAdapterStatementEntityJson_ignore_1; }; protoOf(StatementEntityJsonDao_JdbcImpl).insertOrIgnoreListAsync_362yvb_k$ = function (entityList, $completion) { return this._insertAdapterStatementEntityJson_ignore_1.insertListAsync_it2cbm_k$(entityList, $completion); }; protoOf(StatementEntityJsonDao_JdbcImpl).getStatements_yg8cil_k$ = function (stmtJsonIdHi, stmtJsonIdLo, $completion) { var tmp = new PreparedStatementConfig('\n SELECT StatementEntityJson.*\n FROM StatementEntityJson\n WHERE ( (CAST(? AS BIGINT) = 0 AND CAST(? AS BIGINT) = 0) \n OR (stmtJsonIdHi = CAST(? AS BIGINT) AND stmtJsonIdLo = CAST(? AS BIGINT)))\n \n ', VOID, VOID, VOID, '\n SELECT StatementEntityJson.*\n FROM StatementEntityJson\n WHERE ( (? = 0 AND ? = 0) \n OR (stmtJsonIdHi = ? AND stmtJsonIdLo = ?))\n \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, StatementEntityJsonDao_JdbcImpl$getStatements$slambda_0(stmtJsonIdHi, stmtJsonIdLo, null), $completion); }; function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation) { this.this$0__1 = this$0; this.$entityList_1 = $entityList; CoroutineImpl.call(this, resultContinuation); } protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreListAsync_362yvb_k$(this.$entityList_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda).create_d196fn_k$ = function (completion) { return new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this.this$0__1, this.$entityList_1, completion); }; function StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this$0, $entityList, resultContinuation) { var i = new StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda(this$0, $entityList, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $getStatementsCOROUTINE$470(_this__u8e3s4, stmtJsonIdHi, stmtJsonIdLo, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.stmtJsonIdHi_1 = stmtJsonIdHi; this.stmtJsonIdLo_1 = stmtJsonIdLo; } protoOf($getStatementsCOROUTINE$470).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.getStatements_yg8cil_k$(this.stmtJsonIdHi_1, this.stmtJsonIdLo_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function StatementEntityJsonDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { StatementEntityJsonDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(StatementEntityJsonDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(StatementEntityJsonDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(StatementEntityJsonDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(StatementEntityJsonDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(StatementEntityJsonDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(StatementEntityJsonDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(StatementEntityJsonDao_Repo).insertOrIgnoreListAsync_362yvb_k$ = function (entityList, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'StatementEntityJson', StatementEntityJsonDao_Repo$insertOrIgnoreListAsync$slambda_0(this, entityList, null), $completion); }; protoOf(StatementEntityJsonDao_Repo).getStatements_yg8cil_k$ = function (stmtJsonIdHi, stmtJsonIdLo, $completion) { var tmp = new $getStatementsCOROUTINE$470(this, stmtJsonIdHi, stmtJsonIdLo, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function VerbDao() { } function _get__db__e63s44_62($this) { return $this._db_1; } function _get__dao__d2kw60_60($this) { return $this._dao_1; } function VerbDao_DoorWrapper(_db, _dao) { VerbDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(VerbDao_DoorWrapper).insertOrIgnoreAsync_zcwo5f_k$ = function (entities, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = entities.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbDao_DoorWrapper.insertOrIgnoreAsync.' call element.set_verbLct_w086ot_k$(systemTimeInMillis()); } return this._dao_1.insertOrIgnoreAsync_zcwo5f_k$(entities, $completion); }; protoOf(VerbDao_DoorWrapper).findByUid_spmjro_k$ = function (uid, $completion) { return this._dao_1.findByUid_spmjro_k$(uid, $completion); }; protoOf(VerbDao_DoorWrapper).findByVerbUrl_z7s5u0_k$ = function (verbUrl, $completion) { return this._dao_1.findByVerbUrl_z7s5u0_k$(verbUrl, $completion); }; function VerbDao_JdbcImpl$findByUid$slambda$lambda(_result) { return mapNextRow(_result, null, VerbDao_JdbcImpl$findByUid$slambda$lambda$lambda(_result)); } function VerbDao_JdbcImpl$findByUid$slambda$lambda$lambda($_result) { return function (it) { var _tmp_verbUid = $_result.getLong_3wgf2g_k$('verbUid'); var _tmp_verbUrlId = $_result.getString_gb1pt9_k$('verbUrlId'); var _tmp_verbDeleted = $_result.getBoolean_xz3hoo_k$('verbDeleted'); var _tmp_verbLct = $_result.getLong_3wgf2g_k$('verbLct'); // Inline function 'kotlin.apply' call var this_0 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbDao_JdbcImpl.findByUid....' call this_0.set_verbUid_nmxeq2_k$(_tmp_verbUid); this_0.set_verbUrlId_xpu76x_k$(_tmp_verbUrlId); this_0.set_verbDeleted_a4kb3c_k$(_tmp_verbDeleted); this_0.set_verbLct_w086ot_k$(_tmp_verbLct); return this_0; }; } function VerbDao_JdbcImpl$findByVerbUrl$slambda$lambda(_result) { return mapNextRow(_result, null, VerbDao_JdbcImpl$findByVerbUrl$slambda$lambda$lambda(_result)); } function VerbDao_JdbcImpl$findByVerbUrl$slambda$lambda$lambda($_result) { return function (it) { var _tmp_verbUid = $_result.getLong_3wgf2g_k$('verbUid'); var _tmp_verbUrlId = $_result.getString_gb1pt9_k$('verbUrlId'); var _tmp_verbDeleted = $_result.getBoolean_xz3hoo_k$('verbDeleted'); var _tmp_verbLct = $_result.getLong_3wgf2g_k$('verbLct'); // Inline function 'kotlin.apply' call var this_0 = new VerbEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbDao_JdbcImpl.findByVerbUrl....' call this_0.set_verbUid_nmxeq2_k$(_tmp_verbUid); this_0.set_verbUrlId_xpu76x_k$(_tmp_verbUrlId); this_0.set_verbDeleted_a4kb3c_k$(_tmp_verbDeleted); this_0.set_verbLct_w086ot_k$(_tmp_verbLct); return this_0; }; } function VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR IGNORE INTO VerbEntity (verbUid, verbUrlId, verbDeleted, verbLct) VALUES(?, ?, ?, ?)'; }; protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).bindPreparedStmtToEntity_kxnt4_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_verbUid_72kurs_k$()); stmt.setString_2gt7ua_k$(2, entity.get_verbUrlId_n3xvha_k$()); stmt.setBoolean_pzdm1v_k$(3, entity.get_verbDeleted_i3hmy7_k$()); stmt.setLong_j1sybo_k$(4, entity.get_verbLct_72knyt_k$()); }; protoOf(VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_kxnt4_k$(stmt, entity instanceof VerbEntity ? entity : THROW_CCE()); }; function VerbDao_JdbcImpl$findByUid$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbDao_JdbcImpl$findByUid$slambda).invoke_qyfdkm_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbDao_JdbcImpl$findByUid$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qyfdkm_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VerbDao_JdbcImpl$findByUid$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, VerbDao_JdbcImpl$findByUid$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(VerbDao_JdbcImpl$findByUid$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new VerbDao_JdbcImpl$findByUid$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(VerbDao_JdbcImpl$findByUid$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function VerbDao_JdbcImpl$findByUid$slambda_0($uid, resultContinuation) { var i = new VerbDao_JdbcImpl$findByUid$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qyfdkm_k$(_stmt, $completion); }; l.$arity = 1; return l; } function VerbDao_JdbcImpl$findByVerbUrl$slambda($verbUrl, resultContinuation) { this.$verbUrl_1 = $verbUrl; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbDao_JdbcImpl$findByVerbUrl$slambda).invoke_qyfdkm_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbDao_JdbcImpl$findByVerbUrl$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_qyfdkm_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VerbDao_JdbcImpl$findByVerbUrl$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setString_2gt7ua_k$(1, this.$verbUrl_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, VerbDao_JdbcImpl$findByVerbUrl$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(VerbDao_JdbcImpl$findByVerbUrl$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new VerbDao_JdbcImpl$findByVerbUrl$slambda(this.$verbUrl_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(VerbDao_JdbcImpl$findByVerbUrl$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function VerbDao_JdbcImpl$findByVerbUrl$slambda_0($verbUrl, resultContinuation) { var i = new VerbDao_JdbcImpl$findByVerbUrl$slambda($verbUrl, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_qyfdkm_k$(_stmt, $completion); }; l.$arity = 1; return l; } function VerbDao_JdbcImpl(_db) { VerbDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterVerbEntity_ignore_1 = new VerbDao_JdbcImpl$_insertAdapterVerbEntity_ignore$1(this); } protoOf(VerbDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(VerbDao_JdbcImpl).get__insertAdapterVerbEntity_ignore_6ontm9_k$ = function () { return this._insertAdapterVerbEntity_ignore_1; }; protoOf(VerbDao_JdbcImpl).insertOrIgnoreAsync_zcwo5f_k$ = function (entities, $completion) { return this._insertAdapterVerbEntity_ignore_1.insertListAsync_it2cbm_k$(entities, $completion); }; protoOf(VerbDao_JdbcImpl).findByUid_spmjro_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT VerbEntity.*\n FROM VerbEntity\n WHERE VerbEntity.verbUid = CAST(? AS BIGINT) \n ', VOID, VOID, VOID, '\n SELECT VerbEntity.*\n FROM VerbEntity\n WHERE VerbEntity.verbUid = ? \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, VerbDao_JdbcImpl$findByUid$slambda_0(uid, null), $completion); }; protoOf(VerbDao_JdbcImpl).findByVerbUrl_z7s5u0_k$ = function (verbUrl, $completion) { var tmp = new PreparedStatementConfig('\n SELECT VerbEntity.*\n FROM VerbEntity\n WHERE VerbEntity.verbUrlId = ? \n ', VOID, VOID, VOID, VOID, true); return prepareAndUseStatementAsync(this._db_1, tmp, VerbDao_JdbcImpl$findByVerbUrl$slambda_0(verbUrl, null), $completion); }; function VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation) { this.this$0__1 = this$0; this.$entities_1 = $entities; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertOrIgnoreAsync_zcwo5f_k$(this.$entities_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(VerbDao_Repo$insertOrIgnoreAsync$slambda).create_d196fn_k$ = function (completion) { return new VerbDao_Repo$insertOrIgnoreAsync$slambda(this.this$0__1, this.$entities_1, completion); }; function VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this$0, $entities, resultContinuation) { var i = new VerbDao_Repo$insertOrIgnoreAsync$slambda(this$0, $entities, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByUidCOROUTINE$471(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidCOROUTINE$471).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUid_spmjro_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findByVerbUrlCOROUTINE$472(_this__u8e3s4, verbUrl, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.verbUrl_1 = verbUrl; } protoOf($findByVerbUrlCOROUTINE$472).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByVerbUrl_z7s5u0_k$(this.verbUrl_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function VerbDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { VerbDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(VerbDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(VerbDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(VerbDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(VerbDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(VerbDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(VerbDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(VerbDao_Repo).insertOrIgnoreAsync_zcwo5f_k$ = function (entities, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'VerbEntity', VerbDao_Repo$insertOrIgnoreAsync$slambda_0(this, entities, null), $completion); }; protoOf(VerbDao_Repo).findByUid_spmjro_k$ = function (uid, $completion) { var tmp = new $findByUidCOROUTINE$471(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbDao_Repo).findByVerbUrl_z7s5u0_k$ = function (verbUrl, $completion) { var tmp = new $findByVerbUrlCOROUTINE$472(this, verbUrl, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function VerbLangMapEntryDao() { } function _get__db__e63s44_63($this) { return $this._db_1; } function _get__dao__d2kw60_61($this) { return $this._dao_1; } function VerbLangMapEntryDao_DoorWrapper(_db, _dao) { VerbLangMapEntryDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(VerbLangMapEntryDao_DoorWrapper).upsertList_a2brh9_k$ = function (list, $completion) { // Inline function 'kotlin.collections.mutableListOf' call var _generatedPks = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.forEach' call // Inline function 'kotlin.collections.iterator' call var tmp0_iterator = list.iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbLangMapEntryDao_DoorWrapper.upsertList.' call element.set_vlmeLastModified_xbp1o4_k$(systemTimeInMillis()); } return this._dao_1.upsertList_a2brh9_k$(list, $completion); }; protoOf(VerbLangMapEntryDao_DoorWrapper).findByVerbUidAsync_dlng9n_k$ = function (verbUid, $completion) { return this._dao_1.findByVerbUidAsync_dlng9n_k$(verbUid, $completion); }; function VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda$lambda(_result) { return mapRows(_result, VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda$lambda$lambda(_result)); } function VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_vlmeVerbUid = $_result.getLong_3wgf2g_k$('vlmeVerbUid'); var _tmp_vlmeLangHash = $_result.getLong_3wgf2g_k$('vlmeLangHash'); var _tmp_vlmeLangCode = $_result.getString_gb1pt9_k$('vlmeLangCode'); var _tmp_vlmeEntryString = $_result.getString_gb1pt9_k$('vlmeEntryString'); var _tmp_vlmeLastModified = $_result.getLong_3wgf2g_k$('vlmeLastModified'); // Inline function 'kotlin.apply' call var this_0 = new VerbLangMapEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.VerbLangMapEntryDao_JdbcImpl.findByVerbUidAsync....' call this_0.set_vlmeVerbUid_t3b07c_k$(_tmp_vlmeVerbUid); this_0.set_vlmeLangHash_dt707d_k$(_tmp_vlmeLangHash); this_0.set_vlmeLangCode_4ynuj3_k$(_tmp_vlmeLangCode); this_0.set_vlmeEntryString_ugbsv_k$(_tmp_vlmeEntryString); this_0.set_vlmeLastModified_xbp1o4_k$(_tmp_vlmeLastModified); return this_0; }; } function VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT OR REPLACE INTO VerbLangMapEntry (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) VALUES(?, ?, ?, ?, ?)'; }; protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).bindPreparedStmtToEntity_s2zg21_k$ = function (stmt, entity) { stmt.setLong_j1sybo_k$(1, entity.get_vlmeVerbUid_x6n4ii_k$()); stmt.setLong_j1sybo_k$(2, entity.get_vlmeLangHash_ucpi99_k$()); stmt.setString_2gt7ua_k$(3, entity.get_vlmeLangCode_ucsf66_k$()); stmt.setString_2gt7ua_k$(4, entity.get_vlmeEntryString_1krxpw_k$()); stmt.setLong_j1sybo_k$(5, entity.get_vlmeLastModified_uc3wq_k$()); }; protoOf(VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_s2zg21_k$(stmt, entity instanceof VerbLangMapEntry ? entity : THROW_CCE()); }; function VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda($verbUid, resultContinuation) { this.$verbUid_1 = $verbUid; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda).invoke_9i0upu_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_9i0upu_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$verbUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda(this.$verbUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda_0($verbUid, resultContinuation) { var i = new VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda($verbUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_9i0upu_k$(_stmt, $completion); }; l.$arity = 1; return l; } function VerbLangMapEntryDao_JdbcImpl(_db) { VerbLangMapEntryDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterVerbLangMapEntry_upsert_1 = new VerbLangMapEntryDao_JdbcImpl$_insertAdapterVerbLangMapEntry_upsert$1(this); } protoOf(VerbLangMapEntryDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(VerbLangMapEntryDao_JdbcImpl).get__insertAdapterVerbLangMapEntry_upsert_8jz07p_k$ = function () { return this._insertAdapterVerbLangMapEntry_upsert_1; }; protoOf(VerbLangMapEntryDao_JdbcImpl).upsertList_a2brh9_k$ = function (list, $completion) { return this._insertAdapterVerbLangMapEntry_upsert_1.insertListAsync_it2cbm_k$(list, $completion); }; protoOf(VerbLangMapEntryDao_JdbcImpl).findByVerbUidAsync_dlng9n_k$ = function (verbUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT VerbLangMapEntry.*\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT VerbLangMapEntry.*\n FROM VerbLangMapEntry\n WHERE VerbLangMapEntry.vlmeVerbUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, VerbLangMapEntryDao_JdbcImpl$findByVerbUidAsync$slambda_0(verbUid, null), $completion); }; function VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation) { this.this$0__1 = this$0; this.$list_1 = $list; CoroutineImpl.call(this, resultContinuation); } protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.upsertList_a2brh9_k$(this.$list_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(VerbLangMapEntryDao_Repo$upsertList$slambda).create_d196fn_k$ = function (completion) { return new VerbLangMapEntryDao_Repo$upsertList$slambda(this.this$0__1, this.$list_1, completion); }; function VerbLangMapEntryDao_Repo$upsertList$slambda_0(this$0, $list, resultContinuation) { var i = new VerbLangMapEntryDao_Repo$upsertList$slambda(this$0, $list, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function $findByVerbUidAsyncCOROUTINE$473(_this__u8e3s4, verbUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.verbUid_1 = verbUid; } protoOf($findByVerbUidAsyncCOROUTINE$473).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByVerbUidAsync_dlng9n_k$(this.verbUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function VerbLangMapEntryDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { VerbLangMapEntryDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(VerbLangMapEntryDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(VerbLangMapEntryDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(VerbLangMapEntryDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(VerbLangMapEntryDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(VerbLangMapEntryDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(VerbLangMapEntryDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(VerbLangMapEntryDao_Repo).upsertList_a2brh9_k$ = function (list, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'VerbLangMapEntry', VerbLangMapEntryDao_Repo$upsertList$slambda_0(this, list, null), $completion); }; protoOf(VerbLangMapEntryDao_Repo).findByVerbUidAsync_dlng9n_k$ = function (verbUid, $completion) { var tmp = new $findByVerbUidAsyncCOROUTINE$473(this, verbUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function XapiSessionEntityDao() { } function _get__db__e63s44_64($this) { return $this._db_1; } function _get__dao__d2kw60_62($this) { return $this._dao_1; } function $insertAsyncCOROUTINE$474(_this__u8e3s4, xapiSessionEntity, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.xapiSessionEntity_1 = xapiSessionEntity; } protoOf($insertAsyncCOROUTINE$474).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); this._pkManager0__1 = get_doorPrimaryKeyManager(get_rootDatabase(this._this__u8e3s4__1._db_1)); if (this.xapiSessionEntity_1.get_xseUid_m05een_k$().equals(new Long(0, 0))) { this.set_state_rjd8d0_k$(1); suspendResult = this._pkManager0__1.nextIdAsync_kh60wr_k$(400122, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; } else { this.set_state_rjd8d0_k$(2); continue $sm; } case 1: this._newPk1__1 = suspendResult; this.xapiSessionEntity_1.set_xseUid_xqodut_k$(this._newPk1__1); this.set_state_rjd8d0_k$(2); continue $sm; case 2: this.xapiSessionEntity_1.set_xseLastMod_w9w0bj_k$(systemTimeInMillis()); this.set_state_rjd8d0_k$(3); suspendResult = this._this__u8e3s4__1._dao_1.insertAsync_skk0n7_k$(this.xapiSessionEntity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function XapiSessionEntityDao_DoorWrapper(_db, _dao) { XapiSessionEntityDao.call(this); this._db_1 = _db; this._dao_1 = _dao; } protoOf(XapiSessionEntityDao_DoorWrapper).insertAsync_skk0n7_k$ = function (xapiSessionEntity, $completion) { var tmp = new $insertAsyncCOROUTINE$474(this, xapiSessionEntity, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_DoorWrapper).findByUidAsync_v5gsm7_k$ = function (uid, $completion) { return this._dao_1.findByUidAsync_v5gsm7_k$(uid, $completion); }; protoOf(XapiSessionEntityDao_DoorWrapper).updateLatestAsComplete_zgqvwz_k$ = function (completed, time, xseUid, $completion) { return this._dao_1.updateLatestAsComplete_zgqvwz_k$(completed, time, xseUid, $completion); }; protoOf(XapiSessionEntityDao_DoorWrapper).findMostRecentSessionByActorAndActivity_rjflqu_k$ = function (accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, $completion) { return this._dao_1.findMostRecentSessionByActorAndActivity_rjflqu_k$(accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, $completion); }; function XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda$lambda(_result) { return mapNextRow(_result, null, XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda(_result)); } function XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda$lambda$lambda($_result) { return function (it) { var _tmp_xseUid = $_result.getLong_3wgf2g_k$('xseUid'); var _tmp_xseLastMod = $_result.getLong_3wgf2g_k$('xseLastMod'); var _tmp_xseRegistrationHi = $_result.getLong_3wgf2g_k$('xseRegistrationHi'); var _tmp_xseRegistrationLo = $_result.getLong_3wgf2g_k$('xseRegistrationLo'); var _tmp_xseUsUid = $_result.getLong_3wgf2g_k$('xseUsUid'); var _tmp_xseAccountPersonUid = $_result.getLong_3wgf2g_k$('xseAccountPersonUid'); var _tmp_xseActorUid = $_result.getLong_3wgf2g_k$('xseActorUid'); var _tmp_xseAccountUsername = getStringNonNull($_result, 'xseAccountUsername'); var _tmp_xseClazzUid = $_result.getLong_3wgf2g_k$('xseClazzUid'); var _tmp_xseCbUid = $_result.getLong_3wgf2g_k$('xseCbUid'); var _tmp_xseContentEntryUid = $_result.getLong_3wgf2g_k$('xseContentEntryUid'); var _tmp_xseContentEntryVersionUid = $_result.getLong_3wgf2g_k$('xseContentEntryVersionUid'); var _tmp_xseRootActivityId = getStringNonNull($_result, 'xseRootActivityId'); var _tmp_xseRootActivityUid = $_result.getLong_3wgf2g_k$('xseRootActivityUid'); var _tmp_xseStartTime = $_result.getLong_3wgf2g_k$('xseStartTime'); var _tmp_xseExpireTime = $_result.getLong_3wgf2g_k$('xseExpireTime'); var _tmp_xseAuth = $_result.getString_gb1pt9_k$('xseAuth'); var _tmp_xseCompleted = $_result.getBoolean_xz3hoo_k$('xseCompleted'); var _tmp_knownActorUidToPersonUids = getStringNonNull($_result, 'knownActorUidToPersonUids'); // Inline function 'kotlin.apply' call var this_0 = new XapiSessionEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.XapiSessionEntityDao_JdbcImpl.findByUidAsync....' call this_0.set_xseUid_xqodut_k$(_tmp_xseUid); this_0.set_xseLastMod_w9w0bj_k$(_tmp_xseLastMod); this_0.set_xseRegistrationHi_livn1l_k$(_tmp_xseRegistrationHi); this_0.set_xseRegistrationLo_8tkuol_k$(_tmp_xseRegistrationLo); this_0.set_xseUsUid_wjqc9z_k$(_tmp_xseUsUid); this_0.set_xseAccountPersonUid_75ci5f_k$(_tmp_xseAccountPersonUid); this_0.set_xseActorUid_az9r3q_k$(_tmp_xseActorUid); this_0.set_xseAccountUsername_xnyhv8_k$(_tmp_xseAccountUsername); this_0.set_xseClazzUid_jupmjd_k$(_tmp_xseClazzUid); this_0.set_xseCbUid_j6bskm_k$(_tmp_xseCbUid); this_0.set_xseContentEntryUid_ivjsss_k$(_tmp_xseContentEntryUid); this_0.set_xseContentEntryVersionUid_8k3d5s_k$(_tmp_xseContentEntryVersionUid); this_0.set_xseRootActivityId_j3mrld_k$(_tmp_xseRootActivityId); this_0.set_xseRootActivityUid_bha510_k$(_tmp_xseRootActivityUid); this_0.set_xseStartTime_j1ibd0_k$(_tmp_xseStartTime); this_0.set_xseExpireTime_9vzz4r_k$(_tmp_xseExpireTime); this_0.set_xseAuth_fcq8u_k$(_tmp_xseAuth); this_0.set_xseCompleted_7xiybb_k$(_tmp_xseCompleted); this_0.set_knownActorUidToPersonUids_xhqu2y_k$(_tmp_knownActorUidToPersonUids); return this_0; }; } function XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda$lambda(_result) { return mapNextRow(_result, null, XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda$lambda$lambda(_result)); } function XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda$lambda$lambda($_result) { return function (it) { var _tmp_xseUid = $_result.getLong_3wgf2g_k$('xseUid'); var _tmp_xseLastMod = $_result.getLong_3wgf2g_k$('xseLastMod'); var _tmp_xseRegistrationHi = $_result.getLong_3wgf2g_k$('xseRegistrationHi'); var _tmp_xseRegistrationLo = $_result.getLong_3wgf2g_k$('xseRegistrationLo'); var _tmp_xseUsUid = $_result.getLong_3wgf2g_k$('xseUsUid'); var _tmp_xseAccountPersonUid = $_result.getLong_3wgf2g_k$('xseAccountPersonUid'); var _tmp_xseActorUid = $_result.getLong_3wgf2g_k$('xseActorUid'); var _tmp_xseAccountUsername = getStringNonNull($_result, 'xseAccountUsername'); var _tmp_xseClazzUid = $_result.getLong_3wgf2g_k$('xseClazzUid'); var _tmp_xseCbUid = $_result.getLong_3wgf2g_k$('xseCbUid'); var _tmp_xseContentEntryUid = $_result.getLong_3wgf2g_k$('xseContentEntryUid'); var _tmp_xseContentEntryVersionUid = $_result.getLong_3wgf2g_k$('xseContentEntryVersionUid'); var _tmp_xseRootActivityId = getStringNonNull($_result, 'xseRootActivityId'); var _tmp_xseRootActivityUid = $_result.getLong_3wgf2g_k$('xseRootActivityUid'); var _tmp_xseStartTime = $_result.getLong_3wgf2g_k$('xseStartTime'); var _tmp_xseExpireTime = $_result.getLong_3wgf2g_k$('xseExpireTime'); var _tmp_xseAuth = $_result.getString_gb1pt9_k$('xseAuth'); var _tmp_xseCompleted = $_result.getBoolean_xz3hoo_k$('xseCompleted'); var _tmp_knownActorUidToPersonUids = getStringNonNull($_result, 'knownActorUidToPersonUids'); // Inline function 'kotlin.apply' call var this_0 = new XapiSessionEntity(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.dao.xapi.XapiSessionEntityDao_JdbcImpl.findMostRecentSessionByActorAndActivity....' call this_0.set_xseUid_xqodut_k$(_tmp_xseUid); this_0.set_xseLastMod_w9w0bj_k$(_tmp_xseLastMod); this_0.set_xseRegistrationHi_livn1l_k$(_tmp_xseRegistrationHi); this_0.set_xseRegistrationLo_8tkuol_k$(_tmp_xseRegistrationLo); this_0.set_xseUsUid_wjqc9z_k$(_tmp_xseUsUid); this_0.set_xseAccountPersonUid_75ci5f_k$(_tmp_xseAccountPersonUid); this_0.set_xseActorUid_az9r3q_k$(_tmp_xseActorUid); this_0.set_xseAccountUsername_xnyhv8_k$(_tmp_xseAccountUsername); this_0.set_xseClazzUid_jupmjd_k$(_tmp_xseClazzUid); this_0.set_xseCbUid_j6bskm_k$(_tmp_xseCbUid); this_0.set_xseContentEntryUid_ivjsss_k$(_tmp_xseContentEntryUid); this_0.set_xseContentEntryVersionUid_8k3d5s_k$(_tmp_xseContentEntryVersionUid); this_0.set_xseRootActivityId_j3mrld_k$(_tmp_xseRootActivityId); this_0.set_xseRootActivityUid_bha510_k$(_tmp_xseRootActivityUid); this_0.set_xseStartTime_j1ibd0_k$(_tmp_xseStartTime); this_0.set_xseExpireTime_9vzz4r_k$(_tmp_xseExpireTime); this_0.set_xseAuth_fcq8u_k$(_tmp_xseAuth); this_0.set_xseCompleted_7xiybb_k$(_tmp_xseCompleted); this_0.set_knownActorUidToPersonUids_xhqu2y_k$(_tmp_knownActorUidToPersonUids); return this_0; }; } function XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this$0) { EntityInsertionAdapter.call(this, this$0._db_1); } protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).makeSql_c10guz_k$ = function (returnsId) { return 'INSERT INTO XapiSessionEntity (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'; }; protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).bindPreparedStmtToEntity_690md1_k$ = function (stmt, entity) { if (entity.get_xseUid_m05een_k$().equals(new Long(0, 0))) { stmt.setObject_9i2mag_k$(1, null); } else { stmt.setLong_j1sybo_k$(1, entity.get_xseUid_m05een_k$()); } stmt.setLong_j1sybo_k$(2, entity.get_xseLastMod_dil4ob_k$()); stmt.setLong_j1sybo_k$(3, entity.get_xseRegistrationHi_csgwpx_k$()); stmt.setLong_j1sybo_k$(4, entity.get_xseRegistrationLo_csgwmb_k$()); stmt.setLong_j1sybo_k$(5, entity.get_xseUsUid_l78mj3_k$()); stmt.setLong_j1sybo_k$(6, entity.get_xseAccountPersonUid_gx93sh_k$()); stmt.setLong_j1sybo_k$(7, entity.get_xseActorUid_ac5zdw_k$()); stmt.setString_2gt7ua_k$(8, entity.get_xseAccountUsername_q0miri_k$()); stmt.setLong_j1sybo_k$(9, entity.get_xseClazzUid_sirfq1_k$()); stmt.setLong_j1sybo_k$(10, entity.get_xseCbUid_lhfrzk_k$()); stmt.setLong_j1sybo_k$(11, entity.get_xseContentEntryUid_t2vuyy_k$()); stmt.setLong_j1sybo_k$(12, entity.get_xseContentEntryVersionUid_4ralu_k$()); stmt.setString_2gt7ua_k$(13, entity.get_xseRootActivityId_lo9kxf_k$()); stmt.setLong_j1sybo_k$(14, entity.get_xseRootActivityUid_wm89wi_k$()); stmt.setLong_j1sybo_k$(15, entity.get_xseStartTime_6ouvwy_k$()); stmt.setLong_j1sybo_k$(16, entity.get_xseExpireTime_i2mabx_k$()); stmt.setString_2gt7ua_k$(17, entity.get_xseAuth_s6tniv_k$()); stmt.setBoolean_pzdm1v_k$(18, entity.get_xseCompleted_5bllgq_k$()); stmt.setString_2gt7ua_k$(19, entity.get_knownActorUidToPersonUids_9ca7s8_k$()); }; protoOf(XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1).bindPreparedStmtToEntity_ne2rsb_k$ = function (stmt, entity) { return this.bindPreparedStmtToEntity_690md1_k$(stmt, entity instanceof XapiSessionEntity ? entity : THROW_CCE()); }; function XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation) { this.$uid_1 = $uid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda).invoke_k96nkr_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_k96nkr_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$uid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda(this.$uid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda_0($uid, resultContinuation) { var i = new XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda($uid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_k96nkr_k$(_stmt, $completion); }; l.$arity = 1; return l; } function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation) { this.$completed_1 = $completed; this.$time_1 = $time; this.$xseUid_1 = $xseUid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).invoke_n3u1ar_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_n3u1ar_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setBoolean_pzdm1v_k$(1, this.$completed_1); this._stmt_1.setLong_j1sybo_k$(2, this.$time_1); this._stmt_1.setLong_j1sybo_k$(3, this.$xseUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeUpdateAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return suspendResult; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda(this.$completed_1, this.$time_1, this.$xseUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0($completed, $time, $xseUid, resultContinuation) { var i = new XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda($completed, $time, $xseUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_n3u1ar_k$(_stmt, $completion); }; l.$arity = 1; return l; } function XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda($xseRootActivityUid, $actorUid, $contentEntryVersionUid, $clazzUid, $accountPersonUid, resultContinuation) { this.$xseRootActivityUid_1 = $xseRootActivityUid; this.$actorUid_1 = $actorUid; this.$contentEntryVersionUid_1 = $contentEntryVersionUid; this.$clazzUid_1 = $clazzUid; this.$accountPersonUid_1 = $accountPersonUid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda).invoke_k96nkr_k$ = function (_stmt, $completion) { var tmp = this.create_hxh3pd_k$(_stmt, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda).invoke_qns8j1_k$ = function (p1, $completion) { return this.invoke_k96nkr_k$((!(p1 == null) ? isInterface(p1, PreparedStatement) : false) ? p1 : THROW_CCE(), $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this._stmt_1.setLong_j1sybo_k$(1, this.$xseRootActivityUid_1); this._stmt_1.setLong_j1sybo_k$(2, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(3, this.$contentEntryVersionUid_1); this._stmt_1.setLong_j1sybo_k$(4, this.$clazzUid_1); this._stmt_1.setLong_j1sybo_k$(5, this.$actorUid_1); this._stmt_1.setLong_j1sybo_k$(6, this.$accountPersonUid_1); this.set_state_rjd8d0_k$(1); suspendResult = executeQueryAsyncKmp(this._stmt_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var ARGUMENT = suspendResult; return useResults(ARGUMENT, XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda$lambda); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda).create_hxh3pd_k$ = function (_stmt, completion) { var i = new XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda(this.$xseRootActivityUid_1, this.$actorUid_1, this.$contentEntryVersionUid_1, this.$clazzUid_1, this.$accountPersonUid_1, completion); i._stmt_1 = _stmt; return i; }; protoOf(XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda).create_wyq9v6_k$ = function (value, completion) { return this.create_hxh3pd_k$((!(value == null) ? isInterface(value, PreparedStatement) : false) ? value : THROW_CCE(), completion); }; function XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda_0($xseRootActivityUid, $actorUid, $contentEntryVersionUid, $clazzUid, $accountPersonUid, resultContinuation) { var i = new XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda($xseRootActivityUid, $actorUid, $contentEntryVersionUid, $clazzUid, $accountPersonUid, resultContinuation); var l = function (_stmt, $completion) { return i.invoke_k96nkr_k$(_stmt, $completion); }; l.$arity = 1; return l; } function $updateLatestAsCompleteCOROUTINE$475(_this__u8e3s4, completed, time, xseUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.completed_1 = completed; this.time_1 = time; this.xseUid_1 = xseUid; } protoOf($updateLatestAsCompleteCOROUTINE$475).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); var tmp_0 = new PreparedStatementConfig('\n UPDATE XapiSessionEntity\n SET xseCompleted = ?,\n xseLastMod = CAST(? AS BIGINT)\n WHERE xseUid = CAST(? AS BIGINT)\n\n ', VOID, VOID, VOID, '\n UPDATE XapiSessionEntity\n SET xseCompleted = ?,\n xseLastMod = ?\n WHERE xseUid = ?\n\n \n', false); suspendResult = prepareAndUseStatementAsync(this._this__u8e3s4__1._db_1, tmp_0, XapiSessionEntityDao_JdbcImpl$updateLatestAsComplete$slambda_0(this.completed_1, this.time_1, this.xseUid_1, null), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function XapiSessionEntityDao_JdbcImpl(_db) { XapiSessionEntityDao.call(this); this._db_1 = _db; var tmp = this; tmp._insertAdapterXapiSessionEntity_abort_1 = new XapiSessionEntityDao_JdbcImpl$_insertAdapterXapiSessionEntity_abort$1(this); } protoOf(XapiSessionEntityDao_JdbcImpl).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(XapiSessionEntityDao_JdbcImpl).get__insertAdapterXapiSessionEntity_abort_iuh3aw_k$ = function () { return this._insertAdapterXapiSessionEntity_abort_1; }; protoOf(XapiSessionEntityDao_JdbcImpl).insertAsync_skk0n7_k$ = function (xapiSessionEntity, $completion) { return this._insertAdapterXapiSessionEntity_abort_1.insertAsync_kic9b7_k$(xapiSessionEntity, $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl).findByUidAsync_v5gsm7_k$ = function (uid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT XapiSessionEntity.*\n FROM XapiSessionEntity\n WHERE XapiSessionEntity.xseUid = CAST(? AS BIGINT)\n ', VOID, VOID, VOID, '\n SELECT XapiSessionEntity.*\n FROM XapiSessionEntity\n WHERE XapiSessionEntity.xseUid = ?\n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, XapiSessionEntityDao_JdbcImpl$findByUidAsync$slambda_0(uid, null), $completion); }; protoOf(XapiSessionEntityDao_JdbcImpl).updateLatestAsComplete_zgqvwz_k$ = function (completed, time, xseUid, $completion) { var tmp = new $updateLatestAsCompleteCOROUTINE$475(this, completed, time, xseUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_JdbcImpl).findMostRecentSessionByActorAndActivity_rjflqu_k$ = function (accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, $completion) { var tmp = new PreparedStatementConfig('\n SELECT XapiSessionEntity.*\n FROM XapiSessionEntity\n WHERE XapiSessionEntity.xseRootActivityUid = CAST(? AS BIGINT)\n AND XapiSessionEntity.xseActorUid = CAST(? AS BIGINT)\n AND XapiSessionEntity.xseContentEntryVersionUid = CAST(? AS BIGINT)\n AND XapiSessionEntity.xseClazzUid = CAST(? AS BIGINT)\n AND EXISTS(\n SELECT 1\n FROM ActorEntity\n WHERE ActorEntity.actorUid = CAST(? AS BIGINT)\n AND ActorEntity.actorPersonUid = CAST(? AS BIGINT)) \n ', VOID, VOID, VOID, '\n SELECT XapiSessionEntity.*\n FROM XapiSessionEntity\n WHERE XapiSessionEntity.xseRootActivityUid = ?\n AND XapiSessionEntity.xseActorUid = ?\n AND XapiSessionEntity.xseContentEntryVersionUid = ?\n AND XapiSessionEntity.xseClazzUid = ?\n AND EXISTS(\n SELECT 1\n FROM ActorEntity\n WHERE ActorEntity.actorUid = ?\n AND ActorEntity.actorPersonUid = ?) \n \n', true); return prepareAndUseStatementAsync(this._db_1, tmp, XapiSessionEntityDao_JdbcImpl$findMostRecentSessionByActorAndActivity$slambda_0(xseRootActivityUid, actorUid, contentEntryVersionUid, clazzUid, accountPersonUid, null), $completion); }; function XapiSessionEntityDao_Repo$insertAsync$slambda(this$0, $xapiSessionEntity, resultContinuation) { this.this$0__1 = this$0; this.$xapiSessionEntity_1 = $xapiSessionEntity; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_Repo$insertAsync$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_Repo$insertAsync$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(XapiSessionEntityDao_Repo$insertAsync$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.insertAsync_skk0n7_k$(this.$xapiSessionEntity_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(XapiSessionEntityDao_Repo$insertAsync$slambda).create_d196fn_k$ = function (completion) { return new XapiSessionEntityDao_Repo$insertAsync$slambda(this.this$0__1, this.$xapiSessionEntity_1, completion); }; function XapiSessionEntityDao_Repo$insertAsync$slambda_0(this$0, $xapiSessionEntity, resultContinuation) { var i = new XapiSessionEntityDao_Repo$insertAsync$slambda(this$0, $xapiSessionEntity, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation) { this.this$0__1 = this$0; this.$completed_1 = $completed; this.$time_1 = $time; this.$xseUid_1 = $xseUid; CoroutineImpl.call(this, resultContinuation); } protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).invoke_h7udsx_k$ = function ($completion) { var tmp = this.create_d196fn_k$($completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).invoke_ib42db_k$ = function ($completion) { return this.invoke_h7udsx_k$($completion); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this.this$0__1._dao_1.updateLatestAsComplete_zgqvwz_k$(this.$completed_1, this.$time_1, this.$xseUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: return Unit_getInstance(); case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; protoOf(XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda).create_d196fn_k$ = function (completion) { return new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this.this$0__1, this.$completed_1, this.$time_1, this.$xseUid_1, completion); }; function XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this$0, $completed, $time, $xseUid, resultContinuation) { var i = new XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda(this$0, $completed, $time, $xseUid, resultContinuation); var l = function ($completion) { return i.invoke_h7udsx_k$($completion); }; l.$arity = 0; return l; } function XapiSessionEntityDao_Repo$findMostRecentSessionByActorAndActivity$lambda($this, $repoPath) { return function () { return '' + $this + ': repoHttpRequestWithFallback: exception for ' + $repoPath; }; } function $findByUidAsyncCOROUTINE$476(_this__u8e3s4, uid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uid_1 = uid; } protoOf($findByUidAsyncCOROUTINE$476).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(2); this.set_state_rjd8d0_k$(1); suspendResult = this._this__u8e3s4__1._dao_1.findByUidAsync_v5gsm7_k$(this.uid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: var _result = suspendResult; return _result; case 2: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 2) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function $findMostRecentSessionByActorAndActivityCOROUTINE$477(_this__u8e3s4, accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.accountPersonUid_1 = accountPersonUid; this.actorUid_1 = actorUid; this.xseRootActivityUid_1 = xseRootActivityUid; this.contentEntryVersionUid_1 = contentEntryVersionUid; this.clazzUid_1 = clazzUid; } protoOf($findMostRecentSessionByActorAndActivityCOROUTINE$477).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(6); var tmp_0 = this; tmp_0.this0__1 = this._this__u8e3s4__1._repo_1; var tmp_1 = this; tmp_1.repoPath1__1 = 'XapiSessionEntityDao/findMostRecentSessionByActorAndActivity'; this.set_exceptionState_fex74n_k$(3); var tmp_2 = this; tmp_2.this2__1 = this._this__u8e3s4__1._httpClient_1; var tmp_3 = this; tmp_3.this3__1 = this.this2__1; var tmp_4 = this; var this_0 = new HttpRequestBuilder(); setRepoUrl(this_0, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$(), 'XapiSessionEntityDao/findMostRecentSessionByActorAndActivity'); doorNodeIdHeader(this_0, this._this__u8e3s4__1._repo_1); header(this_0, 'cache-control', 'no-store'); parameter(this_0, 'accountPersonUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.accountPersonUid_1)); parameter(this_0, 'actorUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.actorUid_1)); parameter(this_0, 'xseRootActivityUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.xseRootActivityUid_1)); parameter(this_0, 'contentEntryVersionUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.contentEntryVersionUid_1)); parameter(this_0, 'clazzUid', this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$().encodeToString_k0apqx_k$(serializer(Companion_getInstance()), this.clazzUid_1)); tmp_4.builder4__1 = this_0; this.builder4__1.set_method_hoo95u_k$(Companion_getInstance_0().get_Get_18jsxf_k$()); var tmp_5 = this; tmp_5.this5__1 = this.this3__1; var tmp_6 = this; tmp_6.builder6__1 = this.builder4__1; this.set_state_rjd8d0_k$(1); suspendResult = (new HttpStatement(this.builder6__1, this.this5__1)).execute_rsj18j_k$(this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 1: this._response7__1 = suspendResult; this.set_state_rjd8d0_k$(2); suspendResult = onClientRepoDoorMessageHttpResponse(this._this__u8e3s4__1._db_1, this._response7__1, this._this__u8e3s4__1._repo_1.get_config_c0698r_k$().get_json_woos35_k$(), this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(4); continue $sm; case 3: this.set_exceptionState_fex74n_k$(6); var tmp_7 = this.get_exception_x0n6w6_k$(); if (tmp_7 instanceof Exception) { this.e8__1 = this.get_exception_x0n6w6_k$(); var tmp0_$this = Napier_getInstance(); var tmp1_tag = Companion_getInstance_1().get_LOG_TAG_it8mba_k$(); tmp0_$this.v_q0zci3_k$(this.e8__1, tmp1_tag, XapiSessionEntityDao_Repo$findMostRecentSessionByActorAndActivity$lambda(this.this0__1, this.repoPath1__1)); this.set_state_rjd8d0_k$(4); continue $sm; } else { throw this.get_exception_x0n6w6_k$(); } case 4: this.set_exceptionState_fex74n_k$(6); this.set_state_rjd8d0_k$(5); suspendResult = this._this__u8e3s4__1._dao_1.findMostRecentSessionByActorAndActivity_rjflqu_k$(this.accountPersonUid_1, this.actorUid_1, this.xseRootActivityUid_1, this.contentEntryVersionUid_1, this.clazzUid_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 5: var _result = suspendResult; return _result; case 6: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 6) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function XapiSessionEntityDao_Repo(_db, _repo, _dao, _httpClient, _clientId, _endpoint) { XapiSessionEntityDao.call(this); this._db_1 = _db; this._repo_1 = _repo; this._dao_1 = _dao; this._httpClient_1 = _httpClient; this._clientId_1 = _clientId; this._endpoint_1 = _endpoint; } protoOf(XapiSessionEntityDao_Repo).get__db_18jb64_k$ = function () { return this._db_1; }; protoOf(XapiSessionEntityDao_Repo).get__repo_inou94_k$ = function () { return this._repo_1; }; protoOf(XapiSessionEntityDao_Repo).get__dao_wohfrw_k$ = function () { return this._dao_1; }; protoOf(XapiSessionEntityDao_Repo).get__httpClient_vck193_k$ = function () { return this._httpClient_1; }; protoOf(XapiSessionEntityDao_Repo).get__clientId_p199mk_k$ = function () { return this._clientId_1; }; protoOf(XapiSessionEntityDao_Repo).get__endpoint_w839h1_k$ = function () { return this._endpoint_1; }; protoOf(XapiSessionEntityDao_Repo).insertAsync_skk0n7_k$ = function (xapiSessionEntity, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'XapiSessionEntity', XapiSessionEntityDao_Repo$insertAsync$slambda_0(this, xapiSessionEntity, null), $completion); }; protoOf(XapiSessionEntityDao_Repo).findByUidAsync_v5gsm7_k$ = function (uid, $completion) { var tmp = new $findByUidAsyncCOROUTINE$476(this, uid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; protoOf(XapiSessionEntityDao_Repo).updateLatestAsComplete_zgqvwz_k$ = function (completed, time, xseUid, $completion) { return withRepoChangeMonitorAsync(this._repo_1, 'XapiSessionEntity', XapiSessionEntityDao_Repo$updateLatestAsComplete$slambda_0(this, completed, time, xseUid, null), $completion); }; protoOf(XapiSessionEntityDao_Repo).findMostRecentSessionByActorAndActivity_rjflqu_k$ = function (accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, $completion) { var tmp = new $findMostRecentSessionByActorAndActivityCOROUTINE$477(this, accountPersonUid, actorUid, xseRootActivityUid, contentEntryVersionUid, clazzUid, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); }; function shallowCopy(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzAssignment(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_caUid_qwqlvb_k$(_this__u8e3s4.get_caUid_ipktt5_k$()); this_0.set_caTitle_3qxfdm_k$(_this__u8e3s4.get_caTitle_9yyh0x_k$()); this_0.set_caDescription_trgpu2_k$(_this__u8e3s4.get_caDescription_8nvpud_k$()); this_0.set_caGroupUid_zfz5m6_k$(_this__u8e3s4.get_caGroupUid_zf52s8_k$()); this_0.set_caActive_hd63bg_k$(_this__u8e3s4.get_caActive_fw2t3h_k$()); this_0.set_caClassCommentEnabled_p72yl2_k$(_this__u8e3s4.get_caClassCommentEnabled_cfaj2r_k$()); this_0.set_caPrivateCommentsEnabled_dvommo_k$(_this__u8e3s4.get_caPrivateCommentsEnabled_l0k0vl_k$()); this_0.set_caCompletionCriteria_z3wimm_k$(_this__u8e3s4.get_caCompletionCriteria_r0go66_k$()); this_0.set_caRequireFileSubmission_9cvgub_k$(_this__u8e3s4.get_caRequireFileSubmission_w8j1mu_k$()); this_0.set_caFileType_gbiz2v_k$(_this__u8e3s4.get_caFileType_evrg7x_k$()); this_0.set_caSizeLimit_8q851l_k$(_this__u8e3s4.get_caSizeLimit_60e6st_k$()); this_0.set_caNumberOfFiles_oglxsc_k$(_this__u8e3s4.get_caNumberOfFiles_gm3yhc_k$()); this_0.set_caSubmissionPolicy_yxt3u9_k$(_this__u8e3s4.get_caSubmissionPolicy_6vp9k5_k$()); this_0.set_caMarkingType_x9hdas_k$(_this__u8e3s4.get_caMarkingType_qumoa0_k$()); this_0.set_caRequireTextSubmission_31no36_k$(_this__u8e3s4.get_caRequireTextSubmission_bngh2v_k$()); this_0.set_caTextLimitType_g3o1ut_k$(_this__u8e3s4.get_caTextLimitType_w5xj27_k$()); this_0.set_caTextLimit_j6mogb_k$(_this__u8e3s4.get_caTextLimit_vdw8ex_k$()); this_0.set_caXObjectUid_q9jbvu_k$(_this__u8e3s4.get_caXObjectUid_w0d8e8_k$()); this_0.set_caClazzUid_5omoyd_k$(_this__u8e3s4.get_caClazzUid_wf7rj5_k$()); this_0.set_caPeerReviewerCount_w0n7sr_k$(_this__u8e3s4.get_caPeerReviewerCount_xdajq7_k$()); this_0.set_caLocalChangeSeqNum_uzi0dl_k$(_this__u8e3s4.get_caLocalChangeSeqNum_n6lkrf_k$()); this_0.set_caMasterChangeSeqNum_jco7hm_k$(_this__u8e3s4.get_caMasterChangeSeqNum_93losg_k$()); this_0.set_caLastChangedBy_n7nzqm_k$(_this__u8e3s4.get_caLastChangedBy_4xab6_k$()); this_0.set_caLct_ijftwk_k$(_this__u8e3s4.get_caLct_ipkn06_k$()); block(this_0); return this_0; } function shallowCopy_0(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzEnrolmentWithLeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_leavingReason_lyjv33_k$(_this__u8e3s4.get_leavingReason_2vr8r5_k$()); this_0.set_timeZone_fxensv_k$(_this__u8e3s4.get_timeZone_4vh49u_k$()); this_0.set_clazzEnrolmentUid_ymgyw9_k$(_this__u8e3s4.get_clazzEnrolmentUid_xeo3a3_k$()); this_0.set_clazzEnrolmentPersonUid_qntlsc_k$(_this__u8e3s4.get_clazzEnrolmentPersonUid_67nqh2_k$()); this_0.set_clazzEnrolmentClazzUid_1nipul_k$(_this__u8e3s4.get_clazzEnrolmentClazzUid_5dtar_k$()); this_0.set_clazzEnrolmentDateJoined_miq3em_k$(_this__u8e3s4.get_clazzEnrolmentDateJoined_r9j21g_k$()); this_0.set_clazzEnrolmentDateLeft_8szytc_k$(_this__u8e3s4.get_clazzEnrolmentDateLeft_hxlqp6_k$()); this_0.set_clazzEnrolmentRole_38vbyv_k$(_this__u8e3s4.get_clazzEnrolmentRole_ttzs6t_k$()); this_0.set_clazzEnrolmentAttendancePercentage_pmbqh0_k$(_this__u8e3s4.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); this_0.set_clazzEnrolmentActive_rmas2i_k$(_this__u8e3s4.get_clazzEnrolmentActive_il2uaj_k$()); this_0.set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$(_this__u8e3s4.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); this_0.set_clazzEnrolmentOutcome_dmmssf_k$(_this__u8e3s4.get_clazzEnrolmentOutcome_8tgopp_k$()); this_0.set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$(_this__u8e3s4.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); this_0.set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$(_this__u8e3s4.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); this_0.set_clazzEnrolmentLastChangedBy_i735xg_k$(_this__u8e3s4.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); this_0.set_clazzEnrolmentLct_q966xi_k$(_this__u8e3s4.get_clazzEnrolmentLct_xenwh4_k$()); block(this_0); return this_0; } function shallowCopy_1(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzLogAttendanceRecord(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_clazzLogAttendanceRecordUid_u3gxm9_k$(_this__u8e3s4.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); this_0.set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$(_this__u8e3s4.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); this_0.set_clazzLogAttendanceRecordPersonUid_tldzbu_k$(_this__u8e3s4.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); this_0.set_attendanceStatus_scnmkw_k$(_this__u8e3s4.get_attendanceStatus_noqiv8_k$()); this_0.set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$(_this__u8e3s4.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); this_0.set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$(_this__u8e3s4.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); this_0.set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$(_this__u8e3s4.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); this_0.set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$(_this__u8e3s4.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); block(this_0); return this_0; } function shallowCopy_2(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzLog(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_clazzLogUid_ks9wuh_k$(_this__u8e3s4.get_clazzLogUid_ifqem3_k$()); this_0.set_clazzLogClazzUid_g2lcqr_k$(_this__u8e3s4.get_clazzLogClazzUid_p2tbpp_k$()); this_0.set_logDate_dvs32h_k$(_this__u8e3s4.get_logDate_6wppgp_k$()); this_0.set_timeRecorded_s2m610_k$(_this__u8e3s4.get_timeRecorded_30b196_k$()); this_0.set_clazzLogDone_area5y_k$(_this__u8e3s4.get_clazzLogDone_3ajf7b_k$()); this_0.set_cancellationNote_5l3n97_k$(_this__u8e3s4.get_cancellationNote_xf4nfm_k$()); this_0.set_clazzLogCancelled_ws6ff1_k$(_this__u8e3s4.get_clazzLogCancelled_pcu2k_k$()); this_0.set_clazzLogNumPresent_oia4y2_k$(_this__u8e3s4.get_clazzLogNumPresent_9zzoay_k$()); this_0.set_clazzLogNumAbsent_m3kfwu_k$(_this__u8e3s4.get_clazzLogNumAbsent_4ftf7u_k$()); this_0.set_clazzLogNumPartial_5wqx38_k$(_this__u8e3s4.get_clazzLogNumPartial_25e4y8_k$()); this_0.set_clazzLogScheduleUid_98b2vm_k$(_this__u8e3s4.get_clazzLogScheduleUid_4puu8s_k$()); this_0.set_clazzLogStatusFlag_tr01j3_k$(_this__u8e3s4.get_clazzLogStatusFlag_5bedjh_k$()); this_0.set_clazzLogMSQN_a5eeoi_k$(_this__u8e3s4.get_clazzLogMSQN_3aokm0_k$()); this_0.set_clazzLogLCSN_tbobmr_k$(_this__u8e3s4.get_clazzLogLCSN_3anlt3_k$()); this_0.set_clazzLogLCB_x6ghiy_k$(_this__u8e3s4.get_clazzLogLCB_ifq706_k$()); this_0.set_clazzLogLastChangedTime_hpmcu4_k$(_this__u8e3s4.get_clazzLogLastChangedTime_dwg7je_k$()); block(this_0); return this_0; } function shallowCopy_3(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ClazzWithHolidayCalendarAndAndTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_holidayCalendar_1i7d23_k$(_this__u8e3s4.get_holidayCalendar_vsvfar_k$()); this_0.set_terminology_opn48q_k$(_this__u8e3s4.get_terminology_hmih12_k$()); this_0.set_coursePicture_h9sgol_k$(_this__u8e3s4.get_coursePicture_gcf86y_k$()); this_0.set_clazzUid_tlygrb_k$(_this__u8e3s4.get_clazzUid_k8pnbz_k$()); this_0.set_clazzName_aqdmvj_k$(_this__u8e3s4.get_clazzName_brsrx6_k$()); this_0.set_clazzDesc_gezt3p_k$(_this__u8e3s4.get_clazzDesc_brmh5s_k$()); this_0.set_attendanceAverage_9una4v_k$(_this__u8e3s4.get_attendanceAverage_q3uit1_k$()); this_0.set_clazzHolidayUMCalendarUid_fam2pr_k$(_this__u8e3s4.get_clazzHolidayUMCalendarUid_diy12p_k$()); this_0.set_clazzScheuleUMCalendarUid_f0khzq_k$(_this__u8e3s4.get_clazzScheuleUMCalendarUid_pyne08_k$()); this_0.set_isClazzActive_e2j2e6_k$(_this__u8e3s4.get_isClazzActive_pdk9bp_k$()); this_0.set_clazzLocationUid_s7jxfi_k$(_this__u8e3s4.get_clazzLocationUid_64jec4_k$()); this_0.set_clazzStartTime_dq8pme_k$(_this__u8e3s4.get_clazzStartTime_lc1vds_k$()); this_0.set_clazzEndTime_yahlip_k$(_this__u8e3s4.get_clazzEndTime_sxjf8n_k$()); this_0.set_clazzFeatures_ypnqy_k$(_this__u8e3s4.get_clazzFeatures_6nf4ac_k$()); this_0.set_clazzSchoolUid_sau1vh_k$(_this__u8e3s4.get_clazzSchoolUid_g4bglp_k$()); this_0.set_clazzEnrolmentPolicy_gowgj1_k$(_this__u8e3s4.get_clazzEnrolmentPolicy_pv7kzr_k$()); this_0.set_clazzTerminologyUid_3itmsa_k$(_this__u8e3s4.get_clazzTerminologyUid_4xpw4_k$()); this_0.set_clazzMasterChangeSeqNum_tt8ty_k$(_this__u8e3s4.get_clazzMasterChangeSeqNum_7fn794_k$()); this_0.set_clazzLocalChangeSeqNum_l29zef_k$(_this__u8e3s4.get_clazzLocalChangeSeqNum_9hlwk3_k$()); this_0.set_clazzLastChangedBy_g3060i_k$(_this__u8e3s4.get_clazzLastChangedBy_wnz9za_k$()); this_0.set_clazzLct_l8nosk_k$(_this__u8e3s4.get_clazzLct_k8pu4y_k$()); this_0.set_clazzTimeZone_h8a7dv_k$(_this__u8e3s4.get_clazzTimeZone_yu1krs_k$()); this_0.set_clazzStudentsPersonGroupUid_d6byqt_k$(_this__u8e3s4.get_clazzStudentsPersonGroupUid_myynpp_k$()); this_0.set_clazzTeachersPersonGroupUid_go0bzo_k$(_this__u8e3s4.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); this_0.set_clazzPendingStudentsPersonGroupUid_6q00t8_k$(_this__u8e3s4.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); this_0.set_clazzParentsPersonGroupUid_l527ti_k$(_this__u8e3s4.get_clazzParentsPersonGroupUid_gibku8_k$()); this_0.set_clazzCode_xzrrf3_k$(_this__u8e3s4.get_clazzCode_brm18c_k$()); this_0.set_clazzOwnerPersonUid_jbv4ez_k$(_this__u8e3s4.get_clazzOwnerPersonUid_iplxz_k$()); block(this_0); return this_0; } function shallowCopy_4(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new ContentEntry(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_contentEntryUid_82c9uk_k$(_this__u8e3s4.get_contentEntryUid_pu6bbm_k$()); this_0.set_title_ceyuu4_k$(_this__u8e3s4.get_title_iz32un_k$()); this_0.set_description_s1386w_k$(_this__u8e3s4.get_description_emjre5_k$()); this_0.set_entryId_b4l6o7_k$(_this__u8e3s4.get_entryId_p20on0_k$()); this_0.set_author_btovnz_k$(_this__u8e3s4.get_author_b5hnkk_k$()); this_0.set_publisher_u973bc_k$(_this__u8e3s4.get_publisher_wg9par_k$()); this_0.set_licenseType_n5xz3q_k$(_this__u8e3s4.get_licenseType_3ajir6_k$()); this_0.set_licenseName_gyoh54_k$(_this__u8e3s4.get_licenseName_3af6yr_k$()); this_0.set_licenseUrl_1fxkks_k$(_this__u8e3s4.get_licenseUrl_rloa2f_k$()); this_0.set_sourceUrl_nz40kg_k$(_this__u8e3s4.get_sourceUrl_jko7yt_k$()); this_0.set_thumbnailUrl_m15vw7_k$(_this__u8e3s4.get_thumbnailUrl_1cubbo_k$()); this_0.set_lastModified_2tc4ma_k$(_this__u8e3s4.get_lastModified_y37iuw_k$()); this_0.set_primaryLanguageUid_mnu87f_k$(_this__u8e3s4.get_primaryLanguageUid_r5tse9_k$()); this_0.set_languageVariantUid_j38ahq_k$(_this__u8e3s4.get_languageVariantUid_i54xak_k$()); this_0.set_contentFlags_bzqxgd_k$(_this__u8e3s4.get_contentFlags_hwx6mv_k$()); this_0.set_leaf_nt94be_k$(_this__u8e3s4.get_leaf_woprc7_k$()); this_0.set_publik_bkafrt_k$(_this__u8e3s4.get_publik_i8ukje_k$()); this_0.set_ceInactive_jm4757_k$(_this__u8e3s4.get_ceInactive_l2z6a2_k$()); this_0.set_completionCriteria_r963w0_k$(_this__u8e3s4.get_completionCriteria_godp98_k$()); this_0.set_minScore_d3l9dh_k$(_this__u8e3s4.get_minScore_ger1gp_k$()); this_0.set_contentTypeFlag_c07dx6_k$(_this__u8e3s4.get_contentTypeFlag_2ekfii_k$()); this_0.set_contentOwner_87csqv_k$(_this__u8e3s4.get_contentOwner_i22mf7_k$()); this_0.set_contentOwnerType_rj9ic7_k$(_this__u8e3s4.get_contentOwnerType_bfan1f_k$()); this_0.set_contentEntryLocalChangeSeqNum_q6f3ny_k$(_this__u8e3s4.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); this_0.set_contentEntryMasterChangeSeqNum_qby9m7_k$(_this__u8e3s4.get_contentEntryMasterChangeSeqNum_offl1_k$()); this_0.set_contentEntryLastChangedBy_5d0hdj_k$(_this__u8e3s4.get_contentEntryLastChangedBy_4itnjh_k$()); this_0.set_contentEntryLct_ayi47_k$(_this__u8e3s4.get_contentEntryLct_pu6i4l_k$()); block(this_0); return this_0; } function shallowCopy_5(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseAssignmentMark(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_camUid_ejfae8_k$(_this__u8e3s4.get_camUid_bsg5ca_k$()); this_0.set_camAssignmentUid_j3ay0j_k$(_this__u8e3s4.get_camAssignmentUid_se0bjx_k$()); this_0.set_camSubmitterUid_kl6od7_k$(_this__u8e3s4.get_camSubmitterUid_ghcel_k$()); this_0.set_camMarkerSubmitterUid_eboa5x_k$(_this__u8e3s4.get_camMarkerSubmitterUid_4ixg61_k$()); this_0.set_camMarkerPersonUid_xbe3hr_k$(_this__u8e3s4.get_camMarkerPersonUid_g7yjbv_k$()); this_0.set_camMarkerComment_by6xyc_k$(_this__u8e3s4.get_camMarkerComment_fhxt6n_k$()); this_0.set_camMark_87svl5_k$(_this__u8e3s4.get_camMark_ac72ab_k$()); this_0.set_camMaxMark_ahvi6h_k$(_this__u8e3s4.get_camMaxMark_cropvv_k$()); this_0.set_camPenalty_f53gbz_k$(_this__u8e3s4.get_camPenalty_ch6xtp_k$()); this_0.set_camLct_mwq2cz_k$(_this__u8e3s4.get_camLct_bsfyjb_k$()); this_0.set_camClazzUid_408elw_k$(_this__u8e3s4.get_camClazzUid_p8wqsi_k$()); block(this_0); return this_0; } function shallowCopy_6(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseAssignmentSubmission(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_casUid_fvrm92_k$(_this__u8e3s4.get_casUid_bsjz9g_k$()); this_0.set_casAssignmentUid_munb2r_k$(_this__u8e3s4.get_casAssignmentUid_lryxmx_k$()); this_0.set_casSubmitterUid_oas9nj_k$(_this__u8e3s4.get_casSubmitterUid_snmiul_k$()); this_0.set_casSubmitterPersonUid_ow553o_k$(_this__u8e3s4.get_casSubmitterPersonUid_fp4ypu_k$()); this_0.set_casText_o0fpqq_k$(_this__u8e3s4.get_casText_afmdvd_k$()); this_0.set_casType_8ly6iy_k$(_this__u8e3s4.get_casType_afmshy_k$()); this_0.set_casTimestamp_rwaz4w_k$(_this__u8e3s4.get_casTimestamp_n6jb3q_k$()); this_0.set_casClazzUid_apjj5a_k$(_this__u8e3s4.get_casClazzUid_8hraec_k$()); block(this_0); return this_0; } function shallowCopy_7(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseGroupMember(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_cgmUid_ev2k12_k$(_this__u8e3s4.get_cgmUid_bvqwwg_k$()); this_0.set_cgmSetUid_59g4u4_k$(_this__u8e3s4.get_cgmSetUid_p0svym_k$()); this_0.set_cgmGroupNumber_dn01qs_k$(_this__u8e3s4.get_cgmGroupNumber_t9dymw_k$()); this_0.set_cgmPersonUid_6dl15b_k$(_this__u8e3s4.get_cgmPersonUid_qqbtdx_k$()); this_0.set_cgmLct_6hrs2b_k$(_this__u8e3s4.get_cgmLct_bvqq3h_k$()); block(this_0); return this_0; } function shallowCopy_8(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseGroupSet(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_cgsUid_diq868_k$(_this__u8e3s4.get_cgsUid_bvuqtm_k$()); this_0.set_cgsName_c89ibq_k$(_this__u8e3s4.get_cgsName_d9s72p_k$()); this_0.set_cgsTotalGroups_ytmo82_k$(_this__u8e3s4.get_cgsTotalGroups_qhxh6a_k$()); this_0.set_cgsActive_il46il_k$(_this__u8e3s4.get_cgsActive_xi666k_k$()); this_0.set_cgsClazzUid_5es9x0_k$(_this__u8e3s4.get_cgsClazzUid_b08ici_k$()); this_0.set_cgsLct_55fg7h_k$(_this__u8e3s4.get_cgsLct_bvuk0n_k$()); block(this_0); return this_0; } function shallowCopy_9(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new CourseTerminology(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_ctUid_mnnkbo_k$(_this__u8e3s4.get_ctUid_ipwyk6_k$()); this_0.set_ctTitle_71e5o3_k$(_this__u8e3s4.get_ctTitle_iytaim_k$()); this_0.set_ctTerminology_932opa_k$(_this__u8e3s4.get_ctTerminology_oszxd3_k$()); this_0.set_ctLct_eacscx_k$(_this__u8e3s4.get_ctLct_ipwrr7_k$()); block(this_0); return this_0; } function shallowCopy_10(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new DiscussionPost(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_discussionPostUid_ufsj71_k$(_this__u8e3s4.get_discussionPostUid_6yxxgf_k$()); this_0.set_discussionPostReplyToPostUid_ev5bbi_k$(_this__u8e3s4.get_discussionPostReplyToPostUid_p5bbhg_k$()); this_0.set_discussionPostTitle_m6nnc4_k$(_this__u8e3s4.get_discussionPostTitle_luljhj_k$()); this_0.set_discussionPostMessage_7toqr9_k$(_this__u8e3s4.get_discussionPostMessage_a2j8wm_k$()); this_0.set_discussionPostStartDate_vk83wt_k$(_this__u8e3s4.get_discussionPostStartDate_61t9a7_k$()); this_0.set_discussionPostCourseBlockUid_9jjim3_k$(_this__u8e3s4.get_discussionPostCourseBlockUid_sf5e7_k$()); this_0.set_dpDeleted_2r3zwb_k$(_this__u8e3s4.get_dpDeleted_gj0ksk_k$()); this_0.set_discussionPostStartedPersonUid_buzem9_k$(_this__u8e3s4.get_discussionPostStartedPersonUid_hirvwr_k$()); this_0.set_discussionPostClazzUid_2q88rl_k$(_this__u8e3s4.get_discussionPostClazzUid_nrn8d3_k$()); this_0.set_discussionPostLct_m2hr8a_k$(_this__u8e3s4.get_discussionPostLct_6yxqng_k$()); this_0.set_discussionPostVisible_8xxgpk_k$(_this__u8e3s4.get_discussionPostVisible_1zvtj5_k$()); this_0.set_discussionPostArchive_wwn57s_k$(_this__u8e3s4.get_discussionPostArchive_i3eir3_k$()); block(this_0); return this_0; } function shallowCopy_11(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new HolidayCalendar(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_umCalendarUid_gauo2p_k$(_this__u8e3s4.get_umCalendarUid_hurqun_k$()); this_0.set_umCalendarName_o86x1j_k$(_this__u8e3s4.get_umCalendarName_eqvove_k$()); this_0.set_umCalendarCategory_3kgfc9_k$(_this__u8e3s4.get_umCalendarCategory_7svgd9_k$()); this_0.set_umCalendarActive_chv2ec_k$(_this__u8e3s4.get_umCalendarActive_ua75np_k$()); this_0.set_umCalendarMasterChangeSeqNum_boblwu_k$(_this__u8e3s4.get_umCalendarMasterChangeSeqNum_w1refs_k$()); this_0.set_umCalendarLocalChangeSeqNum_92nnwx_k$(_this__u8e3s4.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); this_0.set_umCalendarLastChangedBy_73d7sq_k$(_this__u8e3s4.get_umCalendarLastChangedBy_k46ara_k$()); this_0.set_umCalendarLct_oo5g1g_k$(_this__u8e3s4.get_umCalendarLct_hurxnm_k$()); block(this_0); return this_0; } function shallowCopy_12(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_langUid_ci1fyx_k$(_this__u8e3s4.get_langUid_ejnh5_k$()); this_0.set_name_wkmnld_k$(_this__u8e3s4.get_name_woqyms_k$()); this_0.set_iso_639_1_standard_i0x87m_k$(_this__u8e3s4.get_iso_639_1_standard_spkz1r_k$()); this_0.set_iso_639_2_standard_vevcqb_k$(_this__u8e3s4.get_iso_639_2_standard_vykxu8_k$()); this_0.set_iso_639_3_standard_q8akq4_k$(_this__u8e3s4.get_iso_639_3_standard_z7kwmp_k$()); this_0.set_Language_Type_jxss6r_k$(_this__u8e3s4.get_Language_Type_55wja0_k$()); this_0.set_languageActive_33gxtm_k$(_this__u8e3s4.get_languageActive_km5lzb_k$()); this_0.set_langLocalChangeSeqNum_km6xw9_k$(_this__u8e3s4.get_langLocalChangeSeqNum_t6xedn_k$()); this_0.set_langMasterChangeSeqNum_eccxgm_k$(_this__u8e3s4.get_langMasterChangeSeqNum_z4cpe8_k$()); this_0.set_langLastChangedBy_1lwzr6_k$(_this__u8e3s4.get_langLastChangedBy_mb75qa_k$()); this_0.set_langLct_kvc7xo_k$(_this__u8e3s4.get_langLct_ejgo6_k$()); block(this_0); return this_0; } function shallowCopy_13(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new LeavingReason(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_leavingReasonUid_9yufs9_k$(_this__u8e3s4.get_leavingReasonUid_err3kx_k$()); this_0.set_leavingReasonTitle_qlt7ba_k$(_this__u8e3s4.get_leavingReasonTitle_bcnrrr_k$()); this_0.set_leavingReasonMCSN_bj3iha_k$(_this__u8e3s4.get_leavingReasonMCSN_vphuqo_k$()); this_0.set_leavingReasonCSN_fn65j9_k$(_this__u8e3s4.get_leavingReasonCSN_erqpov_k$()); this_0.set_leavingReasonLCB_7smdl4_k$(_this__u8e3s4.get_leavingReasonLCB_erqvz0_k$()); this_0.set_leavingReasonLct_ic57r0_k$(_this__u8e3s4.get_leavingReasonLct_erqwry_k$()); block(this_0); return this_0; } function shallowCopy_14(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new PeerReviewerAllocation(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_praUid_dkb29c_k$(_this__u8e3s4.get_praUid_i762pm_k$()); this_0.set_praMarkerSubmitterUid_plw6dh_k$(_this__u8e3s4.get_praMarkerSubmitterUid_mj8ypj_k$()); this_0.set_praToMarkerSubmitterUid_n8lf7k_k$(_this__u8e3s4.get_praToMarkerSubmitterUid_7d07wy_k$()); this_0.set_praAssignmentUid_60pp0j_k$(_this__u8e3s4.get_praAssignmentUid_gmaw8d_k$()); this_0.set_praActive_a5t77_k$(_this__u8e3s4.get_praActive_i43sis_k$()); this_0.set_praLct_lxlu83_k$(_this__u8e3s4.get_praLct_i75vwn_k$()); block(this_0); return this_0; } function shallowCopy_15(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new PersonParentJoin(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_ppjUid_1pa5iz_k$(_this__u8e3s4.get_ppjUid_i688en_k$()); this_0.set_ppjPcsn_iwvk8z_k$(_this__u8e3s4.get_ppjPcsn_4vwi4x_k$()); this_0.set_ppjLcsn_i0nccf_k$(_this__u8e3s4.get_ppjLcsn_4vz231_k$()); this_0.set_ppjLcb_e12jee_k$(_this__u8e3s4.get_ppjLcb_i681l6_k$()); this_0.set_ppjLct_a2kxhq_k$(_this__u8e3s4.get_ppjLct_i681lo_k$()); this_0.set_ppjParentPersonUid_h015fq_k$(_this__u8e3s4.get_ppjParentPersonUid_lygmb4_k$()); this_0.set_ppjMinorPersonUid_aovzpn_k$(_this__u8e3s4.get_ppjMinorPersonUid_acwyl5_k$()); this_0.set_ppjRelationship_re4gsd_k$(_this__u8e3s4.get_ppjRelationship_u5inyx_k$()); this_0.set_ppjEmail_egsoco_k$(_this__u8e3s4.get_ppjEmail_9kn8bp_k$()); this_0.set_ppjPhone_iq44ne_k$(_this__u8e3s4.get_ppjPhone_9eoe8j_k$()); this_0.set_ppjInactive_y9dner_k$(_this__u8e3s4.get_ppjInactive_qnp304_k$()); this_0.set_ppjStatus_hiah55_k$(_this__u8e3s4.get_ppjStatus_5x2g19_k$()); this_0.set_ppjApprovalTiemstamp_wbkei0_k$(_this__u8e3s4.get_ppjApprovalTiemstamp_rc7j7m_k$()); this_0.set_ppjApprovalIpAddr_lc766n_k$(_this__u8e3s4.get_ppjApprovalIpAddr_soqjlw_k$()); block(this_0); return this_0; } function shallowCopy_16(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_personUid_j3idds_k$(_this__u8e3s4.get_personUid_mmhd76_k$()); this_0.set_username_tgnlmk_k$(_this__u8e3s4.get_username_ytz5i7_k$()); this_0.set_firstNames_audc9u_k$(_this__u8e3s4.get_firstNames_n3o3y7_k$()); this_0.set_lastName_6ukpbb_k$(_this__u8e3s4.get_lastName_f360wa_k$()); this_0.set_emailAddr_n0lw07_k$(_this__u8e3s4.get_emailAddr_rghqf0_k$()); this_0.set_phoneNum_jo9xeq_k$(_this__u8e3s4.get_phoneNum_i20sg1_k$()); this_0.set_gender_5r7pfa_k$(_this__u8e3s4.get_gender_dqurbe_k$()); this_0.set_active_nmha5u_k$(_this__u8e3s4.get_active_avldsf_k$()); this_0.set_dateOfBirth_1iysn5_k$(_this__u8e3s4.get_dateOfBirth_7hv8kx_k$()); this_0.set_personAddress_v4k1w5_k$(_this__u8e3s4.get_personAddress_w7qqwm_k$()); this_0.set_personOrgId_8oeidy_k$(_this__u8e3s4.get_personOrgId_6lzn8h_k$()); this_0.set_personGroupUid_eex3gl_k$(_this__u8e3s4.get_personGroupUid_wriklr_k$()); this_0.set_personLct_aq7lf1_k$(_this__u8e3s4.get_personLct_mmh6e7_k$()); this_0.set_personCountry_2dq7zn_k$(_this__u8e3s4.get_personCountry_3zsn1k_k$()); this_0.set_personType_przf38_k$(_this__u8e3s4.get_personType_8y6hc8_k$()); this_0.set_personMasterChangeSeqNum_5x91v_k$(_this__u8e3s4.get_personMasterChangeSeqNum_prsruf_k$()); this_0.set_personLocalChangeSeqNum_isxxla_k$(_this__u8e3s4.get_personLocalChangeSeqNum_gxofuk_k$()); this_0.set_personLastChangedBy_ghtfvp_k$(_this__u8e3s4.get_personLastChangedBy_z0j913_k$()); this_0.set_admin_llzh0j_k$(_this__u8e3s4.get_admin_iojndy_k$()); this_0.set_personNotes_4l39dk_k$(_this__u8e3s4.get_personNotes_6le803_k$()); this_0.set_fatherName_jpjuzx_k$(_this__u8e3s4.get_fatherName_ymrq1c_k$()); this_0.set_fatherNumber_pch0b9_k$(_this__u8e3s4.get_fatherNumber_vcrsoi_k$()); this_0.set_motherName_y7zjzg_k$(_this__u8e3s4.get_motherName_jkvzav_k$()); this_0.set_motherNum_mxb55b_k$(_this__u8e3s4.get_motherNum_1nqyg6_k$()); block(this_0); return this_0; } function shallowCopy_17(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Schedule(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_scheduleUid_35xeta_k$(_this__u8e3s4.get_scheduleUid_gt0c7k_k$()); this_0.set_sceduleStartTime_81jqoh_k$(_this__u8e3s4.get_sceduleStartTime_r41do9_k$()); this_0.set_scheduleEndTime_fh9x3e_k$(_this__u8e3s4.get_scheduleEndTime_vdt9o8_k$()); this_0.set_scheduleDay_nsvexs_k$(_this__u8e3s4.get_scheduleDay_gszzfg_k$()); this_0.set_scheduleMonth_p5ta0s_k$(_this__u8e3s4.get_scheduleMonth_q978qo_k$()); this_0.set_scheduleFrequency_w5icgw_k$(_this__u8e3s4.get_scheduleFrequency_bvvfg_k$()); this_0.set_umCalendarUid_gauo2p_k$(_this__u8e3s4.get_umCalendarUid_hurqun_k$()); this_0.set_scheduleClazzUid_t953qm_k$(_this__u8e3s4.get_scheduleClazzUid_4qhnq0_k$()); this_0.set_scheduleMasterChangeSeqNum_rg3igf_k$(_this__u8e3s4.get_scheduleMasterChangeSeqNum_eayz5z_k$()); this_0.set_scheduleLocalChangeSeqNum_bvgkds_k$(_this__u8e3s4.get_scheduleLocalChangeSeqNum_bk48hu_k$()); this_0.set_scheduleLastChangedBy_31adzt_k$(_this__u8e3s4.get_scheduleLastChangedBy_fgje7p_k$()); this_0.set_scheduleLastChangedTime_2uryvb_k$(_this__u8e3s4.get_scheduleLastChangedTime_b1i757_k$()); this_0.set_scheduleActive_twdrtn_k$(_this__u8e3s4.get_scheduleActive_qpyjk6_k$()); block(this_0); return this_0; } function shallowCopy_18(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new Site(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_siteUid_3fwycy_k$(_this__u8e3s4.get_siteUid_z1a068_k$()); this_0.set_sitePcsn_1tec30_k$(_this__u8e3s4.get_sitePcsn_kn0mo2_k$()); this_0.set_siteLcsn_x646g_k$(_this__u8e3s4.get_siteLcsn_kn36m6_k$()); this_0.set_siteLcb_8xejr3_k$(_this__u8e3s4.get_siteLcb_z1a6zp_k$()); this_0.set_siteLct_bt7qbp_k$(_this__u8e3s4.get_siteLct_z1a6z7_k$()); this_0.set_siteName_c1yqeg_k$(_this__u8e3s4.get_siteName_kn1y9x_k$()); this_0.set_guestLogin_v9uplz_k$(_this__u8e3s4.get_guestLogin_lk9bzu_k$()); this_0.set_registrationAllowed_4rnnzx_k$(_this__u8e3s4.get_registrationAllowed_lhz77q_k$()); this_0.set_authSalt_nuc2o4_k$(_this__u8e3s4.get_authSalt_848849_k$()); block(this_0); return this_0; } function shallowCopy_19(_this__u8e3s4, block) { // Inline function 'kotlin.also' call var this_0 = new SiteTerms(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ext.shallowCopy.' call this_0.set_sTermsUid_7kqczl_k$(_this__u8e3s4.get_sTermsUid_wzk4z7_k$()); this_0.set_termsHtml_lak0ny_k$(_this__u8e3s4.get_termsHtml_spkudz_k$()); this_0.set_sTermsLang_voj3eg_k$(_this__u8e3s4.get_sTermsLang_s6lm5n_k$()); this_0.set_sTermsLangUid_wo29bn_k$(_this__u8e3s4.get_sTermsLangUid_oq3ht1_k$()); this_0.set_sTermsActive_bqq1vi_k$(_this__u8e3s4.get_sTermsActive_g8t937_k$()); this_0.set_sTermsLastChangedBy_2hhzfo_k$(_this__u8e3s4.get_sTermsLastChangedBy_tpixew_k$()); this_0.set_sTermsPrimaryCsn_c4cdn3_k$(_this__u8e3s4.get_sTermsPrimaryCsn_dkyr3b_k$()); this_0.set_sTermsLocalCsn_nxsa6y_k$(_this__u8e3s4.get_sTermsLocalCsn_rrf5gw_k$()); this_0.set_sTermsLct_skez6_k$(_this__u8e3s4.get_sTermsLct_wzjy68_k$()); block(this_0); return this_0; } function get_UNSET_DISTANT_FUTURE() { return UNSET_DISTANT_FUTURE; } var UNSET_DISTANT_FUTURE; function PermissionFlags() { PermissionFlags_instance = this; this.COURSE_VIEW_1 = new Long(1, 0); this.COURSE_EDIT_1 = new Long(2, 0); this.COURSE_MODERATE_1 = new Long(4, 0); this.COURSE_MANAGE_STUDENT_ENROLMENT_1 = new Long(8, 0); this.COURSE_MANAGE_TEACHER_ENROLMENT_1 = new Long(16, 0); this.COURSE_ATTENDANCE_VIEW_1 = new Long(32, 0); this.COURSE_ATTENDANCE_RECORD_1 = new Long(64, 0); this.COURSE_LEARNINGRECORD_VIEW_1 = new Long(128, 0); this.COURSE_LEARNINGRECORD_EDIT_1 = new Long(256, 0); this.ADD_COURSE_1 = new Long(512, 0); this.ADD_PERSON_1 = new Long(1024, 0); this.DIRECT_ENROL_1 = new Long(2048, 0); this.MANAGE_USER_PERMISSIONS_1 = new Long(4096, 0); this.PERSON_VIEW_1 = new Long(8192, 0); this.MANAGE_SITE_SETTINGS_1 = new Long(16384, 0); this.EDIT_ALL_PERSONS_1 = new Long(32768, 0); this.EDIT_LIBRARY_CONTENT_1 = new Long(65536, 0); this.RESET_PASSWORDS_1 = new Long(131072, 0); this.ALL_1 = new Long(-1, 2147483647); this.REPORT_EDIT_1 = new Long(262144, 0); } protoOf(PermissionFlags).get_COURSE_VIEW_mewdnk_k$ = function () { return this.COURSE_VIEW_1; }; protoOf(PermissionFlags).get_COURSE_EDIT_mf7c1n_k$ = function () { return this.COURSE_EDIT_1; }; protoOf(PermissionFlags).get_COURSE_MODERATE_rl1ttu_k$ = function () { return this.COURSE_MODERATE_1; }; protoOf(PermissionFlags).get_COURSE_MANAGE_STUDENT_ENROLMENT_t351xd_k$ = function () { return this.COURSE_MANAGE_STUDENT_ENROLMENT_1; }; protoOf(PermissionFlags).get_COURSE_MANAGE_TEACHER_ENROLMENT_2dgmjc_k$ = function () { return this.COURSE_MANAGE_TEACHER_ENROLMENT_1; }; protoOf(PermissionFlags).get_COURSE_ATTENDANCE_VIEW_cozdgg_k$ = function () { return this.COURSE_ATTENDANCE_VIEW_1; }; protoOf(PermissionFlags).get_COURSE_ATTENDANCE_RECORD_ggo5xo_k$ = function () { return this.COURSE_ATTENDANCE_RECORD_1; }; protoOf(PermissionFlags).get_COURSE_LEARNINGRECORD_VIEW_conusm_k$ = function () { return this.COURSE_LEARNINGRECORD_VIEW_1; }; protoOf(PermissionFlags).get_COURSE_LEARNINGRECORD_EDIT_coyt6p_k$ = function () { return this.COURSE_LEARNINGRECORD_EDIT_1; }; protoOf(PermissionFlags).get_ADD_COURSE_d9fly6_k$ = function () { return this.ADD_COURSE_1; }; protoOf(PermissionFlags).get_ADD_PERSON_79ed2c_k$ = function () { return this.ADD_PERSON_1; }; protoOf(PermissionFlags).get_DIRECT_ENROL_255jxj_k$ = function () { return this.DIRECT_ENROL_1; }; protoOf(PermissionFlags).get_MANAGE_USER_PERMISSIONS_f0u3z5_k$ = function () { return this.MANAGE_USER_PERMISSIONS_1; }; protoOf(PermissionFlags).get_PERSON_VIEW_s2u8t6_k$ = function () { return this.PERSON_VIEW_1; }; protoOf(PermissionFlags).get_MANAGE_SITE_SETTINGS_5ys1rq_k$ = function () { return this.MANAGE_SITE_SETTINGS_1; }; protoOf(PermissionFlags).get_EDIT_ALL_PERSONS_uw4lis_k$ = function () { return this.EDIT_ALL_PERSONS_1; }; protoOf(PermissionFlags).get_EDIT_LIBRARY_CONTENT_bhq3m1_k$ = function () { return this.EDIT_LIBRARY_CONTENT_1; }; protoOf(PermissionFlags).get_RESET_PASSWORDS_uvrc2p_k$ = function () { return this.RESET_PASSWORDS_1; }; protoOf(PermissionFlags).get_ALL_18jy08_k$ = function () { return this.ALL_1; }; protoOf(PermissionFlags).get_REPORT_EDIT_p4k7xw_k$ = function () { return this.REPORT_EDIT_1; }; var PermissionFlags_instance; function PermissionFlags_getInstance() { if (PermissionFlags_instance == null) new PermissionFlags(); return PermissionFlags_instance; } function get_MIGRATE_USERNAME_CLIENT() { _init_properties_UsernameFilterClientMigration_kt__kpjhqb(); return MIGRATE_USERNAME_CLIENT; } var MIGRATE_USERNAME_CLIENT; function MIGRATE_USERNAME_CLIENT$lambda(_anonymous_parameter_0__qggqh8) { _init_properties_UsernameFilterClientMigration_kt__kpjhqb(); return emptyList(); } var properties_initialized_UsernameFilterClientMigration_kt_4cnqd7; function _init_properties_UsernameFilterClientMigration_kt__kpjhqb() { if (!properties_initialized_UsernameFilterClientMigration_kt_4cnqd7) { properties_initialized_UsernameFilterClientMigration_kt_4cnqd7 = true; MIGRATE_USERNAME_CLIENT = new DoorMigrationStatementList(202, 203, MIGRATE_USERNAME_CLIENT$lambda); } } function BaseDao() { } function _get_SELECT_PERSONUID_IF_ENROLLED_ELSE_0_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL__ap22ax($this) { return $this.SELECT_PERSONUID_IF_ENROLLED_ELSE_0_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL_1; } function _get_SELECT_GROUPSET_UID_FOR_ASSIGNMENT_UID_SQL__xqzhq8($this) { return $this.SELECT_GROUPSET_UID_FOR_ASSIGNMENT_UID_SQL_1; } function ClazzAssignmentDaoCommon() { ClazzAssignmentDaoCommon_instance = this; this.SELECT_PERSONUID_IF_ENROLLED_ELSE_0_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL_1 = '\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n '; this.SELECT_SUBMITTER_UID_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL_1 = '\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid)\n AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n LIMIT 1), -1)\n END\n '; this.SUBMITTER_LIST_WITHOUT_ASSIGNMENT_CTE_1 = "\n WITH SubmitterList (submitterId, name)\n AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n \n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n \n WHERE :groupUid = 0 \n AND clazzEnrolmentClazzUid = :clazzUid\n AND clazzEnrolmentActive\n AND clazzEnrolmentRole = 1000\n GROUP BY submitterId, name\n UNION \n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n :group || ' ' || CourseGroupMember.cgmGroupNumber AS name \n FROM CourseGroupMember\n JOIN CourseGroupSet\n ON CourseGroupSet.cgsUid = :groupUid\n WHERE CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid\n AND CourseGroupMember.cgmGroupNumber != 0\n GROUP BY submitterId, name\n )\n "; this.HAS_LEARNINGRECORD_AND_MEMBER_VIEW_PERMISSION_CTE_SQL_1 = '\n HasLearningRecordSelectPermission (hasPermission) AS\n (SELECT (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n ))\n '; this.ASSIGNMENT_CLAZZ_UID_CTE_SQL_1 = '\n AssignmentClazzUid(clazzUid) AS\n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) \n '; this.SELECT_SUBMITTER_UID_FOR_ACCOUNT_PERSON_UID_AND_ASSIGNMENT_CTE_1 = '\n AccountSubmitterUid(accountSubmitterUid) AS \n (\n SELECT CASE\n -- When assignment is individual then the submitter uid is the personuid if they are enrolled in the course otherwise zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) = 0\n THEN (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n )\n -- When assignment is by groups but the active user is not an enrolled student then the submitter uid is zero \n WHEN (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid) != 0\n AND (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) = 0\n THEN 0\n -- When assignment is by groups and the person is an enrolled student the submitter uid is the \n -- group that they are assigned to. If they are not assigned to a group but are enrolled\n -- then we submitter uid = SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP\n ELSE COALESCE(\n (SELECT CourseGroupMember.cgmGroupNumber\n FROM CourseGroupMember\n WHERE (\n SELECT COALESCE(\n (SELECT ClazzEnrolment.clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND ClazzEnrolment.clazzEnrolmentClazzUid = \n (SELECT ClazzAssignment.caClazzUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid)\n LIMIT 1), 0)\n ) > 0\n AND CourseGroupMember.cgmSetUid = \n (SELECT caGroupUid\n FROM ClazzAssignment\n WHERE caUid = :assignmentUid)\n AND CourseGroupMember.cgmPersonUid = :accountPersonUid\n LIMIT 1), -1)\n END\n )\n '; this.SELECT_GROUPSET_UID_FOR_ASSIGNMENT_UID_SQL_1 = '\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n '; this.SELECT_ASSIGNMENT_IS_PEERMARKED_SQL_1 = '\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n '; this.SUBMITTER_LIST_CTE2_SQL_1 = "\n SubmitterList(submitterId, name) AS \n -- List of submitter uids and names if individual assignment eg caGroupUid = 0\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n Person.firstNames || ' ' || Person.lastName AS name\n FROM ClazzEnrolment\n JOIN Person \n ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n ) = 0\n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n -- either the active user has learnign record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n -- check if the active person eg accountpersonuid is assigned to mark this peer\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = ClazzEnrolment.clazzEnrolmentPersonUid\n AND PeerReviewerAllocation.praMarkerSubmitterUid = :accountPersonUid))\n )\n UNION\n -- List of submitter uids and names if the assignment is submitted by groups e.g. caGroupUid != 0\n SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n :group || ' ' || CourseGroupMember.cgmGroupNumber AS name\n FROM CourseGroupMember\n WHERE (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n ) != 0\n AND CourseGroupMember.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n )\n -- either the active user has learning record select permission on class or is an assigned reviewer for submitter\n AND (\n (SELECT hasPermission \n FROM HasLearningRecordSelectPermission)\n OR \n --check if the active user is in a group that was allocated to do a peer review of the given submitter uid\n (\n ((SELECT ClazzAssignment.caMarkingType\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid) = 2)\n \n AND\n EXISTS(SELECT PeerReviewerAllocation.praUid\n FROM PeerReviewerAllocation\n WHERE PeerReviewerAllocation.praAssignmentUid = :assignmentUid\n AND PeerReviewerAllocation.praToMarkerSubmitterUid = CourseGroupMember.cgmGroupNumber\n AND PeerReviewerAllocation.praMarkerSubmitterUid = \n (SELECT CourseGroupMemberInner.cgmGroupNumber\n FROM CourseGroupMember CourseGroupMemberInner\n WHERE CourseGroupMemberInner.cgmSetUid = (\n SELECT ClazzAssignment.caGroupUid\n FROM ClazzAssignment\n WHERE ClazzAssignment.caUid = :assignmentUid\n )\n AND CourseGroupMemberInner.cgmPersonUid = :accountPersonUid\n LIMIT 1)\n ))\n )\n )\n \n "; this.SORT_NAME_ASC_1 = 5; this.SORT_NAME_DESC_1 = 6; } protoOf(ClazzAssignmentDaoCommon).get_SELECT_SUBMITTER_UID_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL_3pm0z5_k$ = function () { return this.SELECT_SUBMITTER_UID_FOR_PERSONUID_AND_ASSIGNMENTUID_SQL_1; }; protoOf(ClazzAssignmentDaoCommon).get_SUBMITTER_LIST_WITHOUT_ASSIGNMENT_CTE_ta54xn_k$ = function () { return this.SUBMITTER_LIST_WITHOUT_ASSIGNMENT_CTE_1; }; protoOf(ClazzAssignmentDaoCommon).get_HAS_LEARNINGRECORD_AND_MEMBER_VIEW_PERMISSION_CTE_SQL_cl36su_k$ = function () { return this.HAS_LEARNINGRECORD_AND_MEMBER_VIEW_PERMISSION_CTE_SQL_1; }; protoOf(ClazzAssignmentDaoCommon).get_ASSIGNMENT_CLAZZ_UID_CTE_SQL_y7nmfw_k$ = function () { return this.ASSIGNMENT_CLAZZ_UID_CTE_SQL_1; }; protoOf(ClazzAssignmentDaoCommon).get_SELECT_SUBMITTER_UID_FOR_ACCOUNT_PERSON_UID_AND_ASSIGNMENT_CTE_ou89rw_k$ = function () { return this.SELECT_SUBMITTER_UID_FOR_ACCOUNT_PERSON_UID_AND_ASSIGNMENT_CTE_1; }; protoOf(ClazzAssignmentDaoCommon).get_SELECT_ASSIGNMENT_IS_PEERMARKED_SQL_6pbvei_k$ = function () { return this.SELECT_ASSIGNMENT_IS_PEERMARKED_SQL_1; }; protoOf(ClazzAssignmentDaoCommon).get_SUBMITTER_LIST_CTE2_SQL_n9l2sv_k$ = function () { return this.SUBMITTER_LIST_CTE2_SQL_1; }; protoOf(ClazzAssignmentDaoCommon).get_SORT_NAME_ASC_byiy2d_k$ = function () { return this.SORT_NAME_ASC_1; }; protoOf(ClazzAssignmentDaoCommon).get_SORT_NAME_DESC_fksp65_k$ = function () { return this.SORT_NAME_DESC_1; }; var ClazzAssignmentDaoCommon_instance; function ClazzAssignmentDaoCommon_getInstance() { if (ClazzAssignmentDaoCommon_instance == null) new ClazzAssignmentDaoCommon(); return ClazzAssignmentDaoCommon_instance; } function ClazzDaoCommon() { ClazzDaoCommon_instance = this; this.SORT_CLAZZNAME_ASC_1 = 1; this.SORT_CLAZZNAME_DESC_1 = 2; this.SORT_ATTENDANCE_ASC_1 = 3; this.SORT_ATTENDANCE_DESC_1 = 4; this.FILTER_CURRENTLY_ENROLLED_1 = 5; this.FILTER_PAST_ENROLLMENTS_1 = 6; this.SELECT_ACTIVE_CLAZZES_1 = 'SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1'; } protoOf(ClazzDaoCommon).get_SORT_CLAZZNAME_ASC_mih9j7_k$ = function () { return this.SORT_CLAZZNAME_ASC_1; }; protoOf(ClazzDaoCommon).get_SORT_CLAZZNAME_DESC_ceaz8l_k$ = function () { return this.SORT_CLAZZNAME_DESC_1; }; protoOf(ClazzDaoCommon).get_SORT_ATTENDANCE_ASC_bs29ub_k$ = function () { return this.SORT_ATTENDANCE_ASC_1; }; protoOf(ClazzDaoCommon).get_SORT_ATTENDANCE_DESC_a0fu8f_k$ = function () { return this.SORT_ATTENDANCE_DESC_1; }; protoOf(ClazzDaoCommon).get_FILTER_CURRENTLY_ENROLLED_wepg78_k$ = function () { return this.FILTER_CURRENTLY_ENROLLED_1; }; protoOf(ClazzDaoCommon).get_FILTER_PAST_ENROLLMENTS_5n3ops_k$ = function () { return this.FILTER_PAST_ENROLLMENTS_1; }; protoOf(ClazzDaoCommon).get_SELECT_ACTIVE_CLAZZES_90t5nd_k$ = function () { return this.SELECT_ACTIVE_CLAZZES_1; }; var ClazzDaoCommon_instance; function ClazzDaoCommon_getInstance() { if (ClazzDaoCommon_instance == null) new ClazzDaoCommon(); return ClazzDaoCommon_instance; } function ClazzEnrolmentDaoCommon() { ClazzEnrolmentDaoCommon_instance = this; this.SORT_FIRST_NAME_ASC_1 = 1; this.SORT_FIRST_NAME_DESC_1 = 2; this.SORT_LAST_NAME_ASC_1 = 3; this.SORT_LAST_NAME_DESC_1 = 4; this.SORT_DATE_REGISTERED_ASC_1 = 7; this.SORT_DATE_REGISTERED_DESC_1 = 8; this.SORT_DATE_LEFT_ASC_1 = 9; this.SORT_DATE_LEFT_DESC_1 = 10; this.FILTER_ACTIVE_ONLY_1 = 1; this.WITH_CURRENTLY_ENROLED_STUDENTS_SQL_1 = '\n WITH CurrentlyEnrolledPersonUids(enroledPersonUid) AS\n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS enroledPersonUid\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000\n AND :time BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft)\n '; this.SELECT_ENROLMENT_TYPE_BY_UID_SQL_1 = '\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid \n '; this.PERMISSION_REQUIRED_BY_CLAZZENROLMENT_UID_1 = '\n CASE (\n SELECT ClazzEnrolment.clazzEnrolmentRole\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentUid = :clazzEnrolmentUid \n )\n WHEN 1000 THEN 8\n ELSE 8\n END \n '; this.SELECT_ACCOUNT_PERSON_UID_IS_STUDENT_IN_CLAZZ_UID_1 = '\n (SELECT EXISTS(\n SELECT 1\n FROM ClazzEnrolment\n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid\n AND ClazzEnrolment.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment.clazzEnrolmentRole = 1000))\n '; this.SELECT_BY_UID_AND_ROLE_SQL_1 = "\n SELECT * \n FROM (SELECT Person.*, PersonPicture.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n AND (:filter != 1 \n OR (:currentTime \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n (\n (\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n :permission\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n :permission\n \n ) > 0)\n )\n \n )\n OR Person.personUid = :accountPersonUid\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n GROUP BY Person.personUid, PersonPicture.personPictureUid) AS CourseMember\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(:sortOrder)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(:sortOrder)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n "; this.PERSON_UIDS_FOR_PAGED_GRADEBOOK_QUERY_CTE_1 = "\n PersonUids(personUid) AS (\n SELECT CourseMember.personUid \n FROM (SELECT Person.*,\n (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n \n (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n \n (SELECT ClazzEnrolment.clazzEnrolmentRole \n FROM ClazzEnrolment \n WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n AND ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive\n ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n LIMIT 1) AS enrolmentRole\n FROM Person\n WHERE Person.personUid IN \n (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid \n FROM ClazzEnrolment \n WHERE ClazzEnrolment.clazzEnrolmentClazzUid = :clazzUid \n AND ClazzEnrolment.clazzEnrolmentActive \n AND ClazzEnrolment.clazzEnrolmentRole = :roleId \n AND (:filter != 1 \n OR (:currentTime \n BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n /* Begin permission check */\n AND (\n ((\n /* If the accountPersonUid is the owner of the course, all permissions are granted */\n (COALESCE(\n (SELECT _Clazz_Permission.clazzOwnerPersonUid \n FROM Clazz _Clazz_Permission\n WHERE _Clazz_Permission.clazzUid = :clazzUid), 0) = :accountPersonUid)\n /* \n If there is a CoursePermission entity that is for the course as per the clazzUid\n parameter that is granted to the person directly or to the enrolmentRole that the \n person has in the course, then permission is granted.\n */ \n OR EXISTS(SELECT CoursePermission.cpUid\n FROM CoursePermission\n \n LEFT JOIN ClazzEnrolment ClazzEnrolment_ForAccountPerson \n ON CoursePermission.cpToEnrolmentRole != 0\n AND ClazzEnrolment_ForAccountPerson.clazzEnrolmentUid = \n (SELECT COALESCE(\n (SELECT _ClazzEnrolment_AccountPersonInner.clazzEnrolmentUid \n FROM ClazzEnrolment _ClazzEnrolment_AccountPersonInner\n WHERE _ClazzEnrolment_AccountPersonInner.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentPersonUid = :accountPersonUid\n AND _ClazzEnrolment_AccountPersonInner.clazzEnrolmentActive\n ORDER BY _ClazzEnrolment_AccountPersonInner.clazzEnrolmentDateLeft DESC \n LIMIT 1), 0))\n \n WHERE CoursePermission.cpClazzUid = :clazzUid\n AND (CoursePermission.cpToPersonUid = :accountPersonUid \n OR CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForAccountPerson.clazzEnrolmentRole)\n AND (CoursePermission.cpPermissionsFlag & \n 128\n \n ) > 0)\n OR EXISTS(SELECT SystemPermission.spUid\n FROM SystemPermission\n WHERE SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag & \n 128\n \n ) > 0)\n )\n )\n OR Person.personUid = :accountPersonUid\n ) \n /* End permission check */ \n AND Person.firstNames || ' ' || Person.lastName LIKE :searchText\n GROUP BY Person.personUid) AS CourseMember\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN CourseMember.firstNames\n WHEN 3 THEN CourseMember.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN CourseMember.firstNames\n WHEN 4 THEN CourseMember.lastName\n ELSE ''\n END DESC,\n CASE(:sortOrder)\n WHEN 7 THEN CourseMember.earliestJoinDate\n WHEN 9 THEN CourseMember.latestDateLeft\n ELSE 0\n END ASC,\n CASE(:sortOrder)\n WHEN 8 THEN CourseMember.earliestJoinDate\n WHEN 10 THEN CourseMember.latestDateLeft\n ELSE 0\n END DESC\n LIMIT :studentsLimit\n OFFSET :studentsOffset \n )\n "; } protoOf(ClazzEnrolmentDaoCommon).get_SORT_FIRST_NAME_ASC_uiz2kk_k$ = function () { return this.SORT_FIRST_NAME_ASC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_FIRST_NAME_DESC_mxs51a_k$ = function () { return this.SORT_FIRST_NAME_DESC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_LAST_NAME_ASC_qs7cum_k$ = function () { return this.SORT_LAST_NAME_ASC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_LAST_NAME_DESC_m2yybw_k$ = function () { return this.SORT_LAST_NAME_DESC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_DATE_REGISTERED_ASC_cdy0er_k$ = function () { return this.SORT_DATE_REGISTERED_ASC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_DATE_REGISTERED_DESC_suoft7_k$ = function () { return this.SORT_DATE_REGISTERED_DESC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_DATE_LEFT_ASC_bkyss2_k$ = function () { return this.SORT_DATE_LEFT_ASC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SORT_DATE_LEFT_DESC_3wg5ao_k$ = function () { return this.SORT_DATE_LEFT_DESC_1; }; protoOf(ClazzEnrolmentDaoCommon).get_FILTER_ACTIVE_ONLY_23n62h_k$ = function () { return this.FILTER_ACTIVE_ONLY_1; }; protoOf(ClazzEnrolmentDaoCommon).get_WITH_CURRENTLY_ENROLED_STUDENTS_SQL_vl6cpi_k$ = function () { return this.WITH_CURRENTLY_ENROLED_STUDENTS_SQL_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SELECT_ENROLMENT_TYPE_BY_UID_SQL_594x3_k$ = function () { return this.SELECT_ENROLMENT_TYPE_BY_UID_SQL_1; }; protoOf(ClazzEnrolmentDaoCommon).get_PERMISSION_REQUIRED_BY_CLAZZENROLMENT_UID_yuq0ok_k$ = function () { return this.PERMISSION_REQUIRED_BY_CLAZZENROLMENT_UID_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SELECT_ACCOUNT_PERSON_UID_IS_STUDENT_IN_CLAZZ_UID_mgtoyj_k$ = function () { return this.SELECT_ACCOUNT_PERSON_UID_IS_STUDENT_IN_CLAZZ_UID_1; }; protoOf(ClazzEnrolmentDaoCommon).get_SELECT_BY_UID_AND_ROLE_SQL_270ura_k$ = function () { return this.SELECT_BY_UID_AND_ROLE_SQL_1; }; protoOf(ClazzEnrolmentDaoCommon).get_PERSON_UIDS_FOR_PAGED_GRADEBOOK_QUERY_CTE_uyteql_k$ = function () { return this.PERSON_UIDS_FOR_PAGED_GRADEBOOK_QUERY_CTE_1; }; var ClazzEnrolmentDaoCommon_instance; function ClazzEnrolmentDaoCommon_getInstance() { if (ClazzEnrolmentDaoCommon_instance == null) new ClazzEnrolmentDaoCommon(); return ClazzEnrolmentDaoCommon_instance; } function ContentEntryDaoCommon() { ContentEntryDaoCommon_instance = this; this.SORT_TITLE_ASC_1 = 1; this.SORT_TITLE_DESC_1 = 2; this.SELECT_STATUS_FIELDS_FOR_CONTENT_ENTRY_1 = '\n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n '; this.SELECT_ACCOUNT_PERSON_AND_STATUS_FIELDS_1 = '\n :accountPersonUid AS sPersonUid,\n 0 AS sCbUid,\n \n (SELECT MAX(StatementEntity.extensionProgress)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n ) AS sProgress,\n (SELECT CASE\n -- If a successful completion statement exists, then count as success\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1 \n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 1\n )))\n THEN 1\n -- Else if no success record exists, however a fail record exists, mark as failed\n WHEN (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid \n AND (\n CAST(StatementEntity.completionOrProgress AS INTEGER) = 1\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.resultSuccess AS INTEGER) = 0\n )))\n THEN 0\n \n ELSE NULL\n END \n ) AS sIsSuccess,\n (SELECT EXISTS(\n SELECT 1\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n AND CAST(StatementEntity.resultCompletion AS INTEGER) = 1\n AND CAST(StatementEntity.completionOrProgress AS INTEGER) = 1)\n ) AS sIsCompleted,\n (SELECT MAX(StatementEntity.resultScoreScaled)\n FROM StatementEntity\n WHERE (SELECT includeResults FROM IncludeResults) = 1\n AND StatementEntity.statementActorPersonUid = :accountPersonUid\n AND StatementEntity.statementContentEntryUid = ContentEntry.contentEntryUid\n ) AS sScoreScaled\n \n '; } protoOf(ContentEntryDaoCommon).get_SORT_TITLE_ASC_uf63jm_k$ = function () { return this.SORT_TITLE_ASC_1; }; protoOf(ContentEntryDaoCommon).get_SORT_TITLE_DESC_jntz80_k$ = function () { return this.SORT_TITLE_DESC_1; }; protoOf(ContentEntryDaoCommon).get_SELECT_STATUS_FIELDS_FOR_CONTENT_ENTRY_3f6vr7_k$ = function () { return this.SELECT_STATUS_FIELDS_FOR_CONTENT_ENTRY_1; }; protoOf(ContentEntryDaoCommon).get_SELECT_ACCOUNT_PERSON_AND_STATUS_FIELDS_i23pgg_k$ = function () { return this.SELECT_ACCOUNT_PERSON_AND_STATUS_FIELDS_1; }; var ContentEntryDaoCommon_instance; function ContentEntryDaoCommon_getInstance() { if (ContentEntryDaoCommon_instance == null) new ContentEntryDaoCommon(); return ContentEntryDaoCommon_instance; } function CourseAssignmentMarkDaoCommon() { CourseAssignmentMarkDaoCommon_instance = this; this.ARG_FILTER_RECENT_SCORES_1 = 1; this.ARG_FILTER_ALL_SCORES_1 = 0; } protoOf(CourseAssignmentMarkDaoCommon).get_ARG_FILTER_RECENT_SCORES_5p7cq8_k$ = function () { return this.ARG_FILTER_RECENT_SCORES_1; }; protoOf(CourseAssignmentMarkDaoCommon).get_ARG_FILTER_ALL_SCORES_fjmn8s_k$ = function () { return this.ARG_FILTER_ALL_SCORES_1; }; var CourseAssignmentMarkDaoCommon_instance; function CourseAssignmentMarkDaoCommon_getInstance() { if (CourseAssignmentMarkDaoCommon_instance == null) new CourseAssignmentMarkDaoCommon(); return CourseAssignmentMarkDaoCommon_instance; } function deactivateByUids(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$478(_this__u8e3s4, uidList, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); } function $deactivateByUidsCOROUTINE$478(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; this.changeTime_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$478).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.uidList_1; this.tmp0_iterator1__1 = this.this0__1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator1__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this.element2__1 = this.tmp0_iterator1__1.next_20eer_k$(); var tmp_1 = this; tmp_1.it3__1 = this.element2__1; this.set_state_rjd8d0_k$(2); suspendResult = this._this__u8e3s4__1.updateActiveByUid_i0tn2u_k$(this.it3__1, false, this.changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function CourseGroupSetDaoConstants() { CourseGroupSetDaoConstants_instance = this; this.SORT_NAME_ASC_1 = 1; this.SORT_NAME_DESC_1 = 2; } protoOf(CourseGroupSetDaoConstants).get_SORT_NAME_ASC_byiy2d_k$ = function () { return this.SORT_NAME_ASC_1; }; protoOf(CourseGroupSetDaoConstants).get_SORT_NAME_DESC_fksp65_k$ = function () { return this.SORT_NAME_DESC_1; }; var CourseGroupSetDaoConstants_instance; function CourseGroupSetDaoConstants_getInstance() { if (CourseGroupSetDaoConstants_instance == null) new CourseGroupSetDaoConstants(); return CourseGroupSetDaoConstants_instance; } function ImageDao() { } function LanguageDaoCommon() { LanguageDaoCommon_instance = this; this.SORT_LANGNAME_ASC_1 = 1; this.SORT_LANGNAME_DESC_1 = 2; this.SORT_TWO_LETTER_ASC_1 = 3; this.SORT_TWO_LETTER_DESC_1 = 4; this.SORT_THREE_LETTER_ASC_1 = 5; this.SORT_THREE_LETTER_DESC_1 = 6; } protoOf(LanguageDaoCommon).get_SORT_LANGNAME_ASC_uw44j_k$ = function () { return this.SORT_LANGNAME_ASC_1; }; protoOf(LanguageDaoCommon).get_SORT_LANGNAME_DESC_qlp6wv_k$ = function () { return this.SORT_LANGNAME_DESC_1; }; protoOf(LanguageDaoCommon).get_SORT_TWO_LETTER_ASC_nmf7cz_k$ = function () { return this.SORT_TWO_LETTER_ASC_1; }; protoOf(LanguageDaoCommon).get_SORT_TWO_LETTER_DESC_m00ffj_k$ = function () { return this.SORT_TWO_LETTER_DESC_1; }; protoOf(LanguageDaoCommon).get_SORT_THREE_LETTER_ASC_mrkfpr_k$ = function () { return this.SORT_THREE_LETTER_ASC_1; }; protoOf(LanguageDaoCommon).get_SORT_THREE_LETTER_DESC_4kknld_k$ = function () { return this.SORT_THREE_LETTER_DESC_1; }; var LanguageDaoCommon_instance; function LanguageDaoCommon_getInstance() { if (LanguageDaoCommon_instance == null) new LanguageDaoCommon(); return LanguageDaoCommon_instance; } function OneToManyJoinDao() { } function deactivateByUids_0(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$479(_this__u8e3s4, uidList, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); } function $deactivateByUidsCOROUTINE$479(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; this.changeTime_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$479).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.uidList_1; this.tmp0_iterator1__1 = this.this0__1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator1__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this.element2__1 = this.tmp0_iterator1__1.next_20eer_k$(); var tmp_1 = this; tmp_1.it3__1 = this.element2__1; this.set_state_rjd8d0_k$(2); suspendResult = this._this__u8e3s4__1.updateActiveByUid_i0tn2u_k$(this.it3__1, false, this.changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function PersonDaoCommon() { PersonDaoCommon_instance = this; this.SORT_FIRST_NAME_ASC_1 = 1; this.SORT_FIRST_NAME_DESC_1 = 2; this.SORT_LAST_NAME_ASC_1 = 3; this.SORT_LAST_NAME_DESC_1 = 4; this.SQL_SELECT_LIST_WITH_PERMISSION_1 = "\n WITH CanViewPersonUidsViaCoursePermission(personUid) AS\n /* Select personUids that can be viewed based on CoursePermission given the active user \n for their enrolments \n */\n (SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM ClazzEnrolment ClazzEnrolment_ForActiveUser\n JOIN CoursePermission \n ON CoursePermission.cpClazzUid = ClazzEnrolment_ForActiveUser.clazzEnrolmentClazzUid\n AND CoursePermission.cpToEnrolmentRole = ClazzEnrolment_ForActiveUser.clazzEnrolmentRole\n AND (CoursePermission.cpPermissionsFlag & 8192) > 0\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE :accountPersonUid != 0\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentPersonUid = :accountPersonUid\n AND ClazzEnrolment_ForActiveUser.clazzEnrolmentActive\n \n UNION\n /* Select personUids that can be viewed based on CoursePermission for the active user\n where the CoursePermission is granted directly to them\n */ \n SELECT DISTINCT ClazzEnrolment_ForClazzMember.clazzEnrolmentPersonUid AS personUid\n FROM CoursePermission\n JOIN ClazzEnrolment ClazzEnrolment_ForClazzMember\n ON ClazzEnrolment_ForClazzMember.clazzEnrolmentClazzUid = CoursePermission.cpClazzUid\n WHERE :accountPersonUid != 0\n AND CoursePermission.cpToPersonUid = :accountPersonUid)\n \n SELECT Person.*, PersonPicture.*\n FROM Person\n LEFT JOIN PersonPicture\n ON PersonPicture.personPictureUid = Person.personUid\n WHERE /* Begin permission check */ \n ( \n (\n EXISTS(SELECT 1\n FROM SystemPermission\n WHERE :accountPersonUid != 0 \n AND SystemPermission.spToPersonUid = :accountPersonUid\n AND (SystemPermission.spPermissionsFlag &\n \n 8192\n \n ) > 0\n AND NOT SystemPermission.spIsDeleted)\n )\n OR (Person.personUid IN \n (SELECT CanViewPersonUidsViaCoursePermission.personUid\n FROM CanViewPersonUidsViaCoursePermission))\n OR (Person.personUid = :accountPersonUid)\n )\n /* End permission check */\n AND (:excludeClazz = 0 OR :excludeClazz NOT IN\n (SELECT clazzEnrolmentClazzUid \n FROM ClazzEnrolment \n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND :timestamp BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n AND ClazzEnrolment.clazzEnrolmentDateLeft\n AND ClazzEnrolment.clazzEnrolmentActive))\n AND Person.personType = 0 \n AND (Person.personUid NOT IN (:excludeSelected))\n AND (:searchText = '%' \n OR Person.firstNames || ' ' || Person.lastName LIKE :searchText)\n GROUP BY Person.personUid, PersonPicture.personPictureUid\n ORDER BY CASE(:sortOrder)\n WHEN 1 THEN Person.firstNames\n WHEN 3 THEN Person.lastName\n ELSE ''\n END ASC,\n CASE(:sortOrder)\n WHEN 2 THEN Person.firstNames\n WHEN 4 THEN Person.lastName\n ELSE ''\n END DESC\n "; } protoOf(PersonDaoCommon).get_SORT_FIRST_NAME_ASC_uiz2kk_k$ = function () { return this.SORT_FIRST_NAME_ASC_1; }; protoOf(PersonDaoCommon).get_SORT_FIRST_NAME_DESC_mxs51a_k$ = function () { return this.SORT_FIRST_NAME_DESC_1; }; protoOf(PersonDaoCommon).get_SORT_LAST_NAME_ASC_qs7cum_k$ = function () { return this.SORT_LAST_NAME_ASC_1; }; protoOf(PersonDaoCommon).get_SORT_LAST_NAME_DESC_m2yybw_k$ = function () { return this.SORT_LAST_NAME_DESC_1; }; protoOf(PersonDaoCommon).get_SQL_SELECT_LIST_WITH_PERMISSION_6t03w0_k$ = function () { return this.SQL_SELECT_LIST_WITH_PERMISSION_1; }; var PersonDaoCommon_instance; function PersonDaoCommon_getInstance() { if (PersonDaoCommon_instance == null) new PersonDaoCommon(); return PersonDaoCommon_instance; } function deactivateByUids_1(_this__u8e3s4, uidList, changeTime, $completion) { var tmp = new $deactivateByUidsCOROUTINE$480(_this__u8e3s4, uidList, changeTime, $completion); tmp.set_result_xj64lm_k$(Unit_getInstance()); tmp.set_exception_px07aa_k$(null); return tmp.doResume_5yljmg_k$(); } function $deactivateByUidsCOROUTINE$480(_this__u8e3s4, uidList, changeTime, resultContinuation) { CoroutineImpl.call(this, resultContinuation); this._this__u8e3s4__1 = _this__u8e3s4; this.uidList_1 = uidList; this.changeTime_1 = changeTime; } protoOf($deactivateByUidsCOROUTINE$480).doResume_5yljmg_k$ = function () { var suspendResult = this.get_result_iyg5d2_k$(); $sm: do try { var tmp = this.get_state_iypx7s_k$(); switch (tmp) { case 0: this.set_exceptionState_fex74n_k$(4); var tmp_0 = this; tmp_0.this0__1 = this.uidList_1; this.tmp0_iterator1__1 = this.this0__1.iterator_jk1svi_k$(); this.set_state_rjd8d0_k$(1); continue $sm; case 1: if (!this.tmp0_iterator1__1.hasNext_bitz1p_k$()) { this.set_state_rjd8d0_k$(3); continue $sm; } this.element2__1 = this.tmp0_iterator1__1.next_20eer_k$(); var tmp_1 = this; tmp_1.it3__1 = this.element2__1; this.set_state_rjd8d0_k$(2); suspendResult = this._this__u8e3s4__1.updateScheduleActivated_bfhhht_k$(this.it3__1, false, this.changeTime_1, this); if (suspendResult === get_COROUTINE_SUSPENDED()) { return suspendResult; } continue $sm; case 2: this.set_state_rjd8d0_k$(1); continue $sm; case 3: return Unit_getInstance(); case 4: throw this.get_exception_x0n6w6_k$(); } } catch ($p) { var e = $p; if (this.get_exceptionState_wflpxn_k$() === 4) { throw e; } else { this.set_state_rjd8d0_k$(this.get_exceptionState_wflpxn_k$()); this.set_exception_px07aa_k$(e); } } while (true); }; function get_MIGRATION_105_106() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_105_106; } var MIGRATION_105_106; function get_MIGRATION_106_107() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_106_107; } var MIGRATION_106_107; function get_MIGRATION_107_108() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_107_108; } var MIGRATION_107_108; function get_MIGRATION_108_109() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_108_109; } var MIGRATION_108_109; function get_MIGRATION_120_121() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_120_121; } var MIGRATION_120_121; function get_MIGRATION_121_122() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_121_122; } var MIGRATION_121_122; function get_MIGRATION_122_123() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_122_123; } var MIGRATION_122_123; function get_MIGRATION_123_124() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_123_124; } var MIGRATION_123_124; function get_MIGRATION_124_125() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_124_125; } var MIGRATION_124_125; function get_MIGRATION_125_126() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_125_126; } var MIGRATION_125_126; function get_MIGRATION_126_127() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_126_127; } var MIGRATION_126_127; function get_MIGRATION_127_128() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_127_128; } var MIGRATION_127_128; function get_MIGRATION_128_129() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_128_129; } var MIGRATION_128_129; function get_MIGRATION_129_130() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_129_130; } var MIGRATION_129_130; function get_MIGRATION_130_131() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_130_131; } var MIGRATION_130_131; function get_MIGRATION_132_133() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_132_133; } var MIGRATION_132_133; function get_MIGRATION_133_134() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_133_134; } var MIGRATION_133_134; function get_MIGRATION_134_135() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_134_135; } var MIGRATION_134_135; function get_MIGRATION_135_136() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_135_136; } var MIGRATION_135_136; function get_MIGRATION_136_137() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_136_137; } var MIGRATION_136_137; function get_MIGRATION_137_138() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_137_138; } var MIGRATION_137_138; function get_MIGRATION_138_139() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_138_139; } var MIGRATION_138_139; function get_MIGRATION_139_140() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_139_140; } var MIGRATION_139_140; function get_MIGRATION_140_141() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_140_141; } var MIGRATION_140_141; function get_MIGRATION_141_142() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_141_142; } var MIGRATION_141_142; function get_MIGRATION_142_143() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_142_143; } var MIGRATION_142_143; function get_MIGRATION_143_144() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_143_144; } var MIGRATION_143_144; function get_MIGRATION_144_145_SERVER() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_144_145_SERVER; } var MIGRATION_144_145_SERVER; function get_MIGRATION_144_145_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_144_145_CLIENT; } var MIGRATION_144_145_CLIENT; function get_MIGRATION_145_146() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_145_146; } var MIGRATION_145_146; function get_MIGRATION_146_147() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_146_147; } var MIGRATION_146_147; function get_MIGRATION_147_148() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_147_148; } var MIGRATION_147_148; function get_MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS; } var MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS; function get_MIGRATION_148_149_NO_OFFLINE_ITEMS() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_148_149_NO_OFFLINE_ITEMS; } var MIGRATION_148_149_NO_OFFLINE_ITEMS; function get_MIGRATION_149_150() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_149_150; } var MIGRATION_149_150; function get_MIGRATION_150_151() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_150_151; } var MIGRATION_150_151; function get_MIGRATION_151_152() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_151_152; } var MIGRATION_151_152; function get_MIGRATION_152_153() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_152_153; } var MIGRATION_152_153; function get_MIGRATION_153_154() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_153_154; } var MIGRATION_153_154; function get_MIGRATION_154_155() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_154_155; } var MIGRATION_154_155; function get_MIGRATION_155_156_SERVER() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_155_156_SERVER; } var MIGRATION_155_156_SERVER; function get_MIGRATION_155_156_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_155_156_CLIENT; } var MIGRATION_155_156_CLIENT; function get_MIGRATION_156_157() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_156_157; } var MIGRATION_156_157; function get_MIGRATION_157_158() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_157_158; } var MIGRATION_157_158; function get_MIGRATION_158_159() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_158_159; } var MIGRATION_158_159; function get_MIGRATION_159_160() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_159_160; } var MIGRATION_159_160; function get_MIGRATION_160_161() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_160_161; } var MIGRATION_160_161; function get_MIGRATION_161_162_SERVER() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_161_162_SERVER; } var MIGRATION_161_162_SERVER; function get_MIGRATION_161_162_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_161_162_CLIENT; } var MIGRATION_161_162_CLIENT; function get_MIGRATION_162_163() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_162_163; } var MIGRATION_162_163; function get_MIGRATION_163_164() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_163_164; } var MIGRATION_163_164; function get_MIGRATION_164_165() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_164_165; } var MIGRATION_164_165; function get_MIGRATION_165_166() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_165_166; } var MIGRATION_165_166; function get_MIGRATION_166_167() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_166_167; } var MIGRATION_166_167; function get_MIGRATION_167_168() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_167_168; } var MIGRATION_167_168; function get_MIGRATION_168_169() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_168_169; } var MIGRATION_168_169; function get_MIGRATION_169_170_SERVER() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_169_170_SERVER; } var MIGRATION_169_170_SERVER; function get_MIGRATION_169_170_CLIENT() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_169_170_CLIENT; } var MIGRATION_169_170_CLIENT; function get_MIGRATION_170_171() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_170_171; } var MIGRATION_170_171; function get_MIGRATION_171_172() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_171_172; } var MIGRATION_171_172; function get_MIGRATION_172_194() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_172_194; } var MIGRATION_172_194; function get_MIGRATION_194_195() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_194_195; } var MIGRATION_194_195; function get_MIGRATION_195_196() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_195_196; } var MIGRATION_195_196; function get_MIGRATION_196_197() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_196_197; } var MIGRATION_196_197; function get_MIGRATION_197_198() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_197_198; } var MIGRATION_197_198; function get_MIGRATION_198_199() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_198_199; } var MIGRATION_198_199; function get_MIGRATION_199_200() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_199_200; } var MIGRATION_199_200; function get_MIGRATION_200_201() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_200_201; } var MIGRATION_200_201; function get_MIGRATION_201_202() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_201_202; } var MIGRATION_201_202; function get_MIGRATION_202_203() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_202_203; } var MIGRATION_202_203; function get_MIGRATION_204_205() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_204_205; } var MIGRATION_204_205; function get_MIGRATION_205_206() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_205_206; } var MIGRATION_205_206; function get_MIGRATION_206_207() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_206_207; } var MIGRATION_206_207; function get_MIGRATION_203_204() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return MIGRATION_203_204; } var MIGRATION_203_204; function migrationList() { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf_0([get_MIGRATION_105_106(), get_MIGRATION_106_107(), get_MIGRATION_107_108(), get_MIGRATION_108_109(), get_MIGRATION_120_121(), get_MIGRATION_121_122(), get_MIGRATION_122_123(), get_MIGRATION_123_124(), get_MIGRATION_124_125(), get_MIGRATION_125_126(), get_MIGRATION_126_127(), get_MIGRATION_127_128(), get_MIGRATION_128_129(), get_MIGRATION_129_130(), get_MIGRATION_130_131(), get_MIGRATION_132_133(), get_MIGRATION_133_134(), get_MIGRATION_134_135(), get_MIGRATION_135_136(), get_MIGRATION_136_137(), get_MIGRATION_137_138(), get_MIGRATION_138_139(), get_MIGRATION_139_140(), get_MIGRATION_140_141(), get_MIGRATION_141_142(), get_MIGRATION_142_143(), get_MIGRATION_143_144(), get_MIGRATION_145_146(), get_MIGRATION_146_147(), get_MIGRATION_147_148(), get_MIGRATION_149_150(), get_MIGRATION_150_151(), get_MIGRATION_151_152(), get_MIGRATION_152_153(), get_MIGRATION_153_154(), get_MIGRATION_154_155(), get_MIGRATION_156_157(), get_MIGRATION_157_158(), get_MIGRATION_158_159(), get_MIGRATION_159_160(), get_MIGRATION_160_161(), get_MIGRATION_162_163(), get_MIGRATION_163_164(), get_MIGRATION_164_165(), get_MIGRATION_165_166(), get_MIGRATION_166_167(), get_MIGRATION_167_168(), get_MIGRATION_168_169(), get_MIGRATION_170_171(), get_MIGRATION_171_172(), get_MIGRATION_172_194(), get_MIGRATION_194_195(), get_MIGRATION_195_196(), get_MIGRATION_196_197(), get_MIGRATION_197_198(), get_MIGRATION_198_199(), get_MIGRATION_199_200(), get_MIGRATION_200_201(), get_MIGRATION_201_202(), get_MIGRATION_202_203(), get_MIGRATION_203_204(), get_MIGRATION_204_205(), get_MIGRATION_205_206(), get_MIGRATION_206_207()]); } function MIGRATION_105_106$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.plusAssign' call var element = 'ALTER TABLE CourseAssignmentSubmissionAttachment ADD COLUMN casaFileName TEXT'; stmtList.add_utx5q5_k$(element); return stmtList; } function MIGRATION_106_107$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.apply' call // Inline function 'kotlin.collections.mutableListOf' call var this_0 = ArrayList_init_$Create$(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_106_107..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS SqliteChangeSeqNums'); this_0.add_utx5q5_k$('DROP TABLE IF EXISTS UpdateNotification'); return this_0; } function MIGRATION_107_108$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); // Inline function 'kotlin.collections.plusAssign' call var element = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerComment TEXT'; stmtList.add_utx5q5_k$(element); // Inline function 'kotlin.collections.plusAssign' call var element_0 = 'ALTER TABLE ClazzAssignment ADD COLUMN caPeerReviewerCount INTEGER NOT NULL DEFAULT 0'; stmtList.add_utx5q5_k$(element_0); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { // Inline function 'kotlin.collections.plusAssign' call var element_1 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid INTEGER NOT NULL DEFAULT 0'; stmtList.add_utx5q5_k$(element_1); // Inline function 'kotlin.collections.plusAssign' call var element_2 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid INTEGER NOT NULL DEFAULT 0'; stmtList.add_utx5q5_k$(element_2); // Inline function 'kotlin.collections.plusAssign' call var element_3 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation (`praUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `praMarkerSubmitterUid` INTEGER NOT NULL, `praToMarkerSubmitterUid` INTEGER NOT NULL, `praAssignmentUid` INTEGER NOT NULL, `praActive` INTEGER NOT NULL, `praLct` INTEGER NOT NULL)'; stmtList.add_utx5q5_k$(element_3); // Inline function 'kotlin.collections.plusAssign' call var element_4 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate (`prarPk` INTEGER NOT NULL, `prarVersionId` INTEGER NOT NULL DEFAULT 0, `prarDestination` INTEGER NOT NULL, `prarPending` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`prarPk`, `prarDestination`))'; stmtList.add_utx5q5_k$(element_4); // Inline function 'kotlin.collections.plusAssign' call var element_5 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId` ON PeerReviewerAllocationReplicate (`prarPk`, `prarDestination`, `prarVersionId`)'; stmtList.add_utx5q5_k$(element_5); // Inline function 'kotlin.collections.plusAssign' call var element_6 = 'CREATE INDEX IF NOT EXISTS `index_PeerReviewerAllocationReplicate_prarDestination_prarPending` ON PeerReviewerAllocationReplicate (`prarDestination`, `prarPending`)'; stmtList.add_utx5q5_k$(element_6); // Inline function 'kotlin.collections.plusAssign' call var element_7 = ' CREATE TRIGGER ch_ins_140 AFTER INSERT ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END '; stmtList.add_utx5q5_k$(element_7); // Inline function 'kotlin.collections.plusAssign' call var element_8 = ' CREATE TRIGGER ch_upd_140 AFTER UPDATE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, NEW.praUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = NEW.praUid); END '; stmtList.add_utx5q5_k$(element_8); // Inline function 'kotlin.collections.plusAssign' call var element_9 = ' CREATE TRIGGER ch_del_140 AFTER DELETE ON PeerReviewerAllocation BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 140 AS chTableId, OLD.praUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 140 AND chEntityPk = OLD.praUid); END '; stmtList.add_utx5q5_k$(element_9); // Inline function 'kotlin.collections.plusAssign' call var element_10 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid '; stmtList.add_utx5q5_k$(element_10); // Inline function 'kotlin.collections.plusAssign' call var element_11 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_ins INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) /*psql ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct */; END '; stmtList.add_utx5q5_k$(element_11); } else { // Inline function 'kotlin.collections.plusAssign' call var element_12 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerSubmitterUid BIGINT NOT NULL DEFAULT 0'; stmtList.add_utx5q5_k$(element_12); // Inline function 'kotlin.collections.plusAssign' call var element_13 = 'ALTER TABLE CourseAssignmentMark ADD COLUMN camMarkerPersonUid BIGINT NOT NULL DEFAULT 0'; stmtList.add_utx5q5_k$(element_13); // Inline function 'kotlin.collections.plusAssign' call var element_14 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocation ( praMarkerSubmitterUid BIGINT NOT NULL , praToMarkerSubmitterUid BIGINT NOT NULL , praAssignmentUid BIGINT NOT NULL , praActive BOOL NOT NULL , praLct BIGINT NOT NULL , praUid BIGSERIAL PRIMARY KEY NOT NULL )'; stmtList.add_utx5q5_k$(element_14); // Inline function 'kotlin.collections.plusAssign' call var element_15 = 'CREATE TABLE IF NOT EXISTS PeerReviewerAllocationReplicate ( prarPk BIGINT NOT NULL , prarVersionId BIGINT NOT NULL DEFAULT 0 , prarDestination BIGINT NOT NULL , prarPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (prarPk, prarDestination) )'; stmtList.add_utx5q5_k$(element_15); // Inline function 'kotlin.collections.plusAssign' call var element_16 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarPk_prarDestination_prarVersionId ON PeerReviewerAllocationReplicate (prarPk, prarDestination, prarVersionId)'; stmtList.add_utx5q5_k$(element_16); // Inline function 'kotlin.collections.plusAssign' call var element_17 = 'CREATE INDEX index_PeerReviewerAllocationReplicate_prarDestination_prarPending ON PeerReviewerAllocationReplicate (prarDestination, prarPending)'; stmtList.add_utx5q5_k$(element_17); // Inline function 'kotlin.collections.plusAssign' call var element_18 = ' CREATE OR REPLACE FUNCTION ch_upd_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, NEW.praUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql '; stmtList.add_utx5q5_k$(element_18); // Inline function 'kotlin.collections.plusAssign' call var element_19 = ' CREATE TRIGGER ch_upd_140_trig AFTER UPDATE OR INSERT ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_upd_140_fn(); '; stmtList.add_utx5q5_k$(element_19); // Inline function 'kotlin.collections.plusAssign' call var element_20 = ' CREATE OR REPLACE FUNCTION ch_del_140_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (140, OLD.praUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql '; stmtList.add_utx5q5_k$(element_20); // Inline function 'kotlin.collections.plusAssign' call var element_21 = ' CREATE TRIGGER ch_del_140_trig AFTER DELETE ON PeerReviewerAllocation FOR EACH ROW EXECUTE PROCEDURE ch_del_140_fn(); '; stmtList.add_utx5q5_k$(element_21); // Inline function 'kotlin.collections.plusAssign' call var element_22 = 'CREATE VIEW PeerReviewerAllocation_ReceiveView AS SELECT PeerReviewerAllocation.*, ClazzAssignmentReplicate.* FROM PeerReviewerAllocation LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = PeerReviewerAllocation.praUid '; stmtList.add_utx5q5_k$(element_22); // Inline function 'kotlin.collections.plusAssign' call var element_23 = "CREATE OR REPLACE FUNCTION peerreviewerallocation_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) VALUES (NEW.praUid, NEW.praMarkerSubmitterUid, NEW.praToMarkerSubmitterUid, NEW.praAssignmentUid, NEW.praActive, NEW.praLct) ON CONFLICT (praUid) DO UPDATE SET praMarkerSubmitterUid = EXCLUDED.praMarkerSubmitterUid, praToMarkerSubmitterUid = EXCLUDED.praToMarkerSubmitterUid, praAssignmentUid = EXCLUDED.praAssignmentUid, praActive = EXCLUDED.praActive, praLct = EXCLUDED.praLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"; stmtList.add_utx5q5_k$(element_23); // Inline function 'kotlin.collections.plusAssign' call var element_24 = ' CREATE TRIGGER peerreviewerallocation_remote_insert_trig INSTEAD OF INSERT ON PeerReviewerAllocation_ReceiveView FOR EACH ROW EXECUTE PROCEDURE peerreviewerallocation_remote_insert_fn() '; stmtList.add_utx5q5_k$(element_24); } return stmtList; } function MIGRATION_108_109$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // Inline function 'kotlin.collections.mutableListOf' call var stmtList = ArrayList_init_$Create$(); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { // Inline function 'kotlin.collections.plusAssign' call var element = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid INTEGER NOT NULL , eapPackageId TEXT , eapStartTime INTEGER NOT NULL , eapExpireTime INTEGER NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'; stmtList.add_utx5q5_k$(element); } else { // Inline function 'kotlin.collections.plusAssign' call var element_0 = 'CREATE TABLE IF NOT EXISTS ExternalAppPermission ( eapPersonUid BIGINT NOT NULL , eapPackageId TEXT , eapStartTime BIGINT NOT NULL , eapExpireTime BIGINT NOT NULL , eapAuthToken TEXT , eapAndroidAccountName TEXT , eapUid SERIAL PRIMARY KEY NOT NULL )'; stmtList.add_utx5q5_k$(element_0); } return stmtList; } function MIGRATION_120_121$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_120_121..' call var tmp0_subject = dbType(db); if (tmp0_subject === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StudentResult ( srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srActive INTEGER NOT NULL , srUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else if (tmp0_subject === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StudentResult ( srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srActive BOOL NOT NULL , srUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_121_122$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_121_122..' call var tmp0_subject = dbType(db); if (tmp0_subject === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId INTEGER NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId INTEGER NOT NULL , rsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else if (tmp0_subject === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId BIGINT NOT NULL , orPk1 BIGINT NOT NULL , orPk2 BIGINT NOT NULL , orTableId INTEGER NOT NULL , orUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ReplicationOperation ( repOpRemoteNodeId BIGINT NOT NULL , repOpStatus INTEGER NOT NULL , repOpTableId INTEGER NOT NULL , PRIMARY KEY (repOpRemoteNodeId, repOpTableId) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS PendingRepositorySession ( endpointUrl TEXT , remoteNodeId BIGINT NOT NULL , rsUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_122_123$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('DROP TABLE IF EXISTS CourseDiscussion'); } function MIGRATION_123_124$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_123_124..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS ContentJobItem'); this_0.add_utx5q5_k$('DROP TABLE IF EXISTS ContentJob'); var tmp0_subject = dbType(db); if (tmp0_subject === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress INTEGER NOT NULL , cjTotal INTEGER NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed INTEGER NOT NULL , params TEXT , cjLct INTEGER NOT NULL , cjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid INTEGER NOT NULL , sourceUri TEXT , cjiIsLeaf INTEGER NOT NULL , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContainerUid INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiRecursiveProgress INTEGER NOT NULL , cjiRecursiveTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiServerJobId INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiContainerProcessed INTEGER NOT NULL , cjiLastModified INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); } else if (tmp0_subject === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress BIGINT NOT NULL , cjTotal BIGINT NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed BOOL NOT NULL , params TEXT , cjLct BIGINT NOT NULL , cjUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid BIGINT NOT NULL , sourceUri TEXT , cjiIsLeaf BOOL NOT NULL , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContainerUid BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiRecursiveProgress BIGINT NOT NULL , cjiRecursiveTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded BOOL NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiServerJobId BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiContainerProcessed BOOL NOT NULL , cjiLastModified BIGINT NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_124_125$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_124_125..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS ContentJobItem'); var tmp0_subject = dbType(db); if (tmp0_subject === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid INTEGER NOT NULL , sourceUri TEXT , cjiOriginalFilename TEXT , cjiIsLeaf INTEGER NOT NULL , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiRecursiveProgress INTEGER NOT NULL , cjiRecursiveTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiServerJobId INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiContainerProcessed INTEGER NOT NULL , cjiLastModified INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevUrl TEXT , cevContentType TEXT , cevSitemapUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else if (tmp0_subject === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid BIGINT NOT NULL , sourceUri TEXT , cjiOriginalFilename TEXT , cjiIsLeaf BOOL NOT NULL , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiRecursiveProgress BIGINT NOT NULL , cjiRecursiveTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded BOOL NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiServerJobId BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiContainerProcessed BOOL NOT NULL , cjiLastModified BIGINT NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid BIGINT NOT NULL , cevUrl TEXT , cevContentType TEXT , cevSitemapUrl TEXT , cevSize BIGINT NOT NULL , cevInActive BOOL NOT NULL , cevLastModified BIGINT NOT NULL , cevLct BIGINT NOT NULL , cevUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_125_126$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_126_127$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_126_127..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize INTEGER NOT NULL , tjTransferred INTEGER NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid INTEGER NOT NULL , tjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJob ( tjType INTEGER NOT NULL , tjStatus INTEGER NOT NULL , tjName TEXT , tjUuid TEXT , tjUid SERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJobItem ( tjiTjUid INTEGER NOT NULL , tjTotalSize BIGINT NOT NULL , tjTransferred BIGINT NOT NULL , tjAttemptCount INTEGER NOT NULL , tjiSrc TEXT , tjiDest TEXT , tjiType INTEGER NOT NULL , tjiStatus INTEGER NOT NULL , tjiTableId INTEGER NOT NULL , tjiEntityUid BIGINT NOT NULL , tjiUid SERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_127_128$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_127_128..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('DROP TABLE IF EXISTS PersonPicture'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct INTEGER NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive INTEGER NOT NULL , personPictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('DROP TABLE IF EXISTS PersonPicture'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS PersonPicture ( personPictureLct BIGINT NOT NULL , personPictureUri TEXT , personPictureThumbnailUri TEXT , fileSize INTEGER NOT NULL , personPictureActive BOOL NOT NULL , personPictureUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('ALTER TABLE TransferJobItem ADD COLUMN tjiEntityEtag BIGINT NOT NULL DEFAULT 0'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_128_129$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_128_129..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS CoursePicture'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureThumbnailUri TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_129_130$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_129_130..' call this_0.add_utx5q5_k$('ALTER TABLE TransferJobItem ADD COLUMN tjiLockIdToRelease INTEGER NOT NULL DEFAULT 0'); return this_0.build_1k0s4u_k$(); } function MIGRATION_130_131$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_130_131..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid INTEGER NOT NULL , cljUrl TEXT NOT NULL , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CacheLockJoin ( cljTableId INTEGER NOT NULL , cljEntityUid BIGINT NOT NULL , cljUrl TEXT NOT NULL , cljLockId INTEGER NOT NULL , cljStatus INTEGER NOT NULL , cljType INTEGER NOT NULL , cljId SERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX idx_clj_table_entity_url ON CacheLockJoin (cljTableId, cljEntityUid, cljUrl)'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_132_133$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_132_133..' call this_0.add_utx5q5_k$('DROP TABLE ContentJobItem'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_133_134$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_133_134..' call this_0.add_utx5q5_k$('CREATE INDEX tji_table_entity_etag ON TransferJobItem (tjiTableId, tjiEntityUid, tjiEntityEtag)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_134_135$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_134_135..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId INTEGER NOT NULL , oiClazzUid INTEGER NOT NULL , oiCourseBlockUid INTEGER NOT NULL , oiContentEntryUid INTEGER NOT NULL , oiActive INTEGER NOT NULL , oiLct INTEGER NOT NULL , oiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OfflineItem ( oiNodeId BIGINT NOT NULL , oiClazzUid BIGINT NOT NULL , oiCourseBlockUid BIGINT NOT NULL , oiContentEntryUid BIGINT NOT NULL , oiActive BOOL NOT NULL , oiLct BIGINT NOT NULL , oiUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX offline_item_node_content_entry ON OfflineItem (oiNodeId, oiContentEntryUid)'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_135_136$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_135_136..' call this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjTableId INTEGER NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjCreationType INTEGER NOT NULL DEFAULT 0'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjEntityUid INTEGER NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjEntityUid BIGINT NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjTimeCreated BIGINT NOT NULL DEFAULT 0'); } this_0.add_utx5q5_k$('CREATE INDEX TransferJob_idx_tjTableId_EntityUid ON TransferJob (tjTableId, tjEntityUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_136_137$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_136_137..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid INTEGER NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid INTEGER NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OfflineItemPendingTransferJob ( oiptjOiUid BIGINT NOT NULL , oiptjTableId INTEGER NOT NULL , oiptjEntityUid BIGINT NOT NULL , oiptjUrl TEXT , oiptjType INTEGER NOT NULL , oiptjId SERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_137_138$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_137_138..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevUrl TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevSitemapUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD'); this_0.add_utx5q5_k$('DROP TABLE ContentEntryVersion_OLD'); } else { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion RENAME COLUMN cevSitemapUrl TO cevManifestUrl'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_138_139$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_138_139..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion RENAME to ContentEntryVersion_OLD'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryVersion ( cevContentEntryUid INTEGER NOT NULL , cevOpenUri TEXT , cevContentType TEXT , cevManifestUrl TEXT , cevSize INTEGER NOT NULL , cevInActive INTEGER NOT NULL , cevLastModified INTEGER NOT NULL , cevLct INTEGER NOT NULL , cevUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('INSERT INTO ContentEntryVersion (cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid) SELECT cevContentEntryUid, cevUrl, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevUid FROM ContentEntryVersion_OLD'); this_0.add_utx5q5_k$('DROP TABLE ContentEntryVersion_OLD'); } else { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion RENAME COLUMN cevUrl to cevOpenUri'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_139_140$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_139_140..' call this_0.add_utx5q5_k$('CREATE INDEX transferjob_tjuid ON TransferJobItem (tjiTjUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_140_141$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_140_141..' call if (dbType(db) === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('ALTER TABLE UserSession ALTER COLUMN usLcb TYPE BIGINT'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_141_142$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('DROP TABLE IF EXISTS ClazzAssignmentContentJoin'); } function MIGRATION_142_143$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_142_143..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted INTEGER NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime INTEGER NOT NULL , delItemTimeDeleted INTEGER NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid INTEGER NOT NULL , delItemDeletedByPersonUid INTEGER NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder INTEGER NOT NULL DEFAULT 0 , delItemUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'); } else { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryParentChildJoin ADD COLUMN cepcjDeleted BOOL NOT NULL DEFAULT false'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS DeletedItem ( delItemName TEXT , delItemIconUri TEXT , delItemLastModTime BIGINT NOT NULL , delItemTimeDeleted BIGINT NOT NULL , delItemEntityTable INTEGER NOT NULL , delItemEntityUid BIGINT NOT NULL , delItemDeletedByPersonUid BIGINT NOT NULL , delItemStatus INTEGER NOT NULL , delItemIsFolder BOOL NOT NULL DEFAULT false, delItemUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE INDEX delitem_idx_status_time ON DeletedItem (delItemStatus, delItemTimeDeleted)'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_143_144$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_143_144..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS Message'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageToPersonUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageToPersonUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_144_145_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var insertOutgoingReplicationSql = '\n INSERT INTO OutgoingReplication(destNodeId, orTableId, orPk1, orPk2)\n SELECT UserSession.usClientNodeId AS destNodeId,\n ' + Companion_getInstance_108().get_TABLE_ID_xo2mej_k$() + ' AS orTableId,\n NEW.messageUid AS orPk1,\n 0 as orPk2\n FROM UserSession\n WHERE ( UserSession.usPersonUid = NEW.messageSenderPersonUid \n OR UserSession.usPersonUid = NEW.messageToPersonUid)\n AND UserSession.usStatus = ' + Companion_getInstance_137().get_STATUS_ACTIVE_f4k4s6_k$() + ' \n AND UserSession.usClientNodeId NOT IN \n (SELECT ReplicationOperation.repOpRemoteNodeId\n FROM ReplicationOperation\n WHERE ReplicationOperation.repOpTableId = ' + Companion_getInstance_108().get_TABLE_ID_xo2mej_k$() + ');\n '; // 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.db.ext.MIGRATION_144_145_SERVER..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS message_send_trigger\n AFTER INSERT ON Message\n FOR EACH ROW\n BEGIN\n ' + insertOutgoingReplicationSql + '\n END \n '); } else { this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION message_send_fn() RETURNS TRIGGER AS $$\n BEGIN\n ' + insertOutgoingReplicationSql + '\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER message_send_trig AFTER INSERT \n ON Message\n FOR EACH ROW EXECUTE PROCEDURE message_send_fn()\n '); } return this_0.build_1k0s4u_k$(); } function MIGRATION_144_145_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_145_146$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('CREATE INDEX message_idx_send_to_time ON Message (messageSenderPersonUid, messageToPersonUid, messageTimestamp)'); } function MIGRATION_146_147$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_146_147..' call if (dbType(db) === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('ALTER TABLE CacheLockJoin ALTER COLUMN cljLockId TYPE BIGINT'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_147_148$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_147_148..' call if (dbType(db) === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjOiUid BIGINT NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid BIGINT NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE TransferJob ADD COLUMN tjOiUid INTEGER NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE CacheLockJoin ADD COLUMN cljOiUid INTEGER NOT NULL DEFAULT 0'); } this_0.add_utx5q5_k$('CREATE INDEX idx_clj_offline_item_uid ON CacheLockJoin (cljOiUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('\n CREATE TRIGGER IF NOT EXISTS offline_item_inactive_trig \n AFTER UPDATE ON OfflineItem\n FOR EACH ROW WHEN NEW.oiActive = 0 AND OLD.oiActive = 1\n BEGIN \n UPDATE CacheLockJoin\n SET cljStatus = ' + Companion_getInstance_56().get_STATUS_PENDING_DELETE_jcrikp_k$() + '\n WHERE cljOiUid = NEW.oiUid; \n END\n '); } function MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_149_150$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_149_150..' call var fieldType = dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$() ? 'INTEGER' : 'BIGINT'; this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion ADD COLUMN cevStorageSize ' + fieldType + ' NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE ContentEntryVersion ADD COLUMN cevOriginalSize ' + fieldType + ' NOT NULL DEFAULT 0'); return this_0.build_1k0s4u_k$(); } function MIGRATION_150_151$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE TransferJobItem ADD COLUMN tjiPartialTmpFile TEXT'); } function MIGRATION_151_152$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_151_152..' call if (dbType(db) === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(50, NEW.personPictureUid, NEW.personPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 50\n AND cljEntityUid = OLD.personPictureUid\n AND cljUrl = OLD.personPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_50_personPictureUri_ins_t\n AFTER INSERT ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_50_personPictureUri_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND OLD.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_50_personPictureUri_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureUri IS DISTINCT FROM OLD.personPictureUri AND NEW.personPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_50_personPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(50, NEW.personPictureUid, NEW.personPictureThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_50_personPictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 50\n AND cljEntityUid = OLD.personPictureUid\n AND cljUrl = OLD.personPictureThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_ins_t\n AFTER INSERT ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_50_personPictureThumbnailUr_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND OLD.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_50_personPictureThumbnailUr();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_50_personPictureThumbnailUr_upd_t\n AFTER UPDATE ON PersonPicture\n FOR EACH ROW\n WHEN (NEW.personPictureThumbnailUri IS DISTINCT FROM OLD.personPictureThumbnailUri AND NEW.personPictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_50_personPictureThumbnailUr();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(125, NEW.coursePictureUid, NEW.coursePictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 125\n AND cljEntityUid = OLD.coursePictureUid\n AND cljUrl = OLD.coursePictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_125_coursePictureUri_ins_t\n AFTER INSERT ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_125_coursePictureUri_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND OLD.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_125_coursePictureUri_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureUri IS DISTINCT FROM OLD.coursePictureUri AND NEW.coursePictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_125_coursePictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(125, NEW.coursePictureUid, NEW.coursePictureThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_125_coursePictureThumbnailUr() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 125\n AND cljEntityUid = OLD.coursePictureUid\n AND cljUrl = OLD.coursePictureThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_ins_t\n AFTER INSERT ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_125_coursePictureThumbnailUr_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND OLD.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_125_coursePictureThumbnailUr();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_125_coursePictureThumbnailUr_upd_t\n AFTER UPDATE ON CoursePicture\n FOR EACH ROW\n WHEN (NEW.coursePictureThumbnailUri IS DISTINCT FROM OLD.coursePictureThumbnailUri AND NEW.coursePictureThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_125_coursePictureThumbnailUr();\n '); } return this_0.build_1k0s4u_k$(); } function MIGRATION_152_153$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_152_153..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid INTEGER NOT NULL , erClazzName TEXT , erPersonUid INTEGER NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime INTEGER NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid INTEGER NOT NULL , erDeleted INTEGER NOT NULL , erStatusSetAuth TEXT , erLastModified INTEGER NOT NULL , erUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS EnrolmentRequest ( erClazzUid BIGINT NOT NULL , erClazzName TEXT , erPersonUid BIGINT NOT NULL , erPersonFullname TEXT , erPersonPictureUri TEXT , erPersonUsername TEXT , erRole INTEGER NOT NULL , erRequestTime BIGINT NOT NULL , erStatus INTEGER NOT NULL , erStatusSetByPersonUid BIGINT NOT NULL , erDeleted BOOL NOT NULL , erStatusSetAuth TEXT , erLastModified BIGINT NOT NULL , erUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX idx_enrolmentrequest_by_clazz ON EnrolmentRequest (erClazzUid, erStatus)'); this_0.add_utx5q5_k$('CREATE INDEX idx_enrolmentrequest_by_person ON EnrolmentRequest (erPersonUid, erStatus)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_153_154$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_153_154..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified INTEGER NOT NULL , cpClazzUid INTEGER NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid INTEGER NOT NULL , cpToGroupUid INTEGER NOT NULL , cpPermissionsFlag INTEGER NOT NULL , cpIsDeleted INTEGER NOT NULL , cpUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid INTEGER NOT NULL , spToGroupUid INTEGER NOT NULL , spPermissionsFlag INTEGER NOT NULL , spLastModified INTEGER NOT NULL , spIsDeleted INTEGER NOT NULL , spUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CoursePermission ( cpLastModified BIGINT NOT NULL , cpClazzUid BIGINT NOT NULL , cpToEnrolmentRole INTEGER NOT NULL , cpToPersonUid BIGINT NOT NULL , cpToGroupUid BIGINT NOT NULL , cpPermissionsFlag BIGINT NOT NULL , cpIsDeleted BOOL NOT NULL , cpUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS SystemPermission ( spToPersonUid BIGINT NOT NULL , spToGroupUid BIGINT NOT NULL , spPermissionsFlag BIGINT NOT NULL , spLastModified BIGINT NOT NULL , spIsDeleted BOOL NOT NULL , spUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('ALTER TABLE Clazz ADD COLUMN clazzOwnerPersonUid BIGINT NOT NULL DEFAULT 0'); } this_0.add_utx5q5_k$('CREATE INDEX idx_coursepermission_clazzuid ON CoursePermission (cpClazzUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_systempermission_personuid ON SystemPermission (spToPersonUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_154_155$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_154_155..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid INTEGER NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentSubmission ADD COLUMN casClazzUid BIGINT NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentMark ADD COLUMN camClazzUid BIGINT NOT NULL DEFAULT 0'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_155_156_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_155_156_SERVER..' call var falseVal = dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$() ? '0' : 'false'; this_0.add_utx5q5_k$("\n INSERT INTO SystemPermission(spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted)\n SELECT Person.personUid AS spToPersonUid,\n 0 AS spToGroupUid,\n CASE \n WHEN Person.username = 'admin' THEN " + Companion_getInstance().get_MAX_VALUE_54a9lf_k$().toString() + '\n ELSE 0\n END AS spPermissionsFlag,\n ' + systemTimeInMillis().toString() + ' AS spLastModified,\n ' + falseVal + ' AS spIsDeleted\n FROM Person\n '); this_0.add_utx5q5_k$('\n INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n SELECT ' + systemTimeInMillis().toString() + ' AS cpLastModified,\n Clazz.clazzUid AS cpClazzUid,\n ' + Companion_getInstance_60().get_ROLE_TEACHER_obiog2_k$() + ' AS cpToEnrolmentRole,\n 0 AS cpToPersonUid,\n 0 AS cpToGroupUid,\n ' + Companion_getInstance_94().get_TEACHER_DEFAULT_PERMISSIONS_tozqow_k$().toString() + ' AS cpPermissionsFlag,\n ' + falseVal + ' AS cpIsDeleted\n FROM Clazz \n '); this_0.add_utx5q5_k$('\n INSERT INTO CoursePermission(cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted)\n SELECT ' + systemTimeInMillis().toString() + ' AS cpLastModified,\n Clazz.clazzUid AS cpClazzUid,\n ' + Companion_getInstance_60().get_ROLE_STUDENT_h1t6zf_k$() + ' AS cpToEnrolmentRole,\n 0 AS cpToPersonUid,\n 0 AS cpToGroupUid,\n ' + Companion_getInstance_94().get_STUDENT_DEFAULT_PERMISSIONS_udg1tz_k$().toString() + ' AS cpPermissionsFlag,\n ' + falseVal + ' AS cpIsDeleted\n FROM Clazz \n '); this_0.add_utx5q5_k$("\n UPDATE Clazz\n SET clazzOwnerPersonUid = \n (SELECT Person.personUid\n FROM Person\n WHERE Person.username = 'admin'\n LIMIT 1) \n "); this_0.add_utx5q5_k$('\n UPDATE ScopedGrant\n SET sgPermissions = 0,\n sgLct = ' + systemTimeInMillis().toString() + '\n '); return this_0.build_1k0s4u_k$(); } function MIGRATION_155_156_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_156_157$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_156_157..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS CourseAssignmentSubmissionAttachment'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid INTEGER NOT NULL , casaCaUid INTEGER NOT NULL , casaClazzUid INTEGER NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionFile ( casaSubmissionUid BIGINT NOT NULL , casaCaUid BIGINT NOT NULL , casaClazzUid BIGINT NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_157_158$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_157_158..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaDeleted BOOL NOT NULL DEFAULT FALSE'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_158_159$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_158_159..' call var colType = dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$() ? 'INTEGER' : 'BIGINT'; this_0.add_utx5q5_k$('ALTER TABLE CourseAssignmentSubmissionFile ADD COLUMN casaSubmitterUid ' + colType + ' NOT NULL DEFAULT 0'); return this_0.build_1k0s4u_k$(); } function MIGRATION_159_160$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_159_160..' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS Comments'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid INTEGER NOT NULL , commentsForSubmitterUid INTEGER NOT NULL , commentsFromSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsDeleted INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityUid BIGINT NOT NULL , commentsStatus INTEGER NOT NULL , commentsFromPersonUid BIGINT NOT NULL , commentsForSubmitterUid BIGINT NOT NULL , commentsFromSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsDeleted BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX idx_comments_entity_submitter ON Comments (commentsEntityUid, commentsForSubmitterUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_160_161$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_160_161..' call if (dbType(db) === Companion_getInstance_2().get_POSTGRES_6bxnsu_k$()) { this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost DROP COLUMN discussionPostVisible'); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost DROP COLUMN discussionPostArchive'); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost ADD COLUMN dpDeleted BOOL NOT NULL DEFAULT FALSE'); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost ADD COLUMN discussionPostReplyToPostUid BIGINT NOT NULL DEFAULT 0'); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost ADD COLUMN discussionPostCourseBlockUid BIGINT NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost RENAME to DiscussionPost_OLD'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostReplyToPostUid INTEGER NOT NULL , discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostCourseBlockUid INTEGER NOT NULL , dpDeleted INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('INSERT INTO DiscussionPost (discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid) SELECT discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, 0 AS dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostUid FROM DiscussionPost_OLD'); this_0.add_utx5q5_k$('DROP TABLE DiscussionPost_OLD'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_161_162_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_161_162_SERVER..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Ins_casaUri\n AFTER INSERT ON CourseAssignmentSubmissionFile\n FOR EACH ROW WHEN NEW.casaUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n END\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_New\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND NEW.casaUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n END \n '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Upd_casaUri_Old\nAFTER UPDATE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN NEW.casaUri != OLD.casaUri AND OLD.casaUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\nEND '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseAssignmentSubmissionFile_Del_casaUri\nAFTER DELETE ON CourseAssignmentSubmissionFile\nFOR EACH ROW WHEN OLD.casaUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\nEND '); } else { this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_90_casaUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(90, NEW.casaUid, NEW.casaUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_90_casaUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 90\n AND cljEntityUid = OLD.casaUid\n AND cljUrl = OLD.casaUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_90_casaUri_ins_t\n AFTER INSERT ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_90_casaUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_90_casaUri_upd_t\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND OLD.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_90_casaUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_90_casaUri_upd_t\n AFTER UPDATE ON CourseAssignmentSubmissionFile\n FOR EACH ROW\n WHEN (NEW.casaUri IS DISTINCT FROM OLD.casaUri AND NEW.casaUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_90_casaUri();\n '); } return this_0.build_1k0s4u_k$(); } function MIGRATION_161_162_CLIENT$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_162_163$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ContentEntry ADD COLUMN contentOwnerType INTEGER NOT NULL DEFAULT 0'); } function MIGRATION_163_164$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiCompressionLevel INTEGER NOT NULL DEFAULT 0'); } function MIGRATION_164_165$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_164_165..' call this_0.add_utx5q5_k$('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiError TEXT'); if (dbType(it) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiErrorDismissed BOOL NOT NULL DEFAULT FALSE'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_165_166$lambda(it) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; if (dbType(it) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid INTEGER NOT NULL DEFAULT 0'); } else { tmp = listOf('ALTER TABLE ContentEntryImportJob ADD COLUMN cjiOwnerPersonUid BIGINT NOT NULL DEFAULT 0'); } return tmp; } function MIGRATION_166_167$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('UPDATE ContentEntryImportJob SET cjiStatus = 24 WHERE cjiStatus = 4'); } function MIGRATION_167_168$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid INTEGER PRIMARY KEY NOT NULL , cbpLct INTEGER NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'); } else { tmp = listOf('CREATE TABLE IF NOT EXISTS CourseBlockPicture ( cbpUid BIGINT PRIMARY KEY NOT NULL , cbpLct BIGINT NOT NULL , cbpPictureUri TEXT , cbpThumbnailUri TEXT )'); } return tmp; } function MIGRATION_168_169$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var tmp; if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid INTEGER PRIMARY KEY NOT NULL , cepLct INTEGER NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'); } else { tmp = listOf('CREATE TABLE IF NOT EXISTS ContentEntryPicture2 ( cepUid BIGINT PRIMARY KEY NOT NULL , cepLct BIGINT NOT NULL , cepPictureUri TEXT , cepThumbnailUri TEXT )'); } return tmp; } function MIGRATION_169_170_SERVER$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_169_170_SERVER..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpPictureUri\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n END\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Ins_cbpThumbnailUri\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n END\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_New\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n END \n '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpPictureUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpPictureUri != OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\nEND '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_New\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n END \n '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Upd_cbpThumbnailUri_Old\nAFTER UPDATE ON CourseBlockPicture\nFOR EACH ROW WHEN NEW.cbpThumbnailUri != OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\nEND '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpPictureUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\nEND '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_CourseBlockPicture_Del_cbpThumbnailUri\nAFTER DELETE ON CourseBlockPicture\nFOR EACH ROW WHEN OLD.cbpThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\nEND '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepPictureUri\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n END\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Ins_cepThumbnailUri\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n END\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_New\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n END \n '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepPictureUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepPictureUri != OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\nEND '); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_New\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL\n BEGIN\n INSERT OR REPLACE INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n END \n '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Upd_cepThumbnailUri_Old\nAFTER UPDATE ON ContentEntryPicture2\nFOR EACH ROW WHEN NEW.cepThumbnailUri != OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\nEND '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepPictureUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepPictureUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\nEND '); this_0.add_utx5q5_k$('CREATE TRIGGER IF NOT EXISTS Retain_ContentEntryPicture2_Del_cepThumbnailUri\nAFTER DELETE ON ContentEntryPicture2\nFOR EACH ROW WHEN OLD.cepThumbnailUri IS NOT NULL\nBEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\nEND '); } else { this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_ins_t\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6677_cbpPictureUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND OLD.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_6677_cbpPictureUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpPictureUri IS DISTINCT FROM OLD.cbpPictureUri AND NEW.cbpPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6677_cbpPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6677, NEW.cbpUid, NEW.cbpThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_6677_cbpThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6677\n AND cljEntityUid = OLD.cbpUid\n AND cljUrl = OLD.cbpThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_ins_t\n AFTER INSERT ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6677_cbpThumbnailUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND OLD.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6677_cbpThumbnailUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_6677_cbpThumbnailUri_upd_t\n AFTER UPDATE ON CourseBlockPicture\n FOR EACH ROW\n WHEN (NEW.cbpThumbnailUri IS DISTINCT FROM OLD.cbpThumbnailUri AND NEW.cbpThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6677_cbpThumbnailUri();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepPictureUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepPictureUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepPictureUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6678_cepPictureUri_ins_t\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6678_cepPictureUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND OLD.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_6678_cepPictureUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepPictureUri IS DISTINCT FROM OLD.cepPictureUri AND NEW.cepPictureUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6678_cepPictureUri();\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_c_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n INSERT INTO CacheLockJoin(cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType)\n VALUES(6678, NEW.cepUid, NEW.cepThumbnailUri, 0, 1, 1);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION retain_d_clj_6678_cepThumbnailUri() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE CacheLockJoin \n SET cljStatus = 3\n WHERE cljTableId = 6678\n AND cljEntityUid = OLD.cepUid\n AND cljUrl = OLD.cepThumbnailUri;\n RETURN OLD;\n END $$ LANGUAGE plpgsql \n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_ins_t\n AFTER INSERT ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_c_clj_6678_cepThumbnailUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND OLD.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_c_clj_6678_cepThumbnailUri();\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER retain_d_clj_6678_cepThumbnailUri_upd_t\n AFTER UPDATE ON ContentEntryPicture2\n FOR EACH ROW\n WHEN (NEW.cepThumbnailUri IS DISTINCT FROM OLD.cepThumbnailUri AND NEW.cepThumbnailUri IS NOT NULL)\n EXECUTE FUNCTION retain_d_clj_6678_cepThumbnailUri();\n '); } return this_0.build_1k0s4u_k$(); } function MIGRATION_169_170_CLIENT$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return emptyList(); } function MIGRATION_170_171$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_170_171..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime INTEGER NOT NULL , tjeErrorStr TEXT , tjeDismissed INTEGER NOT NULL , tjeId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS TransferJobError ( tjeTjUid INTEGER NOT NULL , tjeTime BIGINT NOT NULL , tjeErrorStr TEXT , tjeDismissed BOOL NOT NULL , tjeId SERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX idx_transferjoberror_tjetjuid ON TransferJobError (tjeTjUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_171_172$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_171_172..' call this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ADD COLUMN cbSourcedId TEXT'); this_0.add_utx5q5_k$('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_172_194$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_172_194..' call this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ADD COLUMN cbClazzSourcedId TEXT'); this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ADD COLUMN cbCreatedByAppId TEXT'); this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ADD COLUMN cbMetadata TEXT'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE CourseBlock RENAME to CourseBlock_OLD'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints REAl , cbMinPoints REAL , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbClazzSourcedId TEXT , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbSourcedId TEXT , cbMetadata TEXT , cbCreatedByAppId TEXT , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('INSERT INTO CourseBlock (cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid) SELECT cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, cbUid FROM CourseBlock_OLD'); this_0.add_utx5q5_k$('DROP TABLE CourseBlock_OLD'); this_0.add_utx5q5_k$('CREATE INDEX idx_courseblock_cbclazzuid ON CourseBlock (cbClazzUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_courseblock_cbsourcedid ON CourseBlock (cbSourcedId)'); } else { this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints TYPE FLOAT'); this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ALTER COLUMN cbMaxPoints DROP NOT NULL'); this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints TYPE FLOAT'); this_0.add_utx5q5_k$('ALTER TABLE CourseBlock ALTER COLUMN cbMinPoints DROP NOT NULL'); } var bigIntType = dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$() ? 'INTEGER' : 'BIGINT'; // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = numberRangeToNumber(3, 4).iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.add_utx5q5_k$('ALTER TABLE OutgoingReplication ADD COLUMN orPk' + element + ' ' + bigIntType + ' NOT NULL DEFAULT 0'); } if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE OutgoingReplication RENAME to OutgoingReplication_OLD'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS OutgoingReplication ( destNodeId INTEGER NOT NULL , orPk1 INTEGER NOT NULL , orPk2 INTEGER NOT NULL DEFAULT 0 , orPk3 INTEGER NOT NULL DEFAULT 0 , orPk4 INTEGER NOT NULL DEFAULT 0 , orTableId INTEGER NOT NULL , orUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('INSERT INTO OutgoingReplication (destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid) SELECT destNodeId, orPk1, orPk2, orPk3, orPk4, orTableId, orUid FROM OutgoingReplication_OLD'); this_0.add_utx5q5_k$('DROP TABLE OutgoingReplication_OLD'); } else { this_0.add_utx5q5_k$('ALTER TABLE OutgoingReplication ALTER COLUMN orPk2 SET DEFAULT 0'); } // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_0 = listOf_0(['StudentResult', 'StatementEntity', 'AgentEntity', 'VerbLangMapEntry', 'XObjectEntity', 'ContextXObjectStatementJoin', 'VerbEntity']).iterator_jk1svi_k$(); while (tmp0_iterator_0.hasNext_bitz1p_k$()) { var element_0 = tmp0_iterator_0.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS ' + element_0); } if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StudentResult ( srUid INTEGER PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid INTEGER NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid INTEGER NOT NULL , srAssignmentUid INTEGER NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid INTEGER NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid INTEGER NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore REAl NOT NULL , srScoreDate INTEGER NOT NULL , srLastModified INTEGER NOT NULL , srComment TEXT , srAppId TEXT , srDeleted INTEGER NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid INTEGER PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct INTEGER NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid INTEGER NOT NULL , aeeKeyHash INTEGER NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod INTEGER NOT NULL , aeeIsDeleted INTEGER NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid INTEGER NOT NULL , aieHash INTEGER NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod INTEGER NOT NULL , aieIsDeleted INTEGER NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid INTEGER NOT NULL , almeHash INTEGER NOT NULL , almeLangCode TEXT , almeValue TEXT , almeAieHash INTEGER NOT NULL , almeLastMod INTEGER NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid INTEGER NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag INTEGER NOT NULL , actorLct INTEGER NOT NULL , actorObjectType INTEGER NOT NULL , actorUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi INTEGER NOT NULL , scajFromStatementIdLo INTEGER NOT NULL , scajToHash INTEGER NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid INTEGER NOT NULL , scajToActivityId TEXT , scajEtag INTEGER NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi INTEGER NOT NULL , statementIdLo INTEGER NOT NULL , statementActorPersonUid INTEGER NOT NULL , statementVerbUid INTEGER NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 INTEGER NOT NULL , statementObjectUid2 INTEGER NOT NULL , statementActorUid INTEGER NOT NULL , authorityActorUid INTEGER NOT NULL , teamUid INTEGER NOT NULL , resultCompletion INTEGER , resultSuccess INTEGER , resultScoreScaled REAl , resultScoreRaw REAl , resultScoreMin REAl , resultScoreMax REAl , resultDuration INTEGER , resultResponse TEXT , timestamp INTEGER NOT NULL , stored INTEGER NOT NULL , contextRegistrationHi INTEGER NOT NULL , contextRegistrationLo INTEGER NOT NULL , contextPlatform TEXT , contextStatementRefIdHi INTEGER NOT NULL , contextStatementRefIdLo INTEGER NOT NULL , contextInstructorActorUid INTEGER NOT NULL , statementLct INTEGER NOT NULL , extensionProgress INTEGER , completionOrProgress INTEGER NOT NULL , statementContentEntryUid INTEGER NOT NULL , statementLearnerGroupUid INTEGER NOT NULL , statementClazzUid INTEGER NOT NULL , statementCbUid INTEGER NOT NULL , statementDoorNode INTEGER NOT NULL , isSubStatement INTEGER NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi INTEGER NOT NULL , stmtJsonIdLo INTEGER NOT NULL , stmtEtag INTEGER NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid INTEGER PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted INTEGER NOT NULL , verbLct INTEGER NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid INTEGER NOT NULL , vlmeLangHash INTEGER NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified INTEGER NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseAccountUsername TEXT , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StudentResult ( srUid BIGINT PRIMARY KEY NOT NULL , srSourcedId TEXT , srCourseBlockUid BIGINT NOT NULL , srLineItemSourcedId TEXT , srLineItemHref TEXT , srClazzUid BIGINT NOT NULL , srAssignmentUid BIGINT NOT NULL , srStatus INTEGER NOT NULL , srMetaData TEXT , srStudentPersonUid BIGINT NOT NULL , srStudentPersonSourcedId TEXT , srStudentGroupId INTEGER NOT NULL , srMarkerPersonUid BIGINT NOT NULL , srMarkerGroupId INTEGER NOT NULL , srScoreStatus INTEGER NOT NULL , srScore FLOAT NOT NULL , srScoreDate BIGINT NOT NULL , srLastModified BIGINT NOT NULL , srComment TEXT , srAppId TEXT , srDeleted BOOL NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityEntity ( actUid BIGINT PRIMARY KEY NOT NULL , actIdIri TEXT , actType TEXT , actMoreInfo TEXT , actInteractionType INTEGER NOT NULL , actCorrectResponsePatterns TEXT , actLct BIGINT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityExtensionEntity ( aeeActivityUid BIGINT NOT NULL , aeeKeyHash BIGINT NOT NULL , aeeKey TEXT , aeeJson TEXT , aeeLastMod BIGINT NOT NULL , aeeIsDeleted BOOL NOT NULL , PRIMARY KEY (aeeActivityUid, aeeKeyHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityInteractionEntity ( aieActivityUid BIGINT NOT NULL , aieHash BIGINT NOT NULL , aieProp INTEGER NOT NULL , aieId TEXT , aieLastMod BIGINT NOT NULL , aieIsDeleted BOOL NOT NULL , PRIMARY KEY (aieActivityUid, aieHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActivityLangMapEntry ( almeActivityUid BIGINT NOT NULL , almeHash BIGINT NOT NULL , almeLangCode TEXT , almeValue TEXT , almeAieHash BIGINT NOT NULL , almeLastMod BIGINT NOT NULL , PRIMARY KEY (almeActivityUid, almeHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ActorEntity ( actorPersonUid BIGINT NOT NULL , actorName TEXT , actorMbox TEXT , actorMbox_sha1sum TEXT , actorOpenid TEXT , actorAccountName TEXT , actorAccountHomePage TEXT , actorEtag BIGINT NOT NULL , actorLct BIGINT NOT NULL , actorObjectType INTEGER NOT NULL , actorUid BIGSERIAL PRIMARY KEY NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS GroupMemberActorJoin ( gmajGroupActorUid BIGINT NOT NULL , gmajMemberActorUid BIGINT NOT NULL , gmajLastMod BIGINT NOT NULL , PRIMARY KEY (gmajGroupActorUid, gmajMemberActorUid) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementContextActivityJoin ( scajFromStatementIdHi BIGINT NOT NULL , scajFromStatementIdLo BIGINT NOT NULL , scajToHash BIGINT NOT NULL , scajContextType INTEGER NOT NULL , scajToActivityUid BIGINT NOT NULL , scajToActivityId TEXT , scajEtag BIGINT NOT NULL , PRIMARY KEY (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementEntity ( statementIdHi BIGINT NOT NULL , statementIdLo BIGINT NOT NULL , statementActorPersonUid BIGINT NOT NULL , statementVerbUid BIGINT NOT NULL , statementObjectType INTEGER NOT NULL , statementObjectUid1 BIGINT NOT NULL , statementObjectUid2 BIGINT NOT NULL , statementActorUid BIGINT NOT NULL , authorityActorUid BIGINT NOT NULL , teamUid BIGINT NOT NULL , resultCompletion BOOL , resultSuccess BOOL , resultScoreScaled FLOAT , resultScoreRaw FLOAT , resultScoreMin FLOAT , resultScoreMax FLOAT , resultDuration BIGINT , resultResponse TEXT , timestamp BIGINT NOT NULL , stored BIGINT NOT NULL , contextRegistrationHi BIGINT NOT NULL , contextRegistrationLo BIGINT NOT NULL , contextPlatform TEXT , contextStatementRefIdHi BIGINT NOT NULL , contextStatementRefIdLo BIGINT NOT NULL , contextInstructorActorUid BIGINT NOT NULL , statementLct BIGINT NOT NULL , extensionProgress INTEGER , completionOrProgress BOOL NOT NULL , statementContentEntryUid BIGINT NOT NULL , statementLearnerGroupUid BIGINT NOT NULL , statementClazzUid BIGINT NOT NULL , statementCbUid BIGINT NOT NULL , statementDoorNode BIGINT NOT NULL , isSubStatement BOOL NOT NULL , PRIMARY KEY (statementIdHi, statementIdLo) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StatementEntityJson ( stmtJsonIdHi BIGINT NOT NULL , stmtJsonIdLo BIGINT NOT NULL , stmtEtag BIGINT NOT NULL , fullStatement TEXT , PRIMARY KEY (stmtJsonIdHi, stmtJsonIdLo) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS VerbEntity ( verbUid BIGINT PRIMARY KEY NOT NULL , verbUrlId TEXT , verbDeleted BOOL NOT NULL , verbLct BIGINT NOT NULL )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS VerbLangMapEntry ( vlmeVerbUid BIGINT NOT NULL , vlmeLangHash BIGINT NOT NULL , vlmeLangCode TEXT , vlmeEntryString TEXT , vlmeLastModified BIGINT NOT NULL , PRIMARY KEY (vlmeVerbUid, vlmeLangHash) )'); this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseAccountUsername TEXT , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX idx_actorentity_actorobjecttype ON ActorEntity (actorObjectType)'); this_0.add_utx5q5_k$('CREATE INDEX idx_actorentity_uid_personuid ON ActorEntity (actorPersonUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_stmt_actor_person ON StatementEntity (statementActorPersonUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_statement_clazz_person ON StatementEntity (statementClazzUid, statementActorPersonUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_statement_cbuid_actor ON StatementEntity (statementCbUid, statementActorUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_groupmemberactorjoin_gmajgroupactoruid ON GroupMemberActorJoin (gmajGroupActorUid)'); this_0.add_utx5q5_k$('CREATE INDEX idx_groupmemberactorjoin_gmajmemberactoruid ON GroupMemberActorJoin (gmajMemberActorUid)'); this_0.add_utx5q5_k$('DROP INDEX IF EXISTS idx_courseblock_cbsourcedid'); var tmp; if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { tmp = new Pair('INTEGER', '0'); } else { tmp = new Pair('BOOL', 'FALSE'); } var tmp0_container = tmp; var boolColType = tmp0_container.component1_7eebsc_k$(); var boolDefaultVal = tmp0_container.component2_7eebsb_k$(); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost ADD COLUMN discussionPostVisible ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal); this_0.add_utx5q5_k$('ALTER TABLE DiscussionPost ADD COLUMN discussionPostArchive ' + boolColType + ' NOT NULL DEFAULT ' + boolDefaultVal); // Inline function 'kotlin.collections.forEach' call var tmp0_iterator_1 = listOf_0(['NetworkNode', 'AccessToken', 'ScrapeQueueItem', 'ContainerEntry', 'ContainerEntryFile', 'LocallyAvailableContainer', 'ContainerEtag', 'ContainerImportJob', 'Role', 'XLangMapEntry', 'School', 'SchoolMember', 'Chat', 'ChatMember', 'MessageRead', 'StateEntity', 'StateContentEntity', 'Container']).iterator_jk1svi_k$(); while (tmp0_iterator_1.hasNext_bitz1p_k$()) { var element_1 = tmp0_iterator_1.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_172_194...' call this_0.add_utx5q5_k$('DROP TABLE IF EXISTS ' + element_1); } return this_0.build_1k0s4u_k$(); } function MIGRATION_194_195$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_194_195..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT , seCompressed INTEGER NOT NULL , seContent TEXT , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , PRIMARY KEY (seActorUid, seHash) )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT , seCompressed INTEGER NOT NULL , seContent TEXT , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , PRIMARY KEY (seActorUid, seHash) )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_195_196$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_195_196..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid INTEGER NOT NULL , sdcHash INTEGER NOT NULL , sdcActivityUid INTEGER NOT NULL , sdcStateId TEXT , sdcLastMod INTEGER NOT NULL , sdcRegistrationHi INTEGER , sdcRegistrationLo INTEGER , PRIMARY KEY (sdcActorUid, sdcHash) )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateDeleteCommand ( sdcActorUid BIGINT NOT NULL , sdcHash BIGINT NOT NULL , sdcActivityUid BIGINT NOT NULL , sdcStateId TEXT , sdcLastMod BIGINT NOT NULL , sdcRegistrationHi BIGINT , sdcRegistrationLo BIGINT , PRIMARY KEY (sdcActorUid, sdcHash) )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_196_197$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_196_197..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { // Inline function 'kotlin.collections.forEach' call var tmp0_iterator = listOf_0(['INSERT', 'UPDATE']).iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.core.db.ext.MIGRATION_196_197...' call // Inline function 'kotlin.text.substring' call // Inline function 'kotlin.text.lowercase' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$3 = element.toLowerCase().substring(0, 3); this_0.add_utx5q5_k$('\n CREATE TRIGGER IF NOT EXISTS xapi_state_delete_trig_' + tmp$ret$3 + '\n AFTER ' + element + ' ON StateDeleteCommand\n FOR EACH ROW\n BEGIN\n UPDATE StateEntity\n SET seDeleted = 1,\n seLastMod = NEW.sdcLastMod\n WHERE seActorUid = NEW.sdcActorUid\n AND seActivityUid = NEW.sdcActivityUid\n AND seLastMod < NEW.sdcLastMod\n AND ( ( NEW.sdcRegistrationHi IS NULL \n AND seRegistrationHi IS NULL\n AND NEW.sdcRegistrationLo IS NULL\n AND seRegistrationLo IS NULL)\n OR ( seRegistrationHi = NEW.sdcRegistrationHi\n AND seRegistrationLo = NEW.sdcRegistrationLo))\n AND ( NEW.sdcStateId IS NULL\n OR seStateId = NEW.sdcStateId);\n END \n '); } } else { this_0.add_utx5q5_k$('\n CREATE OR REPLACE FUNCTION xapi_state_delete_fn() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE StateEntity\n SET seDeleted = TRUE,\n seLastMod = NEW.sdcLastMod\n WHERE seActorUid = NEW.sdcActorUid\n AND seActivityUid = NEW.sdcActivityUid\n AND seLastMod < NEW.sdcLastMod\n AND ( ( NEW.sdcRegistrationHi IS NULL \n AND seRegistrationHi IS NULL\n AND NEW.sdcRegistrationLo IS NULL\n AND seRegistrationLo IS NULL)\n OR ( seRegistrationHi = NEW.sdcRegistrationHi\n AND seRegistrationLo = NEW.sdcRegistrationLo))\n AND ( NEW.sdcStateId IS NULL\n OR seStateId = NEW.sdcStateId);\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n '); this_0.add_utx5q5_k$('\n CREATE TRIGGER xapi_state_delete_trig\n AFTER INSERT OR UPDATE ON StateDeleteCommand\n FOR EACH ROW\n EXECUTE FUNCTION xapi_state_delete_fn();\n '); } return this_0.build_1k0s4u_k$(); } function MIGRATION_197_198$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_197_198..' call this_0.add_utx5q5_k$('DROP TABLE XapiSessionEntity'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseAccountUsername TEXT , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseAccountUsername TEXT , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_198_199$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_198_199..' call this_0.add_utx5q5_k$('DROP TABLE StateEntity'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid INTEGER NOT NULL , seHash INTEGER NOT NULL , seActivityUid INTEGER NOT NULL , seStateId TEXT NOT NULL , seLastMod INTEGER NOT NULL , seTimeStored INTEGER NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted INTEGER NOT NULL , seRegistrationHi INTEGER , seRegistrationLo INTEGER , seH5PPreloaded INTEGER NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS StateEntity ( seActorUid BIGINT NOT NULL , seHash BIGINT NOT NULL , seActivityUid BIGINT NOT NULL , seStateId TEXT NOT NULL , seLastMod BIGINT NOT NULL , seTimeStored BIGINT NOT NULL , seContentType TEXT NOT NULL , seCompressed INTEGER NOT NULL , seContent TEXT NOT NULL , seDeleted BOOL NOT NULL , seRegistrationHi BIGINT , seRegistrationLo BIGINT , seH5PPreloaded BOOL NOT NULL , seH5PSubContentId TEXT , PRIMARY KEY (seActorUid, seHash) )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_199_200$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_199_200..' call this_0.add_utx5q5_k$('DROP TABLE XapiSessionEntity'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod INTEGER NOT NULL , xseRegistrationHi INTEGER NOT NULL , xseRegistrationLo INTEGER NOT NULL , xseUsUid INTEGER NOT NULL , xseAccountPersonUid INTEGER NOT NULL , xseActorUid INTEGER NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid INTEGER NOT NULL , xseCbUid INTEGER NOT NULL , xseContentEntryUid INTEGER NOT NULL , xseRootActivityId TEXT NOT NULL , xseRootActivityUid INTEGER NOT NULL , xseStartTime INTEGER NOT NULL , xseExpireTime INTEGER NOT NULL , xseAuth TEXT , xseCompleted INTEGER NOT NULL DEFAULT 0 , knownActorUidToPersonUids TEXT NOT NULL , xseUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS XapiSessionEntity ( xseLastMod BIGINT NOT NULL , xseRegistrationHi BIGINT NOT NULL , xseRegistrationLo BIGINT NOT NULL , xseUsUid BIGINT NOT NULL , xseAccountPersonUid BIGINT NOT NULL , xseActorUid BIGINT NOT NULL , xseAccountUsername TEXT NOT NULL , xseClazzUid BIGINT NOT NULL , xseCbUid BIGINT NOT NULL , xseContentEntryUid BIGINT NOT NULL , xseRootActivityId TEXT NOT NULL , xseRootActivityUid BIGINT NOT NULL , xseStartTime BIGINT NOT NULL , xseExpireTime BIGINT NOT NULL , xseAuth TEXT , xseCompleted BOOL NOT NULL DEFAULT false, knownActorUidToPersonUids TEXT NOT NULL , xseUid BIGSERIAL PRIMARY KEY NOT NULL )'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_200_201$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_200_201..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid INTEGER NOT NULL DEFAULT 0'); } else { this_0.add_utx5q5_k$('ALTER TABLE XapiSessionEntity ADD COLUMN xseContentEntryVersionUid BIGINT NOT NULL DEFAULT 0'); } return this_0.build_1k0s4u_k$(); } function MIGRATION_201_202$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_201_202..' call this_0.add_utx5q5_k$('DROP TABLE ContentEntryImportJob'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContentEntryVersion INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed INTEGER NOT NULL , cjiOwnerPersonUid INTEGER NOT NULL , cjiParams TEXT , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ContentEntryImportJob ( sourceUri TEXT , cjiOriginalFilename TEXT , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContentEntryVersion BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiCompressionLevel INTEGER NOT NULL DEFAULT 3 , cjiError TEXT , cjiErrorDismissed BOOL NOT NULL , cjiOwnerPersonUid BIGINT NOT NULL , cjiParams TEXT , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX index_ContentEntryImportJob_cjiContentEntryUid_cjiFinishTime ON ContentEntryImportJob (cjiContentEntryUid, cjiFinishTime)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_202_203$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_202_203..' call this_0.add_utx5q5_k$('ALTER TABLE Report RENAME TO Report_OLD'); if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('\n CREATE TABLE IF NOT EXISTS Report (\n reportTitle TEXT,\n reportOptions TEXT,\n reportIsTemplate INTEGER NOT NULL,\n reportLastModTime INTEGER NOT NULL,\n reportUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL\n )\n '); } else { this_0.add_utx5q5_k$('\n CREATE TABLE IF NOT EXISTS Report (\n reportTitle TEXT,\n reportOptions TEXT,\n reportIsTemplate BIGINT NOT NULL,\n reportLastModTime BIGINT NOT NULL,\n reportUid BIGSERIAL PRIMARY KEY NOT NULL\n )\n '); } this_0.add_utx5q5_k$('\n INSERT INTO Report (reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportUid)\n SELECT reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportUid FROM Report_OLD\n '); this_0.add_utx5q5_k$('DROP TABLE Report_OLD'); return this_0.build_1k0s4u_k$(); } function MIGRATION_204_205$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); // 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.db.ext.MIGRATION_204_205..' call if (dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$()) { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid INTEGER NOT NULL , rqrLastModified INTEGER NOT NULL , rqrLastValidated INTEGER NOT NULL , rqrReportSeriesUid INTEGER NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis REAl NOT NULL , rqrSubgroup TEXT NOT NULL , rqrUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )'); } else { this_0.add_utx5q5_k$('CREATE TABLE IF NOT EXISTS ReportQueryResult ( rqrReportUid BIGINT NOT NULL , rqrLastModified BIGINT NOT NULL , rqrLastValidated BIGINT NOT NULL , rqrReportSeriesUid BIGINT NOT NULL , rqrXAxis TEXT NOT NULL , rqrYAxis DOUBLE PRECISION NOT NULL , rqrSubgroup TEXT NOT NULL , rqrUid BIGSERIAL PRIMARY KEY NOT NULL )'); } this_0.add_utx5q5_k$('CREATE INDEX idx_reportqueryresult_rqrreportuid ON ReportQueryResult (rqrReportUid)'); return this_0.build_1k0s4u_k$(); } function MIGRATION_205_206$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); var bigIntType = dbType(db) === Companion_getInstance_2().get_SQLITE_3yc5jp_k$() ? 'INTEGER' : 'BIGINT'; return listOf('ALTER TABLE Report ADD COLUMN reportOwnerPersonUid ' + bigIntType + ' NOT NULL DEFAULT 0'); } function MIGRATION_206_207$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf_0(["ALTER TABLE ReportQueryResult ADD rqrTimeZone TEXT NOT NULL DEFAULT ''", 'DROP INDEX IF EXISTS idx_reportqueryresult_rqrreportuid', 'CREATE INDEX idx_reportqueryresult_rqrreportuid_rqrtimezone ON ReportQueryResult (rqrReportUid, rqrTimeZone)']); } function MIGRATION_203_204$lambda(db) { _init_properties_UmAppDatabaseMigrations_kt__v2rrqh(); return listOf('ALTER TABLE ActivityLangMapEntry ADD COLUMN almePropName TEXT'); } var properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz; function _init_properties_UmAppDatabaseMigrations_kt__v2rrqh() { if (!properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz) { properties_initialized_UmAppDatabaseMigrations_kt_wz5hlz = true; MIGRATION_105_106 = new DoorMigrationStatementList(105, 106, MIGRATION_105_106$lambda); MIGRATION_106_107 = new DoorMigrationStatementList(106, 107, MIGRATION_106_107$lambda); MIGRATION_107_108 = new DoorMigrationStatementList(107, 108, MIGRATION_107_108$lambda); MIGRATION_108_109 = new DoorMigrationStatementList(108, 109, MIGRATION_108_109$lambda); MIGRATION_120_121 = new DoorMigrationStatementList(120, 121, MIGRATION_120_121$lambda); MIGRATION_121_122 = new DoorMigrationStatementList(121, 122, MIGRATION_121_122$lambda); MIGRATION_122_123 = new DoorMigrationStatementList(122, 123, MIGRATION_122_123$lambda); MIGRATION_123_124 = new DoorMigrationStatementList(123, 124, MIGRATION_123_124$lambda); MIGRATION_124_125 = new DoorMigrationStatementList(124, 125, MIGRATION_124_125$lambda); MIGRATION_125_126 = new DoorMigrationStatementList(125, 126, MIGRATION_125_126$lambda); MIGRATION_126_127 = new DoorMigrationStatementList(126, 127, MIGRATION_126_127$lambda); MIGRATION_127_128 = new DoorMigrationStatementList(127, 128, MIGRATION_127_128$lambda); MIGRATION_128_129 = new DoorMigrationStatementList(128, 129, MIGRATION_128_129$lambda); MIGRATION_129_130 = new DoorMigrationStatementList(129, 130, MIGRATION_129_130$lambda); MIGRATION_130_131 = new DoorMigrationStatementList(130, 131, MIGRATION_130_131$lambda); MIGRATION_132_133 = new DoorMigrationStatementList(132, 133, MIGRATION_132_133$lambda); MIGRATION_133_134 = new DoorMigrationStatementList(133, 134, MIGRATION_133_134$lambda); MIGRATION_134_135 = new DoorMigrationStatementList(134, 135, MIGRATION_134_135$lambda); MIGRATION_135_136 = new DoorMigrationStatementList(135, 136, MIGRATION_135_136$lambda); MIGRATION_136_137 = new DoorMigrationStatementList(136, 137, MIGRATION_136_137$lambda); MIGRATION_137_138 = new DoorMigrationStatementList(137, 138, MIGRATION_137_138$lambda); MIGRATION_138_139 = new DoorMigrationStatementList(138, 139, MIGRATION_138_139$lambda); MIGRATION_139_140 = new DoorMigrationStatementList(139, 140, MIGRATION_139_140$lambda); MIGRATION_140_141 = new DoorMigrationStatementList(140, 141, MIGRATION_140_141$lambda); MIGRATION_141_142 = new DoorMigrationStatementList(141, 142, MIGRATION_141_142$lambda); MIGRATION_142_143 = new DoorMigrationStatementList(142, 143, MIGRATION_142_143$lambda); MIGRATION_143_144 = new DoorMigrationStatementList(143, 144, MIGRATION_143_144$lambda); MIGRATION_144_145_SERVER = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_SERVER$lambda); MIGRATION_144_145_CLIENT = new DoorMigrationStatementList(144, 145, MIGRATION_144_145_CLIENT$lambda); MIGRATION_145_146 = new DoorMigrationStatementList(145, 146, MIGRATION_145_146$lambda); MIGRATION_146_147 = new DoorMigrationStatementList(146, 147, MIGRATION_146_147$lambda); MIGRATION_147_148 = new DoorMigrationStatementList(147, 148, MIGRATION_147_148$lambda); MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_CLIENT_WITH_OFFLINE_ITEMS$lambda); MIGRATION_148_149_NO_OFFLINE_ITEMS = new DoorMigrationStatementList(148, 149, MIGRATION_148_149_NO_OFFLINE_ITEMS$lambda); MIGRATION_149_150 = new DoorMigrationStatementList(149, 150, MIGRATION_149_150$lambda); MIGRATION_150_151 = new DoorMigrationStatementList(150, 151, MIGRATION_150_151$lambda); MIGRATION_151_152 = new DoorMigrationStatementList(151, 152, MIGRATION_151_152$lambda); MIGRATION_152_153 = new DoorMigrationStatementList(152, 153, MIGRATION_152_153$lambda); MIGRATION_153_154 = new DoorMigrationStatementList(153, 154, MIGRATION_153_154$lambda); MIGRATION_154_155 = new DoorMigrationStatementList(154, 155, MIGRATION_154_155$lambda); MIGRATION_155_156_SERVER = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_SERVER$lambda); MIGRATION_155_156_CLIENT = new DoorMigrationStatementList(155, 156, MIGRATION_155_156_CLIENT$lambda); MIGRATION_156_157 = new DoorMigrationStatementList(156, 157, MIGRATION_156_157$lambda); MIGRATION_157_158 = new DoorMigrationStatementList(157, 158, MIGRATION_157_158$lambda); MIGRATION_158_159 = new DoorMigrationStatementList(158, 159, MIGRATION_158_159$lambda); MIGRATION_159_160 = new DoorMigrationStatementList(159, 160, MIGRATION_159_160$lambda); MIGRATION_160_161 = new DoorMigrationStatementList(160, 161, MIGRATION_160_161$lambda); MIGRATION_161_162_SERVER = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_SERVER$lambda); MIGRATION_161_162_CLIENT = new DoorMigrationStatementList(161, 162, MIGRATION_161_162_CLIENT$lambda); MIGRATION_162_163 = new DoorMigrationStatementList(162, 163, MIGRATION_162_163$lambda); MIGRATION_163_164 = new DoorMigrationStatementList(163, 164, MIGRATION_163_164$lambda); MIGRATION_164_165 = new DoorMigrationStatementList(164, 165, MIGRATION_164_165$lambda); MIGRATION_165_166 = new DoorMigrationStatementList(165, 166, MIGRATION_165_166$lambda); MIGRATION_166_167 = new DoorMigrationStatementList(166, 167, MIGRATION_166_167$lambda); MIGRATION_167_168 = new DoorMigrationStatementList(167, 168, MIGRATION_167_168$lambda); MIGRATION_168_169 = new DoorMigrationStatementList(168, 169, MIGRATION_168_169$lambda); MIGRATION_169_170_SERVER = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_SERVER$lambda); MIGRATION_169_170_CLIENT = new DoorMigrationStatementList(169, 170, MIGRATION_169_170_CLIENT$lambda); MIGRATION_170_171 = new DoorMigrationStatementList(170, 171, MIGRATION_170_171$lambda); MIGRATION_171_172 = new DoorMigrationStatementList(171, 172, MIGRATION_171_172$lambda); MIGRATION_172_194 = new DoorMigrationStatementList(172, 194, MIGRATION_172_194$lambda); MIGRATION_194_195 = new DoorMigrationStatementList(194, 195, MIGRATION_194_195$lambda); MIGRATION_195_196 = new DoorMigrationStatementList(195, 196, MIGRATION_195_196$lambda); MIGRATION_196_197 = new DoorMigrationStatementList(196, 197, MIGRATION_196_197$lambda); MIGRATION_197_198 = new DoorMigrationStatementList(197, 198, MIGRATION_197_198$lambda); MIGRATION_198_199 = new DoorMigrationStatementList(198, 199, MIGRATION_198_199$lambda); MIGRATION_199_200 = new DoorMigrationStatementList(199, 200, MIGRATION_199_200$lambda); MIGRATION_200_201 = new DoorMigrationStatementList(200, 201, MIGRATION_200_201$lambda); MIGRATION_201_202 = new DoorMigrationStatementList(201, 202, MIGRATION_201_202$lambda); MIGRATION_202_203 = new DoorMigrationStatementList(202, 203, MIGRATION_202_203$lambda); MIGRATION_204_205 = new DoorMigrationStatementList(204, 205, MIGRATION_204_205$lambda); MIGRATION_205_206 = new DoorMigrationStatementList(205, 206, MIGRATION_205_206$lambda); MIGRATION_206_207 = new DoorMigrationStatementList(206, 207, MIGRATION_206_207$lambda); MIGRATION_203_204 = new DoorMigrationStatementList(203, 204, MIGRATION_203_204$lambda); } } function ActorUidEtagAndLastMod(actorUid, actorEtag, actorLct) { actorUid = actorUid === VOID ? new Long(0, 0) : actorUid; actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag; actorLct = actorLct === VOID ? new Long(0, 0) : actorLct; this.actorUid_1 = actorUid; this.actorEtag_1 = actorEtag; this.actorLct_1 = actorLct; } protoOf(ActorUidEtagAndLastMod).set_actorUid_wjpps6_k$ = function (_set____db54di) { this.actorUid_1 = _set____db54di; }; protoOf(ActorUidEtagAndLastMod).get_actorUid_bxgzj8_k$ = function () { return this.actorUid_1; }; protoOf(ActorUidEtagAndLastMod).set_actorEtag_jhzarz_k$ = function (_set____db54di) { this.actorEtag_1 = _set____db54di; }; protoOf(ActorUidEtagAndLastMod).get_actorEtag_ensc1t_k$ = function () { return this.actorEtag_1; }; protoOf(ActorUidEtagAndLastMod).set_actorLct_u43k87_k$ = function (_set____db54di) { this.actorLct_1 = _set____db54di; }; protoOf(ActorUidEtagAndLastMod).get_actorLct_bxgsq9_k$ = function () { return this.actorLct_1; }; protoOf(ActorUidEtagAndLastMod).component1_7eebsc_k$ = function () { return this.actorUid_1; }; protoOf(ActorUidEtagAndLastMod).component2_7eebsb_k$ = function () { return this.actorEtag_1; }; protoOf(ActorUidEtagAndLastMod).component3_7eebsa_k$ = function () { return this.actorLct_1; }; protoOf(ActorUidEtagAndLastMod).copy_irvfc7_k$ = function (actorUid, actorEtag, actorLct) { return new ActorUidEtagAndLastMod(actorUid, actorEtag, actorLct); }; protoOf(ActorUidEtagAndLastMod).copy$default_9bdurl_k$ = function (actorUid, actorEtag, actorLct, $super) { actorUid = actorUid === VOID ? this.actorUid_1 : actorUid; actorEtag = actorEtag === VOID ? this.actorEtag_1 : actorEtag; actorLct = actorLct === VOID ? this.actorLct_1 : actorLct; return $super === VOID ? this.copy_irvfc7_k$(actorUid, actorEtag, actorLct) : $super.copy_irvfc7_k$.call(this, actorUid, actorEtag, actorLct); }; protoOf(ActorUidEtagAndLastMod).toString = function () { return 'ActorUidEtagAndLastMod(actorUid=' + this.actorUid_1.toString() + ', actorEtag=' + this.actorEtag_1.toString() + ', actorLct=' + this.actorLct_1.toString() + ')'; }; protoOf(ActorUidEtagAndLastMod).hashCode = function () { var result = this.actorUid_1.hashCode(); result = imul(result, 31) + this.actorEtag_1.hashCode() | 0; result = imul(result, 31) + this.actorLct_1.hashCode() | 0; return result; }; protoOf(ActorUidEtagAndLastMod).equals = function (other) { if (this === other) return true; if (!(other instanceof ActorUidEtagAndLastMod)) return false; var tmp0_other_with_cast = other instanceof ActorUidEtagAndLastMod ? other : THROW_CCE(); if (!this.actorUid_1.equals(tmp0_other_with_cast.actorUid_1)) return false; if (!this.actorEtag_1.equals(tmp0_other_with_cast.actorEtag_1)) return false; if (!this.actorLct_1.equals(tmp0_other_with_cast.actorLct_1)) return false; return true; }; function Companion_0() { Companion_instance_0 = this; } protoOf(Companion_0).serializer_9w0wvi_k$ = function () { return $serializer_getInstance(); }; var Companion_instance_0; function Companion_getInstance_4() { if (Companion_instance_0 == null) new Companion_0(); return Companion_instance_0; } function $serializer() { $serializer_instance = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentPermissionAndActiveUserSubmitterUid', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('canMark', true); tmp0_serialDesc.addElement_5pzumi_k$('canView', true); tmp0_serialDesc.addElement_5pzumi_k$('canModerate', true); tmp0_serialDesc.addElement_5pzumi_k$('activeUserSubmitterUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance()]; }; protoOf($serializer).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = new Long(0, 0); var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer).serialize_pk9kg_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.canMark_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.canMark_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.canView_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.canView_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.canModerate_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.canModerate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.activeUserSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.activeUserSubmitterUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_pk9kg_k$(encoder, value instanceof AssignmentPermissionAndActiveUserSubmitterUid ? value : THROW_CCE()); }; var $serializer_instance; function $serializer_getInstance() { if ($serializer_instance == null) new $serializer(); return $serializer_instance; } function AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance().descriptor_1); } if (0 === (seen1 & 1)) $this.canMark_1 = false; else $this.canMark_1 = canMark; if (0 === (seen1 & 2)) $this.canView_1 = false; else $this.canView_1 = canView; if (0 === (seen1 & 4)) $this.canModerate_1 = false; else $this.canModerate_1 = canModerate; if (0 === (seen1 & 8)) $this.activeUserSubmitterUid_1 = new Long(0, 0); else $this.activeUserSubmitterUid_1 = activeUserSubmitterUid; return $this; } function AssignmentPermissionAndActiveUserSubmitterUid_init_$Create$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker) { return AssignmentPermissionAndActiveUserSubmitterUid_init_$Init$(seen1, canMark, canView, canModerate, activeUserSubmitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentPermissionAndActiveUserSubmitterUid))); } function AssignmentPermissionAndActiveUserSubmitterUid(canMark, canView, canModerate, activeUserSubmitterUid) { Companion_getInstance_4(); canMark = canMark === VOID ? false : canMark; canView = canView === VOID ? false : canView; canModerate = canModerate === VOID ? false : canModerate; activeUserSubmitterUid = activeUserSubmitterUid === VOID ? new Long(0, 0) : activeUserSubmitterUid; this.canMark_1 = canMark; this.canView_1 = canView; this.canModerate_1 = canModerate; this.activeUserSubmitterUid_1 = activeUserSubmitterUid; } protoOf(AssignmentPermissionAndActiveUserSubmitterUid).set_canMark_la8v05_k$ = function (_set____db54di) { this.canMark_1 = _set____db54di; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).get_canMark_acquvo_k$ = function () { return this.canMark_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).set_canView_ysrnkt_k$ = function (_set____db54di) { this.canView_1 = _set____db54di; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).get_canView_acwre4_k$ = function () { return this.canView_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).set_canModerate_fiqm81_k$ = function (_set____db54di) { this.canModerate_1 = _set____db54di; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).get_canModerate_5wl27q_k$ = function () { return this.canModerate_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).set_activeUserSubmitterUid_htx8ev_k$ = function (_set____db54di) { this.activeUserSubmitterUid_1 = _set____db54di; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).get_activeUserSubmitterUid_p45sm9_k$ = function () { return this.activeUserSubmitterUid_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).component1_7eebsc_k$ = function () { return this.canMark_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).component2_7eebsb_k$ = function () { return this.canView_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).component3_7eebsa_k$ = function () { return this.canModerate_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).component4_7eebs9_k$ = function () { return this.activeUserSubmitterUid_1; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).copy_7bk326_k$ = function (canMark, canView, canModerate, activeUserSubmitterUid) { return new AssignmentPermissionAndActiveUserSubmitterUid(canMark, canView, canModerate, activeUserSubmitterUid); }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).copy$default_cnmne3_k$ = function (canMark, canView, canModerate, activeUserSubmitterUid, $super) { canMark = canMark === VOID ? this.canMark_1 : canMark; canView = canView === VOID ? this.canView_1 : canView; canModerate = canModerate === VOID ? this.canModerate_1 : canModerate; activeUserSubmitterUid = activeUserSubmitterUid === VOID ? this.activeUserSubmitterUid_1 : activeUserSubmitterUid; return $super === VOID ? this.copy_7bk326_k$(canMark, canView, canModerate, activeUserSubmitterUid) : $super.copy_7bk326_k$.call(this, canMark, canView, canModerate, activeUserSubmitterUid); }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).toString = function () { return 'AssignmentPermissionAndActiveUserSubmitterUid(canMark=' + this.canMark_1 + ', canView=' + this.canView_1 + ', canModerate=' + this.canModerate_1 + ', activeUserSubmitterUid=' + this.activeUserSubmitterUid_1.toString() + ')'; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).hashCode = function () { var result = getBooleanHashCode(this.canMark_1); result = imul(result, 31) + getBooleanHashCode(this.canView_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.canModerate_1) | 0; result = imul(result, 31) + this.activeUserSubmitterUid_1.hashCode() | 0; return result; }; protoOf(AssignmentPermissionAndActiveUserSubmitterUid).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentPermissionAndActiveUserSubmitterUid)) return false; var tmp0_other_with_cast = other instanceof AssignmentPermissionAndActiveUserSubmitterUid ? other : THROW_CCE(); if (!(this.canMark_1 === tmp0_other_with_cast.canMark_1)) return false; if (!(this.canView_1 === tmp0_other_with_cast.canView_1)) return false; if (!(this.canModerate_1 === tmp0_other_with_cast.canModerate_1)) return false; if (!this.activeUserSubmitterUid_1.equals(tmp0_other_with_cast.activeUserSubmitterUid_1)) return false; return true; }; function Companion_1() { Companion_instance_1 = this; } protoOf(Companion_1).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_0(); }; var Companion_instance_1; function Companion_getInstance_5() { if (Companion_instance_1 == null) new Companion_1(); return Companion_instance_1; } function $serializer_0() { $serializer_instance_0 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.AssignmentSubmitterUidAndName', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('submitterUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_0).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_0).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_0).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return AssignmentSubmitterUidAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_0).serialize_jygc1h_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.submitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.submitterUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_0).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_jygc1h_k$(encoder, value instanceof AssignmentSubmitterUidAndName ? value : THROW_CCE()); }; var $serializer_instance_0; function $serializer_getInstance_0() { if ($serializer_instance_0 == null) new $serializer_0(); return $serializer_instance_0; } function AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_0().descriptor_1); } if (0 === (seen1 & 1)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 2)) $this.submitterUid_1 = new Long(0, 0); else $this.submitterUid_1 = submitterUid; return $this; } function AssignmentSubmitterUidAndName_init_$Create$(seen1, name, submitterUid, serializationConstructorMarker) { return AssignmentSubmitterUidAndName_init_$Init$(seen1, name, submitterUid, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterUidAndName))); } function AssignmentSubmitterUidAndName(name, submitterUid) { Companion_getInstance_5(); name = name === VOID ? null : name; submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; this.name_1 = name; this.submitterUid_1 = submitterUid; } protoOf(AssignmentSubmitterUidAndName).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(AssignmentSubmitterUidAndName).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(AssignmentSubmitterUidAndName).set_submitterUid_5nf92e_k$ = function (_set____db54di) { this.submitterUid_1 = _set____db54di; }; protoOf(AssignmentSubmitterUidAndName).get_submitterUid_tbcwmo_k$ = function () { return this.submitterUid_1; }; protoOf(AssignmentSubmitterUidAndName).component1_7eebsc_k$ = function () { return this.name_1; }; protoOf(AssignmentSubmitterUidAndName).component2_7eebsb_k$ = function () { return this.submitterUid_1; }; protoOf(AssignmentSubmitterUidAndName).copy_h764g_k$ = function (name, submitterUid) { return new AssignmentSubmitterUidAndName(name, submitterUid); }; protoOf(AssignmentSubmitterUidAndName).copy$default_bxq4xy_k$ = function (name, submitterUid, $super) { name = name === VOID ? this.name_1 : name; submitterUid = submitterUid === VOID ? this.submitterUid_1 : submitterUid; return $super === VOID ? this.copy_h764g_k$(name, submitterUid) : $super.copy_h764g_k$.call(this, name, submitterUid); }; protoOf(AssignmentSubmitterUidAndName).toString = function () { return 'AssignmentSubmitterUidAndName(name=' + this.name_1 + ', submitterUid=' + this.submitterUid_1.toString() + ')'; }; protoOf(AssignmentSubmitterUidAndName).hashCode = function () { var result = this.name_1 == null ? 0 : getStringHashCode(this.name_1); result = imul(result, 31) + this.submitterUid_1.hashCode() | 0; return result; }; protoOf(AssignmentSubmitterUidAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterUidAndName)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterUidAndName ? other : THROW_CCE(); if (!(this.name_1 == tmp0_other_with_cast.name_1)) return false; if (!this.submitterUid_1.equals(tmp0_other_with_cast.submitterUid_1)) return false; return true; }; function Companion_2() { Companion_instance_2 = this; this.STATUS_COMPLETED_1 = 1; this.STATUS_IN_PROGRESS_1 = 2; } protoOf(Companion_2).get_STATUS_COMPLETED_qm7947_k$ = function () { return this.STATUS_COMPLETED_1; }; protoOf(Companion_2).get_STATUS_IN_PROGRESS_qau85f_k$ = function () { return this.STATUS_IN_PROGRESS_1; }; protoOf(Companion_2).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_1(); }; var Companion_instance_2; function Companion_getInstance_6() { if (Companion_instance_2 == null) new Companion_2(); return Companion_instance_2; } function $serializer_1() { $serializer_instance_1 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.BlockStatus', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('sPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sCbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('sIsCompleted', true); tmp0_serialDesc.addElement_5pzumi_k$('sIsSuccess', true); tmp0_serialDesc.addElement_5pzumi_k$('sScoreScaled', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_1).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_1).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance())]; }; protoOf($serializer_1).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return BlockStatus_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_1).serialize_uwmpd0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.sPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.sCbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.sCbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sProgress_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, IntSerializer_getInstance(), value.sProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sIsCompleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.sIsCompleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sIsSuccess_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), value.sIsSuccess_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sScoreScaled_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, FloatSerializer_getInstance(), value.sScoreScaled_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_1).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_uwmpd0_k$(encoder, value instanceof BlockStatus ? value : THROW_CCE()); }; var $serializer_instance_1; function $serializer_getInstance_1() { if ($serializer_instance_1 == null) new $serializer_1(); return $serializer_instance_1; } function BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_1().descriptor_1); } if (0 === (seen1 & 1)) $this.sPersonUid_1 = new Long(0, 0); else $this.sPersonUid_1 = sPersonUid; if (0 === (seen1 & 2)) $this.sCbUid_1 = new Long(0, 0); else $this.sCbUid_1 = sCbUid; if (0 === (seen1 & 4)) $this.sProgress_1 = null; else $this.sProgress_1 = sProgress; if (0 === (seen1 & 8)) $this.sIsCompleted_1 = false; else $this.sIsCompleted_1 = sIsCompleted; if (0 === (seen1 & 16)) $this.sIsSuccess_1 = null; else $this.sIsSuccess_1 = sIsSuccess; if (0 === (seen1 & 32)) $this.sScoreScaled_1 = null; else $this.sScoreScaled_1 = sScoreScaled; return $this; } function BlockStatus_init_$Create$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker) { return BlockStatus_init_$Init$(seen1, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, serializationConstructorMarker, objectCreate(protoOf(BlockStatus))); } function BlockStatus(sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled) { Companion_getInstance_6(); sPersonUid = sPersonUid === VOID ? new Long(0, 0) : sPersonUid; sCbUid = sCbUid === VOID ? new Long(0, 0) : sCbUid; sProgress = sProgress === VOID ? null : sProgress; sIsCompleted = sIsCompleted === VOID ? false : sIsCompleted; sIsSuccess = sIsSuccess === VOID ? null : sIsSuccess; sScoreScaled = sScoreScaled === VOID ? null : sScoreScaled; this.sPersonUid_1 = sPersonUid; this.sCbUid_1 = sCbUid; this.sProgress_1 = sProgress; this.sIsCompleted_1 = sIsCompleted; this.sIsSuccess_1 = sIsSuccess; this.sScoreScaled_1 = sScoreScaled; } protoOf(BlockStatus).set_sPersonUid_lssuyv_k$ = function (_set____db54di) { this.sPersonUid_1 = _set____db54di; }; protoOf(BlockStatus).get_sPersonUid_8hhlw1_k$ = function () { return this.sPersonUid_1; }; protoOf(BlockStatus).set_sCbUid_m7svr1_k$ = function (_set____db54di) { this.sCbUid_1 = _set____db54di; }; protoOf(BlockStatus).get_sCbUid_iwh8zr_k$ = function () { return this.sCbUid_1; }; protoOf(BlockStatus).set_sProgress_srgi2g_k$ = function (_set____db54di) { this.sProgress_1 = _set____db54di; }; protoOf(BlockStatus).get_sProgress_z2g3xl_k$ = function () { return this.sProgress_1; }; protoOf(BlockStatus).set_sIsCompleted_5mif8q_k$ = function (_set____db54di) { this.sIsCompleted_1 = _set____db54di; }; protoOf(BlockStatus).get_sIsCompleted_a7icq1_k$ = function () { return this.sIsCompleted_1; }; protoOf(BlockStatus).set_sIsSuccess_bie1v_k$ = function (_set____db54di) { this.sIsSuccess_1 = _set____db54di; }; protoOf(BlockStatus).get_sIsSuccess_oxsibz_k$ = function () { return this.sIsSuccess_1; }; protoOf(BlockStatus).set_sScoreScaled_z3w9sv_k$ = function (_set____db54di) { this.sScoreScaled_1 = _set____db54di; }; protoOf(BlockStatus).get_sScoreScaled_i8xlya_k$ = function () { return this.sScoreScaled_1; }; protoOf(BlockStatus).component1_7eebsc_k$ = function () { return this.sPersonUid_1; }; protoOf(BlockStatus).component2_7eebsb_k$ = function () { return this.sCbUid_1; }; protoOf(BlockStatus).component3_7eebsa_k$ = function () { return this.sProgress_1; }; protoOf(BlockStatus).component4_7eebs9_k$ = function () { return this.sIsCompleted_1; }; protoOf(BlockStatus).component5_7eebs8_k$ = function () { return this.sIsSuccess_1; }; protoOf(BlockStatus).component6_7eebs7_k$ = function () { return this.sScoreScaled_1; }; protoOf(BlockStatus).copy_vyy9ja_k$ = function (sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled) { return new BlockStatus(sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled); }; protoOf(BlockStatus).copy$default_m62ykr_k$ = function (sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled, $super) { sPersonUid = sPersonUid === VOID ? this.sPersonUid_1 : sPersonUid; sCbUid = sCbUid === VOID ? this.sCbUid_1 : sCbUid; sProgress = sProgress === VOID ? this.sProgress_1 : sProgress; sIsCompleted = sIsCompleted === VOID ? this.sIsCompleted_1 : sIsCompleted; sIsSuccess = sIsSuccess === VOID ? this.sIsSuccess_1 : sIsSuccess; sScoreScaled = sScoreScaled === VOID ? this.sScoreScaled_1 : sScoreScaled; return $super === VOID ? this.copy_vyy9ja_k$(sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled) : $super.copy_vyy9ja_k$.call(this, sPersonUid, sCbUid, sProgress, sIsCompleted, sIsSuccess, sScoreScaled); }; protoOf(BlockStatus).toString = function () { return 'BlockStatus(sPersonUid=' + this.sPersonUid_1.toString() + ', sCbUid=' + this.sCbUid_1.toString() + ', sProgress=' + this.sProgress_1 + ', sIsCompleted=' + this.sIsCompleted_1 + ', sIsSuccess=' + this.sIsSuccess_1 + ', sScoreScaled=' + this.sScoreScaled_1 + ')'; }; protoOf(BlockStatus).hashCode = function () { var result = this.sPersonUid_1.hashCode(); result = imul(result, 31) + this.sCbUid_1.hashCode() | 0; result = imul(result, 31) + (this.sProgress_1 == null ? 0 : this.sProgress_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.sIsCompleted_1) | 0; result = imul(result, 31) + (this.sIsSuccess_1 == null ? 0 : getBooleanHashCode(this.sIsSuccess_1)) | 0; result = imul(result, 31) + (this.sScoreScaled_1 == null ? 0 : getNumberHashCode(this.sScoreScaled_1)) | 0; return result; }; protoOf(BlockStatus).equals = function (other) { if (this === other) return true; if (!(other instanceof BlockStatus)) return false; var tmp0_other_with_cast = other instanceof BlockStatus ? other : THROW_CCE(); if (!this.sPersonUid_1.equals(tmp0_other_with_cast.sPersonUid_1)) return false; if (!this.sCbUid_1.equals(tmp0_other_with_cast.sCbUid_1)) return false; if (!(this.sProgress_1 == tmp0_other_with_cast.sProgress_1)) return false; if (!(this.sIsCompleted_1 === tmp0_other_with_cast.sIsCompleted_1)) return false; if (!(this.sIsSuccess_1 == tmp0_other_with_cast.sIsSuccess_1)) return false; if (!equals(this.sScoreScaled_1, tmp0_other_with_cast.sScoreScaled_1)) return false; return true; }; function Companion_3() { Companion_instance_3 = this; } protoOf(Companion_3).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_2(); }; var Companion_instance_3; function Companion_getInstance_7() { if (Companion_instance_3 == null) new Companion_3(); return Companion_instance_3; } function $serializer_2() { $serializer_instance_2 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAndDetailPermissions', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('clazz', true); tmp0_serialDesc.addElement_5pzumi_k$('hasAttendancePermission', true); tmp0_serialDesc.addElement_5pzumi_k$('hasViewMembersPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('hasLearningRecordPermission', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_2).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_2).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_50()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_2).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = false; var tmp6_local2 = false; var tmp7_local3 = false; var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_50(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_50(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzAndDetailPermissions_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_2).serialize_uvn0hd_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.clazz_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_50(), value.clazz_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasAttendancePermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasAttendancePermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.hasViewMembersPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.hasViewMembersPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.hasLearningRecordPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.hasLearningRecordPermission_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_2).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_uvn0hd_k$(encoder, value instanceof ClazzAndDetailPermissions ? value : THROW_CCE()); }; var $serializer_instance_2; function $serializer_getInstance_2() { if ($serializer_instance_2 == null) new $serializer_2(); return $serializer_instance_2; } function ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_2().descriptor_1); } if (0 === (seen1 & 1)) $this.clazz_1 = null; else $this.clazz_1 = clazz; if (0 === (seen1 & 2)) $this.hasAttendancePermission_1 = false; else $this.hasAttendancePermission_1 = hasAttendancePermission; if (0 === (seen1 & 4)) $this.hasViewMembersPermission_1 = false; else $this.hasViewMembersPermission_1 = hasViewMembersPermission; if (0 === (seen1 & 8)) $this.hasLearningRecordPermission_1 = false; else $this.hasLearningRecordPermission_1 = hasLearningRecordPermission; return $this; } function ClazzAndDetailPermissions_init_$Create$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker) { return ClazzAndDetailPermissions_init_$Init$(seen1, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAndDetailPermissions))); } function ClazzAndDetailPermissions(clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission) { Companion_getInstance_7(); clazz = clazz === VOID ? null : clazz; hasAttendancePermission = hasAttendancePermission === VOID ? false : hasAttendancePermission; hasViewMembersPermission = hasViewMembersPermission === VOID ? false : hasViewMembersPermission; hasLearningRecordPermission = hasLearningRecordPermission === VOID ? false : hasLearningRecordPermission; this.clazz_1 = clazz; this.hasAttendancePermission_1 = hasAttendancePermission; this.hasViewMembersPermission_1 = hasViewMembersPermission; this.hasLearningRecordPermission_1 = hasLearningRecordPermission; } protoOf(ClazzAndDetailPermissions).set_clazz_sym4kf_k$ = function (_set____db54di) { this.clazz_1 = _set____db54di; }; protoOf(ClazzAndDetailPermissions).get_clazz_ips3zj_k$ = function () { return this.clazz_1; }; protoOf(ClazzAndDetailPermissions).set_hasAttendancePermission_p2fnk0_k$ = function (_set____db54di) { this.hasAttendancePermission_1 = _set____db54di; }; protoOf(ClazzAndDetailPermissions).get_hasAttendancePermission_2bsodl_k$ = function () { return this.hasAttendancePermission_1; }; protoOf(ClazzAndDetailPermissions).set_hasViewMembersPermission_763s4v_k$ = function (_set____db54di) { this.hasViewMembersPermission_1 = _set____db54di; }; protoOf(ClazzAndDetailPermissions).get_hasViewMembersPermission_dswsum_k$ = function () { return this.hasViewMembersPermission_1; }; protoOf(ClazzAndDetailPermissions).set_hasLearningRecordPermission_ly3xie_k$ = function (_set____db54di) { this.hasLearningRecordPermission_1 = _set____db54di; }; protoOf(ClazzAndDetailPermissions).get_hasLearningRecordPermission_s03z_k$ = function () { return this.hasLearningRecordPermission_1; }; protoOf(ClazzAndDetailPermissions).component1_7eebsc_k$ = function () { return this.clazz_1; }; protoOf(ClazzAndDetailPermissions).component2_7eebsb_k$ = function () { return this.hasAttendancePermission_1; }; protoOf(ClazzAndDetailPermissions).component3_7eebsa_k$ = function () { return this.hasViewMembersPermission_1; }; protoOf(ClazzAndDetailPermissions).component4_7eebs9_k$ = function () { return this.hasLearningRecordPermission_1; }; protoOf(ClazzAndDetailPermissions).copy_k22sp0_k$ = function (clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission) { return new ClazzAndDetailPermissions(clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission); }; protoOf(ClazzAndDetailPermissions).copy$default_tzy6xu_k$ = function (clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission, $super) { clazz = clazz === VOID ? this.clazz_1 : clazz; hasAttendancePermission = hasAttendancePermission === VOID ? this.hasAttendancePermission_1 : hasAttendancePermission; hasViewMembersPermission = hasViewMembersPermission === VOID ? this.hasViewMembersPermission_1 : hasViewMembersPermission; hasLearningRecordPermission = hasLearningRecordPermission === VOID ? this.hasLearningRecordPermission_1 : hasLearningRecordPermission; return $super === VOID ? this.copy_k22sp0_k$(clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission) : $super.copy_k22sp0_k$.call(this, clazz, hasAttendancePermission, hasViewMembersPermission, hasLearningRecordPermission); }; protoOf(ClazzAndDetailPermissions).toString = function () { return 'ClazzAndDetailPermissions(clazz=' + this.clazz_1 + ', hasAttendancePermission=' + this.hasAttendancePermission_1 + ', hasViewMembersPermission=' + this.hasViewMembersPermission_1 + ', hasLearningRecordPermission=' + this.hasLearningRecordPermission_1 + ')'; }; protoOf(ClazzAndDetailPermissions).hashCode = function () { var result = this.clazz_1 == null ? 0 : this.clazz_1.hashCode(); result = imul(result, 31) + getBooleanHashCode(this.hasAttendancePermission_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hasViewMembersPermission_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.hasLearningRecordPermission_1) | 0; return result; }; protoOf(ClazzAndDetailPermissions).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAndDetailPermissions)) return false; var tmp0_other_with_cast = other instanceof ClazzAndDetailPermissions ? other : THROW_CCE(); if (!equals(this.clazz_1, tmp0_other_with_cast.clazz_1)) return false; if (!(this.hasAttendancePermission_1 === tmp0_other_with_cast.hasAttendancePermission_1)) return false; if (!(this.hasViewMembersPermission_1 === tmp0_other_with_cast.hasViewMembersPermission_1)) return false; if (!(this.hasLearningRecordPermission_1 === tmp0_other_with_cast.hasLearningRecordPermission_1)) return false; return true; }; function ClazzAndDisplayDetails(clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent) { clazz = clazz === VOID ? null : clazz; terminology = terminology === VOID ? null : terminology; coursePicture = coursePicture === VOID ? null : coursePicture; numStudents = numStudents === VOID ? 0 : numStudents; numTeachers = numTeachers === VOID ? 0 : numTeachers; activeUserIsStudent = activeUserIsStudent === VOID ? false : activeUserIsStudent; this.clazz_1 = clazz; this.terminology_1 = terminology; this.coursePicture_1 = coursePicture; this.numStudents_1 = numStudents; this.numTeachers_1 = numTeachers; this.activeUserIsStudent_1 = activeUserIsStudent; } protoOf(ClazzAndDisplayDetails).set_clazz_sym4kf_k$ = function (_set____db54di) { this.clazz_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_clazz_ips3zj_k$ = function () { return this.clazz_1; }; protoOf(ClazzAndDisplayDetails).set_terminology_opn48q_k$ = function (_set____db54di) { this.terminology_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_terminology_hmih12_k$ = function () { return this.terminology_1; }; protoOf(ClazzAndDisplayDetails).set_coursePicture_h9sgol_k$ = function (_set____db54di) { this.coursePicture_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_coursePicture_gcf86y_k$ = function () { return this.coursePicture_1; }; protoOf(ClazzAndDisplayDetails).set_numStudents_sx9y7t_k$ = function (_set____db54di) { this.numStudents_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_numStudents_si1t5h_k$ = function () { return this.numStudents_1; }; protoOf(ClazzAndDisplayDetails).set_numTeachers_35yqj6_k$ = function (_set____db54di) { this.numTeachers_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_numTeachers_u9gdf6_k$ = function () { return this.numTeachers_1; }; protoOf(ClazzAndDisplayDetails).set_activeUserIsStudent_fjf5f2_k$ = function (_set____db54di) { this.activeUserIsStudent_1 = _set____db54di; }; protoOf(ClazzAndDisplayDetails).get_activeUserIsStudent_elkqxj_k$ = function () { return this.activeUserIsStudent_1; }; protoOf(ClazzAndDisplayDetails).component1_7eebsc_k$ = function () { return this.clazz_1; }; protoOf(ClazzAndDisplayDetails).component2_7eebsb_k$ = function () { return this.terminology_1; }; protoOf(ClazzAndDisplayDetails).component3_7eebsa_k$ = function () { return this.coursePicture_1; }; protoOf(ClazzAndDisplayDetails).component4_7eebs9_k$ = function () { return this.numStudents_1; }; protoOf(ClazzAndDisplayDetails).component5_7eebs8_k$ = function () { return this.numTeachers_1; }; protoOf(ClazzAndDisplayDetails).component6_7eebs7_k$ = function () { return this.activeUserIsStudent_1; }; protoOf(ClazzAndDisplayDetails).copy_qm98zb_k$ = function (clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent) { return new ClazzAndDisplayDetails(clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent); }; protoOf(ClazzAndDisplayDetails).copy$default_ps1vkm_k$ = function (clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent, $super) { clazz = clazz === VOID ? this.clazz_1 : clazz; terminology = terminology === VOID ? this.terminology_1 : terminology; coursePicture = coursePicture === VOID ? this.coursePicture_1 : coursePicture; numStudents = numStudents === VOID ? this.numStudents_1 : numStudents; numTeachers = numTeachers === VOID ? this.numTeachers_1 : numTeachers; activeUserIsStudent = activeUserIsStudent === VOID ? this.activeUserIsStudent_1 : activeUserIsStudent; return $super === VOID ? this.copy_qm98zb_k$(clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent) : $super.copy_qm98zb_k$.call(this, clazz, terminology, coursePicture, numStudents, numTeachers, activeUserIsStudent); }; protoOf(ClazzAndDisplayDetails).toString = function () { return 'ClazzAndDisplayDetails(clazz=' + this.clazz_1 + ', terminology=' + this.terminology_1 + ', coursePicture=' + this.coursePicture_1 + ', numStudents=' + this.numStudents_1 + ', numTeachers=' + this.numTeachers_1 + ', activeUserIsStudent=' + this.activeUserIsStudent_1 + ')'; }; protoOf(ClazzAndDisplayDetails).hashCode = function () { var result = this.clazz_1 == null ? 0 : this.clazz_1.hashCode(); result = imul(result, 31) + (this.terminology_1 == null ? 0 : hashCode(this.terminology_1)) | 0; result = imul(result, 31) + (this.coursePicture_1 == null ? 0 : this.coursePicture_1.hashCode()) | 0; result = imul(result, 31) + this.numStudents_1 | 0; result = imul(result, 31) + this.numTeachers_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.activeUserIsStudent_1) | 0; return result; }; protoOf(ClazzAndDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAndDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof ClazzAndDisplayDetails ? other : THROW_CCE(); if (!equals(this.clazz_1, tmp0_other_with_cast.clazz_1)) return false; if (!equals(this.terminology_1, tmp0_other_with_cast.terminology_1)) return false; if (!equals(this.coursePicture_1, tmp0_other_with_cast.coursePicture_1)) return false; if (!(this.numStudents_1 === tmp0_other_with_cast.numStudents_1)) return false; if (!(this.numTeachers_1 === tmp0_other_with_cast.numTeachers_1)) return false; if (!(this.activeUserIsStudent_1 === tmp0_other_with_cast.activeUserIsStudent_1)) return false; return true; }; function Companion_4() { Companion_instance_4 = this; } protoOf(Companion_4).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_3(); }; var Companion_instance_4; function Companion_getInstance_8() { if (Companion_instance_4 == null) new Companion_4(); return Companion_instance_4; } function $serializer_3() { $serializer_instance_3 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzAssignmentAndBlock', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('assignment', true); tmp0_serialDesc.addElement_5pzumi_k$('block', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_3).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_3).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_51()), get_nullable($serializer_getInstance_82())]; }; protoOf($serializer_3).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_82(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_82(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzAssignmentAndBlock_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_3).serialize_fmaty0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.assignment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_51(), value.assignment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.block_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_82(), value.block_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_3).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_fmaty0_k$(encoder, value instanceof ClazzAssignmentAndBlock ? value : THROW_CCE()); }; var $serializer_instance_3; function $serializer_getInstance_3() { if ($serializer_instance_3 == null) new $serializer_3(); return $serializer_instance_3; } function ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_3().descriptor_1); } if (0 === (seen1 & 1)) $this.assignment_1 = null; else $this.assignment_1 = assignment; if (0 === (seen1 & 2)) $this.block_1 = null; else $this.block_1 = block; return $this; } function ClazzAssignmentAndBlock_init_$Create$(seen1, assignment, block, serializationConstructorMarker) { return ClazzAssignmentAndBlock_init_$Init$(seen1, assignment, block, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentAndBlock))); } function ClazzAssignmentAndBlock(assignment, block) { Companion_getInstance_8(); assignment = assignment === VOID ? null : assignment; block = block === VOID ? null : block; this.assignment_1 = assignment; this.block_1 = block; } protoOf(ClazzAssignmentAndBlock).set_assignment_6aqel7_k$ = function (_set____db54di) { this.assignment_1 = _set____db54di; }; protoOf(ClazzAssignmentAndBlock).get_assignment_378p7u_k$ = function () { return this.assignment_1; }; protoOf(ClazzAssignmentAndBlock).set_block_ew53te_k$ = function (_set____db54di) { this.block_1 = _set____db54di; }; protoOf(ClazzAssignmentAndBlock).get_block_ip8l7o_k$ = function () { return this.block_1; }; protoOf(ClazzAssignmentAndBlock).component1_7eebsc_k$ = function () { return this.assignment_1; }; protoOf(ClazzAssignmentAndBlock).component2_7eebsb_k$ = function () { return this.block_1; }; protoOf(ClazzAssignmentAndBlock).copy_qc8d7g_k$ = function (assignment, block) { return new ClazzAssignmentAndBlock(assignment, block); }; protoOf(ClazzAssignmentAndBlock).copy$default_nf9wop_k$ = function (assignment, block, $super) { assignment = assignment === VOID ? this.assignment_1 : assignment; block = block === VOID ? this.block_1 : block; return $super === VOID ? this.copy_qc8d7g_k$(assignment, block) : $super.copy_qc8d7g_k$.call(this, assignment, block); }; protoOf(ClazzAssignmentAndBlock).toString = function () { return 'ClazzAssignmentAndBlock(assignment=' + this.assignment_1 + ', block=' + this.block_1 + ')'; }; protoOf(ClazzAssignmentAndBlock).hashCode = function () { var result = this.assignment_1 == null ? 0 : this.assignment_1.hashCode(); result = imul(result, 31) + (this.block_1 == null ? 0 : this.block_1.hashCode()) | 0; return result; }; protoOf(ClazzAssignmentAndBlock).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentAndBlock)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentAndBlock ? other : THROW_CCE(); if (!equals(this.assignment_1, tmp0_other_with_cast.assignment_1)) return false; if (!equals(this.block_1, tmp0_other_with_cast.block_1)) return false; return true; }; function Companion_5() { Companion_instance_5 = this; } protoOf(Companion_5).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_4(); }; var Companion_instance_5; function Companion_getInstance_9() { if (Companion_instance_5 == null) new Companion_5(); return Companion_instance_5; } function $serializer_4() { $serializer_instance_4 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzEnrolmentAndPerson', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('enrolment', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_4).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_4).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_53()), get_nullable($serializer_getInstance_111())]; }; protoOf($serializer_4).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_53(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_53(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolmentAndPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_4).serialize_i06per_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.enrolment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_53(), value.enrolment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_111(), value.picture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_4).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_i06per_k$(encoder, value instanceof ClazzEnrolmentAndPerson ? value : THROW_CCE()); }; var $serializer_instance_4; function $serializer_getInstance_4() { if ($serializer_instance_4 == null) new $serializer_4(); return $serializer_instance_4; } function ClazzEnrolmentAndPerson_init_$Init$(seen1, person, enrolment, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_4().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = null; else $this.person_1 = person; if (0 === (seen1 & 2)) $this.enrolment_1 = null; else $this.enrolment_1 = enrolment; if (0 === (seen1 & 4)) $this.picture_1 = null; else $this.picture_1 = picture; return $this; } function ClazzEnrolmentAndPerson_init_$Create$(seen1, person, enrolment, picture, serializationConstructorMarker) { return ClazzEnrolmentAndPerson_init_$Init$(seen1, person, enrolment, picture, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentAndPerson))); } function ClazzEnrolmentAndPerson(person, enrolment, picture) { Companion_getInstance_9(); person = person === VOID ? null : person; enrolment = enrolment === VOID ? null : enrolment; picture = picture === VOID ? null : picture; this.person_1 = person; this.enrolment_1 = enrolment; this.picture_1 = picture; } protoOf(ClazzEnrolmentAndPerson).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPerson).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(ClazzEnrolmentAndPerson).set_enrolment_jtf6zl_k$ = function (_set____db54di) { this.enrolment_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPerson).get_enrolment_udisp1_k$ = function () { return this.enrolment_1; }; protoOf(ClazzEnrolmentAndPerson).set_picture_dxcvme_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPerson).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(ClazzEnrolmentAndPerson).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(ClazzEnrolmentAndPerson).component2_7eebsb_k$ = function () { return this.enrolment_1; }; protoOf(ClazzEnrolmentAndPerson).component3_7eebsa_k$ = function () { return this.picture_1; }; protoOf(ClazzEnrolmentAndPerson).copy_m539v5_k$ = function (person, enrolment, picture) { return new ClazzEnrolmentAndPerson(person, enrolment, picture); }; protoOf(ClazzEnrolmentAndPerson).copy$default_m6obp2_k$ = function (person, enrolment, picture, $super) { person = person === VOID ? this.person_1 : person; enrolment = enrolment === VOID ? this.enrolment_1 : enrolment; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_m539v5_k$(person, enrolment, picture) : $super.copy_m539v5_k$.call(this, person, enrolment, picture); }; protoOf(ClazzEnrolmentAndPerson).toString = function () { return 'ClazzEnrolmentAndPerson(person=' + this.person_1 + ', enrolment=' + this.enrolment_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(ClazzEnrolmentAndPerson).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.enrolment_1 == null ? 0 : hashCode(this.enrolment_1)) | 0; result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(ClazzEnrolmentAndPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentAndPerson)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentAndPerson ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.enrolment_1, tmp0_other_with_cast.enrolment_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_6() { Companion_instance_6 = this; } protoOf(Companion_6).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_5(); }; var Companion_instance_6; function Companion_getInstance_10() { if (Companion_instance_6 == null) new Companion_6(); return Companion_instance_6; } function $serializer_5() { $serializer_instance_5 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzEnrolmentAndPersonDetailDetails', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('enrolment', true); tmp0_serialDesc.addElement_5pzumi_k$('clazz', true); tmp0_serialDesc.addElement_5pzumi_k$('courseTerminology', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_5).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_5).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_53()), get_nullable($serializer_getInstance_50()), get_nullable($serializer_getInstance_89())]; }; protoOf($serializer_5).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_53(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_50(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_89(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_53(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_50(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_89(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolmentAndPersonDetailDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_5).serialize_qzqy36_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.enrolment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_53(), value.enrolment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.clazz_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_50(), value.clazz_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.courseTerminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_89(), value.courseTerminology_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_5).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_qzqy36_k$(encoder, value instanceof ClazzEnrolmentAndPersonDetailDetails ? value : THROW_CCE()); }; var $serializer_instance_5; function $serializer_getInstance_5() { if ($serializer_instance_5 == null) new $serializer_5(); return $serializer_instance_5; } function ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_5().descriptor_1); } if (0 === (seen1 & 1)) $this.enrolment_1 = null; else $this.enrolment_1 = enrolment; if (0 === (seen1 & 2)) $this.clazz_1 = null; else $this.clazz_1 = clazz; if (0 === (seen1 & 4)) $this.courseTerminology_1 = null; else $this.courseTerminology_1 = courseTerminology; return $this; } function ClazzEnrolmentAndPersonDetailDetails_init_$Create$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker) { return ClazzEnrolmentAndPersonDetailDetails_init_$Init$(seen1, enrolment, clazz, courseTerminology, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentAndPersonDetailDetails))); } function ClazzEnrolmentAndPersonDetailDetails(enrolment, clazz, courseTerminology) { Companion_getInstance_10(); enrolment = enrolment === VOID ? null : enrolment; clazz = clazz === VOID ? null : clazz; courseTerminology = courseTerminology === VOID ? null : courseTerminology; this.enrolment_1 = enrolment; this.clazz_1 = clazz; this.courseTerminology_1 = courseTerminology; } protoOf(ClazzEnrolmentAndPersonDetailDetails).set_enrolment_jtf6zl_k$ = function (_set____db54di) { this.enrolment_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).get_enrolment_udisp1_k$ = function () { return this.enrolment_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).set_clazz_sym4kf_k$ = function (_set____db54di) { this.clazz_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).get_clazz_ips3zj_k$ = function () { return this.clazz_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).set_courseTerminology_yd7w9r_k$ = function (_set____db54di) { this.courseTerminology_1 = _set____db54di; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).get_courseTerminology_pxom3z_k$ = function () { return this.courseTerminology_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).component1_7eebsc_k$ = function () { return this.enrolment_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).component2_7eebsb_k$ = function () { return this.clazz_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).component3_7eebsa_k$ = function () { return this.courseTerminology_1; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).copy_pz8gmj_k$ = function (enrolment, clazz, courseTerminology) { return new ClazzEnrolmentAndPersonDetailDetails(enrolment, clazz, courseTerminology); }; protoOf(ClazzEnrolmentAndPersonDetailDetails).copy$default_6t9vh5_k$ = function (enrolment, clazz, courseTerminology, $super) { enrolment = enrolment === VOID ? this.enrolment_1 : enrolment; clazz = clazz === VOID ? this.clazz_1 : clazz; courseTerminology = courseTerminology === VOID ? this.courseTerminology_1 : courseTerminology; return $super === VOID ? this.copy_pz8gmj_k$(enrolment, clazz, courseTerminology) : $super.copy_pz8gmj_k$.call(this, enrolment, clazz, courseTerminology); }; protoOf(ClazzEnrolmentAndPersonDetailDetails).toString = function () { return 'ClazzEnrolmentAndPersonDetailDetails(enrolment=' + this.enrolment_1 + ', clazz=' + this.clazz_1 + ', courseTerminology=' + this.courseTerminology_1 + ')'; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).hashCode = function () { var result = this.enrolment_1 == null ? 0 : hashCode(this.enrolment_1); result = imul(result, 31) + (this.clazz_1 == null ? 0 : this.clazz_1.hashCode()) | 0; result = imul(result, 31) + (this.courseTerminology_1 == null ? 0 : hashCode(this.courseTerminology_1)) | 0; return result; }; protoOf(ClazzEnrolmentAndPersonDetailDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzEnrolmentAndPersonDetailDetails)) return false; var tmp0_other_with_cast = other instanceof ClazzEnrolmentAndPersonDetailDetails ? other : THROW_CCE(); if (!equals(this.enrolment_1, tmp0_other_with_cast.enrolment_1)) return false; if (!equals(this.clazz_1, tmp0_other_with_cast.clazz_1)) return false; if (!equals(this.courseTerminology_1, tmp0_other_with_cast.courseTerminology_1)) return false; return true; }; function Companion_7() { Companion_instance_7 = this; } protoOf(Companion_7).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_6(); }; var Companion_instance_7; function Companion_getInstance_11() { if (Companion_instance_7 == null) new Companion_7(); return Companion_instance_7; } function $serializer_6() { $serializer_instance_6 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ClazzNameAndTerminology', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('terminology', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_6).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_6).childSerializers_5ghqw5_k$ = 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($serializer_getInstance_89())]; }; protoOf($serializer_6).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_89(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzNameAndTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_6).serialize_t85vng_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.clazzName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.clazzName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.terminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_89(), value.terminology_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_6).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_t85vng_k$(encoder, value instanceof ClazzNameAndTerminology ? value : THROW_CCE()); }; var $serializer_instance_6; function $serializer_getInstance_6() { if ($serializer_instance_6 == null) new $serializer_6(); return $serializer_instance_6; } function ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_6().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzName_1 = null; else $this.clazzName_1 = clazzName; if (0 === (seen1 & 2)) $this.terminology_1 = null; else $this.terminology_1 = terminology; return $this; } function ClazzNameAndTerminology_init_$Create$(seen1, clazzName, terminology, serializationConstructorMarker) { return ClazzNameAndTerminology_init_$Init$(seen1, clazzName, terminology, serializationConstructorMarker, objectCreate(protoOf(ClazzNameAndTerminology))); } function ClazzNameAndTerminology(clazzName, terminology) { Companion_getInstance_11(); clazzName = clazzName === VOID ? null : clazzName; terminology = terminology === VOID ? null : terminology; this.clazzName_1 = clazzName; this.terminology_1 = terminology; } protoOf(ClazzNameAndTerminology).set_clazzName_aqdmvj_k$ = function (_set____db54di) { this.clazzName_1 = _set____db54di; }; protoOf(ClazzNameAndTerminology).get_clazzName_brsrx6_k$ = function () { return this.clazzName_1; }; protoOf(ClazzNameAndTerminology).set_terminology_opn48q_k$ = function (_set____db54di) { this.terminology_1 = _set____db54di; }; protoOf(ClazzNameAndTerminology).get_terminology_hmih12_k$ = function () { return this.terminology_1; }; protoOf(ClazzNameAndTerminology).component1_7eebsc_k$ = function () { return this.clazzName_1; }; protoOf(ClazzNameAndTerminology).component2_7eebsb_k$ = function () { return this.terminology_1; }; protoOf(ClazzNameAndTerminology).copy_xvfye6_k$ = function (clazzName, terminology) { return new ClazzNameAndTerminology(clazzName, terminology); }; protoOf(ClazzNameAndTerminology).copy$default_tsexgj_k$ = function (clazzName, terminology, $super) { clazzName = clazzName === VOID ? this.clazzName_1 : clazzName; terminology = terminology === VOID ? this.terminology_1 : terminology; return $super === VOID ? this.copy_xvfye6_k$(clazzName, terminology) : $super.copy_xvfye6_k$.call(this, clazzName, terminology); }; protoOf(ClazzNameAndTerminology).toString = function () { return 'ClazzNameAndTerminology(clazzName=' + this.clazzName_1 + ', terminology=' + this.terminology_1 + ')'; }; protoOf(ClazzNameAndTerminology).hashCode = function () { var result = this.clazzName_1 == null ? 0 : getStringHashCode(this.clazzName_1); result = imul(result, 31) + (this.terminology_1 == null ? 0 : hashCode(this.terminology_1)) | 0; return result; }; protoOf(ClazzNameAndTerminology).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzNameAndTerminology)) return false; var tmp0_other_with_cast = other instanceof ClazzNameAndTerminology ? other : THROW_CCE(); if (!(this.clazzName_1 == tmp0_other_with_cast.clazzName_1)) return false; if (!equals(this.terminology_1, tmp0_other_with_cast.terminology_1)) return false; return true; }; function Companion_8() { Companion_instance_8 = this; } protoOf(Companion_8).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_7(); }; var Companion_instance_8; function Companion_getInstance_12() { if (Companion_instance_8 == null) new Companion_8(); return Companion_instance_8; } function $serializer_7() { $serializer_instance_7 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CommentsAndName', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('comment', true); tmp0_serialDesc.addElement_5pzumi_k$('firstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); tmp0_serialDesc.addElement_5pzumi_k$('pictureUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_7).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_7).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_63(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_7).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_63(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_63(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CommentsAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_7).serialize_nfpvyj_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.comment_1.equals(new Comments())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_63(), value.comment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.firstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.firstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.lastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.lastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.pictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.pictureUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_7).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_nfpvyj_k$(encoder, value instanceof CommentsAndName ? value : THROW_CCE()); }; var $serializer_instance_7; function $serializer_getInstance_7() { if ($serializer_instance_7 == null) new $serializer_7(); return $serializer_instance_7; } function CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_7().descriptor_1); } if (0 === (seen1 & 1)) $this.comment_1 = new Comments(); else $this.comment_1 = comment; if (0 === (seen1 & 2)) $this.firstNames_1 = null; else $this.firstNames_1 = firstNames; if (0 === (seen1 & 4)) $this.lastName_1 = null; else $this.lastName_1 = lastName; if (0 === (seen1 & 8)) $this.pictureUri_1 = null; else $this.pictureUri_1 = pictureUri; return $this; } function CommentsAndName_init_$Create$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker) { return CommentsAndName_init_$Init$(seen1, comment, firstNames, lastName, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CommentsAndName))); } function CommentsAndName(comment, firstNames, lastName, pictureUri) { Companion_getInstance_12(); comment = comment === VOID ? new Comments() : comment; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; pictureUri = pictureUri === VOID ? null : pictureUri; this.comment_1 = comment; this.firstNames_1 = firstNames; this.lastName_1 = lastName; this.pictureUri_1 = pictureUri; } protoOf(CommentsAndName).set_comment_vfk9kp_k$ = function (_set____db54di) { this.comment_1 = _set____db54di; }; protoOf(CommentsAndName).get_comment_gzea9i_k$ = function () { return this.comment_1; }; protoOf(CommentsAndName).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(CommentsAndName).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(CommentsAndName).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(CommentsAndName).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(CommentsAndName).set_pictureUri_ldxxh0_k$ = function (_set____db54di) { this.pictureUri_1 = _set____db54di; }; protoOf(CommentsAndName).get_pictureUri_oz22hj_k$ = function () { return this.pictureUri_1; }; protoOf(CommentsAndName).component1_7eebsc_k$ = function () { return this.comment_1; }; protoOf(CommentsAndName).component2_7eebsb_k$ = function () { return this.firstNames_1; }; protoOf(CommentsAndName).component3_7eebsa_k$ = function () { return this.lastName_1; }; protoOf(CommentsAndName).component4_7eebs9_k$ = function () { return this.pictureUri_1; }; protoOf(CommentsAndName).copy_kz4yhz_k$ = function (comment, firstNames, lastName, pictureUri) { return new CommentsAndName(comment, firstNames, lastName, pictureUri); }; protoOf(CommentsAndName).copy$default_8371md_k$ = function (comment, firstNames, lastName, pictureUri, $super) { comment = comment === VOID ? this.comment_1 : comment; firstNames = firstNames === VOID ? this.firstNames_1 : firstNames; lastName = lastName === VOID ? this.lastName_1 : lastName; pictureUri = pictureUri === VOID ? this.pictureUri_1 : pictureUri; return $super === VOID ? this.copy_kz4yhz_k$(comment, firstNames, lastName, pictureUri) : $super.copy_kz4yhz_k$.call(this, comment, firstNames, lastName, pictureUri); }; protoOf(CommentsAndName).toString = function () { return 'CommentsAndName(comment=' + this.comment_1 + ', firstNames=' + this.firstNames_1 + ', lastName=' + this.lastName_1 + ', pictureUri=' + this.pictureUri_1 + ')'; }; protoOf(CommentsAndName).hashCode = function () { var result = this.comment_1.hashCode(); result = imul(result, 31) + (this.firstNames_1 == null ? 0 : getStringHashCode(this.firstNames_1)) | 0; result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; result = imul(result, 31) + (this.pictureUri_1 == null ? 0 : getStringHashCode(this.pictureUri_1)) | 0; return result; }; protoOf(CommentsAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof CommentsAndName)) return false; var tmp0_other_with_cast = other instanceof CommentsAndName ? other : THROW_CCE(); if (!this.comment_1.equals(tmp0_other_with_cast.comment_1)) return false; if (!(this.firstNames_1 == tmp0_other_with_cast.firstNames_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; if (!(this.pictureUri_1 == tmp0_other_with_cast.pictureUri_1)) return false; return true; }; function Companion_9() { Companion_instance_9 = this; } protoOf(Companion_9).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_8(); }; var Companion_instance_9; function Companion_getInstance_13() { if (Companion_instance_9 == null) new Companion_9(); return Companion_instance_9; } function $serializer_8() { $serializer_instance_8 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndContentJob', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('entry', true); tmp0_serialDesc.addElement_5pzumi_k$('contentJob', true); tmp0_serialDesc.addElement_5pzumi_k$('contentJobItem', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_8).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_8).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_78()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_71())]; }; protoOf($serializer_8).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_78(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_68(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_78(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_68(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryAndContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_8).serialize_hco89r_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.entry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_66(), value.entry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.contentJob_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_78(), value.contentJob_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contentJobItem_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_68(), value.contentJobItem_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_71(), value.picture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_8).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_hco89r_k$(encoder, value instanceof ContentEntryAndContentJob ? value : THROW_CCE()); }; var $serializer_instance_8; function $serializer_getInstance_8() { if ($serializer_instance_8 == null) new $serializer_8(); return $serializer_instance_8; } function ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_8().descriptor_1); } if (0 === (seen1 & 1)) $this.entry_1 = null; else $this.entry_1 = entry; if (0 === (seen1 & 2)) $this.contentJob_1 = null; else $this.contentJob_1 = contentJob; if (0 === (seen1 & 4)) $this.contentJobItem_1 = null; else $this.contentJobItem_1 = contentJobItem; if (0 === (seen1 & 8)) $this.picture_1 = null; else $this.picture_1 = picture; return $this; } function ContentEntryAndContentJob_init_$Create$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker) { return ContentEntryAndContentJob_init_$Init$(seen1, entry, contentJob, contentJobItem, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndContentJob))); } function ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture) { Companion_getInstance_13(); entry = entry === VOID ? null : entry; contentJob = contentJob === VOID ? null : contentJob; contentJobItem = contentJobItem === VOID ? null : contentJobItem; picture = picture === VOID ? null : picture; this.entry_1 = entry; this.contentJob_1 = contentJob; this.contentJobItem_1 = contentJobItem; this.picture_1 = picture; } protoOf(ContentEntryAndContentJob).get_entry_iqxd1l_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndContentJob).get_contentJob_fsr8c3_k$ = function () { return this.contentJob_1; }; protoOf(ContentEntryAndContentJob).get_contentJobItem_fg7ikg_k$ = function () { return this.contentJobItem_1; }; protoOf(ContentEntryAndContentJob).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndContentJob).component1_7eebsc_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndContentJob).component2_7eebsb_k$ = function () { return this.contentJob_1; }; protoOf(ContentEntryAndContentJob).component3_7eebsa_k$ = function () { return this.contentJobItem_1; }; protoOf(ContentEntryAndContentJob).component4_7eebs9_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndContentJob).copy_37ri2q_k$ = function (entry, contentJob, contentJobItem, picture) { return new ContentEntryAndContentJob(entry, contentJob, contentJobItem, picture); }; protoOf(ContentEntryAndContentJob).copy$default_uhdblk_k$ = function (entry, contentJob, contentJobItem, picture, $super) { entry = entry === VOID ? this.entry_1 : entry; contentJob = contentJob === VOID ? this.contentJob_1 : contentJob; contentJobItem = contentJobItem === VOID ? this.contentJobItem_1 : contentJobItem; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_37ri2q_k$(entry, contentJob, contentJobItem, picture) : $super.copy_37ri2q_k$.call(this, entry, contentJob, contentJobItem, picture); }; protoOf(ContentEntryAndContentJob).toString = function () { return 'ContentEntryAndContentJob(entry=' + this.entry_1 + ', contentJob=' + this.contentJob_1 + ', contentJobItem=' + this.contentJobItem_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(ContentEntryAndContentJob).hashCode = function () { var result = this.entry_1 == null ? 0 : this.entry_1.hashCode(); result = imul(result, 31) + (this.contentJob_1 == null ? 0 : this.contentJob_1.hashCode()) | 0; result = imul(result, 31) + (this.contentJobItem_1 == null ? 0 : this.contentJobItem_1.hashCode()) | 0; result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndContentJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndContentJob)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndContentJob ? other : THROW_CCE(); if (!equals(this.entry_1, tmp0_other_with_cast.entry_1)) return false; if (!equals(this.contentJob_1, tmp0_other_with_cast.contentJob_1)) return false; if (!equals(this.contentJobItem_1, tmp0_other_with_cast.contentJobItem_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_10() { Companion_instance_10 = this; } protoOf(Companion_10).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_9(); }; var Companion_instance_10; function Companion_getInstance_14() { if (Companion_instance_10 == null) new Companion_10(); return Companion_instance_10; } function $serializer_9() { $serializer_instance_9 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndDetail', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('entry', true); tmp0_serialDesc.addElement_5pzumi_k$('latestVersion', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); tmp0_serialDesc.addElement_5pzumi_k$('status', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_9).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_9).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_76()), get_nullable($serializer_getInstance_71()), get_nullable($serializer_getInstance_1())]; }; protoOf($serializer_9).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_76(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_71(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_76(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_71(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_1(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryAndDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_9).serialize_lytex8_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.entry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_66(), value.entry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.latestVersion_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_76(), value.latestVersion_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_71(), value.picture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.status_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_1(), value.status_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_9).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_lytex8_k$(encoder, value instanceof ContentEntryAndDetail ? value : THROW_CCE()); }; var $serializer_instance_9; function $serializer_getInstance_9() { if ($serializer_instance_9 == null) new $serializer_9(); return $serializer_instance_9; } function ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_9().descriptor_1); } if (0 === (seen1 & 1)) $this.entry_1 = null; else $this.entry_1 = entry; if (0 === (seen1 & 2)) $this.latestVersion_1 = null; else $this.latestVersion_1 = latestVersion; if (0 === (seen1 & 4)) $this.picture_1 = null; else $this.picture_1 = picture; if (0 === (seen1 & 8)) $this.status_1 = null; else $this.status_1 = status; return $this; } function ContentEntryAndDetail_init_$Create$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker) { return ContentEntryAndDetail_init_$Init$(seen1, entry, latestVersion, picture, status, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndDetail))); } function ContentEntryAndDetail(entry, latestVersion, picture, status) { Companion_getInstance_14(); entry = entry === VOID ? null : entry; latestVersion = latestVersion === VOID ? null : latestVersion; picture = picture === VOID ? null : picture; status = status === VOID ? null : status; this.entry_1 = entry; this.latestVersion_1 = latestVersion; this.picture_1 = picture; this.status_1 = status; } protoOf(ContentEntryAndDetail).set_entry_6mesg_k$ = function (_set____db54di) { this.entry_1 = _set____db54di; }; protoOf(ContentEntryAndDetail).get_entry_iqxd1l_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndDetail).set_latestVersion_pb6c81_k$ = function (_set____db54di) { this.latestVersion_1 = _set____db54di; }; protoOf(ContentEntryAndDetail).get_latestVersion_yqxv4o_k$ = function () { return this.latestVersion_1; }; protoOf(ContentEntryAndDetail).set_picture_vkub8o_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(ContentEntryAndDetail).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndDetail).set_status_kzq07v_k$ = function (_set____db54di) { this.status_1 = _set____db54di; }; protoOf(ContentEntryAndDetail).get_status_jnf6d7_k$ = function () { return this.status_1; }; protoOf(ContentEntryAndDetail).component1_7eebsc_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndDetail).component2_7eebsb_k$ = function () { return this.latestVersion_1; }; protoOf(ContentEntryAndDetail).component3_7eebsa_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndDetail).component4_7eebs9_k$ = function () { return this.status_1; }; protoOf(ContentEntryAndDetail).copy_tewu0c_k$ = function (entry, latestVersion, picture, status) { return new ContentEntryAndDetail(entry, latestVersion, picture, status); }; protoOf(ContentEntryAndDetail).copy$default_8a4un_k$ = function (entry, latestVersion, picture, status, $super) { entry = entry === VOID ? this.entry_1 : entry; latestVersion = latestVersion === VOID ? this.latestVersion_1 : latestVersion; picture = picture === VOID ? this.picture_1 : picture; status = status === VOID ? this.status_1 : status; return $super === VOID ? this.copy_tewu0c_k$(entry, latestVersion, picture, status) : $super.copy_tewu0c_k$.call(this, entry, latestVersion, picture, status); }; protoOf(ContentEntryAndDetail).toString = function () { return 'ContentEntryAndDetail(entry=' + this.entry_1 + ', latestVersion=' + this.latestVersion_1 + ', picture=' + this.picture_1 + ', status=' + this.status_1 + ')'; }; protoOf(ContentEntryAndDetail).hashCode = function () { var result = this.entry_1 == null ? 0 : this.entry_1.hashCode(); result = imul(result, 31) + (this.latestVersion_1 == null ? 0 : this.latestVersion_1.hashCode()) | 0; result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; result = imul(result, 31) + (this.status_1 == null ? 0 : this.status_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndDetail)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndDetail ? other : THROW_CCE(); if (!equals(this.entry_1, tmp0_other_with_cast.entry_1)) return false; if (!equals(this.latestVersion_1, tmp0_other_with_cast.latestVersion_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; if (!equals(this.status_1, tmp0_other_with_cast.status_1)) return false; return true; }; function Companion_11() { Companion_instance_11 = this; } protoOf(Companion_11).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_10(); }; var Companion_instance_11; function Companion_getInstance_15() { if (Companion_instance_11 == null) new Companion_11(); return Companion_instance_11; } function $serializer_10() { $serializer_instance_10 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndLanguage', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('contentEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('language', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_10).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_10).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_98())]; }; protoOf($serializer_10).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_98(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_98(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryAndLanguage_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_10).serialize_fpgdhp_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.contentEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_66(), value.contentEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.language_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_98(), value.language_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_10).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_fpgdhp_k$(encoder, value instanceof ContentEntryAndLanguage ? value : THROW_CCE()); }; var $serializer_instance_10; function $serializer_getInstance_10() { if ($serializer_instance_10 == null) new $serializer_10(); return $serializer_instance_10; } function ContentEntryAndLanguage_init_$Init$(seen1, contentEntry, language, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_10().descriptor_1); } if (0 === (seen1 & 1)) $this.contentEntry_1 = null; else $this.contentEntry_1 = contentEntry; if (0 === (seen1 & 2)) $this.language_1 = null; else $this.language_1 = language; return $this; } function ContentEntryAndLanguage_init_$Create$(seen1, contentEntry, language, serializationConstructorMarker) { return ContentEntryAndLanguage_init_$Init$(seen1, contentEntry, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndLanguage))); } function ContentEntryAndLanguage(contentEntry, language) { Companion_getInstance_15(); contentEntry = contentEntry === VOID ? null : contentEntry; language = language === VOID ? null : language; this.contentEntry_1 = contentEntry; this.language_1 = language; } protoOf(ContentEntryAndLanguage).set_contentEntry_b75rdr_k$ = function (_set____db54di) { this.contentEntry_1 = _set____db54di; }; protoOf(ContentEntryAndLanguage).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(ContentEntryAndLanguage).set_language_k1j0e9_k$ = function (_set____db54di) { this.language_1 = _set____db54di; }; protoOf(ContentEntryAndLanguage).get_language_cjhhk1_k$ = function () { return this.language_1; }; protoOf(ContentEntryAndLanguage).component1_7eebsc_k$ = function () { return this.contentEntry_1; }; protoOf(ContentEntryAndLanguage).component2_7eebsb_k$ = function () { return this.language_1; }; protoOf(ContentEntryAndLanguage).copy_yz2vgs_k$ = function (contentEntry, language) { return new ContentEntryAndLanguage(contentEntry, language); }; protoOf(ContentEntryAndLanguage).copy$default_pwckqk_k$ = function (contentEntry, language, $super) { contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; language = language === VOID ? this.language_1 : language; return $super === VOID ? this.copy_yz2vgs_k$(contentEntry, language) : $super.copy_yz2vgs_k$.call(this, contentEntry, language); }; protoOf(ContentEntryAndLanguage).toString = function () { return 'ContentEntryAndLanguage(contentEntry=' + this.contentEntry_1 + ', language=' + this.language_1 + ')'; }; protoOf(ContentEntryAndLanguage).hashCode = function () { var result = this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode(); result = imul(result, 31) + (this.language_1 == null ? 0 : this.language_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndLanguage).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndLanguage)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndLanguage ? other : THROW_CCE(); if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.language_1, tmp0_other_with_cast.language_1)) return false; return true; }; function ContentEntryAndListDetail(contentEntry, picture, contentEntryParentChildJoin, status) { contentEntry = contentEntry === VOID ? null : contentEntry; picture = picture === VOID ? null : picture; contentEntryParentChildJoin = contentEntryParentChildJoin === VOID ? null : contentEntryParentChildJoin; status = status === VOID ? null : status; this.contentEntry_1 = contentEntry; this.picture_1 = picture; this.contentEntryParentChildJoin_1 = contentEntryParentChildJoin; this.status_1 = status; } protoOf(ContentEntryAndListDetail).set_contentEntry_b75rdr_k$ = function (_set____db54di) { this.contentEntry_1 = _set____db54di; }; protoOf(ContentEntryAndListDetail).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(ContentEntryAndListDetail).set_picture_vkub8o_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(ContentEntryAndListDetail).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndListDetail).set_contentEntryParentChildJoin_cx82x7_k$ = function (_set____db54di) { this.contentEntryParentChildJoin_1 = _set____db54di; }; protoOf(ContentEntryAndListDetail).get_contentEntryParentChildJoin_47uvra_k$ = function () { return this.contentEntryParentChildJoin_1; }; protoOf(ContentEntryAndListDetail).set_status_kzq07v_k$ = function (_set____db54di) { this.status_1 = _set____db54di; }; protoOf(ContentEntryAndListDetail).get_status_jnf6d7_k$ = function () { return this.status_1; }; protoOf(ContentEntryAndListDetail).component1_7eebsc_k$ = function () { return this.contentEntry_1; }; protoOf(ContentEntryAndListDetail).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndListDetail).component3_7eebsa_k$ = function () { return this.contentEntryParentChildJoin_1; }; protoOf(ContentEntryAndListDetail).component4_7eebs9_k$ = function () { return this.status_1; }; protoOf(ContentEntryAndListDetail).copy_73eedu_k$ = function (contentEntry, picture, contentEntryParentChildJoin, status) { return new ContentEntryAndListDetail(contentEntry, picture, contentEntryParentChildJoin, status); }; protoOf(ContentEntryAndListDetail).copy$default_rgwz0f_k$ = function (contentEntry, picture, contentEntryParentChildJoin, status, $super) { contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; picture = picture === VOID ? this.picture_1 : picture; contentEntryParentChildJoin = contentEntryParentChildJoin === VOID ? this.contentEntryParentChildJoin_1 : contentEntryParentChildJoin; status = status === VOID ? this.status_1 : status; return $super === VOID ? this.copy_73eedu_k$(contentEntry, picture, contentEntryParentChildJoin, status) : $super.copy_73eedu_k$.call(this, contentEntry, picture, contentEntryParentChildJoin, status); }; protoOf(ContentEntryAndListDetail).toString = function () { return 'ContentEntryAndListDetail(contentEntry=' + this.contentEntry_1 + ', picture=' + this.picture_1 + ', contentEntryParentChildJoin=' + this.contentEntryParentChildJoin_1 + ', status=' + this.status_1 + ')'; }; protoOf(ContentEntryAndListDetail).hashCode = function () { var result = this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryParentChildJoin_1 == null ? 0 : this.contentEntryParentChildJoin_1.hashCode()) | 0; result = imul(result, 31) + (this.status_1 == null ? 0 : this.status_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndListDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndListDetail)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndListDetail ? other : THROW_CCE(); if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; if (!equals(this.contentEntryParentChildJoin_1, tmp0_other_with_cast.contentEntryParentChildJoin_1)) return false; if (!equals(this.status_1, tmp0_other_with_cast.status_1)) return false; return true; }; function Companion_12() { Companion_instance_12 = this; } protoOf(Companion_12).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_11(); }; var Companion_instance_12; function Companion_getInstance_16() { if (Companion_instance_12 == null) new Companion_12(); return Companion_instance_12; } function $serializer_11() { $serializer_instance_11 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryAndPicture', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('entry', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_11).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_11).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_71())]; }; protoOf($serializer_11).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_71(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_66(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_71(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_11).serialize_cp69qb_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.entry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_66(), value.entry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_71(), value.picture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_11).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_cp69qb_k$(encoder, value instanceof ContentEntryAndPicture ? value : THROW_CCE()); }; var $serializer_instance_11; function $serializer_getInstance_11() { if ($serializer_instance_11 == null) new $serializer_11(); return $serializer_instance_11; } function ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_11().descriptor_1); } if (0 === (seen1 & 1)) $this.entry_1 = null; else $this.entry_1 = entry; if (0 === (seen1 & 2)) $this.picture_1 = null; else $this.picture_1 = picture; return $this; } function ContentEntryAndPicture_init_$Create$(seen1, entry, picture, serializationConstructorMarker) { return ContentEntryAndPicture_init_$Init$(seen1, entry, picture, serializationConstructorMarker, objectCreate(protoOf(ContentEntryAndPicture))); } function ContentEntryAndPicture(entry, picture) { Companion_getInstance_16(); entry = entry === VOID ? null : entry; picture = picture === VOID ? null : picture; this.entry_1 = entry; this.picture_1 = picture; } protoOf(ContentEntryAndPicture).set_entry_6mesg_k$ = function (_set____db54di) { this.entry_1 = _set____db54di; }; protoOf(ContentEntryAndPicture).get_entry_iqxd1l_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndPicture).set_picture_vkub8o_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(ContentEntryAndPicture).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndPicture).component1_7eebsc_k$ = function () { return this.entry_1; }; protoOf(ContentEntryAndPicture).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(ContentEntryAndPicture).copy_ttwqnd_k$ = function (entry, picture) { return new ContentEntryAndPicture(entry, picture); }; protoOf(ContentEntryAndPicture).copy$default_w47rwv_k$ = function (entry, picture, $super) { entry = entry === VOID ? this.entry_1 : entry; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_ttwqnd_k$(entry, picture) : $super.copy_ttwqnd_k$.call(this, entry, picture); }; protoOf(ContentEntryAndPicture).toString = function () { return 'ContentEntryAndPicture(entry=' + this.entry_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(ContentEntryAndPicture).hashCode = function () { var result = this.entry_1 == null ? 0 : this.entry_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(ContentEntryAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryAndPicture)) return false; var tmp0_other_with_cast = other instanceof ContentEntryAndPicture ? other : THROW_CCE(); if (!equals(this.entry_1, tmp0_other_with_cast.entry_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_13() { Companion_instance_13 = this; } protoOf(Companion_13).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_12(); }; var Companion_instance_13; function Companion_getInstance_17() { if (Companion_instance_13 == null) new Companion_13(); return Companion_instance_13; } function $serializer_12() { $serializer_instance_12 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.ContentEntryImportJobProgress', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('cjiUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiItemProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiItemTotal', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiError', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiOwnerPersonUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_12).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_12).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_12).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryImportJobProgress_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_12).serialize_p7971z_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cjiUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cjiUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cjiItemProgress_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cjiItemProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cjiItemTotal_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.cjiItemTotal_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cjiStatus_1 === 4)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.cjiStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cjiError_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.cjiError_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cjiOwnerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cjiOwnerPersonUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_12).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_p7971z_k$(encoder, value instanceof ContentEntryImportJobProgress ? value : THROW_CCE()); }; var $serializer_instance_12; function $serializer_getInstance_12() { if ($serializer_instance_12 == null) new $serializer_12(); return $serializer_instance_12; } function ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_12().descriptor_1); } if (0 === (seen1 & 1)) $this.cjiUid_1 = new Long(0, 0); else $this.cjiUid_1 = cjiUid; if (0 === (seen1 & 2)) $this.cjiItemProgress_1 = new Long(0, 0); else $this.cjiItemProgress_1 = cjiItemProgress; if (0 === (seen1 & 4)) $this.cjiItemTotal_1 = new Long(0, 0); else $this.cjiItemTotal_1 = cjiItemTotal; if (0 === (seen1 & 8)) $this.cjiStatus_1 = 4; else $this.cjiStatus_1 = cjiStatus; if (0 === (seen1 & 16)) $this.cjiError_1 = null; else $this.cjiError_1 = cjiError; if (0 === (seen1 & 32)) $this.cjiOwnerPersonUid_1 = new Long(0, 0); else $this.cjiOwnerPersonUid_1 = cjiOwnerPersonUid; return $this; } function ContentEntryImportJobProgress_init_$Create$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker) { return ContentEntryImportJobProgress_init_$Init$(seen1, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJobProgress))); } function ContentEntryImportJobProgress(cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid) { Companion_getInstance_17(); cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid; cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal; cjiStatus = cjiStatus === VOID ? 4 : cjiStatus; cjiError = cjiError === VOID ? null : cjiError; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid; this.cjiUid_1 = cjiUid; this.cjiItemProgress_1 = cjiItemProgress; this.cjiItemTotal_1 = cjiItemTotal; this.cjiStatus_1 = cjiStatus; this.cjiError_1 = cjiError; this.cjiOwnerPersonUid_1 = cjiOwnerPersonUid; } protoOf(ContentEntryImportJobProgress).set_cjiUid_520bub_k$ = function (_set____db54di) { this.cjiUid_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiUid_bxbqqf_k$ = function () { return this.cjiUid_1; }; protoOf(ContentEntryImportJobProgress).set_cjiItemProgress_7dh35l_k$ = function (_set____db54di) { this.cjiItemProgress_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiItemProgress_rooux3_k$ = function () { return this.cjiItemProgress_1; }; protoOf(ContentEntryImportJobProgress).set_cjiItemTotal_nqgzw2_k$ = function (_set____db54di) { this.cjiItemTotal_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiItemTotal_aik9s8_k$ = function () { return this.cjiItemTotal_1; }; protoOf(ContentEntryImportJobProgress).set_cjiStatus_kle71r_k$ = function (_set____db54di) { this.cjiStatus_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiStatus_i13gad_k$ = function () { return this.cjiStatus_1; }; protoOf(ContentEntryImportJobProgress).set_cjiError_crtvak_k$ = function (_set____db54di) { this.cjiError_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiError_oep7nz_k$ = function () { return this.cjiError_1; }; protoOf(ContentEntryImportJobProgress).set_cjiOwnerPersonUid_mxouc1_k$ = function (_set____db54di) { this.cjiOwnerPersonUid_1 = _set____db54di; }; protoOf(ContentEntryImportJobProgress).get_cjiOwnerPersonUid_7yysrl_k$ = function () { return this.cjiOwnerPersonUid_1; }; protoOf(ContentEntryImportJobProgress).component1_7eebsc_k$ = function () { return this.cjiUid_1; }; protoOf(ContentEntryImportJobProgress).component2_7eebsb_k$ = function () { return this.cjiItemProgress_1; }; protoOf(ContentEntryImportJobProgress).component3_7eebsa_k$ = function () { return this.cjiItemTotal_1; }; protoOf(ContentEntryImportJobProgress).component4_7eebs9_k$ = function () { return this.cjiStatus_1; }; protoOf(ContentEntryImportJobProgress).component5_7eebs8_k$ = function () { return this.cjiError_1; }; protoOf(ContentEntryImportJobProgress).component6_7eebs7_k$ = function () { return this.cjiOwnerPersonUid_1; }; protoOf(ContentEntryImportJobProgress).copy_naexcm_k$ = function (cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid) { return new ContentEntryImportJobProgress(cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid); }; protoOf(ContentEntryImportJobProgress).copy$default_r8e5b6_k$ = function (cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid, $super) { cjiUid = cjiUid === VOID ? this.cjiUid_1 : cjiUid; cjiItemProgress = cjiItemProgress === VOID ? this.cjiItemProgress_1 : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? this.cjiItemTotal_1 : cjiItemTotal; cjiStatus = cjiStatus === VOID ? this.cjiStatus_1 : cjiStatus; cjiError = cjiError === VOID ? this.cjiError_1 : cjiError; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? this.cjiOwnerPersonUid_1 : cjiOwnerPersonUid; return $super === VOID ? this.copy_naexcm_k$(cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid) : $super.copy_naexcm_k$.call(this, cjiUid, cjiItemProgress, cjiItemTotal, cjiStatus, cjiError, cjiOwnerPersonUid); }; protoOf(ContentEntryImportJobProgress).toString = function () { return 'ContentEntryImportJobProgress(cjiUid=' + this.cjiUid_1.toString() + ', cjiItemProgress=' + this.cjiItemProgress_1.toString() + ', cjiItemTotal=' + this.cjiItemTotal_1.toString() + ', cjiStatus=' + this.cjiStatus_1 + ', cjiError=' + this.cjiError_1 + ', cjiOwnerPersonUid=' + this.cjiOwnerPersonUid_1.toString() + ')'; }; protoOf(ContentEntryImportJobProgress).hashCode = function () { var result = this.cjiUid_1.hashCode(); result = imul(result, 31) + this.cjiItemProgress_1.hashCode() | 0; result = imul(result, 31) + this.cjiItemTotal_1.hashCode() | 0; result = imul(result, 31) + this.cjiStatus_1 | 0; result = imul(result, 31) + (this.cjiError_1 == null ? 0 : getStringHashCode(this.cjiError_1)) | 0; result = imul(result, 31) + this.cjiOwnerPersonUid_1.hashCode() | 0; return result; }; protoOf(ContentEntryImportJobProgress).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryImportJobProgress)) return false; var tmp0_other_with_cast = other instanceof ContentEntryImportJobProgress ? other : THROW_CCE(); if (!this.cjiUid_1.equals(tmp0_other_with_cast.cjiUid_1)) return false; if (!this.cjiItemProgress_1.equals(tmp0_other_with_cast.cjiItemProgress_1)) return false; if (!this.cjiItemTotal_1.equals(tmp0_other_with_cast.cjiItemTotal_1)) return false; if (!(this.cjiStatus_1 === tmp0_other_with_cast.cjiStatus_1)) return false; if (!(this.cjiError_1 == tmp0_other_with_cast.cjiError_1)) return false; if (!this.cjiOwnerPersonUid_1.equals(tmp0_other_with_cast.cjiOwnerPersonUid_1)) return false; return true; }; function Companion_14() { Companion_instance_14 = this; } protoOf(Companion_14).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_13(); }; var Companion_instance_14; function Companion_getInstance_18() { if (Companion_instance_14 == null) new Companion_14(); return Companion_instance_14; } function $serializer_13() { $serializer_instance_13 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentMarkAndMarkerName', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('courseAssignmentMark', true); tmp0_serialDesc.addElement_5pzumi_k$('markerFirstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('markerLastName', true); tmp0_serialDesc.addElement_5pzumi_k$('markerPictureUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_13).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_13).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_79()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_13).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_79(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_79(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseAssignmentMarkAndMarkerName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_13).serialize_ar74s_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.courseAssignmentMark_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_79(), value.courseAssignmentMark_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.markerFirstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.markerFirstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.markerLastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.markerLastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.markerPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.markerPictureUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_13).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ar74s_k$(encoder, value instanceof CourseAssignmentMarkAndMarkerName ? value : THROW_CCE()); }; var $serializer_instance_13; function $serializer_getInstance_13() { if ($serializer_instance_13 == null) new $serializer_13(); return $serializer_instance_13; } function CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_13().descriptor_1); } if (0 === (seen1 & 1)) $this.courseAssignmentMark_1 = null; else $this.courseAssignmentMark_1 = courseAssignmentMark; if (0 === (seen1 & 2)) $this.markerFirstNames_1 = null; else $this.markerFirstNames_1 = markerFirstNames; if (0 === (seen1 & 4)) $this.markerLastName_1 = null; else $this.markerLastName_1 = markerLastName; if (0 === (seen1 & 8)) $this.markerPictureUri_1 = null; else $this.markerPictureUri_1 = markerPictureUri; return $this; } function CourseAssignmentMarkAndMarkerName_init_$Create$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker) { return CourseAssignmentMarkAndMarkerName_init_$Init$(seen1, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMarkAndMarkerName))); } function CourseAssignmentMarkAndMarkerName(courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri) { Companion_getInstance_18(); courseAssignmentMark = courseAssignmentMark === VOID ? null : courseAssignmentMark; markerFirstNames = markerFirstNames === VOID ? null : markerFirstNames; markerLastName = markerLastName === VOID ? null : markerLastName; markerPictureUri = markerPictureUri === VOID ? null : markerPictureUri; this.courseAssignmentMark_1 = courseAssignmentMark; this.markerFirstNames_1 = markerFirstNames; this.markerLastName_1 = markerLastName; this.markerPictureUri_1 = markerPictureUri; } protoOf(CourseAssignmentMarkAndMarkerName).set_courseAssignmentMark_imci8v_k$ = function (_set____db54di) { this.courseAssignmentMark_1 = _set____db54di; }; protoOf(CourseAssignmentMarkAndMarkerName).get_courseAssignmentMark_wrnnge_k$ = function () { return this.courseAssignmentMark_1; }; protoOf(CourseAssignmentMarkAndMarkerName).set_markerFirstNames_lbldq0_k$ = function (_set____db54di) { this.markerFirstNames_1 = _set____db54di; }; protoOf(CourseAssignmentMarkAndMarkerName).get_markerFirstNames_x53m6z_k$ = function () { return this.markerFirstNames_1; }; protoOf(CourseAssignmentMarkAndMarkerName).set_markerLastName_e1vwe9_k$ = function (_set____db54di) { this.markerLastName_1 = _set____db54di; }; protoOf(CourseAssignmentMarkAndMarkerName).get_markerLastName_ho5qvw_k$ = function () { return this.markerLastName_1; }; protoOf(CourseAssignmentMarkAndMarkerName).set_markerPictureUri_hh7eia_k$ = function (_set____db54di) { this.markerPictureUri_1 = _set____db54di; }; protoOf(CourseAssignmentMarkAndMarkerName).get_markerPictureUri_a6pqnl_k$ = function () { return this.markerPictureUri_1; }; protoOf(CourseAssignmentMarkAndMarkerName).component1_7eebsc_k$ = function () { return this.courseAssignmentMark_1; }; protoOf(CourseAssignmentMarkAndMarkerName).component2_7eebsb_k$ = function () { return this.markerFirstNames_1; }; protoOf(CourseAssignmentMarkAndMarkerName).component3_7eebsa_k$ = function () { return this.markerLastName_1; }; protoOf(CourseAssignmentMarkAndMarkerName).component4_7eebs9_k$ = function () { return this.markerPictureUri_1; }; protoOf(CourseAssignmentMarkAndMarkerName).copy_8x1jw7_k$ = function (courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri) { return new CourseAssignmentMarkAndMarkerName(courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri); }; protoOf(CourseAssignmentMarkAndMarkerName).copy$default_ie09zw_k$ = function (courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri, $super) { courseAssignmentMark = courseAssignmentMark === VOID ? this.courseAssignmentMark_1 : courseAssignmentMark; markerFirstNames = markerFirstNames === VOID ? this.markerFirstNames_1 : markerFirstNames; markerLastName = markerLastName === VOID ? this.markerLastName_1 : markerLastName; markerPictureUri = markerPictureUri === VOID ? this.markerPictureUri_1 : markerPictureUri; return $super === VOID ? this.copy_8x1jw7_k$(courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri) : $super.copy_8x1jw7_k$.call(this, courseAssignmentMark, markerFirstNames, markerLastName, markerPictureUri); }; protoOf(CourseAssignmentMarkAndMarkerName).toString = function () { return 'CourseAssignmentMarkAndMarkerName(courseAssignmentMark=' + this.courseAssignmentMark_1 + ', markerFirstNames=' + this.markerFirstNames_1 + ', markerLastName=' + this.markerLastName_1 + ', markerPictureUri=' + this.markerPictureUri_1 + ')'; }; protoOf(CourseAssignmentMarkAndMarkerName).hashCode = function () { var result = this.courseAssignmentMark_1 == null ? 0 : hashCode(this.courseAssignmentMark_1); result = imul(result, 31) + (this.markerFirstNames_1 == null ? 0 : getStringHashCode(this.markerFirstNames_1)) | 0; result = imul(result, 31) + (this.markerLastName_1 == null ? 0 : getStringHashCode(this.markerLastName_1)) | 0; result = imul(result, 31) + (this.markerPictureUri_1 == null ? 0 : getStringHashCode(this.markerPictureUri_1)) | 0; return result; }; protoOf(CourseAssignmentMarkAndMarkerName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentMarkAndMarkerName)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentMarkAndMarkerName ? other : THROW_CCE(); if (!equals(this.courseAssignmentMark_1, tmp0_other_with_cast.courseAssignmentMark_1)) return false; if (!(this.markerFirstNames_1 == tmp0_other_with_cast.markerFirstNames_1)) return false; if (!(this.markerLastName_1 == tmp0_other_with_cast.markerLastName_1)) return false; if (!(this.markerPictureUri_1 == tmp0_other_with_cast.markerPictureUri_1)) return false; return true; }; function Companion_15() { Companion_instance_15 = this; } protoOf(Companion_15).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_14(); }; var Companion_instance_15; function Companion_getInstance_19() { if (Companion_instance_15 == null) new Companion_15(); return Companion_instance_15; } function $serializer_14() { $serializer_instance_14 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseAssignmentSubmissionFileAndTransferJob', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('submissionFile', true); tmp0_serialDesc.addElement_5pzumi_k$('transferJobItem', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_14).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_14).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_81()), get_nullable($serializer_getInstance_126())]; }; protoOf($serializer_14).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_81(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_126(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_81(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_126(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_14).serialize_osxll4_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.submissionFile_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_81(), value.submissionFile_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.transferJobItem_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_126(), value.transferJobItem_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_14).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_osxll4_k$(encoder, value instanceof CourseAssignmentSubmissionFileAndTransferJob ? value : THROW_CCE()); }; var $serializer_instance_14; function $serializer_getInstance_14() { if ($serializer_instance_14 == null) new $serializer_14(); return $serializer_instance_14; } function CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_14().descriptor_1); } if (0 === (seen1 & 1)) $this.submissionFile_1 = null; else $this.submissionFile_1 = submissionFile; if (0 === (seen1 & 2)) $this.transferJobItem_1 = null; else $this.transferJobItem_1 = transferJobItem; return $this; } function CourseAssignmentSubmissionFileAndTransferJob_init_$Create$(seen1, submissionFile, transferJobItem, serializationConstructorMarker) { return CourseAssignmentSubmissionFileAndTransferJob_init_$Init$(seen1, submissionFile, transferJobItem, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFileAndTransferJob))); } function CourseAssignmentSubmissionFileAndTransferJob(submissionFile, transferJobItem) { Companion_getInstance_19(); submissionFile = submissionFile === VOID ? null : submissionFile; transferJobItem = transferJobItem === VOID ? null : transferJobItem; this.submissionFile_1 = submissionFile; this.transferJobItem_1 = transferJobItem; } protoOf(CourseAssignmentSubmissionFileAndTransferJob).set_submissionFile_2jf413_k$ = function (_set____db54di) { this.submissionFile_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).get_submissionFile_er578x_k$ = function () { return this.submissionFile_1; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).set_transferJobItem_1laoav_k$ = function (_set____db54di) { this.transferJobItem_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).get_transferJobItem_v1bvfo_k$ = function () { return this.transferJobItem_1; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).component1_7eebsc_k$ = function () { return this.submissionFile_1; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).component2_7eebsb_k$ = function () { return this.transferJobItem_1; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).copy_g2isug_k$ = function (submissionFile, transferJobItem) { return new CourseAssignmentSubmissionFileAndTransferJob(submissionFile, transferJobItem); }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).copy$default_mru1j1_k$ = function (submissionFile, transferJobItem, $super) { submissionFile = submissionFile === VOID ? this.submissionFile_1 : submissionFile; transferJobItem = transferJobItem === VOID ? this.transferJobItem_1 : transferJobItem; return $super === VOID ? this.copy_g2isug_k$(submissionFile, transferJobItem) : $super.copy_g2isug_k$.call(this, submissionFile, transferJobItem); }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).toString = function () { return 'CourseAssignmentSubmissionFileAndTransferJob(submissionFile=' + this.submissionFile_1 + ', transferJobItem=' + this.transferJobItem_1 + ')'; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).hashCode = function () { var result = this.submissionFile_1 == null ? 0 : this.submissionFile_1.hashCode(); result = imul(result, 31) + (this.transferJobItem_1 == null ? 0 : this.transferJobItem_1.hashCode()) | 0; return result; }; protoOf(CourseAssignmentSubmissionFileAndTransferJob).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmissionFileAndTransferJob)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFileAndTransferJob ? other : THROW_CCE(); if (!equals(this.submissionFile_1, tmp0_other_with_cast.submissionFile_1)) return false; if (!equals(this.transferJobItem_1, tmp0_other_with_cast.transferJobItem_1)) return false; return true; }; function Companion_16() { Companion_instance_16 = this; } protoOf(Companion_16).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_15(); }; var Companion_instance_16; function Companion_getInstance_20() { if (Companion_instance_16 == null) new Companion_16(); return Companion_instance_16; } function $serializer_15() { $serializer_instance_15 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndAssignment', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('courseBlock', true); tmp0_serialDesc.addElement_5pzumi_k$('assignment', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_15).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_15).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_51())]; }; protoOf($serializer_15).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_51(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_51(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndAssignment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_15).serialize_8qj30x_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.courseBlock_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.courseBlock_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.assignment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_51(), value.assignment_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_15).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_8qj30x_k$(encoder, value instanceof CourseBlockAndAssignment ? value : THROW_CCE()); }; var $serializer_instance_15; function $serializer_getInstance_15() { if ($serializer_instance_15 == null) new $serializer_15(); return $serializer_instance_15; } function CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_15().descriptor_1); } if (0 === (seen1 & 1)) $this.courseBlock_1 = null; else $this.courseBlock_1 = courseBlock; if (0 === (seen1 & 2)) $this.assignment_1 = null; else $this.assignment_1 = assignment; return $this; } function CourseBlockAndAssignment_init_$Create$(seen1, courseBlock, assignment, serializationConstructorMarker) { return CourseBlockAndAssignment_init_$Init$(seen1, courseBlock, assignment, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndAssignment))); } function CourseBlockAndAssignment(courseBlock, assignment) { Companion_getInstance_20(); courseBlock = courseBlock === VOID ? null : courseBlock; assignment = assignment === VOID ? null : assignment; this.courseBlock_1 = courseBlock; this.assignment_1 = assignment; } protoOf(CourseBlockAndAssignment).set_courseBlock_x7q8yb_k$ = function (_set____db54di) { this.courseBlock_1 = _set____db54di; }; protoOf(CourseBlockAndAssignment).get_courseBlock_c2ojbd_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndAssignment).set_assignment_6aqel7_k$ = function (_set____db54di) { this.assignment_1 = _set____db54di; }; protoOf(CourseBlockAndAssignment).get_assignment_378p7u_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndAssignment).component1_7eebsc_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndAssignment).component2_7eebsb_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndAssignment).copy_q1l97g_k$ = function (courseBlock, assignment) { return new CourseBlockAndAssignment(courseBlock, assignment); }; protoOf(CourseBlockAndAssignment).copy$default_ur96l0_k$ = function (courseBlock, assignment, $super) { courseBlock = courseBlock === VOID ? this.courseBlock_1 : courseBlock; assignment = assignment === VOID ? this.assignment_1 : assignment; return $super === VOID ? this.copy_q1l97g_k$(courseBlock, assignment) : $super.copy_q1l97g_k$.call(this, courseBlock, assignment); }; protoOf(CourseBlockAndAssignment).toString = function () { return 'CourseBlockAndAssignment(courseBlock=' + this.courseBlock_1 + ', assignment=' + this.assignment_1 + ')'; }; protoOf(CourseBlockAndAssignment).hashCode = function () { var result = this.courseBlock_1 == null ? 0 : this.courseBlock_1.hashCode(); result = imul(result, 31) + (this.assignment_1 == null ? 0 : this.assignment_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndAssignment).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndAssignment)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndAssignment ? other : THROW_CCE(); if (!equals(this.courseBlock_1, tmp0_other_with_cast.courseBlock_1)) return false; if (!equals(this.assignment_1, tmp0_other_with_cast.assignment_1)) return false; return true; }; function Companion_17() { Companion_instance_17 = this; } protoOf(Companion_17).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_16(); }; var Companion_instance_17; function Companion_getInstance_21() { if (Companion_instance_17 == null) new Companion_17(); return Companion_instance_17; } function $serializer_16() { $serializer_instance_16 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDbEntities', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('courseBlock', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLang', true); tmp0_serialDesc.addElement_5pzumi_k$('assignment', true); tmp0_serialDesc.addElement_5pzumi_k$('assignmentCourseGroupSetName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_16).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_16).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_98()), get_nullable($serializer_getInstance_51()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_16).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_98(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_51(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_98(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_51(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndDbEntities_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_16).serialize_iz1fsv_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.courseBlock_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.courseBlock_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.courseBlockPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_83(), value.courseBlockPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contentEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_66(), value.contentEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.contentEntryLang_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_98(), value.contentEntryLang_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.assignment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_51(), value.assignment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.assignmentCourseGroupSetName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.assignmentCourseGroupSetName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_16).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_iz1fsv_k$(encoder, value instanceof CourseBlockAndDbEntities ? value : THROW_CCE()); }; var $serializer_instance_16; function $serializer_getInstance_16() { if ($serializer_instance_16 == null) new $serializer_16(); return $serializer_instance_16; } function CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_16().descriptor_1); } if (0 === (seen1 & 1)) $this.courseBlock_1 = null; else $this.courseBlock_1 = courseBlock; if (0 === (seen1 & 2)) $this.courseBlockPicture_1 = null; else $this.courseBlockPicture_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.contentEntry_1 = null; else $this.contentEntry_1 = contentEntry; if (0 === (seen1 & 8)) $this.contentEntryLang_1 = null; else $this.contentEntryLang_1 = contentEntryLang; if (0 === (seen1 & 16)) $this.assignment_1 = null; else $this.assignment_1 = assignment; if (0 === (seen1 & 32)) $this.assignmentCourseGroupSetName_1 = null; else $this.assignmentCourseGroupSetName_1 = assignmentCourseGroupSetName; return $this; } function CourseBlockAndDbEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker) { return CourseBlockAndDbEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDbEntities))); } function CourseBlockAndDbEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName) { Companion_getInstance_21(); courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang; assignment = assignment === VOID ? null : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName; this.courseBlock_1 = courseBlock; this.courseBlockPicture_1 = courseBlockPicture; this.contentEntry_1 = contentEntry; this.contentEntryLang_1 = contentEntryLang; this.assignment_1 = assignment; this.assignmentCourseGroupSetName_1 = assignmentCourseGroupSetName; } protoOf(CourseBlockAndDbEntities).set_courseBlock_x7q8yb_k$ = function (_set____db54di) { this.courseBlock_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_courseBlock_c2ojbd_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndDbEntities).set_courseBlockPicture_pbyd35_k$ = function (_set____db54di) { this.courseBlockPicture_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_courseBlockPicture_gnlyiz_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndDbEntities).set_contentEntry_b75rdr_k$ = function (_set____db54di) { this.contentEntry_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndDbEntities).set_contentEntryLang_4hi70w_k$ = function (_set____db54di) { this.contentEntryLang_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_contentEntryLang_jnd1rk_k$ = function () { return this.contentEntryLang_1; }; protoOf(CourseBlockAndDbEntities).set_assignment_6aqel7_k$ = function (_set____db54di) { this.assignment_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_assignment_378p7u_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndDbEntities).set_assignmentCourseGroupSetName_nn2mzg_k$ = function (_set____db54di) { this.assignmentCourseGroupSetName_1 = _set____db54di; }; protoOf(CourseBlockAndDbEntities).get_assignmentCourseGroupSetName_xub873_k$ = function () { return this.assignmentCourseGroupSetName_1; }; protoOf(CourseBlockAndDbEntities).component1_7eebsc_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndDbEntities).component2_7eebsb_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndDbEntities).component3_7eebsa_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndDbEntities).component4_7eebs9_k$ = function () { return this.contentEntryLang_1; }; protoOf(CourseBlockAndDbEntities).component5_7eebs8_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndDbEntities).component6_7eebs7_k$ = function () { return this.assignmentCourseGroupSetName_1; }; protoOf(CourseBlockAndDbEntities).copy_d2k44y_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName) { return new CourseBlockAndDbEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName); }; protoOf(CourseBlockAndDbEntities).copy$default_xjvz5q_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName, $super) { courseBlock = courseBlock === VOID ? this.courseBlock_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.courseBlockPicture_1 : courseBlockPicture; contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; contentEntryLang = contentEntryLang === VOID ? this.contentEntryLang_1 : contentEntryLang; assignment = assignment === VOID ? this.assignment_1 : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? this.assignmentCourseGroupSetName_1 : assignmentCourseGroupSetName; return $super === VOID ? this.copy_d2k44y_k$(courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName) : $super.copy_d2k44y_k$.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryLang, assignment, assignmentCourseGroupSetName); }; protoOf(CourseBlockAndDbEntities).toString = function () { return 'CourseBlockAndDbEntities(courseBlock=' + this.courseBlock_1 + ', courseBlockPicture=' + this.courseBlockPicture_1 + ', contentEntry=' + this.contentEntry_1 + ', contentEntryLang=' + this.contentEntryLang_1 + ', assignment=' + this.assignment_1 + ', assignmentCourseGroupSetName=' + this.assignmentCourseGroupSetName_1 + ')'; }; protoOf(CourseBlockAndDbEntities).hashCode = function () { var result = this.courseBlock_1 == null ? 0 : this.courseBlock_1.hashCode(); result = imul(result, 31) + (this.courseBlockPicture_1 == null ? 0 : this.courseBlockPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryLang_1 == null ? 0 : this.contentEntryLang_1.hashCode()) | 0; result = imul(result, 31) + (this.assignment_1 == null ? 0 : this.assignment_1.hashCode()) | 0; result = imul(result, 31) + (this.assignmentCourseGroupSetName_1 == null ? 0 : getStringHashCode(this.assignmentCourseGroupSetName_1)) | 0; return result; }; protoOf(CourseBlockAndDbEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndDbEntities)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndDbEntities ? other : THROW_CCE(); if (!equals(this.courseBlock_1, tmp0_other_with_cast.courseBlock_1)) return false; if (!equals(this.courseBlockPicture_1, tmp0_other_with_cast.courseBlockPicture_1)) return false; if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.contentEntryLang_1, tmp0_other_with_cast.contentEntryLang_1)) return false; if (!equals(this.assignment_1, tmp0_other_with_cast.assignment_1)) return false; if (!(this.assignmentCourseGroupSetName_1 == tmp0_other_with_cast.assignmentCourseGroupSetName_1)) return false; return true; }; function Companion_18() { Companion_instance_18 = this; } protoOf(Companion_18).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_17(); }; var Companion_instance_18; function Companion_getInstance_22() { if (Companion_instance_18 == null) new Companion_18(); return Companion_instance_18; } function $serializer_17() { $serializer_instance_17 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndDisplayDetails', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('courseBlock', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryPicture2', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_17).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_17).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_71())]; }; protoOf($serializer_17).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_17).serialize_lxuqaq_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.courseBlock_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.courseBlock_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.courseBlockPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_83(), value.courseBlockPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contentEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_66(), value.contentEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.contentEntryPicture2__1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_71(), value.contentEntryPicture2__1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_17).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_lxuqaq_k$(encoder, value instanceof CourseBlockAndDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_17; function $serializer_getInstance_17() { if ($serializer_instance_17 == null) new $serializer_17(); return $serializer_instance_17; } function CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_17().descriptor_1); } if (0 === (seen1 & 1)) $this.courseBlock_1 = null; else $this.courseBlock_1 = courseBlock; if (0 === (seen1 & 2)) $this.courseBlockPicture_1 = null; else $this.courseBlockPicture_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.contentEntry_1 = null; else $this.contentEntry_1 = contentEntry; if (0 === (seen1 & 8)) $this.contentEntryPicture2__1 = null; else $this.contentEntryPicture2__1 = contentEntryPicture2; return $this; } function CourseBlockAndDisplayDetails_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) { return CourseBlockAndDisplayDetails_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndDisplayDetails))); } function CourseBlockAndDisplayDetails(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2) { Companion_getInstance_22(); courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2; this.courseBlock_1 = courseBlock; this.courseBlockPicture_1 = courseBlockPicture; this.contentEntry_1 = contentEntry; this.contentEntryPicture2__1 = contentEntryPicture2; } protoOf(CourseBlockAndDisplayDetails).set_courseBlock_x7q8yb_k$ = function (_set____db54di) { this.courseBlock_1 = _set____db54di; }; protoOf(CourseBlockAndDisplayDetails).get_courseBlock_c2ojbd_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndDisplayDetails).set_courseBlockPicture_pbyd35_k$ = function (_set____db54di) { this.courseBlockPicture_1 = _set____db54di; }; protoOf(CourseBlockAndDisplayDetails).get_courseBlockPicture_gnlyiz_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndDisplayDetails).set_contentEntry_b75rdr_k$ = function (_set____db54di) { this.contentEntry_1 = _set____db54di; }; protoOf(CourseBlockAndDisplayDetails).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndDisplayDetails).set_contentEntryPicture2_lwy733_k$ = function (_set____db54di) { this.contentEntryPicture2__1 = _set____db54di; }; protoOf(CourseBlockAndDisplayDetails).get_contentEntryPicture2_fms5ka_k$ = function () { return this.contentEntryPicture2__1; }; protoOf(CourseBlockAndDisplayDetails).component1_7eebsc_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndDisplayDetails).component2_7eebsb_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndDisplayDetails).component3_7eebsa_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndDisplayDetails).component4_7eebs9_k$ = function () { return this.contentEntryPicture2__1; }; protoOf(CourseBlockAndDisplayDetails).copy_64ei6v_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2) { return new CourseBlockAndDisplayDetails(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2); }; protoOf(CourseBlockAndDisplayDetails).copy$default_oea1wg_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2, $super) { courseBlock = courseBlock === VOID ? this.courseBlock_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.courseBlockPicture_1 : courseBlockPicture; contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? this.contentEntryPicture2__1 : contentEntryPicture2; return $super === VOID ? this.copy_64ei6v_k$(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2) : $super.copy_64ei6v_k$.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture2); }; protoOf(CourseBlockAndDisplayDetails).toString = function () { return 'CourseBlockAndDisplayDetails(courseBlock=' + this.courseBlock_1 + ', courseBlockPicture=' + this.courseBlockPicture_1 + ', contentEntry=' + this.contentEntry_1 + ', contentEntryPicture2=' + this.contentEntryPicture2__1 + ')'; }; protoOf(CourseBlockAndDisplayDetails).hashCode = function () { var result = this.courseBlock_1 == null ? 0 : this.courseBlock_1.hashCode(); result = imul(result, 31) + (this.courseBlockPicture_1 == null ? 0 : this.courseBlockPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryPicture2__1 == null ? 0 : this.contentEntryPicture2__1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndDisplayDetails ? other : THROW_CCE(); if (!equals(this.courseBlock_1, tmp0_other_with_cast.courseBlock_1)) return false; if (!equals(this.courseBlockPicture_1, tmp0_other_with_cast.courseBlockPicture_1)) return false; if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.contentEntryPicture2__1, tmp0_other_with_cast.contentEntryPicture2__1)) return false; return true; }; function _get_$childSerializers__r2zwns($this) { return $this.$childSerializers_1; } function Companion_19() { Companion_instance_19 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.$childSerializers_1 = [null, null, null, null, null, null, null, null, null, new ArrayListSerializer($serializer_getInstance_103())]; } protoOf(Companion_19).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_18(); }; var Companion_instance_19; function Companion_getInstance_23() { if (Companion_instance_19 == null) new Companion_19(); return Companion_instance_19; } function $serializer_18() { $serializer_instance_18 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndEditEntities', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('courseBlock', false); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('contentJobItem', true); tmp0_serialDesc.addElement_5pzumi_k$('contentJob', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLang', true); tmp0_serialDesc.addElement_5pzumi_k$('assignment', true); tmp0_serialDesc.addElement_5pzumi_k$('assignmentCourseGroupSetName', true); tmp0_serialDesc.addElement_5pzumi_k$('assignmentPeerAllocations', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_18).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_18).childSerializers_5ghqw5_k$ = function () { var tmp0_cached = Companion_getInstance_23().$childSerializers_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_82(), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_71()), get_nullable($serializer_getInstance_68()), get_nullable($serializer_getInstance_78()), get_nullable($serializer_getInstance_98()), get_nullable($serializer_getInstance_51()), get_nullable(StringSerializer_getInstance()), tmp0_cached[9]]; }; protoOf($serializer_18).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_input = decoder.beginStructure_yljocp_k$(tmp0_desc); var tmp15_cached = Companion_getInstance_23().$childSerializers_1; if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_68(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_78(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_98(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_51(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_68(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, $serializer_getInstance_78(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, $serializer_getInstance_98(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, $serializer_getInstance_51(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 9, tmp15_cached[9], tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndEditEntities_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_18).serialize_4208kz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); var tmp2_cached = Companion_getInstance_23().$childSerializers_1; tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.courseBlock_1); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.courseBlockPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_83(), value.courseBlockPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contentEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_66(), value.contentEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.contentEntryPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_71(), value.contentEntryPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.contentJobItem_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_68(), value.contentJobItem_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.contentJob_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, $serializer_getInstance_78(), value.contentJob_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.contentEntryLang_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, $serializer_getInstance_98(), value.contentEntryLang_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.assignment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, $serializer_getInstance_51(), value.assignment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.assignmentCourseGroupSetName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.assignmentCourseGroupSetName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !equals(value.assignmentPeerAllocations_1, emptyList())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 9, tmp2_cached[9], value.assignmentPeerAllocations_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_18).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_4208kz_k$(encoder, value instanceof CourseBlockAndEditEntities ? value : THROW_CCE()); }; var $serializer_instance_18; function $serializer_getInstance_18() { if ($serializer_instance_18 == null) new $serializer_18(); return $serializer_instance_18; } function CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_18().descriptor_1); } $this.courseBlock_1 = courseBlock; if (0 === (seen1 & 2)) $this.courseBlockPicture_1 = null; else $this.courseBlockPicture_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.contentEntry_1 = null; else $this.contentEntry_1 = contentEntry; if (0 === (seen1 & 8)) $this.contentEntryPicture_1 = null; else $this.contentEntryPicture_1 = contentEntryPicture; if (0 === (seen1 & 16)) $this.contentJobItem_1 = null; else $this.contentJobItem_1 = contentJobItem; if (0 === (seen1 & 32)) $this.contentJob_1 = null; else $this.contentJob_1 = contentJob; if (0 === (seen1 & 64)) $this.contentEntryLang_1 = null; else $this.contentEntryLang_1 = contentEntryLang; if (0 === (seen1 & 128)) $this.assignment_1 = null; else $this.assignment_1 = assignment; if (0 === (seen1 & 256)) $this.assignmentCourseGroupSetName_1 = null; else $this.assignmentCourseGroupSetName_1 = assignmentCourseGroupSetName; if (0 === (seen1 & 512)) $this.assignmentPeerAllocations_1 = emptyList(); else $this.assignmentPeerAllocations_1 = assignmentPeerAllocations; return $this; } function CourseBlockAndEditEntities_init_$Create$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker) { return CourseBlockAndEditEntities_init_$Init$(seen1, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndEditEntities))); } function CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) { Companion_getInstance_23(); courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture = contentEntryPicture === VOID ? null : contentEntryPicture; contentJobItem = contentJobItem === VOID ? null : contentJobItem; contentJob = contentJob === VOID ? null : contentJob; contentEntryLang = contentEntryLang === VOID ? null : contentEntryLang; assignment = assignment === VOID ? null : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? null : assignmentCourseGroupSetName; assignmentPeerAllocations = assignmentPeerAllocations === VOID ? emptyList() : assignmentPeerAllocations; this.courseBlock_1 = courseBlock; this.courseBlockPicture_1 = courseBlockPicture; this.contentEntry_1 = contentEntry; this.contentEntryPicture_1 = contentEntryPicture; this.contentJobItem_1 = contentJobItem; this.contentJob_1 = contentJob; this.contentEntryLang_1 = contentEntryLang; this.assignment_1 = assignment; this.assignmentCourseGroupSetName_1 = assignmentCourseGroupSetName; this.assignmentPeerAllocations_1 = assignmentPeerAllocations; } protoOf(CourseBlockAndEditEntities).get_courseBlock_c2ojbd_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndEditEntities).get_courseBlockPicture_gnlyiz_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndEditEntities).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndEditEntities).get_contentEntryPicture_534nj8_k$ = function () { return this.contentEntryPicture_1; }; protoOf(CourseBlockAndEditEntities).get_contentJobItem_fg7ikg_k$ = function () { return this.contentJobItem_1; }; protoOf(CourseBlockAndEditEntities).get_contentJob_fsr8c3_k$ = function () { return this.contentJob_1; }; protoOf(CourseBlockAndEditEntities).get_contentEntryLang_jnd1rk_k$ = function () { return this.contentEntryLang_1; }; protoOf(CourseBlockAndEditEntities).get_assignment_378p7u_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndEditEntities).get_assignmentCourseGroupSetName_xub873_k$ = function () { return this.assignmentCourseGroupSetName_1; }; protoOf(CourseBlockAndEditEntities).get_assignmentPeerAllocations_1edap1_k$ = function () { return this.assignmentPeerAllocations_1; }; protoOf(CourseBlockAndEditEntities).asContentEntryAndJob_liljbl_k$ = function () { return new ContentEntryAndContentJob(this.contentEntry_1, this.contentJob_1, this.contentJobItem_1, this.contentEntryPicture_1); }; protoOf(CourseBlockAndEditEntities).component1_7eebsc_k$ = function () { return this.courseBlock_1; }; protoOf(CourseBlockAndEditEntities).component2_7eebsb_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndEditEntities).component3_7eebsa_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndEditEntities).component4_7eebs9_k$ = function () { return this.contentEntryPicture_1; }; protoOf(CourseBlockAndEditEntities).component5_7eebs8_k$ = function () { return this.contentJobItem_1; }; protoOf(CourseBlockAndEditEntities).component6_7eebs7_k$ = function () { return this.contentJob_1; }; protoOf(CourseBlockAndEditEntities).component7_7eebs6_k$ = function () { return this.contentEntryLang_1; }; protoOf(CourseBlockAndEditEntities).component8_7eebs5_k$ = function () { return this.assignment_1; }; protoOf(CourseBlockAndEditEntities).component9_7eebs4_k$ = function () { return this.assignmentCourseGroupSetName_1; }; protoOf(CourseBlockAndEditEntities).component10_gazzfo_k$ = function () { return this.assignmentPeerAllocations_1; }; protoOf(CourseBlockAndEditEntities).copy_7yyb55_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) { return new CourseBlockAndEditEntities(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations); }; protoOf(CourseBlockAndEditEntities).copy$default_8ye1e3_k$ = function (courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations, $super) { courseBlock = courseBlock === VOID ? this.courseBlock_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.courseBlockPicture_1 : courseBlockPicture; contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; contentEntryPicture = contentEntryPicture === VOID ? this.contentEntryPicture_1 : contentEntryPicture; contentJobItem = contentJobItem === VOID ? this.contentJobItem_1 : contentJobItem; contentJob = contentJob === VOID ? this.contentJob_1 : contentJob; contentEntryLang = contentEntryLang === VOID ? this.contentEntryLang_1 : contentEntryLang; assignment = assignment === VOID ? this.assignment_1 : assignment; assignmentCourseGroupSetName = assignmentCourseGroupSetName === VOID ? this.assignmentCourseGroupSetName_1 : assignmentCourseGroupSetName; assignmentPeerAllocations = assignmentPeerAllocations === VOID ? this.assignmentPeerAllocations_1 : assignmentPeerAllocations; return $super === VOID ? this.copy_7yyb55_k$(courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations) : $super.copy_7yyb55_k$.call(this, courseBlock, courseBlockPicture, contentEntry, contentEntryPicture, contentJobItem, contentJob, contentEntryLang, assignment, assignmentCourseGroupSetName, assignmentPeerAllocations); }; protoOf(CourseBlockAndEditEntities).toString = function () { return 'CourseBlockAndEditEntities(courseBlock=' + this.courseBlock_1 + ', courseBlockPicture=' + this.courseBlockPicture_1 + ', contentEntry=' + this.contentEntry_1 + ', contentEntryPicture=' + this.contentEntryPicture_1 + ', contentJobItem=' + this.contentJobItem_1 + ', contentJob=' + this.contentJob_1 + ', contentEntryLang=' + this.contentEntryLang_1 + ', assignment=' + this.assignment_1 + ', assignmentCourseGroupSetName=' + this.assignmentCourseGroupSetName_1 + ', assignmentPeerAllocations=' + this.assignmentPeerAllocations_1 + ')'; }; protoOf(CourseBlockAndEditEntities).hashCode = function () { var result = this.courseBlock_1.hashCode(); result = imul(result, 31) + (this.courseBlockPicture_1 == null ? 0 : this.courseBlockPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryPicture_1 == null ? 0 : this.contentEntryPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentJobItem_1 == null ? 0 : this.contentJobItem_1.hashCode()) | 0; result = imul(result, 31) + (this.contentJob_1 == null ? 0 : this.contentJob_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryLang_1 == null ? 0 : this.contentEntryLang_1.hashCode()) | 0; result = imul(result, 31) + (this.assignment_1 == null ? 0 : this.assignment_1.hashCode()) | 0; result = imul(result, 31) + (this.assignmentCourseGroupSetName_1 == null ? 0 : getStringHashCode(this.assignmentCourseGroupSetName_1)) | 0; result = imul(result, 31) + hashCode(this.assignmentPeerAllocations_1) | 0; return result; }; protoOf(CourseBlockAndEditEntities).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndEditEntities)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndEditEntities ? other : THROW_CCE(); if (!this.courseBlock_1.equals(tmp0_other_with_cast.courseBlock_1)) return false; if (!equals(this.courseBlockPicture_1, tmp0_other_with_cast.courseBlockPicture_1)) return false; if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.contentEntryPicture_1, tmp0_other_with_cast.contentEntryPicture_1)) return false; if (!equals(this.contentJobItem_1, tmp0_other_with_cast.contentJobItem_1)) return false; if (!equals(this.contentJob_1, tmp0_other_with_cast.contentJob_1)) return false; if (!equals(this.contentEntryLang_1, tmp0_other_with_cast.contentEntryLang_1)) return false; if (!equals(this.assignment_1, tmp0_other_with_cast.assignment_1)) return false; if (!(this.assignmentCourseGroupSetName_1 == tmp0_other_with_cast.assignmentCourseGroupSetName_1)) return false; if (!equals(this.assignmentPeerAllocations_1, tmp0_other_with_cast.assignmentPeerAllocations_1)) return false; return true; }; function Companion_20() { Companion_instance_20 = this; } protoOf(Companion_20).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_19(); }; var Companion_instance_20; function Companion_getInstance_24() { if (Companion_instance_20 == null) new Companion_20(); return Companion_instance_20; } function $serializer_19() { $serializer_instance_19 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndGradebookDisplayDetails', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('block', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryPicture2', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_19).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_19).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_66()), get_nullable($serializer_getInstance_71())]; }; protoOf($serializer_19).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_66(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_71(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndGradebookDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_19).serialize_lajcug_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.block_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.block_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.courseBlockPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_83(), value.courseBlockPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.contentEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_66(), value.contentEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.contentEntryPicture2__1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_71(), value.contentEntryPicture2__1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_19).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_lajcug_k$(encoder, value instanceof CourseBlockAndGradebookDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_19; function $serializer_getInstance_19() { if ($serializer_instance_19 == null) new $serializer_19(); return $serializer_instance_19; } function CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_19().descriptor_1); } if (0 === (seen1 & 1)) $this.block_1 = null; else $this.block_1 = block; if (0 === (seen1 & 2)) $this.courseBlockPicture_1 = null; else $this.courseBlockPicture_1 = courseBlockPicture; if (0 === (seen1 & 4)) $this.contentEntry_1 = null; else $this.contentEntry_1 = contentEntry; if (0 === (seen1 & 8)) $this.contentEntryPicture2__1 = null; else $this.contentEntryPicture2__1 = contentEntryPicture2; return $this; } function CourseBlockAndGradebookDisplayDetails_init_$Create$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker) { return CourseBlockAndGradebookDisplayDetails_init_$Init$(seen1, block, courseBlockPicture, contentEntry, contentEntryPicture2, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndGradebookDisplayDetails))); } function CourseBlockAndGradebookDisplayDetails(block, courseBlockPicture, contentEntry, contentEntryPicture2) { Companion_getInstance_24(); block = block === VOID ? null : block; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; contentEntry = contentEntry === VOID ? null : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? null : contentEntryPicture2; this.block_1 = block; this.courseBlockPicture_1 = courseBlockPicture; this.contentEntry_1 = contentEntry; this.contentEntryPicture2__1 = contentEntryPicture2; } protoOf(CourseBlockAndGradebookDisplayDetails).set_block_ew53te_k$ = function (_set____db54di) { this.block_1 = _set____db54di; }; protoOf(CourseBlockAndGradebookDisplayDetails).get_block_ip8l7o_k$ = function () { return this.block_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).set_courseBlockPicture_pbyd35_k$ = function (_set____db54di) { this.courseBlockPicture_1 = _set____db54di; }; protoOf(CourseBlockAndGradebookDisplayDetails).get_courseBlockPicture_gnlyiz_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).set_contentEntry_b75rdr_k$ = function (_set____db54di) { this.contentEntry_1 = _set____db54di; }; protoOf(CourseBlockAndGradebookDisplayDetails).get_contentEntry_hwf2de_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).set_contentEntryPicture2_lwy733_k$ = function (_set____db54di) { this.contentEntryPicture2__1 = _set____db54di; }; protoOf(CourseBlockAndGradebookDisplayDetails).get_contentEntryPicture2_fms5ka_k$ = function () { return this.contentEntryPicture2__1; }; protoOf(CourseBlockAndGradebookDisplayDetails).component1_7eebsc_k$ = function () { return this.block_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).component2_7eebsb_k$ = function () { return this.courseBlockPicture_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).component3_7eebsa_k$ = function () { return this.contentEntry_1; }; protoOf(CourseBlockAndGradebookDisplayDetails).component4_7eebs9_k$ = function () { return this.contentEntryPicture2__1; }; protoOf(CourseBlockAndGradebookDisplayDetails).copy_64ei6v_k$ = function (block, courseBlockPicture, contentEntry, contentEntryPicture2) { return new CourseBlockAndGradebookDisplayDetails(block, courseBlockPicture, contentEntry, contentEntryPicture2); }; protoOf(CourseBlockAndGradebookDisplayDetails).copy$default_ot20c8_k$ = function (block, courseBlockPicture, contentEntry, contentEntryPicture2, $super) { block = block === VOID ? this.block_1 : block; courseBlockPicture = courseBlockPicture === VOID ? this.courseBlockPicture_1 : courseBlockPicture; contentEntry = contentEntry === VOID ? this.contentEntry_1 : contentEntry; contentEntryPicture2 = contentEntryPicture2 === VOID ? this.contentEntryPicture2__1 : contentEntryPicture2; return $super === VOID ? this.copy_64ei6v_k$(block, courseBlockPicture, contentEntry, contentEntryPicture2) : $super.copy_64ei6v_k$.call(this, block, courseBlockPicture, contentEntry, contentEntryPicture2); }; protoOf(CourseBlockAndGradebookDisplayDetails).toString = function () { return 'CourseBlockAndGradebookDisplayDetails(block=' + this.block_1 + ', courseBlockPicture=' + this.courseBlockPicture_1 + ', contentEntry=' + this.contentEntry_1 + ', contentEntryPicture2=' + this.contentEntryPicture2__1 + ')'; }; protoOf(CourseBlockAndGradebookDisplayDetails).hashCode = function () { var result = this.block_1 == null ? 0 : this.block_1.hashCode(); result = imul(result, 31) + (this.courseBlockPicture_1 == null ? 0 : this.courseBlockPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntry_1 == null ? 0 : this.contentEntry_1.hashCode()) | 0; result = imul(result, 31) + (this.contentEntryPicture2__1 == null ? 0 : this.contentEntryPicture2__1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndGradebookDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndGradebookDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndGradebookDisplayDetails ? other : THROW_CCE(); if (!equals(this.block_1, tmp0_other_with_cast.block_1)) return false; if (!equals(this.courseBlockPicture_1, tmp0_other_with_cast.courseBlockPicture_1)) return false; if (!equals(this.contentEntry_1, tmp0_other_with_cast.contentEntry_1)) return false; if (!equals(this.contentEntryPicture2__1, tmp0_other_with_cast.contentEntryPicture2__1)) return false; return true; }; function Companion_21() { Companion_instance_21 = this; } protoOf(Companion_21).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_20(); }; var Companion_instance_21; function Companion_getInstance_25() { if (Companion_instance_21 == null) new Companion_21(); return Companion_instance_21; } function $serializer_20() { $serializer_instance_20 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockAndPicture', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('block', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_20).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_20).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_83())]; }; protoOf($serializer_20).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_82(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_83(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_20).serialize_am78mu_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.block_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_82(), value.block_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_83(), value.picture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_20).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_am78mu_k$(encoder, value instanceof CourseBlockAndPicture ? value : THROW_CCE()); }; var $serializer_instance_20; function $serializer_getInstance_20() { if ($serializer_instance_20 == null) new $serializer_20(); return $serializer_instance_20; } function CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_20().descriptor_1); } if (0 === (seen1 & 1)) $this.block_1 = null; else $this.block_1 = block; if (0 === (seen1 & 2)) $this.picture_1 = null; else $this.picture_1 = picture; return $this; } function CourseBlockAndPicture_init_$Create$(seen1, block, picture, serializationConstructorMarker) { return CourseBlockAndPicture_init_$Init$(seen1, block, picture, serializationConstructorMarker, objectCreate(protoOf(CourseBlockAndPicture))); } function CourseBlockAndPicture(block, picture) { Companion_getInstance_25(); block = block === VOID ? null : block; picture = picture === VOID ? null : picture; this.block_1 = block; this.picture_1 = picture; } protoOf(CourseBlockAndPicture).set_block_ew53te_k$ = function (_set____db54di) { this.block_1 = _set____db54di; }; protoOf(CourseBlockAndPicture).get_block_ip8l7o_k$ = function () { return this.block_1; }; protoOf(CourseBlockAndPicture).set_picture_c40yux_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(CourseBlockAndPicture).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(CourseBlockAndPicture).component1_7eebsc_k$ = function () { return this.block_1; }; protoOf(CourseBlockAndPicture).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(CourseBlockAndPicture).copy_t8faph_k$ = function (block, picture) { return new CourseBlockAndPicture(block, picture); }; protoOf(CourseBlockAndPicture).copy$default_vvr3mi_k$ = function (block, picture, $super) { block = block === VOID ? this.block_1 : block; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_t8faph_k$(block, picture) : $super.copy_t8faph_k$.call(this, block, picture); }; protoOf(CourseBlockAndPicture).toString = function () { return 'CourseBlockAndPicture(block=' + this.block_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(CourseBlockAndPicture).hashCode = function () { var result = this.block_1 == null ? 0 : this.block_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(CourseBlockAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockAndPicture)) return false; var tmp0_other_with_cast = other instanceof CourseBlockAndPicture ? other : THROW_CCE(); if (!equals(this.block_1, tmp0_other_with_cast.block_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_22() { Companion_instance_22 = this; } protoOf(Companion_22).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_21(); }; var Companion_instance_22; function Companion_getInstance_26() { if (Companion_instance_22 == null) new Companion_22(); return Companion_instance_22; } function $serializer_21() { $serializer_instance_21 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseBlockUidAndClazzUid', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('clazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_21).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_21).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_21).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockUidAndClazzUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_21).serialize_k7b5im_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.clazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.clazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.courseBlockUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.courseBlockUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_21).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_k7b5im_k$(encoder, value instanceof CourseBlockUidAndClazzUid ? value : THROW_CCE()); }; var $serializer_instance_21; function $serializer_getInstance_21() { if ($serializer_instance_21 == null) new $serializer_21(); return $serializer_instance_21; } function CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_21().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzUid_1 = new Long(0, 0); else $this.clazzUid_1 = clazzUid; if (0 === (seen1 & 2)) $this.courseBlockUid_1 = new Long(0, 0); else $this.courseBlockUid_1 = courseBlockUid; return $this; } function CourseBlockUidAndClazzUid_init_$Create$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker) { return CourseBlockUidAndClazzUid_init_$Init$(seen1, clazzUid, courseBlockUid, serializationConstructorMarker, objectCreate(protoOf(CourseBlockUidAndClazzUid))); } function CourseBlockUidAndClazzUid(clazzUid, courseBlockUid) { Companion_getInstance_26(); clazzUid = clazzUid === VOID ? new Long(0, 0) : clazzUid; courseBlockUid = courseBlockUid === VOID ? new Long(0, 0) : courseBlockUid; this.clazzUid_1 = clazzUid; this.courseBlockUid_1 = courseBlockUid; } protoOf(CourseBlockUidAndClazzUid).set_clazzUid_tlygrb_k$ = function (_set____db54di) { this.clazzUid_1 = _set____db54di; }; protoOf(CourseBlockUidAndClazzUid).get_clazzUid_k8pnbz_k$ = function () { return this.clazzUid_1; }; protoOf(CourseBlockUidAndClazzUid).set_courseBlockUid_rygvur_k$ = function (_set____db54di) { this.courseBlockUid_1 = _set____db54di; }; protoOf(CourseBlockUidAndClazzUid).get_courseBlockUid_akc5af_k$ = function () { return this.courseBlockUid_1; }; protoOf(CourseBlockUidAndClazzUid).component1_7eebsc_k$ = function () { return this.clazzUid_1; }; protoOf(CourseBlockUidAndClazzUid).component2_7eebsb_k$ = function () { return this.courseBlockUid_1; }; protoOf(CourseBlockUidAndClazzUid).copy_cwfd3f_k$ = function (clazzUid, courseBlockUid) { return new CourseBlockUidAndClazzUid(clazzUid, courseBlockUid); }; protoOf(CourseBlockUidAndClazzUid).copy$default_236i5w_k$ = function (clazzUid, courseBlockUid, $super) { clazzUid = clazzUid === VOID ? this.clazzUid_1 : clazzUid; courseBlockUid = courseBlockUid === VOID ? this.courseBlockUid_1 : courseBlockUid; return $super === VOID ? this.copy_cwfd3f_k$(clazzUid, courseBlockUid) : $super.copy_cwfd3f_k$.call(this, clazzUid, courseBlockUid); }; protoOf(CourseBlockUidAndClazzUid).toString = function () { return 'CourseBlockUidAndClazzUid(clazzUid=' + this.clazzUid_1.toString() + ', courseBlockUid=' + this.courseBlockUid_1.toString() + ')'; }; protoOf(CourseBlockUidAndClazzUid).hashCode = function () { var result = this.clazzUid_1.hashCode(); result = imul(result, 31) + this.courseBlockUid_1.hashCode() | 0; return result; }; protoOf(CourseBlockUidAndClazzUid).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockUidAndClazzUid)) return false; var tmp0_other_with_cast = other instanceof CourseBlockUidAndClazzUid ? other : THROW_CCE(); if (!this.clazzUid_1.equals(tmp0_other_with_cast.clazzUid_1)) return false; if (!this.courseBlockUid_1.equals(tmp0_other_with_cast.courseBlockUid_1)) return false; return true; }; function Companion_23() { Companion_instance_23 = this; } protoOf(Companion_23).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_22(); }; var Companion_instance_23; function Companion_getInstance_27() { if (Companion_instance_23 == null) new Companion_23(); return Companion_instance_23; } function $serializer_22() { $serializer_instance_22 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseGroupMemberAndPerson', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('courseGroupMember', true); tmp0_serialDesc.addElement_5pzumi_k$('person', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_22).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_22).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_84()), get_nullable($serializer_getInstance_104())]; }; protoOf($serializer_22).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_84(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_84(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseGroupMemberAndPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_22).serialize_4fd9dh_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.courseGroupMember_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_84(), value.courseGroupMember_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_104(), value.person_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_22).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_4fd9dh_k$(encoder, value instanceof CourseGroupMemberAndPerson ? value : THROW_CCE()); }; var $serializer_instance_22; function $serializer_getInstance_22() { if ($serializer_instance_22 == null) new $serializer_22(); return $serializer_instance_22; } function CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_22().descriptor_1); } if (0 === (seen1 & 1)) $this.courseGroupMember_1 = null; else $this.courseGroupMember_1 = courseGroupMember; if (0 === (seen1 & 2)) $this.person_1 = null; else $this.person_1 = person; return $this; } function CourseGroupMemberAndPerson_init_$Create$(seen1, courseGroupMember, person, serializationConstructorMarker) { return CourseGroupMemberAndPerson_init_$Init$(seen1, courseGroupMember, person, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndPerson))); } function CourseGroupMemberAndPerson(courseGroupMember, person) { Companion_getInstance_27(); courseGroupMember = courseGroupMember === VOID ? null : courseGroupMember; person = person === VOID ? null : person; this.courseGroupMember_1 = courseGroupMember; this.person_1 = person; } protoOf(CourseGroupMemberAndPerson).set_courseGroupMember_5bezor_k$ = function (_set____db54di) { this.courseGroupMember_1 = _set____db54di; }; protoOf(CourseGroupMemberAndPerson).get_courseGroupMember_43922z_k$ = function () { return this.courseGroupMember_1; }; protoOf(CourseGroupMemberAndPerson).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(CourseGroupMemberAndPerson).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(CourseGroupMemberAndPerson).component1_7eebsc_k$ = function () { return this.courseGroupMember_1; }; protoOf(CourseGroupMemberAndPerson).component2_7eebsb_k$ = function () { return this.person_1; }; protoOf(CourseGroupMemberAndPerson).copy_8b438y_k$ = function (courseGroupMember, person) { return new CourseGroupMemberAndPerson(courseGroupMember, person); }; protoOf(CourseGroupMemberAndPerson).copy$default_hemhem_k$ = function (courseGroupMember, person, $super) { courseGroupMember = courseGroupMember === VOID ? this.courseGroupMember_1 : courseGroupMember; person = person === VOID ? this.person_1 : person; return $super === VOID ? this.copy_8b438y_k$(courseGroupMember, person) : $super.copy_8b438y_k$.call(this, courseGroupMember, person); }; protoOf(CourseGroupMemberAndPerson).toString = function () { return 'CourseGroupMemberAndPerson(courseGroupMember=' + this.courseGroupMember_1 + ', person=' + this.person_1 + ')'; }; protoOf(CourseGroupMemberAndPerson).hashCode = function () { var result = this.courseGroupMember_1 == null ? 0 : this.courseGroupMember_1.hashCode(); result = imul(result, 31) + (this.person_1 == null ? 0 : this.person_1.hashCode()) | 0; return result; }; protoOf(CourseGroupMemberAndPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMemberAndPerson)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMemberAndPerson ? other : THROW_CCE(); if (!equals(this.courseGroupMember_1, tmp0_other_with_cast.courseGroupMember_1)) return false; if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; return true; }; function Companion_24() { Companion_instance_24 = this; } protoOf(Companion_24).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_23(); }; var Companion_instance_24; function Companion_getInstance_28() { if (Companion_instance_24 == null) new Companion_24(); return Companion_instance_24; } function $serializer_23() { $serializer_instance_23 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CourseNameAndPersonName', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('firstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_23).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_23).childSerializers_5ghqw5_k$ = 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())]; }; protoOf($serializer_23).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseNameAndPersonName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_23).serialize_c1zbzm_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.clazzName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.clazzName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.firstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.firstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.lastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.lastName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_23).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_c1zbzm_k$(encoder, value instanceof CourseNameAndPersonName ? value : THROW_CCE()); }; var $serializer_instance_23; function $serializer_getInstance_23() { if ($serializer_instance_23 == null) new $serializer_23(); return $serializer_instance_23; } function CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_23().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzName_1 = null; else $this.clazzName_1 = clazzName; if (0 === (seen1 & 2)) $this.firstNames_1 = null; else $this.firstNames_1 = firstNames; if (0 === (seen1 & 4)) $this.lastName_1 = null; else $this.lastName_1 = lastName; return $this; } function CourseNameAndPersonName_init_$Create$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker) { return CourseNameAndPersonName_init_$Init$(seen1, clazzName, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(CourseNameAndPersonName))); } function CourseNameAndPersonName(clazzName, firstNames, lastName) { Companion_getInstance_28(); clazzName = clazzName === VOID ? null : clazzName; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; this.clazzName_1 = clazzName; this.firstNames_1 = firstNames; this.lastName_1 = lastName; } protoOf(CourseNameAndPersonName).set_clazzName_aqdmvj_k$ = function (_set____db54di) { this.clazzName_1 = _set____db54di; }; protoOf(CourseNameAndPersonName).get_clazzName_brsrx6_k$ = function () { return this.clazzName_1; }; protoOf(CourseNameAndPersonName).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(CourseNameAndPersonName).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(CourseNameAndPersonName).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(CourseNameAndPersonName).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(CourseNameAndPersonName).component1_7eebsc_k$ = function () { return this.clazzName_1; }; protoOf(CourseNameAndPersonName).component2_7eebsb_k$ = function () { return this.firstNames_1; }; protoOf(CourseNameAndPersonName).component3_7eebsa_k$ = function () { return this.lastName_1; }; protoOf(CourseNameAndPersonName).copy_mfdan4_k$ = function (clazzName, firstNames, lastName) { return new CourseNameAndPersonName(clazzName, firstNames, lastName); }; protoOf(CourseNameAndPersonName).copy$default_mcztho_k$ = function (clazzName, firstNames, lastName, $super) { clazzName = clazzName === VOID ? this.clazzName_1 : clazzName; firstNames = firstNames === VOID ? this.firstNames_1 : firstNames; lastName = lastName === VOID ? this.lastName_1 : lastName; return $super === VOID ? this.copy_mfdan4_k$(clazzName, firstNames, lastName) : $super.copy_mfdan4_k$.call(this, clazzName, firstNames, lastName); }; protoOf(CourseNameAndPersonName).toString = function () { return 'CourseNameAndPersonName(clazzName=' + this.clazzName_1 + ', firstNames=' + this.firstNames_1 + ', lastName=' + this.lastName_1 + ')'; }; protoOf(CourseNameAndPersonName).hashCode = function () { var result = this.clazzName_1 == null ? 0 : getStringHashCode(this.clazzName_1); result = imul(result, 31) + (this.firstNames_1 == null ? 0 : getStringHashCode(this.firstNames_1)) | 0; result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; return result; }; protoOf(CourseNameAndPersonName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseNameAndPersonName)) return false; var tmp0_other_with_cast = other instanceof CourseNameAndPersonName ? other : THROW_CCE(); if (!(this.clazzName_1 == tmp0_other_with_cast.clazzName_1)) return false; if (!(this.firstNames_1 == tmp0_other_with_cast.firstNames_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; return true; }; function Companion_25() { Companion_instance_25 = this; } protoOf(Companion_25).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_24(); }; var Companion_instance_25; function Companion_getInstance_29() { if (Companion_instance_25 == null) new Companion_25(); return Companion_instance_25; } function $serializer_24() { $serializer_instance_24 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.CoursePermissionAndEnrolment', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('coursePermission', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolment', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_24).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_24).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_87()), get_nullable($serializer_getInstance_53())]; }; protoOf($serializer_24).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_87(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_53(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_87(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_53(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return CoursePermissionAndEnrolment_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_24).serialize_qqfx3o_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.coursePermission_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_87(), value.coursePermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.clazzEnrolment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_53(), value.clazzEnrolment_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_24).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_qqfx3o_k$(encoder, value instanceof CoursePermissionAndEnrolment ? value : THROW_CCE()); }; var $serializer_instance_24; function $serializer_getInstance_24() { if ($serializer_instance_24 == null) new $serializer_24(); return $serializer_instance_24; } function CoursePermissionAndEnrolment_init_$Init$(seen1, coursePermission, clazzEnrolment, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_24().descriptor_1); } if (0 === (seen1 & 1)) $this.coursePermission_1 = null; else $this.coursePermission_1 = coursePermission; if (0 === (seen1 & 2)) $this.clazzEnrolment_1 = null; else $this.clazzEnrolment_1 = clazzEnrolment; return $this; } function CoursePermissionAndEnrolment_init_$Create$(seen1, coursePermission, clazzEnrolment, serializationConstructorMarker) { return CoursePermissionAndEnrolment_init_$Init$(seen1, coursePermission, clazzEnrolment, serializationConstructorMarker, objectCreate(protoOf(CoursePermissionAndEnrolment))); } function CoursePermissionAndEnrolment(coursePermission, clazzEnrolment) { Companion_getInstance_29(); coursePermission = coursePermission === VOID ? null : coursePermission; clazzEnrolment = clazzEnrolment === VOID ? null : clazzEnrolment; this.coursePermission_1 = coursePermission; this.clazzEnrolment_1 = clazzEnrolment; } protoOf(CoursePermissionAndEnrolment).set_coursePermission_6v7szl_k$ = function (_set____db54di) { this.coursePermission_1 = _set____db54di; }; protoOf(CoursePermissionAndEnrolment).get_coursePermission_y7ay25_k$ = function () { return this.coursePermission_1; }; protoOf(CoursePermissionAndEnrolment).set_clazzEnrolment_sfi2bj_k$ = function (_set____db54di) { this.clazzEnrolment_1 = _set____db54di; }; protoOf(CoursePermissionAndEnrolment).get_clazzEnrolment_p0dax7_k$ = function () { return this.clazzEnrolment_1; }; protoOf(CoursePermissionAndEnrolment).component1_7eebsc_k$ = function () { return this.coursePermission_1; }; protoOf(CoursePermissionAndEnrolment).component2_7eebsb_k$ = function () { return this.clazzEnrolment_1; }; protoOf(CoursePermissionAndEnrolment).copy_xabydz_k$ = function (coursePermission, clazzEnrolment) { return new CoursePermissionAndEnrolment(coursePermission, clazzEnrolment); }; protoOf(CoursePermissionAndEnrolment).copy$default_80o91m_k$ = function (coursePermission, clazzEnrolment, $super) { coursePermission = coursePermission === VOID ? this.coursePermission_1 : coursePermission; clazzEnrolment = clazzEnrolment === VOID ? this.clazzEnrolment_1 : clazzEnrolment; return $super === VOID ? this.copy_xabydz_k$(coursePermission, clazzEnrolment) : $super.copy_xabydz_k$.call(this, coursePermission, clazzEnrolment); }; protoOf(CoursePermissionAndEnrolment).toString = function () { return 'CoursePermissionAndEnrolment(coursePermission=' + this.coursePermission_1 + ', clazzEnrolment=' + this.clazzEnrolment_1 + ')'; }; protoOf(CoursePermissionAndEnrolment).hashCode = function () { var result = this.coursePermission_1 == null ? 0 : this.coursePermission_1.hashCode(); result = imul(result, 31) + (this.clazzEnrolment_1 == null ? 0 : hashCode(this.clazzEnrolment_1)) | 0; return result; }; protoOf(CoursePermissionAndEnrolment).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionAndEnrolment)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionAndEnrolment ? other : THROW_CCE(); if (!equals(this.coursePermission_1, tmp0_other_with_cast.coursePermission_1)) return false; if (!equals(this.clazzEnrolment_1, tmp0_other_with_cast.clazzEnrolment_1)) return false; return true; }; function CoursePermissionAndListDetail(coursePermission, person, personPicture) { coursePermission = coursePermission === VOID ? null : coursePermission; person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; this.coursePermission_1 = coursePermission; this.person_1 = person; this.personPicture_1 = personPicture; } protoOf(CoursePermissionAndListDetail).set_coursePermission_6v7szl_k$ = function (_set____db54di) { this.coursePermission_1 = _set____db54di; }; protoOf(CoursePermissionAndListDetail).get_coursePermission_y7ay25_k$ = function () { return this.coursePermission_1; }; protoOf(CoursePermissionAndListDetail).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(CoursePermissionAndListDetail).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(CoursePermissionAndListDetail).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(CoursePermissionAndListDetail).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(CoursePermissionAndListDetail).component1_7eebsc_k$ = function () { return this.coursePermission_1; }; protoOf(CoursePermissionAndListDetail).component2_7eebsb_k$ = function () { return this.person_1; }; protoOf(CoursePermissionAndListDetail).component3_7eebsa_k$ = function () { return this.personPicture_1; }; protoOf(CoursePermissionAndListDetail).copy_l5s3az_k$ = function (coursePermission, person, personPicture) { return new CoursePermissionAndListDetail(coursePermission, person, personPicture); }; protoOf(CoursePermissionAndListDetail).copy$default_q3t4cc_k$ = function (coursePermission, person, personPicture, $super) { coursePermission = coursePermission === VOID ? this.coursePermission_1 : coursePermission; person = person === VOID ? this.person_1 : person; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; return $super === VOID ? this.copy_l5s3az_k$(coursePermission, person, personPicture) : $super.copy_l5s3az_k$.call(this, coursePermission, person, personPicture); }; protoOf(CoursePermissionAndListDetail).toString = function () { return 'CoursePermissionAndListDetail(coursePermission=' + this.coursePermission_1 + ', person=' + this.person_1 + ', personPicture=' + this.personPicture_1 + ')'; }; protoOf(CoursePermissionAndListDetail).hashCode = function () { var result = this.coursePermission_1 == null ? 0 : this.coursePermission_1.hashCode(); result = imul(result, 31) + (this.person_1 == null ? 0 : this.person_1.hashCode()) | 0; result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; return result; }; protoOf(CoursePermissionAndListDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermissionAndListDetail)) return false; var tmp0_other_with_cast = other instanceof CoursePermissionAndListDetail ? other : THROW_CCE(); if (!equals(this.coursePermission_1, tmp0_other_with_cast.coursePermission_1)) return false; if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; return true; }; function Companion_26() { Companion_instance_26 = this; } protoOf(Companion_26).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_25(); }; var Companion_instance_26; function Companion_getInstance_30() { if (Companion_instance_26 == null) new Companion_26(); return Companion_instance_26; } function $serializer_25() { $serializer_instance_25 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.DiscussionPostAndPosterNames', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('discussionPost', true); tmp0_serialDesc.addElement_5pzumi_k$('firstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_25).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_25).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_91()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_25).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_91(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_91(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return DiscussionPostAndPosterNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_25).serialize_z85gyf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.discussionPost_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_91(), value.discussionPost_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.firstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.firstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.lastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.lastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.personPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.personPictureUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_25).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_z85gyf_k$(encoder, value instanceof DiscussionPostAndPosterNames ? value : THROW_CCE()); }; var $serializer_instance_25; function $serializer_getInstance_25() { if ($serializer_instance_25 == null) new $serializer_25(); return $serializer_instance_25; } function DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_25().descriptor_1); } if (0 === (seen1 & 1)) $this.discussionPost_1 = null; else $this.discussionPost_1 = discussionPost; if (0 === (seen1 & 2)) $this.firstNames_1 = null; else $this.firstNames_1 = firstNames; if (0 === (seen1 & 4)) $this.lastName_1 = null; else $this.lastName_1 = lastName; if (0 === (seen1 & 8)) $this.personPictureUri_1 = null; else $this.personPictureUri_1 = personPictureUri; return $this; } function DiscussionPostAndPosterNames_init_$Create$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker) { return DiscussionPostAndPosterNames_init_$Init$(seen1, discussionPost, firstNames, lastName, personPictureUri, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostAndPosterNames))); } function DiscussionPostAndPosterNames(discussionPost, firstNames, lastName, personPictureUri) { Companion_getInstance_30(); discussionPost = discussionPost === VOID ? null : discussionPost; firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; personPictureUri = personPictureUri === VOID ? null : personPictureUri; this.discussionPost_1 = discussionPost; this.firstNames_1 = firstNames; this.lastName_1 = lastName; this.personPictureUri_1 = personPictureUri; } protoOf(DiscussionPostAndPosterNames).set_discussionPost_mkuzpd_k$ = function (_set____db54di) { this.discussionPost_1 = _set____db54di; }; protoOf(DiscussionPostAndPosterNames).get_discussionPost_4c7lzj_k$ = function () { return this.discussionPost_1; }; protoOf(DiscussionPostAndPosterNames).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(DiscussionPostAndPosterNames).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(DiscussionPostAndPosterNames).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(DiscussionPostAndPosterNames).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(DiscussionPostAndPosterNames).set_personPictureUri_20k97t_k$ = function (_set____db54di) { this.personPictureUri_1 = _set____db54di; }; protoOf(DiscussionPostAndPosterNames).get_personPictureUri_r3scj8_k$ = function () { return this.personPictureUri_1; }; protoOf(DiscussionPostAndPosterNames).component1_7eebsc_k$ = function () { return this.discussionPost_1; }; protoOf(DiscussionPostAndPosterNames).component2_7eebsb_k$ = function () { return this.firstNames_1; }; protoOf(DiscussionPostAndPosterNames).component3_7eebsa_k$ = function () { return this.lastName_1; }; protoOf(DiscussionPostAndPosterNames).component4_7eebs9_k$ = function () { return this.personPictureUri_1; }; protoOf(DiscussionPostAndPosterNames).copy_bx5v56_k$ = function (discussionPost, firstNames, lastName, personPictureUri) { return new DiscussionPostAndPosterNames(discussionPost, firstNames, lastName, personPictureUri); }; protoOf(DiscussionPostAndPosterNames).copy$default_8ilzk4_k$ = function (discussionPost, firstNames, lastName, personPictureUri, $super) { discussionPost = discussionPost === VOID ? this.discussionPost_1 : discussionPost; firstNames = firstNames === VOID ? this.firstNames_1 : firstNames; lastName = lastName === VOID ? this.lastName_1 : lastName; personPictureUri = personPictureUri === VOID ? this.personPictureUri_1 : personPictureUri; return $super === VOID ? this.copy_bx5v56_k$(discussionPost, firstNames, lastName, personPictureUri) : $super.copy_bx5v56_k$.call(this, discussionPost, firstNames, lastName, personPictureUri); }; protoOf(DiscussionPostAndPosterNames).toString = function () { return 'DiscussionPostAndPosterNames(discussionPost=' + this.discussionPost_1 + ', firstNames=' + this.firstNames_1 + ', lastName=' + this.lastName_1 + ', personPictureUri=' + this.personPictureUri_1 + ')'; }; protoOf(DiscussionPostAndPosterNames).hashCode = function () { var result = this.discussionPost_1 == null ? 0 : hashCode(this.discussionPost_1); result = imul(result, 31) + (this.firstNames_1 == null ? 0 : getStringHashCode(this.firstNames_1)) | 0; result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; result = imul(result, 31) + (this.personPictureUri_1 == null ? 0 : getStringHashCode(this.personPictureUri_1)) | 0; return result; }; protoOf(DiscussionPostAndPosterNames).equals = function (other) { if (this === other) return true; if (!(other instanceof DiscussionPostAndPosterNames)) return false; var tmp0_other_with_cast = other instanceof DiscussionPostAndPosterNames ? other : THROW_CCE(); if (!equals(this.discussionPost_1, tmp0_other_with_cast.discussionPost_1)) return false; if (!(this.firstNames_1 == tmp0_other_with_cast.firstNames_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; if (!(this.personPictureUri_1 == tmp0_other_with_cast.personPictureUri_1)) return false; return true; }; function Companion_27() { Companion_instance_27 = this; } protoOf(Companion_27).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_26(); }; var Companion_instance_27; function Companion_getInstance_31() { if (Companion_instance_27 == null) new Companion_27(); return Companion_instance_27; } function $serializer_26() { $serializer_instance_26 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EditAndViewPermission', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('hasViewPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('hasEditPermission', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_26).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_26).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_26).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return EditAndViewPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_26).serialize_ijblb2_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.hasViewPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.hasViewPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.hasEditPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.hasEditPermission_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_26).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ijblb2_k$(encoder, value instanceof EditAndViewPermission ? value : THROW_CCE()); }; var $serializer_instance_26; function $serializer_getInstance_26() { if ($serializer_instance_26 == null) new $serializer_26(); return $serializer_instance_26; } function EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_26().descriptor_1); } if (0 === (seen1 & 1)) $this.hasViewPermission_1 = false; else $this.hasViewPermission_1 = hasViewPermission; if (0 === (seen1 & 2)) $this.hasEditPermission_1 = false; else $this.hasEditPermission_1 = hasEditPermission; return $this; } function EditAndViewPermission_init_$Create$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker) { return EditAndViewPermission_init_$Init$(seen1, hasViewPermission, hasEditPermission, serializationConstructorMarker, objectCreate(protoOf(EditAndViewPermission))); } function EditAndViewPermission(hasViewPermission, hasEditPermission) { Companion_getInstance_31(); hasViewPermission = hasViewPermission === VOID ? false : hasViewPermission; hasEditPermission = hasEditPermission === VOID ? false : hasEditPermission; this.hasViewPermission_1 = hasViewPermission; this.hasEditPermission_1 = hasEditPermission; } protoOf(EditAndViewPermission).set_hasViewPermission_mrtqf8_k$ = function (_set____db54di) { this.hasViewPermission_1 = _set____db54di; }; protoOf(EditAndViewPermission).get_hasViewPermission_z0g5b9_k$ = function () { return this.hasViewPermission_1; }; protoOf(EditAndViewPermission).set_hasEditPermission_srxqbl_k$ = function (_set____db54di) { this.hasEditPermission_1 = _set____db54di; }; protoOf(EditAndViewPermission).get_hasEditPermission_ezcikq_k$ = function () { return this.hasEditPermission_1; }; protoOf(EditAndViewPermission).component1_7eebsc_k$ = function () { return this.hasViewPermission_1; }; protoOf(EditAndViewPermission).component2_7eebsb_k$ = function () { return this.hasEditPermission_1; }; protoOf(EditAndViewPermission).copy_ccyf2t_k$ = function (hasViewPermission, hasEditPermission) { return new EditAndViewPermission(hasViewPermission, hasEditPermission); }; protoOf(EditAndViewPermission).copy$default_ey0rgu_k$ = function (hasViewPermission, hasEditPermission, $super) { hasViewPermission = hasViewPermission === VOID ? this.hasViewPermission_1 : hasViewPermission; hasEditPermission = hasEditPermission === VOID ? this.hasEditPermission_1 : hasEditPermission; return $super === VOID ? this.copy_ccyf2t_k$(hasViewPermission, hasEditPermission) : $super.copy_ccyf2t_k$.call(this, hasViewPermission, hasEditPermission); }; protoOf(EditAndViewPermission).toString = function () { return 'EditAndViewPermission(hasViewPermission=' + this.hasViewPermission_1 + ', hasEditPermission=' + this.hasEditPermission_1 + ')'; }; protoOf(EditAndViewPermission).hashCode = function () { var result = getBooleanHashCode(this.hasViewPermission_1); result = imul(result, 31) + getBooleanHashCode(this.hasEditPermission_1) | 0; return result; }; protoOf(EditAndViewPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof EditAndViewPermission)) return false; var tmp0_other_with_cast = other instanceof EditAndViewPermission ? other : THROW_CCE(); if (!(this.hasViewPermission_1 === tmp0_other_with_cast.hasViewPermission_1)) return false; if (!(this.hasEditPermission_1 === tmp0_other_with_cast.hasEditPermission_1)) return false; return true; }; function Companion_28() { Companion_instance_28 = this; } protoOf(Companion_28).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_27(); }; var Companion_instance_28; function Companion_getInstance_32() { if (Companion_instance_28 == null) new Companion_28(); return Companion_instance_28; } function $serializer_27() { $serializer_instance_27 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.EnrolmentRequestAndCoursePic', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('enrolmentRequest', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePicture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_27).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_27).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_93()), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_27).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_93(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_88(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_93(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_88(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return EnrolmentRequestAndCoursePic_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_27).serialize_thuuu8_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.enrolmentRequest_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_93(), value.enrolmentRequest_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.coursePicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_88(), value.coursePicture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_27).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_thuuu8_k$(encoder, value instanceof EnrolmentRequestAndCoursePic ? value : THROW_CCE()); }; var $serializer_instance_27; function $serializer_getInstance_27() { if ($serializer_instance_27 == null) new $serializer_27(); return $serializer_instance_27; } function EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_27().descriptor_1); } if (0 === (seen1 & 1)) $this.enrolmentRequest_1 = null; else $this.enrolmentRequest_1 = enrolmentRequest; if (0 === (seen1 & 2)) $this.coursePicture_1 = null; else $this.coursePicture_1 = coursePicture; return $this; } function EnrolmentRequestAndCoursePic_init_$Create$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker) { return EnrolmentRequestAndCoursePic_init_$Init$(seen1, enrolmentRequest, coursePicture, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequestAndCoursePic))); } function EnrolmentRequestAndCoursePic(enrolmentRequest, coursePicture) { Companion_getInstance_32(); enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest; coursePicture = coursePicture === VOID ? null : coursePicture; this.enrolmentRequest_1 = enrolmentRequest; this.coursePicture_1 = coursePicture; } protoOf(EnrolmentRequestAndCoursePic).set_enrolmentRequest_6elsbj_k$ = function (_set____db54di) { this.enrolmentRequest_1 = _set____db54di; }; protoOf(EnrolmentRequestAndCoursePic).get_enrolmentRequest_rib4d0_k$ = function () { return this.enrolmentRequest_1; }; protoOf(EnrolmentRequestAndCoursePic).set_coursePicture_h9sgol_k$ = function (_set____db54di) { this.coursePicture_1 = _set____db54di; }; protoOf(EnrolmentRequestAndCoursePic).get_coursePicture_gcf86y_k$ = function () { return this.coursePicture_1; }; protoOf(EnrolmentRequestAndCoursePic).component1_7eebsc_k$ = function () { return this.enrolmentRequest_1; }; protoOf(EnrolmentRequestAndCoursePic).component2_7eebsb_k$ = function () { return this.coursePicture_1; }; protoOf(EnrolmentRequestAndCoursePic).copy_f3kodd_k$ = function (enrolmentRequest, coursePicture) { return new EnrolmentRequestAndCoursePic(enrolmentRequest, coursePicture); }; protoOf(EnrolmentRequestAndCoursePic).copy$default_kuxmxq_k$ = function (enrolmentRequest, coursePicture, $super) { enrolmentRequest = enrolmentRequest === VOID ? this.enrolmentRequest_1 : enrolmentRequest; coursePicture = coursePicture === VOID ? this.coursePicture_1 : coursePicture; return $super === VOID ? this.copy_f3kodd_k$(enrolmentRequest, coursePicture) : $super.copy_f3kodd_k$.call(this, enrolmentRequest, coursePicture); }; protoOf(EnrolmentRequestAndCoursePic).toString = function () { return 'EnrolmentRequestAndCoursePic(enrolmentRequest=' + this.enrolmentRequest_1 + ', coursePicture=' + this.coursePicture_1 + ')'; }; protoOf(EnrolmentRequestAndCoursePic).hashCode = function () { var result = this.enrolmentRequest_1 == null ? 0 : this.enrolmentRequest_1.hashCode(); result = imul(result, 31) + (this.coursePicture_1 == null ? 0 : this.coursePicture_1.hashCode()) | 0; return result; }; protoOf(EnrolmentRequestAndCoursePic).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequestAndCoursePic)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequestAndCoursePic ? other : THROW_CCE(); if (!equals(this.enrolmentRequest_1, tmp0_other_with_cast.enrolmentRequest_1)) return false; if (!equals(this.coursePicture_1, tmp0_other_with_cast.coursePicture_1)) return false; return true; }; function EnrolmentRequestAndPersonDetails(enrolmentRequest, personPicture, person) { enrolmentRequest = enrolmentRequest === VOID ? null : enrolmentRequest; personPicture = personPicture === VOID ? null : personPicture; person = person === VOID ? null : person; this.enrolmentRequest_1 = enrolmentRequest; this.personPicture_1 = personPicture; this.person_1 = person; } protoOf(EnrolmentRequestAndPersonDetails).set_enrolmentRequest_6elsbj_k$ = function (_set____db54di) { this.enrolmentRequest_1 = _set____db54di; }; protoOf(EnrolmentRequestAndPersonDetails).get_enrolmentRequest_rib4d0_k$ = function () { return this.enrolmentRequest_1; }; protoOf(EnrolmentRequestAndPersonDetails).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(EnrolmentRequestAndPersonDetails).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(EnrolmentRequestAndPersonDetails).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(EnrolmentRequestAndPersonDetails).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(EnrolmentRequestAndPersonDetails).component1_7eebsc_k$ = function () { return this.enrolmentRequest_1; }; protoOf(EnrolmentRequestAndPersonDetails).component2_7eebsb_k$ = function () { return this.personPicture_1; }; protoOf(EnrolmentRequestAndPersonDetails).component3_7eebsa_k$ = function () { return this.person_1; }; protoOf(EnrolmentRequestAndPersonDetails).copy_ltlq62_k$ = function (enrolmentRequest, personPicture, person) { return new EnrolmentRequestAndPersonDetails(enrolmentRequest, personPicture, person); }; protoOf(EnrolmentRequestAndPersonDetails).copy$default_3kkl50_k$ = function (enrolmentRequest, personPicture, person, $super) { enrolmentRequest = enrolmentRequest === VOID ? this.enrolmentRequest_1 : enrolmentRequest; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; person = person === VOID ? this.person_1 : person; return $super === VOID ? this.copy_ltlq62_k$(enrolmentRequest, personPicture, person) : $super.copy_ltlq62_k$.call(this, enrolmentRequest, personPicture, person); }; protoOf(EnrolmentRequestAndPersonDetails).toString = function () { return 'EnrolmentRequestAndPersonDetails(enrolmentRequest=' + this.enrolmentRequest_1 + ', personPicture=' + this.personPicture_1 + ', person=' + this.person_1 + ')'; }; protoOf(EnrolmentRequestAndPersonDetails).hashCode = function () { var result = this.enrolmentRequest_1 == null ? 0 : this.enrolmentRequest_1.hashCode(); result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.person_1 == null ? 0 : this.person_1.hashCode()) | 0; return result; }; protoOf(EnrolmentRequestAndPersonDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequestAndPersonDetails)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequestAndPersonDetails ? other : THROW_CCE(); if (!equals(this.enrolmentRequest_1, tmp0_other_with_cast.enrolmentRequest_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; return true; }; function Companion_29() { Companion_instance_29 = this; } protoOf(Companion_29).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_28(); }; var Companion_instance_29; function Companion_getInstance_33() { if (Companion_instance_29 == null) new Companion_29(); return Companion_instance_29; } function $serializer_28() { $serializer_instance_28 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.MessageAndOtherPerson', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('message', true); tmp0_serialDesc.addElement_5pzumi_k$('otherPerson', true); tmp0_serialDesc.addElement_5pzumi_k$('personPicture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_28).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_28).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_101()), get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_111())]; }; protoOf($serializer_28).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_101(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_101(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return MessageAndOtherPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_28).serialize_hph9f2_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.message_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_101(), value.message_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.otherPerson_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_104(), value.otherPerson_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.personPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_111(), value.personPicture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_28).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_hph9f2_k$(encoder, value instanceof MessageAndOtherPerson ? value : THROW_CCE()); }; var $serializer_instance_28; function $serializer_getInstance_28() { if ($serializer_instance_28 == null) new $serializer_28(); return $serializer_instance_28; } function MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_28().descriptor_1); } if (0 === (seen1 & 1)) $this.message_1 = null; else $this.message_1 = message; if (0 === (seen1 & 2)) $this.otherPerson_1 = null; else $this.otherPerson_1 = otherPerson; if (0 === (seen1 & 4)) $this.personPicture_1 = null; else $this.personPicture_1 = personPicture; return $this; } function MessageAndOtherPerson_init_$Create$(seen1, message, otherPerson, personPicture, serializationConstructorMarker) { return MessageAndOtherPerson_init_$Init$(seen1, message, otherPerson, personPicture, serializationConstructorMarker, objectCreate(protoOf(MessageAndOtherPerson))); } function MessageAndOtherPerson(message, otherPerson, personPicture) { Companion_getInstance_33(); message = message === VOID ? null : message; otherPerson = otherPerson === VOID ? null : otherPerson; personPicture = personPicture === VOID ? null : personPicture; this.message_1 = message; this.otherPerson_1 = otherPerson; this.personPicture_1 = personPicture; } protoOf(MessageAndOtherPerson).set_message_jrhc3_k$ = function (_set____db54di) { this.message_1 = _set____db54di; }; protoOf(MessageAndOtherPerson).get_message_h23axq_k$ = function () { return this.message_1; }; protoOf(MessageAndOtherPerson).set_otherPerson_63kp2v_k$ = function (_set____db54di) { this.otherPerson_1 = _set____db54di; }; protoOf(MessageAndOtherPerson).get_otherPerson_ftpdd0_k$ = function () { return this.otherPerson_1; }; protoOf(MessageAndOtherPerson).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(MessageAndOtherPerson).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(MessageAndOtherPerson).component1_7eebsc_k$ = function () { return this.message_1; }; protoOf(MessageAndOtherPerson).component2_7eebsb_k$ = function () { return this.otherPerson_1; }; protoOf(MessageAndOtherPerson).component3_7eebsa_k$ = function () { return this.personPicture_1; }; protoOf(MessageAndOtherPerson).copy_7apyni_k$ = function (message, otherPerson, personPicture) { return new MessageAndOtherPerson(message, otherPerson, personPicture); }; protoOf(MessageAndOtherPerson).copy$default_nx0clq_k$ = function (message, otherPerson, personPicture, $super) { message = message === VOID ? this.message_1 : message; otherPerson = otherPerson === VOID ? this.otherPerson_1 : otherPerson; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; return $super === VOID ? this.copy_7apyni_k$(message, otherPerson, personPicture) : $super.copy_7apyni_k$.call(this, message, otherPerson, personPicture); }; protoOf(MessageAndOtherPerson).toString = function () { return 'MessageAndOtherPerson(message=' + this.message_1 + ', otherPerson=' + this.otherPerson_1 + ', personPicture=' + this.personPicture_1 + ')'; }; protoOf(MessageAndOtherPerson).hashCode = function () { var result = this.message_1 == null ? 0 : this.message_1.hashCode(); result = imul(result, 31) + (this.otherPerson_1 == null ? 0 : this.otherPerson_1.hashCode()) | 0; result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; return result; }; protoOf(MessageAndOtherPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof MessageAndOtherPerson)) return false; var tmp0_other_with_cast = other instanceof MessageAndOtherPerson ? other : THROW_CCE(); if (!equals(this.message_1, tmp0_other_with_cast.message_1)) return false; if (!equals(this.otherPerson_1, tmp0_other_with_cast.otherPerson_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; return true; }; function Companion_30() { Companion_instance_30 = this; } protoOf(Companion_30).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_29(); }; var Companion_instance_30; function Companion_getInstance_34() { if (Companion_instance_30 == null) new Companion_30(); return Companion_instance_30; } function $serializer_29() { $serializer_instance_29 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.OfflineItemAndState', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('offlineItem', true); tmp0_serialDesc.addElement_5pzumi_k$('activeDownload', true); tmp0_serialDesc.addElement_5pzumi_k$('readyForOffline', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_29).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_29).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_102()), get_nullable($serializer_getInstance_40()), BooleanSerializer_getInstance()]; }; protoOf($serializer_29).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = false; var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_102(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_40(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_102(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_40(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return OfflineItemAndState_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_29).serialize_ys0lfx_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.offlineItem_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_102(), value.offlineItem_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.activeDownload_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_40(), value.activeDownload_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.readyForOffline_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.readyForOffline_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_29).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ys0lfx_k$(encoder, value instanceof OfflineItemAndState ? value : THROW_CCE()); }; var $serializer_instance_29; function $serializer_getInstance_29() { if ($serializer_instance_29 == null) new $serializer_29(); return $serializer_instance_29; } function OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_29().descriptor_1); } if (0 === (seen1 & 1)) $this.offlineItem_1 = null; else $this.offlineItem_1 = offlineItem; if (0 === (seen1 & 2)) $this.activeDownload_1 = null; else $this.activeDownload_1 = activeDownload; if (0 === (seen1 & 4)) $this.readyForOffline_1 = false; else $this.readyForOffline_1 = readyForOffline; return $this; } function OfflineItemAndState_init_$Create$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker) { return OfflineItemAndState_init_$Init$(seen1, offlineItem, activeDownload, readyForOffline, serializationConstructorMarker, objectCreate(protoOf(OfflineItemAndState))); } function OfflineItemAndState(offlineItem, activeDownload, readyForOffline) { Companion_getInstance_34(); offlineItem = offlineItem === VOID ? null : offlineItem; activeDownload = activeDownload === VOID ? null : activeDownload; readyForOffline = readyForOffline === VOID ? false : readyForOffline; this.offlineItem_1 = offlineItem; this.activeDownload_1 = activeDownload; this.readyForOffline_1 = readyForOffline; } protoOf(OfflineItemAndState).set_offlineItem_ohgfx7_k$ = function (_set____db54di) { this.offlineItem_1 = _set____db54di; }; protoOf(OfflineItemAndState).get_offlineItem_v8pcml_k$ = function () { return this.offlineItem_1; }; protoOf(OfflineItemAndState).set_activeDownload_v2lrty_k$ = function (_set____db54di) { this.activeDownload_1 = _set____db54di; }; protoOf(OfflineItemAndState).get_activeDownload_kjmj7b_k$ = function () { return this.activeDownload_1; }; protoOf(OfflineItemAndState).set_readyForOffline_awkch7_k$ = function (_set____db54di) { this.readyForOffline_1 = _set____db54di; }; protoOf(OfflineItemAndState).get_readyForOffline_dggwek_k$ = function () { return this.readyForOffline_1; }; protoOf(OfflineItemAndState).component1_7eebsc_k$ = function () { return this.offlineItem_1; }; protoOf(OfflineItemAndState).component2_7eebsb_k$ = function () { return this.activeDownload_1; }; protoOf(OfflineItemAndState).component3_7eebsa_k$ = function () { return this.readyForOffline_1; }; protoOf(OfflineItemAndState).copy_q0gr07_k$ = function (offlineItem, activeDownload, readyForOffline) { return new OfflineItemAndState(offlineItem, activeDownload, readyForOffline); }; protoOf(OfflineItemAndState).copy$default_ego0cq_k$ = function (offlineItem, activeDownload, readyForOffline, $super) { offlineItem = offlineItem === VOID ? this.offlineItem_1 : offlineItem; activeDownload = activeDownload === VOID ? this.activeDownload_1 : activeDownload; readyForOffline = readyForOffline === VOID ? this.readyForOffline_1 : readyForOffline; return $super === VOID ? this.copy_q0gr07_k$(offlineItem, activeDownload, readyForOffline) : $super.copy_q0gr07_k$.call(this, offlineItem, activeDownload, readyForOffline); }; protoOf(OfflineItemAndState).toString = function () { return 'OfflineItemAndState(offlineItem=' + this.offlineItem_1 + ', activeDownload=' + this.activeDownload_1 + ', readyForOffline=' + this.readyForOffline_1 + ')'; }; protoOf(OfflineItemAndState).hashCode = function () { var result = this.offlineItem_1 == null ? 0 : this.offlineItem_1.hashCode(); result = imul(result, 31) + (this.activeDownload_1 == null ? 0 : this.activeDownload_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.readyForOffline_1) | 0; return result; }; protoOf(OfflineItemAndState).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineItemAndState)) return false; var tmp0_other_with_cast = other instanceof OfflineItemAndState ? other : THROW_CCE(); if (!equals(this.offlineItem_1, tmp0_other_with_cast.offlineItem_1)) return false; if (!equals(this.activeDownload_1, tmp0_other_with_cast.activeDownload_1)) return false; if (!(this.readyForOffline_1 === tmp0_other_with_cast.readyForOffline_1)) return false; return true; }; function Companion_31() { Companion_instance_31 = this; } protoOf(Companion_31).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_30(); }; var Companion_instance_31; function Companion_getInstance_35() { if (Companion_instance_31 == null) new Companion_31(); return Companion_instance_31; } function $serializer_30() { $serializer_instance_30 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionPair', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('firstPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('secondPermission', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_30).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_30).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_30).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = false; var tmp5_local1 = false; var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return PermissionPair_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_30).serialize_4jn13u_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.firstPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.firstPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.secondPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.secondPermission_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_30).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_4jn13u_k$(encoder, value instanceof PermissionPair ? value : THROW_CCE()); }; var $serializer_instance_30; function $serializer_getInstance_30() { if ($serializer_instance_30 == null) new $serializer_30(); return $serializer_instance_30; } function PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_30().descriptor_1); } if (0 === (seen1 & 1)) $this.firstPermission_1 = false; else $this.firstPermission_1 = firstPermission; if (0 === (seen1 & 2)) $this.secondPermission_1 = false; else $this.secondPermission_1 = secondPermission; return $this; } function PermissionPair_init_$Create$(seen1, firstPermission, secondPermission, serializationConstructorMarker) { return PermissionPair_init_$Init$(seen1, firstPermission, secondPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionPair))); } function PermissionPair(firstPermission, secondPermission) { Companion_getInstance_35(); firstPermission = firstPermission === VOID ? false : firstPermission; secondPermission = secondPermission === VOID ? false : secondPermission; this.firstPermission_1 = firstPermission; this.secondPermission_1 = secondPermission; } protoOf(PermissionPair).set_firstPermission_2e6v8t_k$ = function (_set____db54di) { this.firstPermission_1 = _set____db54di; }; protoOf(PermissionPair).get_firstPermission_y8246u_k$ = function () { return this.firstPermission_1; }; protoOf(PermissionPair).set_secondPermission_lj81xn_k$ = function (_set____db54di) { this.secondPermission_1 = _set____db54di; }; protoOf(PermissionPair).get_secondPermission_lfalzo_k$ = function () { return this.secondPermission_1; }; protoOf(PermissionPair).component1_7eebsc_k$ = function () { return this.firstPermission_1; }; protoOf(PermissionPair).component2_7eebsb_k$ = function () { return this.secondPermission_1; }; protoOf(PermissionPair).copy_ccyf2t_k$ = function (firstPermission, secondPermission) { return new PermissionPair(firstPermission, secondPermission); }; protoOf(PermissionPair).copy$default_o58l30_k$ = function (firstPermission, secondPermission, $super) { firstPermission = firstPermission === VOID ? this.firstPermission_1 : firstPermission; secondPermission = secondPermission === VOID ? this.secondPermission_1 : secondPermission; return $super === VOID ? this.copy_ccyf2t_k$(firstPermission, secondPermission) : $super.copy_ccyf2t_k$.call(this, firstPermission, secondPermission); }; protoOf(PermissionPair).toString = function () { return 'PermissionPair(firstPermission=' + this.firstPermission_1 + ', secondPermission=' + this.secondPermission_1 + ')'; }; protoOf(PermissionPair).hashCode = function () { var result = getBooleanHashCode(this.firstPermission_1); result = imul(result, 31) + getBooleanHashCode(this.secondPermission_1) | 0; return result; }; protoOf(PermissionPair).equals = function (other) { if (this === other) return true; if (!(other instanceof PermissionPair)) return false; var tmp0_other_with_cast = other instanceof PermissionPair ? other : THROW_CCE(); if (!(this.firstPermission_1 === tmp0_other_with_cast.firstPermission_1)) return false; if (!(this.secondPermission_1 === tmp0_other_with_cast.secondPermission_1)) return false; return true; }; function Companion_32() { Companion_instance_32 = this; } protoOf(Companion_32).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_31(); }; var Companion_instance_32; function Companion_getInstance_36() { if (Companion_instance_32 == null) new Companion_32(); return Companion_instance_32; } function $serializer_31() { $serializer_instance_31 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PermissionTriple', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('firstPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('secondPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('thirdPermission', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_31).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_31).childSerializers_5ghqw5_k$ = 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()]; }; protoOf($serializer_31).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return PermissionTriple_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_31).serialize_jteivq_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.firstPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 0, value.firstPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.secondPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.secondPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.thirdPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.thirdPermission_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_31).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_jteivq_k$(encoder, value instanceof PermissionTriple ? value : THROW_CCE()); }; var $serializer_instance_31; function $serializer_getInstance_31() { if ($serializer_instance_31 == null) new $serializer_31(); return $serializer_instance_31; } function PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_31().descriptor_1); } if (0 === (seen1 & 1)) $this.firstPermission_1 = false; else $this.firstPermission_1 = firstPermission; if (0 === (seen1 & 2)) $this.secondPermission_1 = false; else $this.secondPermission_1 = secondPermission; if (0 === (seen1 & 4)) $this.thirdPermission_1 = false; else $this.thirdPermission_1 = thirdPermission; return $this; } function PermissionTriple_init_$Create$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker) { return PermissionTriple_init_$Init$(seen1, firstPermission, secondPermission, thirdPermission, serializationConstructorMarker, objectCreate(protoOf(PermissionTriple))); } function PermissionTriple(firstPermission, secondPermission, thirdPermission) { Companion_getInstance_36(); firstPermission = firstPermission === VOID ? false : firstPermission; secondPermission = secondPermission === VOID ? false : secondPermission; thirdPermission = thirdPermission === VOID ? false : thirdPermission; this.firstPermission_1 = firstPermission; this.secondPermission_1 = secondPermission; this.thirdPermission_1 = thirdPermission; } protoOf(PermissionTriple).set_firstPermission_2e6v8t_k$ = function (_set____db54di) { this.firstPermission_1 = _set____db54di; }; protoOf(PermissionTriple).get_firstPermission_y8246u_k$ = function () { return this.firstPermission_1; }; protoOf(PermissionTriple).set_secondPermission_lj81xn_k$ = function (_set____db54di) { this.secondPermission_1 = _set____db54di; }; protoOf(PermissionTriple).get_secondPermission_lfalzo_k$ = function () { return this.secondPermission_1; }; protoOf(PermissionTriple).set_thirdPermission_4i0vuk_k$ = function (_set____db54di) { this.thirdPermission_1 = _set____db54di; }; protoOf(PermissionTriple).get_thirdPermission_eqk7df_k$ = function () { return this.thirdPermission_1; }; protoOf(PermissionTriple).component1_7eebsc_k$ = function () { return this.firstPermission_1; }; protoOf(PermissionTriple).component2_7eebsb_k$ = function () { return this.secondPermission_1; }; protoOf(PermissionTriple).component3_7eebsa_k$ = function () { return this.thirdPermission_1; }; protoOf(PermissionTriple).copy_u1udn4_k$ = function (firstPermission, secondPermission, thirdPermission) { return new PermissionTriple(firstPermission, secondPermission, thirdPermission); }; protoOf(PermissionTriple).copy$default_z9lewi_k$ = function (firstPermission, secondPermission, thirdPermission, $super) { firstPermission = firstPermission === VOID ? this.firstPermission_1 : firstPermission; secondPermission = secondPermission === VOID ? this.secondPermission_1 : secondPermission; thirdPermission = thirdPermission === VOID ? this.thirdPermission_1 : thirdPermission; return $super === VOID ? this.copy_u1udn4_k$(firstPermission, secondPermission, thirdPermission) : $super.copy_u1udn4_k$.call(this, firstPermission, secondPermission, thirdPermission); }; protoOf(PermissionTriple).toString = function () { return 'PermissionTriple(firstPermission=' + this.firstPermission_1 + ', secondPermission=' + this.secondPermission_1 + ', thirdPermission=' + this.thirdPermission_1 + ')'; }; protoOf(PermissionTriple).hashCode = function () { var result = getBooleanHashCode(this.firstPermission_1); result = imul(result, 31) + getBooleanHashCode(this.secondPermission_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.thirdPermission_1) | 0; return result; }; protoOf(PermissionTriple).equals = function (other) { if (this === other) return true; if (!(other instanceof PermissionTriple)) return false; var tmp0_other_with_cast = other instanceof PermissionTriple ? other : THROW_CCE(); if (!(this.firstPermission_1 === tmp0_other_with_cast.firstPermission_1)) return false; if (!(this.secondPermission_1 === tmp0_other_with_cast.secondPermission_1)) return false; if (!(this.thirdPermission_1 === tmp0_other_with_cast.thirdPermission_1)) return false; return true; }; function Companion_33() { Companion_instance_33 = this; } protoOf(Companion_33).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_32(); }; var Companion_instance_33; function Companion_getInstance_37() { if (Companion_instance_33 == null) new Companion_33(); return Companion_instance_33; } function $serializer_32() { $serializer_instance_32 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzLogAttendanceRecord', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('personPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceRecord', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_32).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_32).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_111()), get_nullable($serializer_getInstance_58())]; }; protoOf($serializer_32).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_58(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_58(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAndClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_32).serialize_ykugn9_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.personPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_111(), value.personPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.attendanceRecord_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_58(), value.attendanceRecord_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_32).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ykugn9_k$(encoder, value instanceof PersonAndClazzLogAttendanceRecord ? value : THROW_CCE()); }; var $serializer_instance_32; function $serializer_getInstance_32() { if ($serializer_instance_32 == null) new $serializer_32(); return $serializer_instance_32; } function PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_32().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = null; else $this.person_1 = person; if (0 === (seen1 & 2)) $this.personPicture_1 = null; else $this.personPicture_1 = personPicture; if (0 === (seen1 & 4)) $this.attendanceRecord_1 = null; else $this.attendanceRecord_1 = attendanceRecord; return $this; } function PersonAndClazzLogAttendanceRecord_init_$Create$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker) { return PersonAndClazzLogAttendanceRecord_init_$Init$(seen1, person, personPicture, attendanceRecord, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzLogAttendanceRecord))); } function PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord) { Companion_getInstance_37(); person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; attendanceRecord = attendanceRecord === VOID ? null : attendanceRecord; this.person_1 = person; this.personPicture_1 = personPicture; this.attendanceRecord_1 = attendanceRecord; } protoOf(PersonAndClazzLogAttendanceRecord).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndClazzLogAttendanceRecord).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndClazzLogAttendanceRecord).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(PersonAndClazzLogAttendanceRecord).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndClazzLogAttendanceRecord).set_attendanceRecord_5755zp_k$ = function (_set____db54di) { this.attendanceRecord_1 = _set____db54di; }; protoOf(PersonAndClazzLogAttendanceRecord).get_attendanceRecord_mzh5r7_k$ = function () { return this.attendanceRecord_1; }; protoOf(PersonAndClazzLogAttendanceRecord).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndClazzLogAttendanceRecord).component2_7eebsb_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndClazzLogAttendanceRecord).component3_7eebsa_k$ = function () { return this.attendanceRecord_1; }; protoOf(PersonAndClazzLogAttendanceRecord).copy_cu4gdd_k$ = function (person, personPicture, attendanceRecord) { return new PersonAndClazzLogAttendanceRecord(person, personPicture, attendanceRecord); }; protoOf(PersonAndClazzLogAttendanceRecord).copy$default_c1o9l2_k$ = function (person, personPicture, attendanceRecord, $super) { person = person === VOID ? this.person_1 : person; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; attendanceRecord = attendanceRecord === VOID ? this.attendanceRecord_1 : attendanceRecord; return $super === VOID ? this.copy_cu4gdd_k$(person, personPicture, attendanceRecord) : $super.copy_cu4gdd_k$.call(this, person, personPicture, attendanceRecord); }; protoOf(PersonAndClazzLogAttendanceRecord).toString = function () { return 'PersonAndClazzLogAttendanceRecord(person=' + this.person_1 + ', personPicture=' + this.personPicture_1 + ', attendanceRecord=' + this.attendanceRecord_1 + ')'; }; protoOf(PersonAndClazzLogAttendanceRecord).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.attendanceRecord_1 == null ? 0 : this.attendanceRecord_1.hashCode()) | 0; return result; }; protoOf(PersonAndClazzLogAttendanceRecord).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndClazzLogAttendanceRecord)) return false; var tmp0_other_with_cast = other instanceof PersonAndClazzLogAttendanceRecord ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; if (!equals(this.attendanceRecord_1, tmp0_other_with_cast.attendanceRecord_1)) return false; return true; }; function Companion_34() { Companion_instance_34 = this; } protoOf(Companion_34).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_33(); }; var Companion_instance_34; function Companion_getInstance_38() { if (Companion_instance_34 == null) new Companion_34(); return Companion_instance_34; } function $serializer_33() { $serializer_instance_33 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndClazzMemberListDetails', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('personPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('earliestJoinDate', true); tmp0_serialDesc.addElement_5pzumi_k$('latestDateLeft', true); tmp0_serialDesc.addElement_5pzumi_k$('enrolmentRole', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_33).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_33).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_111()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_33).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAndClazzMemberListDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_33).serialize_vvkbcf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.personPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_111(), value.personPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.earliestJoinDate_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.earliestJoinDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.latestDateLeft_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.latestDateLeft_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.enrolmentRole_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.enrolmentRole_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_33).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_vvkbcf_k$(encoder, value instanceof PersonAndClazzMemberListDetails ? value : THROW_CCE()); }; var $serializer_instance_33; function $serializer_getInstance_33() { if ($serializer_instance_33 == null) new $serializer_33(); return $serializer_instance_33; } function PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_33().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = null; else $this.person_1 = person; if (0 === (seen1 & 2)) $this.personPicture_1 = null; else $this.personPicture_1 = personPicture; if (0 === (seen1 & 4)) $this.earliestJoinDate_1 = new Long(0, 0); else $this.earliestJoinDate_1 = earliestJoinDate; if (0 === (seen1 & 8)) $this.latestDateLeft_1 = new Long(0, 0); else $this.latestDateLeft_1 = latestDateLeft; if (0 === (seen1 & 16)) $this.enrolmentRole_1 = 0; else $this.enrolmentRole_1 = enrolmentRole; return $this; } function PersonAndClazzMemberListDetails_init_$Create$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker) { return PersonAndClazzMemberListDetails_init_$Init$(seen1, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, serializationConstructorMarker, objectCreate(protoOf(PersonAndClazzMemberListDetails))); } function PersonAndClazzMemberListDetails(person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole) { Companion_getInstance_38(); person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; earliestJoinDate = earliestJoinDate === VOID ? new Long(0, 0) : earliestJoinDate; latestDateLeft = latestDateLeft === VOID ? new Long(0, 0) : latestDateLeft; enrolmentRole = enrolmentRole === VOID ? 0 : enrolmentRole; this.person_1 = person; this.personPicture_1 = personPicture; this.earliestJoinDate_1 = earliestJoinDate; this.latestDateLeft_1 = latestDateLeft; this.enrolmentRole_1 = enrolmentRole; } protoOf(PersonAndClazzMemberListDetails).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndClazzMemberListDetails).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndClazzMemberListDetails).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(PersonAndClazzMemberListDetails).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndClazzMemberListDetails).set_earliestJoinDate_hxbk3u_k$ = function (_set____db54di) { this.earliestJoinDate_1 = _set____db54di; }; protoOf(PersonAndClazzMemberListDetails).get_earliestJoinDate_6tekhg_k$ = function () { return this.earliestJoinDate_1; }; protoOf(PersonAndClazzMemberListDetails).set_latestDateLeft_x07o05_k$ = function (_set____db54di) { this.latestDateLeft_1 = _set____db54di; }; protoOf(PersonAndClazzMemberListDetails).get_latestDateLeft_kait8b_k$ = function () { return this.latestDateLeft_1; }; protoOf(PersonAndClazzMemberListDetails).set_enrolmentRole_buy7at_k$ = function (_set____db54di) { this.enrolmentRole_1 = _set____db54di; }; protoOf(PersonAndClazzMemberListDetails).get_enrolmentRole_1phvtd_k$ = function () { return this.enrolmentRole_1; }; protoOf(PersonAndClazzMemberListDetails).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndClazzMemberListDetails).component2_7eebsb_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndClazzMemberListDetails).component3_7eebsa_k$ = function () { return this.earliestJoinDate_1; }; protoOf(PersonAndClazzMemberListDetails).component4_7eebs9_k$ = function () { return this.latestDateLeft_1; }; protoOf(PersonAndClazzMemberListDetails).component5_7eebs8_k$ = function () { return this.enrolmentRole_1; }; protoOf(PersonAndClazzMemberListDetails).copy_7ooqiv_k$ = function (person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole) { return new PersonAndClazzMemberListDetails(person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole); }; protoOf(PersonAndClazzMemberListDetails).copy$default_p6wu9e_k$ = function (person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole, $super) { person = person === VOID ? this.person_1 : person; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; earliestJoinDate = earliestJoinDate === VOID ? this.earliestJoinDate_1 : earliestJoinDate; latestDateLeft = latestDateLeft === VOID ? this.latestDateLeft_1 : latestDateLeft; enrolmentRole = enrolmentRole === VOID ? this.enrolmentRole_1 : enrolmentRole; return $super === VOID ? this.copy_7ooqiv_k$(person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole) : $super.copy_7ooqiv_k$.call(this, person, personPicture, earliestJoinDate, latestDateLeft, enrolmentRole); }; protoOf(PersonAndClazzMemberListDetails).toString = function () { return 'PersonAndClazzMemberListDetails(person=' + this.person_1 + ', personPicture=' + this.personPicture_1 + ', earliestJoinDate=' + this.earliestJoinDate_1.toString() + ', latestDateLeft=' + this.latestDateLeft_1.toString() + ', enrolmentRole=' + this.enrolmentRole_1 + ')'; }; protoOf(PersonAndClazzMemberListDetails).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; result = imul(result, 31) + this.earliestJoinDate_1.hashCode() | 0; result = imul(result, 31) + this.latestDateLeft_1.hashCode() | 0; result = imul(result, 31) + this.enrolmentRole_1 | 0; return result; }; protoOf(PersonAndClazzMemberListDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndClazzMemberListDetails)) return false; var tmp0_other_with_cast = other instanceof PersonAndClazzMemberListDetails ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; if (!this.earliestJoinDate_1.equals(tmp0_other_with_cast.earliestJoinDate_1)) return false; if (!this.latestDateLeft_1.equals(tmp0_other_with_cast.latestDateLeft_1)) return false; if (!(this.enrolmentRole_1 === tmp0_other_with_cast.enrolmentRole_1)) return false; return true; }; function PersonAndListDisplayDetails(person, picture) { person = person === VOID ? null : person; picture = picture === VOID ? null : picture; this.person_1 = person; this.picture_1 = picture; } protoOf(PersonAndListDisplayDetails).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndListDisplayDetails).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndListDisplayDetails).set_picture_dxcvme_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(PersonAndListDisplayDetails).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(PersonAndListDisplayDetails).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndListDisplayDetails).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(PersonAndListDisplayDetails).copy_fw27ht_k$ = function (person, picture) { return new PersonAndListDisplayDetails(person, picture); }; protoOf(PersonAndListDisplayDetails).copy$default_r3ussx_k$ = function (person, picture, $super) { person = person === VOID ? this.person_1 : person; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_fw27ht_k$(person, picture) : $super.copy_fw27ht_k$.call(this, person, picture); }; protoOf(PersonAndListDisplayDetails).toString = function () { return 'PersonAndListDisplayDetails(person=' + this.person_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(PersonAndListDisplayDetails).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(PersonAndListDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndListDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof PersonAndListDisplayDetails ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_35() { Companion_instance_35 = this; } protoOf(Companion_35).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_34(); }; var Companion_instance_35; function Companion_getInstance_39() { if (Companion_instance_35 == null) new Companion_35(); return Companion_instance_35; } function $serializer_34() { $serializer_instance_34 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPicture', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_34).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_34).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_111())]; }; protoOf($serializer_34).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAndPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_34).serialize_eg3qlj_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_111(), value.picture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_34).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_eg3qlj_k$(encoder, value instanceof PersonAndPicture ? value : THROW_CCE()); }; var $serializer_instance_34; function $serializer_getInstance_34() { if ($serializer_instance_34 == null) new $serializer_34(); return $serializer_instance_34; } function PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_34().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = null; else $this.person_1 = person; if (0 === (seen1 & 2)) $this.picture_1 = null; else $this.picture_1 = picture; return $this; } function PersonAndPicture_init_$Create$(seen1, person, picture, serializationConstructorMarker) { return PersonAndPicture_init_$Init$(seen1, person, picture, serializationConstructorMarker, objectCreate(protoOf(PersonAndPicture))); } function PersonAndPicture(person, picture) { Companion_getInstance_39(); person = person === VOID ? null : person; picture = picture === VOID ? null : picture; this.person_1 = person; this.picture_1 = picture; } protoOf(PersonAndPicture).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndPicture).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndPicture).set_picture_dxcvme_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(PersonAndPicture).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(PersonAndPicture).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndPicture).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(PersonAndPicture).copy_fw27ht_k$ = function (person, picture) { return new PersonAndPicture(person, picture); }; protoOf(PersonAndPicture).copy$default_hr0sst_k$ = function (person, picture, $super) { person = person === VOID ? this.person_1 : person; picture = picture === VOID ? this.picture_1 : picture; return $super === VOID ? this.copy_fw27ht_k$(person, picture) : $super.copy_fw27ht_k$.call(this, person, picture); }; protoOf(PersonAndPicture).toString = function () { return 'PersonAndPicture(person=' + this.person_1 + ', picture=' + this.picture_1 + ')'; }; protoOf(PersonAndPicture).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; return result; }; protoOf(PersonAndPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndPicture)) return false; var tmp0_other_with_cast = other instanceof PersonAndPicture ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; return true; }; function Companion_36() { Companion_instance_36 = this; } protoOf(Companion_36).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_35(); }; var Companion_instance_36; function Companion_getInstance_40() { if (Companion_instance_36 == null) new Companion_36(); return Companion_instance_36; } function $serializer_35() { $serializer_instance_35 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonAndPictureAndNumAttempts', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('picture', true); tmp0_serialDesc.addElement_5pzumi_k$('numAttempts', true); tmp0_serialDesc.addElement_5pzumi_k$('isCompleted', true); tmp0_serialDesc.addElement_5pzumi_k$('isSuccessful', true); tmp0_serialDesc.addElement_5pzumi_k$('maxScore', true); tmp0_serialDesc.addElement_5pzumi_k$('maxProgress', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_35).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_35).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_104(), get_nullable($serializer_getInstance_111()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(IntSerializer_getInstance())]; }; protoOf($serializer_35).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_111(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, FloatSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, IntSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAndPictureAndNumAttempts_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_35).serialize_y51evm_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.person_1.equals(new Person())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.picture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_111(), value.picture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.numAttempts_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.numAttempts_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.isCompleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.isCompleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isSuccessful_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, BooleanSerializer_getInstance(), value.isSuccessful_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.maxScore_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, FloatSerializer_getInstance(), value.maxScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.maxProgress_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, IntSerializer_getInstance(), value.maxProgress_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_35).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_y51evm_k$(encoder, value instanceof PersonAndPictureAndNumAttempts ? value : THROW_CCE()); }; var $serializer_instance_35; function $serializer_getInstance_35() { if ($serializer_instance_35 == null) new $serializer_35(); return $serializer_instance_35; } function PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_35().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = new Person(); else $this.person_1 = person; if (0 === (seen1 & 2)) $this.picture_1 = null; else $this.picture_1 = picture; if (0 === (seen1 & 4)) $this.numAttempts_1 = 0; else $this.numAttempts_1 = numAttempts; if (0 === (seen1 & 8)) $this.isCompleted_1 = false; else $this.isCompleted_1 = isCompleted; if (0 === (seen1 & 16)) $this.isSuccessful_1 = null; else $this.isSuccessful_1 = isSuccessful; if (0 === (seen1 & 32)) $this.maxScore_1 = null; else $this.maxScore_1 = maxScore; if (0 === (seen1 & 64)) $this.maxProgress_1 = null; else $this.maxProgress_1 = maxProgress; return $this; } function PersonAndPictureAndNumAttempts_init_$Create$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker) { return PersonAndPictureAndNumAttempts_init_$Init$(seen1, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, serializationConstructorMarker, objectCreate(protoOf(PersonAndPictureAndNumAttempts))); } function PersonAndPictureAndNumAttempts(person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress) { Companion_getInstance_40(); person = person === VOID ? new Person() : person; picture = picture === VOID ? null : picture; numAttempts = numAttempts === VOID ? 0 : numAttempts; isCompleted = isCompleted === VOID ? false : isCompleted; isSuccessful = isSuccessful === VOID ? null : isSuccessful; maxScore = maxScore === VOID ? null : maxScore; maxProgress = maxProgress === VOID ? null : maxProgress; this.person_1 = person; this.picture_1 = picture; this.numAttempts_1 = numAttempts; this.isCompleted_1 = isCompleted; this.isSuccessful_1 = isSuccessful; this.maxScore_1 = maxScore; this.maxProgress_1 = maxProgress; } protoOf(PersonAndPictureAndNumAttempts).set_person_ndsgqg_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndPictureAndNumAttempts).set_picture_dxcvme_k$ = function (_set____db54di) { this.picture_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_picture_8af27f_k$ = function () { return this.picture_1; }; protoOf(PersonAndPictureAndNumAttempts).set_numAttempts_bsexax_k$ = function (_set____db54di) { this.numAttempts_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_numAttempts_6g8zgj_k$ = function () { return this.numAttempts_1; }; protoOf(PersonAndPictureAndNumAttempts).set_isCompleted_euye0h_k$ = function (_set____db54di) { this.isCompleted_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_isCompleted_a6j6c8_k$ = function () { return this.isCompleted_1; }; protoOf(PersonAndPictureAndNumAttempts).set_isSuccessful_spnyf5_k$ = function (_set____db54di) { this.isSuccessful_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_isSuccessful_sbhx9p_k$ = function () { return this.isSuccessful_1; }; protoOf(PersonAndPictureAndNumAttempts).set_maxScore_ur4jze_k$ = function (_set____db54di) { this.maxScore_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_maxScore_p8uyeh_k$ = function () { return this.maxScore_1; }; protoOf(PersonAndPictureAndNumAttempts).set_maxProgress_5ucchz_k$ = function (_set____db54di) { this.maxProgress_1 = _set____db54di; }; protoOf(PersonAndPictureAndNumAttempts).get_maxProgress_uy5umg_k$ = function () { return this.maxProgress_1; }; protoOf(PersonAndPictureAndNumAttempts).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndPictureAndNumAttempts).component2_7eebsb_k$ = function () { return this.picture_1; }; protoOf(PersonAndPictureAndNumAttempts).component3_7eebsa_k$ = function () { return this.numAttempts_1; }; protoOf(PersonAndPictureAndNumAttempts).component4_7eebs9_k$ = function () { return this.isCompleted_1; }; protoOf(PersonAndPictureAndNumAttempts).component5_7eebs8_k$ = function () { return this.isSuccessful_1; }; protoOf(PersonAndPictureAndNumAttempts).component6_7eebs7_k$ = function () { return this.maxScore_1; }; protoOf(PersonAndPictureAndNumAttempts).component7_7eebs6_k$ = function () { return this.maxProgress_1; }; protoOf(PersonAndPictureAndNumAttempts).copy_9qg765_k$ = function (person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress) { return new PersonAndPictureAndNumAttempts(person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress); }; protoOf(PersonAndPictureAndNumAttempts).copy$default_fzfo0f_k$ = function (person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress, $super) { person = person === VOID ? this.person_1 : person; picture = picture === VOID ? this.picture_1 : picture; numAttempts = numAttempts === VOID ? this.numAttempts_1 : numAttempts; isCompleted = isCompleted === VOID ? this.isCompleted_1 : isCompleted; isSuccessful = isSuccessful === VOID ? this.isSuccessful_1 : isSuccessful; maxScore = maxScore === VOID ? this.maxScore_1 : maxScore; maxProgress = maxProgress === VOID ? this.maxProgress_1 : maxProgress; return $super === VOID ? this.copy_9qg765_k$(person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress) : $super.copy_9qg765_k$.call(this, person, picture, numAttempts, isCompleted, isSuccessful, maxScore, maxProgress); }; protoOf(PersonAndPictureAndNumAttempts).toString = function () { return 'PersonAndPictureAndNumAttempts(person=' + this.person_1 + ', picture=' + this.picture_1 + ', numAttempts=' + this.numAttempts_1 + ', isCompleted=' + this.isCompleted_1 + ', isSuccessful=' + this.isSuccessful_1 + ', maxScore=' + this.maxScore_1 + ', maxProgress=' + this.maxProgress_1 + ')'; }; protoOf(PersonAndPictureAndNumAttempts).hashCode = function () { var result = this.person_1.hashCode(); result = imul(result, 31) + (this.picture_1 == null ? 0 : this.picture_1.hashCode()) | 0; result = imul(result, 31) + this.numAttempts_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.isCompleted_1) | 0; result = imul(result, 31) + (this.isSuccessful_1 == null ? 0 : getBooleanHashCode(this.isSuccessful_1)) | 0; result = imul(result, 31) + (this.maxScore_1 == null ? 0 : getNumberHashCode(this.maxScore_1)) | 0; result = imul(result, 31) + (this.maxProgress_1 == null ? 0 : this.maxProgress_1) | 0; return result; }; protoOf(PersonAndPictureAndNumAttempts).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndPictureAndNumAttempts)) return false; var tmp0_other_with_cast = other instanceof PersonAndPictureAndNumAttempts ? other : THROW_CCE(); if (!this.person_1.equals(tmp0_other_with_cast.person_1)) return false; if (!equals(this.picture_1, tmp0_other_with_cast.picture_1)) return false; if (!(this.numAttempts_1 === tmp0_other_with_cast.numAttempts_1)) return false; if (!(this.isCompleted_1 === tmp0_other_with_cast.isCompleted_1)) return false; if (!(this.isSuccessful_1 == tmp0_other_with_cast.isSuccessful_1)) return false; if (!equals(this.maxScore_1, tmp0_other_with_cast.maxScore_1)) return false; if (!(this.maxProgress_1 == tmp0_other_with_cast.maxProgress_1)) return false; return true; }; function AttemptsPersonListConst() { AttemptsPersonListConst_instance = this; this.SORT_FIRST_NAME_ASC_1 = 1; this.SORT_FIRST_NAME_DESC_1 = 2; this.SORT_LAST_NAME_ASC_1 = 3; this.SORT_LAST_NAME_DESC_1 = 4; this.SORT_BY_SCORE_ASC_1 = 5; this.SORT_BY_SCORE_DESC_1 = 6; this.SORT_BY_COMPLETION_ASC_1 = 7; this.SORT_BY_COMPLETION_DESC_1 = 8; this.SORT_BY_RECENT_ATTEMPT_ASC_1 = 9; this.SORT_BY_RECENT_ATTEMPT_DESC_1 = 10; } protoOf(AttemptsPersonListConst).get_SORT_FIRST_NAME_ASC_uiz2kk_k$ = function () { return this.SORT_FIRST_NAME_ASC_1; }; protoOf(AttemptsPersonListConst).get_SORT_FIRST_NAME_DESC_mxs51a_k$ = function () { return this.SORT_FIRST_NAME_DESC_1; }; protoOf(AttemptsPersonListConst).get_SORT_LAST_NAME_ASC_qs7cum_k$ = function () { return this.SORT_LAST_NAME_ASC_1; }; protoOf(AttemptsPersonListConst).get_SORT_LAST_NAME_DESC_m2yybw_k$ = function () { return this.SORT_LAST_NAME_DESC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_SCORE_ASC_lodoj8_k$ = function () { return this.SORT_BY_SCORE_ASC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_SCORE_DESC_wpt9se_k$ = function () { return this.SORT_BY_SCORE_DESC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_COMPLETION_ASC_4tz666_k$ = function () { return this.SORT_BY_COMPLETION_ASC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_COMPLETION_DESC_7r3udg_k$ = function () { return this.SORT_BY_COMPLETION_DESC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_RECENT_ATTEMPT_ASC_srlh7v_k$ = function () { return this.SORT_BY_RECENT_ATTEMPT_ASC_1; }; protoOf(AttemptsPersonListConst).get_SORT_BY_RECENT_ATTEMPT_DESC_vmx8w9_k$ = function () { return this.SORT_BY_RECENT_ATTEMPT_DESC_1; }; var AttemptsPersonListConst_instance; function AttemptsPersonListConst_getInstance() { if (AttemptsPersonListConst_instance == null) new AttemptsPersonListConst(); return AttemptsPersonListConst_instance; } function Companion_37() { Companion_instance_37 = this; } protoOf(Companion_37).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_36(); }; var Companion_instance_37; function Companion_getInstance_41() { if (Companion_instance_37 == null) new Companion_37(); return Companion_instance_37; } function $serializer_36() { $serializer_instance_36 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.PersonNames', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('firstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_36).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_36).childSerializers_5ghqw5_k$ = 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_36).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, StringSerializer_getInstance(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonNames_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_36).serialize_tyk8r4_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.firstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, StringSerializer_getInstance(), value.firstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.lastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.lastName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_36).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_tyk8r4_k$(encoder, value instanceof PersonNames ? value : THROW_CCE()); }; var $serializer_instance_36; function $serializer_getInstance_36() { if ($serializer_instance_36 == null) new $serializer_36(); return $serializer_instance_36; } function PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_36().descriptor_1); } if (0 === (seen1 & 1)) $this.firstNames_1 = null; else $this.firstNames_1 = firstNames; if (0 === (seen1 & 2)) $this.lastName_1 = null; else $this.lastName_1 = lastName; return $this; } function PersonNames_init_$Create$(seen1, firstNames, lastName, serializationConstructorMarker) { return PersonNames_init_$Init$(seen1, firstNames, lastName, serializationConstructorMarker, objectCreate(protoOf(PersonNames))); } function PersonNames(firstNames, lastName) { Companion_getInstance_41(); firstNames = firstNames === VOID ? null : firstNames; lastName = lastName === VOID ? null : lastName; this.firstNames_1 = firstNames; this.lastName_1 = lastName; } protoOf(PersonNames).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(PersonNames).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(PersonNames).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(PersonNames).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(PersonNames).toString = function () { var tmp0_elvis_lhs = this.firstNames_1; var tmp = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs; var tmp1_elvis_lhs = this.lastName_1; return tmp + ' ' + (tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs); }; protoOf(PersonNames).component1_7eebsc_k$ = function () { return this.firstNames_1; }; protoOf(PersonNames).component2_7eebsb_k$ = function () { return this.lastName_1; }; protoOf(PersonNames).copy_jhsqnb_k$ = function (firstNames, lastName) { return new PersonNames(firstNames, lastName); }; protoOf(PersonNames).copy$default_il7yp8_k$ = function (firstNames, lastName, $super) { firstNames = firstNames === VOID ? this.firstNames_1 : firstNames; lastName = lastName === VOID ? this.lastName_1 : lastName; return $super === VOID ? this.copy_jhsqnb_k$(firstNames, lastName) : $super.copy_jhsqnb_k$.call(this, firstNames, lastName); }; protoOf(PersonNames).hashCode = function () { var result = this.firstNames_1 == null ? 0 : getStringHashCode(this.firstNames_1); result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; return result; }; protoOf(PersonNames).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonNames)) return false; var tmp0_other_with_cast = other instanceof PersonNames ? other : THROW_CCE(); if (!(this.firstNames_1 == tmp0_other_with_cast.firstNames_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; return true; }; function SiteTermsAndLangName(terms, langDisplayName) { this.terms_1 = terms; this.langDisplayName_1 = langDisplayName; } protoOf(SiteTermsAndLangName).get_terms_iz0hge_k$ = function () { return this.terms_1; }; protoOf(SiteTermsAndLangName).get_langDisplayName_tqhol2_k$ = function () { return this.langDisplayName_1; }; protoOf(SiteTermsAndLangName).component1_7eebsc_k$ = function () { return this.terms_1; }; protoOf(SiteTermsAndLangName).component2_7eebsb_k$ = function () { return this.langDisplayName_1; }; protoOf(SiteTermsAndLangName).copy_n04af8_k$ = function (terms, langDisplayName) { return new SiteTermsAndLangName(terms, langDisplayName); }; protoOf(SiteTermsAndLangName).copy$default_jevly2_k$ = function (terms, langDisplayName, $super) { terms = terms === VOID ? this.terms_1 : terms; langDisplayName = langDisplayName === VOID ? this.langDisplayName_1 : langDisplayName; return $super === VOID ? this.copy_n04af8_k$(terms, langDisplayName) : $super.copy_n04af8_k$.call(this, terms, langDisplayName); }; protoOf(SiteTermsAndLangName).toString = function () { return 'SiteTermsAndLangName(terms=' + this.terms_1 + ', langDisplayName=' + this.langDisplayName_1 + ')'; }; protoOf(SiteTermsAndLangName).hashCode = function () { var result = hashCode(this.terms_1); result = imul(result, 31) + getStringHashCode(this.langDisplayName_1) | 0; return result; }; protoOf(SiteTermsAndLangName).equals = function (other) { if (this === other) return true; if (!(other instanceof SiteTermsAndLangName)) return false; var tmp0_other_with_cast = other instanceof SiteTermsAndLangName ? other : THROW_CCE(); if (!equals(this.terms_1, tmp0_other_with_cast.terms_1)) return false; if (!(this.langDisplayName_1 === tmp0_other_with_cast.langDisplayName_1)) return false; return true; }; function Companion_38() { Companion_instance_38 = this; } protoOf(Companion_38).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_37(); }; var Companion_instance_38; function Companion_getInstance_42() { if (Companion_instance_38 == null) new Companion_38(); return Companion_instance_38; } function $serializer_37() { $serializer_instance_37 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StatementReportRow', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('yAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('xAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('subgroup', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_37).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_37).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [DoubleSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_37).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0.0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeDoubleElement_isei84_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeStringElement_3oenpg_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementReportRow_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_37).serialize_cujud0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.yAxis_1, 0.0)) { tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 0, value.yAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.xAxis_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 1, value.xAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subgroup_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 2, value.subgroup_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_37).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_cujud0_k$(encoder, value instanceof StatementReportRow ? value : THROW_CCE()); }; var $serializer_instance_37; function $serializer_getInstance_37() { if ($serializer_instance_37 == null) new $serializer_37(); return $serializer_instance_37; } function StatementReportRow_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_37().descriptor_1); } if (0 === (seen1 & 1)) $this.yAxis_1 = 0.0; else $this.yAxis_1 = yAxis; if (0 === (seen1 & 2)) $this.xAxis_1 = ''; else $this.xAxis_1 = xAxis; if (0 === (seen1 & 4)) $this.subgroup_1 = ''; else $this.subgroup_1 = subgroup; return $this; } function StatementReportRow_init_$Create$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker) { return StatementReportRow_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, objectCreate(protoOf(StatementReportRow))); } function StatementReportRow(yAxis, xAxis, subgroup) { Companion_getInstance_42(); yAxis = yAxis === VOID ? 0.0 : yAxis; xAxis = xAxis === VOID ? '' : xAxis; subgroup = subgroup === VOID ? '' : subgroup; this.yAxis_1 = yAxis; this.xAxis_1 = xAxis; this.subgroup_1 = subgroup; } protoOf(StatementReportRow).set_yAxis_h38e1_k$ = function (_set____db54di) { this.yAxis_1 = _set____db54di; }; protoOf(StatementReportRow).get_yAxis_j14l8x_k$ = function () { return this.yAxis_1; }; protoOf(StatementReportRow).set_xAxis_kfwwsu_k$ = function (_set____db54di) { this.xAxis_1 = _set____db54di; }; protoOf(StatementReportRow).get_xAxis_j0ksnk_k$ = function () { return this.xAxis_1; }; protoOf(StatementReportRow).set_subgroup_fm60tq_k$ = function (_set____db54di) { this.subgroup_1 = _set____db54di; }; protoOf(StatementReportRow).get_subgroup_4yf0nc_k$ = function () { return this.subgroup_1; }; protoOf(StatementReportRow).component1_7eebsc_k$ = function () { return this.yAxis_1; }; protoOf(StatementReportRow).component2_7eebsb_k$ = function () { return this.xAxis_1; }; protoOf(StatementReportRow).component3_7eebsa_k$ = function () { return this.subgroup_1; }; protoOf(StatementReportRow).copy_oe5ctt_k$ = function (yAxis, xAxis, subgroup) { return new StatementReportRow(yAxis, xAxis, subgroup); }; protoOf(StatementReportRow).copy$default_ah41r1_k$ = function (yAxis, xAxis, subgroup, $super) { yAxis = yAxis === VOID ? this.yAxis_1 : yAxis; xAxis = xAxis === VOID ? this.xAxis_1 : xAxis; subgroup = subgroup === VOID ? this.subgroup_1 : subgroup; return $super === VOID ? this.copy_oe5ctt_k$(yAxis, xAxis, subgroup) : $super.copy_oe5ctt_k$.call(this, yAxis, xAxis, subgroup); }; protoOf(StatementReportRow).toString = function () { return 'StatementReportRow(yAxis=' + this.yAxis_1 + ', xAxis=' + this.xAxis_1 + ', subgroup=' + this.subgroup_1 + ')'; }; protoOf(StatementReportRow).hashCode = function () { var result = getNumberHashCode(this.yAxis_1); result = imul(result, 31) + getStringHashCode(this.xAxis_1) | 0; result = imul(result, 31) + getStringHashCode(this.subgroup_1) | 0; return result; }; protoOf(StatementReportRow).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementReportRow)) return false; var tmp0_other_with_cast = other instanceof StatementReportRow ? other : THROW_CCE(); if (!equals(this.yAxis_1, tmp0_other_with_cast.yAxis_1)) return false; if (!(this.xAxis_1 === tmp0_other_with_cast.xAxis_1)) return false; if (!(this.subgroup_1 === tmp0_other_with_cast.subgroup_1)) return false; return true; }; function _get_$childSerializers__r2zwns_0($this) { return $this.$childSerializers_1; } function Companion_39() { Companion_instance_39 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.$childSerializers_1 = [null, new ArrayListSerializer($serializer_getInstance_1())]; } protoOf(Companion_39).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_38(); }; var Companion_instance_39; function Companion_getInstance_43() { if (Companion_instance_39 == null) new Companion_39(); return Companion_instance_39; } function $serializer_38() { $serializer_instance_38 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.StudentAndBlockStatuses', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('student', false); tmp0_serialDesc.addElement_5pzumi_k$('blockStatuses', false); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_38).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_38).childSerializers_5ghqw5_k$ = function () { var tmp0_cached = Companion_getInstance_43().$childSerializers_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_33(), tmp0_cached[1]]; }; protoOf($serializer_38).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); var tmp7_cached = Companion_getInstance_43().$childSerializers_1; if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_33(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_33(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return StudentAndBlockStatuses_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_38).serialize_gfbraq_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); var tmp2_cached = Companion_getInstance_43().$childSerializers_1; tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_33(), value.student_1); tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.blockStatuses_1); tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_38).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_gfbraq_k$(encoder, value instanceof StudentAndBlockStatuses ? value : THROW_CCE()); }; var $serializer_instance_38; function $serializer_getInstance_38() { if ($serializer_instance_38 == null) new $serializer_38(); return $serializer_instance_38; } function StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_38().descriptor_1); } $this.student_1 = student; $this.blockStatuses_1 = blockStatuses; return $this; } function StudentAndBlockStatuses_init_$Create$(seen1, student, blockStatuses, serializationConstructorMarker) { return StudentAndBlockStatuses_init_$Init$(seen1, student, blockStatuses, serializationConstructorMarker, objectCreate(protoOf(StudentAndBlockStatuses))); } function StudentAndBlockStatuses(student, blockStatuses) { Companion_getInstance_43(); this.student_1 = student; this.blockStatuses_1 = blockStatuses; } protoOf(StudentAndBlockStatuses).get_student_tt8o8e_k$ = function () { return this.student_1; }; protoOf(StudentAndBlockStatuses).get_blockStatuses_a65oik_k$ = function () { return this.blockStatuses_1; }; protoOf(StudentAndBlockStatuses).component1_7eebsc_k$ = function () { return this.student_1; }; protoOf(StudentAndBlockStatuses).component2_7eebsb_k$ = function () { return this.blockStatuses_1; }; protoOf(StudentAndBlockStatuses).copy_cso3uw_k$ = function (student, blockStatuses) { return new StudentAndBlockStatuses(student, blockStatuses); }; protoOf(StudentAndBlockStatuses).copy$default_yykcen_k$ = function (student, blockStatuses, $super) { student = student === VOID ? this.student_1 : student; blockStatuses = blockStatuses === VOID ? this.blockStatuses_1 : blockStatuses; return $super === VOID ? this.copy_cso3uw_k$(student, blockStatuses) : $super.copy_cso3uw_k$.call(this, student, blockStatuses); }; protoOf(StudentAndBlockStatuses).toString = function () { return 'StudentAndBlockStatuses(student=' + this.student_1 + ', blockStatuses=' + this.blockStatuses_1 + ')'; }; protoOf(StudentAndBlockStatuses).hashCode = function () { var result = this.student_1.hashCode(); result = imul(result, 31) + hashCode(this.blockStatuses_1) | 0; return result; }; protoOf(StudentAndBlockStatuses).equals = function (other) { if (this === other) return true; if (!(other instanceof StudentAndBlockStatuses)) return false; var tmp0_other_with_cast = other instanceof StudentAndBlockStatuses ? other : THROW_CCE(); if (!this.student_1.equals(tmp0_other_with_cast.student_1)) return false; if (!equals(this.blockStatuses_1, tmp0_other_with_cast.blockStatuses_1)) return false; return true; }; function StudentResultAndCourseBlockSourcedId(studentResult, cbSourcedId) { studentResult = studentResult === VOID ? new StudentResult() : studentResult; cbSourcedId = cbSourcedId === VOID ? null : cbSourcedId; this.studentResult_1 = studentResult; this.cbSourcedId_1 = cbSourcedId; } protoOf(StudentResultAndCourseBlockSourcedId).set_studentResult_erqjgo_k$ = function (_set____db54di) { this.studentResult_1 = _set____db54di; }; protoOf(StudentResultAndCourseBlockSourcedId).get_studentResult_h7olpt_k$ = function () { return this.studentResult_1; }; protoOf(StudentResultAndCourseBlockSourcedId).set_cbSourcedId_jrt4y9_k$ = function (_set____db54di) { this.cbSourcedId_1 = _set____db54di; }; protoOf(StudentResultAndCourseBlockSourcedId).get_cbSourcedId_pret24_k$ = function () { return this.cbSourcedId_1; }; protoOf(StudentResultAndCourseBlockSourcedId).component1_7eebsc_k$ = function () { return this.studentResult_1; }; protoOf(StudentResultAndCourseBlockSourcedId).component2_7eebsb_k$ = function () { return this.cbSourcedId_1; }; protoOf(StudentResultAndCourseBlockSourcedId).copy_533749_k$ = function (studentResult, cbSourcedId) { return new StudentResultAndCourseBlockSourcedId(studentResult, cbSourcedId); }; protoOf(StudentResultAndCourseBlockSourcedId).copy$default_et6ucq_k$ = function (studentResult, cbSourcedId, $super) { studentResult = studentResult === VOID ? this.studentResult_1 : studentResult; cbSourcedId = cbSourcedId === VOID ? this.cbSourcedId_1 : cbSourcedId; return $super === VOID ? this.copy_533749_k$(studentResult, cbSourcedId) : $super.copy_533749_k$.call(this, studentResult, cbSourcedId); }; protoOf(StudentResultAndCourseBlockSourcedId).toString = function () { return 'StudentResultAndCourseBlockSourcedId(studentResult=' + this.studentResult_1 + ', cbSourcedId=' + this.cbSourcedId_1 + ')'; }; protoOf(StudentResultAndCourseBlockSourcedId).hashCode = function () { var result = this.studentResult_1.hashCode(); result = imul(result, 31) + (this.cbSourcedId_1 == null ? 0 : getStringHashCode(this.cbSourcedId_1)) | 0; return result; }; protoOf(StudentResultAndCourseBlockSourcedId).equals = function (other) { if (this === other) return true; if (!(other instanceof StudentResultAndCourseBlockSourcedId)) return false; var tmp0_other_with_cast = other instanceof StudentResultAndCourseBlockSourcedId ? other : THROW_CCE(); if (!this.studentResult_1.equals(tmp0_other_with_cast.studentResult_1)) return false; if (!(this.cbSourcedId_1 == tmp0_other_with_cast.cbSourcedId_1)) return false; return true; }; function _get_$childSerializers__r2zwns_1($this) { return $this.$childSerializers_1; } function Companion_40() { Companion_instance_40 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.$childSerializers_1 = [null, new ArrayListSerializer($serializer_getInstance_14())]; } protoOf(Companion_40).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_39(); }; var Companion_instance_40; function Companion_getInstance_44() { if (Companion_instance_40 == null) new Companion_40(); return Companion_instance_40; } function $serializer_39() { $serializer_instance_39 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.SubmissionAndFiles', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('submission', false); tmp0_serialDesc.addElement_5pzumi_k$('files', false); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_39).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_39).childSerializers_5ghqw5_k$ = function () { var tmp0_cached = Companion_getInstance_44().$childSerializers_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_80(), tmp0_cached[1]]; }; protoOf($serializer_39).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); var tmp7_cached = Companion_getInstance_44().$childSerializers_1; if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_80(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_80(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return SubmissionAndFiles_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_39).serialize_1vietl_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); var tmp2_cached = Companion_getInstance_44().$childSerializers_1; tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_80(), value.submission_1); tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.files_1); tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_39).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_1vietl_k$(encoder, value instanceof SubmissionAndFiles ? value : THROW_CCE()); }; var $serializer_instance_39; function $serializer_getInstance_39() { if ($serializer_instance_39 == null) new $serializer_39(); return $serializer_instance_39; } function SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, $this) { if (!(3 === (3 & seen1))) { throwMissingFieldException(seen1, 3, $serializer_getInstance_39().descriptor_1); } $this.submission_1 = submission; $this.files_1 = files; return $this; } function SubmissionAndFiles_init_$Create$(seen1, submission, files, serializationConstructorMarker) { return SubmissionAndFiles_init_$Init$(seen1, submission, files, serializationConstructorMarker, objectCreate(protoOf(SubmissionAndFiles))); } function SubmissionAndFiles(submission, files) { Companion_getInstance_44(); this.submission_1 = submission; this.files_1 = files; } protoOf(SubmissionAndFiles).get_submission_gidiad_k$ = function () { return this.submission_1; }; protoOf(SubmissionAndFiles).get_files_irdsge_k$ = function () { return this.files_1; }; function Companion_41() { Companion_instance_41 = this; } protoOf(Companion_41).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_40(); }; var Companion_instance_41; function Companion_getInstance_45() { if (Companion_instance_41 == null) new Companion_41(); return Companion_instance_41; } function $serializer_40() { $serializer_instance_40 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.TransferJobAndTotals', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('transferJob', true); tmp0_serialDesc.addElement_5pzumi_k$('totalSize', true); tmp0_serialDesc.addElement_5pzumi_k$('transferred', true); tmp0_serialDesc.addElement_5pzumi_k$('latestErrorStr', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_40).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_40).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_124()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_40).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = new Long(0, 0); var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_124(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_124(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return TransferJobAndTotals_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_40).serialize_20hr7z_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.transferJob_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_124(), value.transferJob_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.totalSize_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.totalSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.transferred_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.transferred_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.latestErrorStr_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.latestErrorStr_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_40).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_20hr7z_k$(encoder, value instanceof TransferJobAndTotals ? value : THROW_CCE()); }; var $serializer_instance_40; function $serializer_getInstance_40() { if ($serializer_instance_40 == null) new $serializer_40(); return $serializer_instance_40; } function TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_40().descriptor_1); } if (0 === (seen1 & 1)) $this.transferJob_1 = null; else $this.transferJob_1 = transferJob; if (0 === (seen1 & 2)) $this.totalSize_1 = new Long(0, 0); else $this.totalSize_1 = totalSize; if (0 === (seen1 & 4)) $this.transferred_1 = new Long(0, 0); else $this.transferred_1 = transferred; if (0 === (seen1 & 8)) $this.latestErrorStr_1 = null; else $this.latestErrorStr_1 = latestErrorStr; return $this; } function TransferJobAndTotals_init_$Create$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker) { return TransferJobAndTotals_init_$Init$(seen1, transferJob, totalSize, transferred, latestErrorStr, serializationConstructorMarker, objectCreate(protoOf(TransferJobAndTotals))); } function TransferJobAndTotals(transferJob, totalSize, transferred, latestErrorStr) { Companion_getInstance_45(); transferJob = transferJob === VOID ? null : transferJob; totalSize = totalSize === VOID ? new Long(0, 0) : totalSize; transferred = transferred === VOID ? new Long(0, 0) : transferred; latestErrorStr = latestErrorStr === VOID ? null : latestErrorStr; this.transferJob_1 = transferJob; this.totalSize_1 = totalSize; this.transferred_1 = transferred; this.latestErrorStr_1 = latestErrorStr; } protoOf(TransferJobAndTotals).set_transferJob_oljvx_k$ = function (_set____db54di) { this.transferJob_1 = _set____db54di; }; protoOf(TransferJobAndTotals).get_transferJob_jbsot3_k$ = function () { return this.transferJob_1; }; protoOf(TransferJobAndTotals).set_totalSize_fm10ve_k$ = function (_set____db54di) { this.totalSize_1 = _set____db54di; }; protoOf(TransferJobAndTotals).get_totalSize_116z44_k$ = function () { return this.totalSize_1; }; protoOf(TransferJobAndTotals).set_transferred_ke07v9_k$ = function (_set____db54di) { this.transferred_1 = _set____db54di; }; protoOf(TransferJobAndTotals).get_transferred_jbrvdv_k$ = function () { return this.transferred_1; }; protoOf(TransferJobAndTotals).set_latestErrorStr_c5kaei_k$ = function (_set____db54di) { this.latestErrorStr_1 = _set____db54di; }; protoOf(TransferJobAndTotals).get_latestErrorStr_quj4nb_k$ = function () { return this.latestErrorStr_1; }; protoOf(TransferJobAndTotals).component1_7eebsc_k$ = function () { return this.transferJob_1; }; protoOf(TransferJobAndTotals).component2_7eebsb_k$ = function () { return this.totalSize_1; }; protoOf(TransferJobAndTotals).component3_7eebsa_k$ = function () { return this.transferred_1; }; protoOf(TransferJobAndTotals).component4_7eebs9_k$ = function () { return this.latestErrorStr_1; }; protoOf(TransferJobAndTotals).copy_ijwhlw_k$ = function (transferJob, totalSize, transferred, latestErrorStr) { return new TransferJobAndTotals(transferJob, totalSize, transferred, latestErrorStr); }; protoOf(TransferJobAndTotals).copy$default_9f77ww_k$ = function (transferJob, totalSize, transferred, latestErrorStr, $super) { transferJob = transferJob === VOID ? this.transferJob_1 : transferJob; totalSize = totalSize === VOID ? this.totalSize_1 : totalSize; transferred = transferred === VOID ? this.transferred_1 : transferred; latestErrorStr = latestErrorStr === VOID ? this.latestErrorStr_1 : latestErrorStr; return $super === VOID ? this.copy_ijwhlw_k$(transferJob, totalSize, transferred, latestErrorStr) : $super.copy_ijwhlw_k$.call(this, transferJob, totalSize, transferred, latestErrorStr); }; protoOf(TransferJobAndTotals).toString = function () { return 'TransferJobAndTotals(transferJob=' + this.transferJob_1 + ', totalSize=' + this.totalSize_1.toString() + ', transferred=' + this.transferred_1.toString() + ', latestErrorStr=' + this.latestErrorStr_1 + ')'; }; protoOf(TransferJobAndTotals).hashCode = function () { var result = this.transferJob_1 == null ? 0 : this.transferJob_1.hashCode(); result = imul(result, 31) + this.totalSize_1.hashCode() | 0; result = imul(result, 31) + this.transferred_1.hashCode() | 0; result = imul(result, 31) + (this.latestErrorStr_1 == null ? 0 : getStringHashCode(this.latestErrorStr_1)) | 0; return result; }; protoOf(TransferJobAndTotals).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobAndTotals)) return false; var tmp0_other_with_cast = other instanceof TransferJobAndTotals ? other : THROW_CCE(); if (!equals(this.transferJob_1, tmp0_other_with_cast.transferJob_1)) return false; if (!this.totalSize_1.equals(tmp0_other_with_cast.totalSize_1)) return false; if (!this.transferred_1.equals(tmp0_other_with_cast.transferred_1)) return false; if (!(this.latestErrorStr_1 == tmp0_other_with_cast.latestErrorStr_1)) return false; return true; }; var TransferJobItemStatus_QUEUED_instance; var TransferJobItemStatus_IN_PROGRESS_instance; var TransferJobItemStatus_COMPLETE_instance; var TransferJobItemStatus_FAILED_instance; var TransferJobItemStatus_CANCELLED_instance; function Companion_42() { Companion_instance_42 = this; this.STATUS_QUEUED_INT_1 = 1; this.STATUS_IN_PROGRESS_INT_1 = 11; this.STATUS_COMPLETE_INT_1 = 21; this.STATUS_FAILED_1 = 22; this.STATUS_CANCELLED_1 = 23; } protoOf(Companion_42).get_STATUS_QUEUED_INT_dk8gcn_k$ = function () { return this.STATUS_QUEUED_INT_1; }; protoOf(Companion_42).get_STATUS_IN_PROGRESS_INT_w1zuxf_k$ = function () { return this.STATUS_IN_PROGRESS_INT_1; }; protoOf(Companion_42).get_STATUS_COMPLETE_INT_kcfgct_k$ = function () { return this.STATUS_COMPLETE_INT_1; }; protoOf(Companion_42).get_STATUS_FAILED_csml1b_k$ = function () { return this.STATUS_FAILED_1; }; protoOf(Companion_42).get_STATUS_CANCELLED_dbw5xv_k$ = function () { return this.STATUS_CANCELLED_1; }; protoOf(Companion_42).valueOf_t43jdc_k$ = function (value) { var tmp$ret$1; $l$block: { // Inline function 'kotlin.collections.firstOrNull' call var tmp0_iterator = get_entries().iterator_jk1svi_k$(); while (tmp0_iterator.hasNext_bitz1p_k$()) { var element = tmp0_iterator.next_20eer_k$(); // Inline function 'com.ustadmobile.lib.db.composites.Companion.valueOf.' call if (element.value_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 ? TransferJobItemStatus_QUEUED_getInstance() : tmp0_elvis_lhs; }; var Companion_instance_42; function Companion_getInstance_46() { TransferJobItemStatus_initEntries(); if (Companion_instance_42 == null) new Companion_42(); return Companion_instance_42; } function values() { return [TransferJobItemStatus_QUEUED_getInstance(), TransferJobItemStatus_IN_PROGRESS_getInstance(), TransferJobItemStatus_COMPLETE_getInstance(), TransferJobItemStatus_FAILED_getInstance(), TransferJobItemStatus_CANCELLED_getInstance()]; } function valueOf(value) { switch (value) { case 'QUEUED': return TransferJobItemStatus_QUEUED_getInstance(); case 'IN_PROGRESS': return TransferJobItemStatus_IN_PROGRESS_getInstance(); case 'COMPLETE': return TransferJobItemStatus_COMPLETE_getInstance(); case 'FAILED': return TransferJobItemStatus_FAILED_getInstance(); case 'CANCELLED': return TransferJobItemStatus_CANCELLED_getInstance(); default: TransferJobItemStatus_initEntries(); THROW_IAE('No enum constant value.'); break; } } function get_entries() { if ($ENTRIES == null) $ENTRIES = enumEntries(values()); return $ENTRIES; } var TransferJobItemStatus_entriesInitialized; function TransferJobItemStatus_initEntries() { if (TransferJobItemStatus_entriesInitialized) return Unit_getInstance(); TransferJobItemStatus_entriesInitialized = true; TransferJobItemStatus_QUEUED_instance = new TransferJobItemStatus('QUEUED', 0, 1); TransferJobItemStatus_IN_PROGRESS_instance = new TransferJobItemStatus('IN_PROGRESS', 1, 11); TransferJobItemStatus_COMPLETE_instance = new TransferJobItemStatus('COMPLETE', 2, 21); TransferJobItemStatus_FAILED_instance = new TransferJobItemStatus('FAILED', 3, 22); TransferJobItemStatus_CANCELLED_instance = new TransferJobItemStatus('CANCELLED', 4, 23); Companion_getInstance_46(); } var $ENTRIES; function TransferJobItemStatus(name, ordinal, value) { Enum.call(this, name, ordinal); this.value_1 = value; } protoOf(TransferJobItemStatus).get_value_j01efc_k$ = function () { return this.value_1; }; function TransferJobItemStatus_QUEUED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_QUEUED_instance; } function TransferJobItemStatus_IN_PROGRESS_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_IN_PROGRESS_instance; } function TransferJobItemStatus_COMPLETE_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_COMPLETE_instance; } function TransferJobItemStatus_FAILED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_FAILED_instance; } function TransferJobItemStatus_CANCELLED_getInstance() { TransferJobItemStatus_initEntries(); return TransferJobItemStatus_CANCELLED_instance; } function asStatementReportRow(_this__u8e3s4) { var tmp0_xAxis = _this__u8e3s4.get_rqrXAxis_482lw1_k$(); var tmp1_yAxis = _this__u8e3s4.get_rqrYAxis_47itao_k$(); var tmp2_subgroup = _this__u8e3s4.get_rqrSubgroup_806prr_k$(); return new StatementReportRow(tmp1_yAxis, tmp0_xAxis, tmp2_subgroup); } function Companion_43() { Companion_instance_43 = this; } protoOf(Companion_43).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_41(); }; var Companion_instance_43; function Companion_getInstance_47() { if (Companion_instance_43 == null) new Companion_43(); return Companion_instance_43; } function $serializer_41() { $serializer_instance_41 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.SessionTimeAndProgressInfo', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('contextRegistrationHi', true); tmp0_serialDesc.addElement_5pzumi_k$('contextRegistrationLo', true); tmp0_serialDesc.addElement_5pzumi_k$('timeStarted', true); tmp0_serialDesc.addElement_5pzumi_k$('maxProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('maxScore', true); tmp0_serialDesc.addElement_5pzumi_k$('isCompleted', true); tmp0_serialDesc.addElement_5pzumi_k$('isSuccessful', true); tmp0_serialDesc.addElement_5pzumi_k$('resultDuration', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_41).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_41).childSerializers_5ghqw5_k$ = 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(), get_nullable(IntSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_41).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = null; var tmp8_local4 = null; var tmp9_local5 = false; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, FloatSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return SessionTimeAndProgressInfo_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_41).serialize_rwxsrr_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.contextRegistrationHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.contextRegistrationHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.contextRegistrationLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.contextRegistrationLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.timeStarted_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.timeStarted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.maxProgress_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, IntSerializer_getInstance(), value.maxProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.maxScore_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, FloatSerializer_getInstance(), value.maxScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.isCompleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.isCompleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isSuccessful_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, BooleanSerializer_getInstance(), value.isSuccessful_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.resultDuration_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.resultDuration_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_41).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_rwxsrr_k$(encoder, value instanceof SessionTimeAndProgressInfo ? value : THROW_CCE()); }; var $serializer_instance_41; function $serializer_getInstance_41() { if ($serializer_instance_41 == null) new $serializer_41(); return $serializer_instance_41; } function SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_41().descriptor_1); } if (0 === (seen1 & 1)) $this.contextRegistrationHi_1 = new Long(0, 0); else $this.contextRegistrationHi_1 = contextRegistrationHi; if (0 === (seen1 & 2)) $this.contextRegistrationLo_1 = new Long(0, 0); else $this.contextRegistrationLo_1 = contextRegistrationLo; if (0 === (seen1 & 4)) $this.timeStarted_1 = new Long(0, 0); else $this.timeStarted_1 = timeStarted; if (0 === (seen1 & 8)) $this.maxProgress_1 = null; else $this.maxProgress_1 = maxProgress; if (0 === (seen1 & 16)) $this.maxScore_1 = null; else $this.maxScore_1 = maxScore; if (0 === (seen1 & 32)) $this.isCompleted_1 = false; else $this.isCompleted_1 = isCompleted; if (0 === (seen1 & 64)) $this.isSuccessful_1 = null; else $this.isSuccessful_1 = isSuccessful; if (0 === (seen1 & 128)) $this.resultDuration_1 = new Long(0, 0); else $this.resultDuration_1 = resultDuration; return $this; } function SessionTimeAndProgressInfo_init_$Create$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker) { return SessionTimeAndProgressInfo_init_$Init$(seen1, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, serializationConstructorMarker, objectCreate(protoOf(SessionTimeAndProgressInfo))); } function SessionTimeAndProgressInfo(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) { Companion_getInstance_47(); contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo; timeStarted = timeStarted === VOID ? new Long(0, 0) : timeStarted; maxProgress = maxProgress === VOID ? null : maxProgress; maxScore = maxScore === VOID ? null : maxScore; isCompleted = isCompleted === VOID ? false : isCompleted; isSuccessful = isSuccessful === VOID ? null : isSuccessful; resultDuration = resultDuration === VOID ? new Long(0, 0) : resultDuration; this.contextRegistrationHi_1 = contextRegistrationHi; this.contextRegistrationLo_1 = contextRegistrationLo; this.timeStarted_1 = timeStarted; this.maxProgress_1 = maxProgress; this.maxScore_1 = maxScore; this.isCompleted_1 = isCompleted; this.isSuccessful_1 = isSuccessful; this.resultDuration_1 = resultDuration; } protoOf(SessionTimeAndProgressInfo).set_contextRegistrationHi_74s32q_k$ = function (_set____db54di) { this.contextRegistrationHi_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_contextRegistrationHi_dkx0jk_k$ = function () { return this.contextRegistrationHi_1; }; protoOf(SessionTimeAndProgressInfo).set_contextRegistrationLo_xjvh68_k$ = function (_set____db54di) { this.contextRegistrationLo_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_contextRegistrationLo_dkx0fy_k$ = function () { return this.contextRegistrationLo_1; }; protoOf(SessionTimeAndProgressInfo).set_timeStarted_xc5raf_k$ = function (_set____db54di) { this.timeStarted_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_timeStarted_5ube5x_k$ = function () { return this.timeStarted_1; }; protoOf(SessionTimeAndProgressInfo).set_maxProgress_5ucchz_k$ = function (_set____db54di) { this.maxProgress_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_maxProgress_uy5umg_k$ = function () { return this.maxProgress_1; }; protoOf(SessionTimeAndProgressInfo).set_maxScore_ur4jze_k$ = function (_set____db54di) { this.maxScore_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_maxScore_p8uyeh_k$ = function () { return this.maxScore_1; }; protoOf(SessionTimeAndProgressInfo).set_isCompleted_euye0h_k$ = function (_set____db54di) { this.isCompleted_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_isCompleted_a6j6c8_k$ = function () { return this.isCompleted_1; }; protoOf(SessionTimeAndProgressInfo).set_isSuccessful_spnyf5_k$ = function (_set____db54di) { this.isSuccessful_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_isSuccessful_sbhx9p_k$ = function () { return this.isSuccessful_1; }; protoOf(SessionTimeAndProgressInfo).set_resultDuration_su510w_k$ = function (_set____db54di) { this.resultDuration_1 = _set____db54di; }; protoOf(SessionTimeAndProgressInfo).get_resultDuration_vxz2l6_k$ = function () { return this.resultDuration_1; }; protoOf(SessionTimeAndProgressInfo).component1_7eebsc_k$ = function () { return this.contextRegistrationHi_1; }; protoOf(SessionTimeAndProgressInfo).component2_7eebsb_k$ = function () { return this.contextRegistrationLo_1; }; protoOf(SessionTimeAndProgressInfo).component3_7eebsa_k$ = function () { return this.timeStarted_1; }; protoOf(SessionTimeAndProgressInfo).component4_7eebs9_k$ = function () { return this.maxProgress_1; }; protoOf(SessionTimeAndProgressInfo).component5_7eebs8_k$ = function () { return this.maxScore_1; }; protoOf(SessionTimeAndProgressInfo).component6_7eebs7_k$ = function () { return this.isCompleted_1; }; protoOf(SessionTimeAndProgressInfo).component7_7eebs6_k$ = function () { return this.isSuccessful_1; }; protoOf(SessionTimeAndProgressInfo).component8_7eebs5_k$ = function () { return this.resultDuration_1; }; protoOf(SessionTimeAndProgressInfo).copy_v662vy_k$ = function (contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) { return new SessionTimeAndProgressInfo(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration); }; protoOf(SessionTimeAndProgressInfo).copy$default_ksmddi_k$ = function (contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration, $super) { contextRegistrationHi = contextRegistrationHi === VOID ? this.contextRegistrationHi_1 : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? this.contextRegistrationLo_1 : contextRegistrationLo; timeStarted = timeStarted === VOID ? this.timeStarted_1 : timeStarted; maxProgress = maxProgress === VOID ? this.maxProgress_1 : maxProgress; maxScore = maxScore === VOID ? this.maxScore_1 : maxScore; isCompleted = isCompleted === VOID ? this.isCompleted_1 : isCompleted; isSuccessful = isSuccessful === VOID ? this.isSuccessful_1 : isSuccessful; resultDuration = resultDuration === VOID ? this.resultDuration_1 : resultDuration; return $super === VOID ? this.copy_v662vy_k$(contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration) : $super.copy_v662vy_k$.call(this, contextRegistrationHi, contextRegistrationLo, timeStarted, maxProgress, maxScore, isCompleted, isSuccessful, resultDuration); }; protoOf(SessionTimeAndProgressInfo).toString = function () { return 'SessionTimeAndProgressInfo(contextRegistrationHi=' + this.contextRegistrationHi_1.toString() + ', contextRegistrationLo=' + this.contextRegistrationLo_1.toString() + ', timeStarted=' + this.timeStarted_1.toString() + ', maxProgress=' + this.maxProgress_1 + ', maxScore=' + this.maxScore_1 + ', isCompleted=' + this.isCompleted_1 + ', isSuccessful=' + this.isSuccessful_1 + ', resultDuration=' + this.resultDuration_1.toString() + ')'; }; protoOf(SessionTimeAndProgressInfo).hashCode = function () { var result = this.contextRegistrationHi_1.hashCode(); result = imul(result, 31) + this.contextRegistrationLo_1.hashCode() | 0; result = imul(result, 31) + this.timeStarted_1.hashCode() | 0; result = imul(result, 31) + (this.maxProgress_1 == null ? 0 : this.maxProgress_1) | 0; result = imul(result, 31) + (this.maxScore_1 == null ? 0 : getNumberHashCode(this.maxScore_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.isCompleted_1) | 0; result = imul(result, 31) + (this.isSuccessful_1 == null ? 0 : getBooleanHashCode(this.isSuccessful_1)) | 0; result = imul(result, 31) + this.resultDuration_1.hashCode() | 0; return result; }; protoOf(SessionTimeAndProgressInfo).equals = function (other) { if (this === other) return true; if (!(other instanceof SessionTimeAndProgressInfo)) return false; var tmp0_other_with_cast = other instanceof SessionTimeAndProgressInfo ? other : THROW_CCE(); if (!this.contextRegistrationHi_1.equals(tmp0_other_with_cast.contextRegistrationHi_1)) return false; if (!this.contextRegistrationLo_1.equals(tmp0_other_with_cast.contextRegistrationLo_1)) return false; if (!this.timeStarted_1.equals(tmp0_other_with_cast.timeStarted_1)) return false; if (!(this.maxProgress_1 == tmp0_other_with_cast.maxProgress_1)) return false; if (!equals(this.maxScore_1, tmp0_other_with_cast.maxScore_1)) return false; if (!(this.isCompleted_1 === tmp0_other_with_cast.isCompleted_1)) return false; if (!(this.isSuccessful_1 == tmp0_other_with_cast.isSuccessful_1)) return false; if (!this.resultDuration_1.equals(tmp0_other_with_cast.resultDuration_1)) return false; return true; }; function SessionTimeAndProgressInfoConst() { SessionTimeAndProgressInfoConst_instance = this; this.SORT_BY_TIMESTAMP_DESC_1 = 1; this.SORT_BY_TIMESTAMP_ASC_1 = 2; this.SORT_BY_SCORE_ASC_1 = 3; this.SORT_BY_SCORE_DESC_1 = 4; this.SORT_BY_COMPLETION_ASC_1 = 5; this.SORT_BY_COMPLETION_DESC_1 = 6; this.SORT_BY_LEAST_RECENT_DESC_1 = 7; this.SORT_BY_LEAST_RECENT_ASC_1 = 8; } protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_TIMESTAMP_DESC_ubbcqe_k$ = function () { return this.SORT_BY_TIMESTAMP_DESC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_TIMESTAMP_ASC_v3mbco_k$ = function () { return this.SORT_BY_TIMESTAMP_ASC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_SCORE_ASC_lodoj8_k$ = function () { return this.SORT_BY_SCORE_ASC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_SCORE_DESC_wpt9se_k$ = function () { return this.SORT_BY_SCORE_DESC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_COMPLETION_ASC_4tz666_k$ = function () { return this.SORT_BY_COMPLETION_ASC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_COMPLETION_DESC_7r3udg_k$ = function () { return this.SORT_BY_COMPLETION_DESC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_LEAST_RECENT_DESC_s5j9n5_k$ = function () { return this.SORT_BY_LEAST_RECENT_DESC_1; }; protoOf(SessionTimeAndProgressInfoConst).get_SORT_BY_LEAST_RECENT_ASC_m06fub_k$ = function () { return this.SORT_BY_LEAST_RECENT_ASC_1; }; var SessionTimeAndProgressInfoConst_instance; function SessionTimeAndProgressInfoConst_getInstance() { if (SessionTimeAndProgressInfoConst_instance == null) new SessionTimeAndProgressInfoConst(); return SessionTimeAndProgressInfoConst_instance; } function StateIdAndLastModified(seStateId, seLastMod) { seStateId = seStateId === VOID ? '' : seStateId; seLastMod = seLastMod === VOID ? new Long(0, 0) : seLastMod; this.seStateId_1 = seStateId; this.seLastMod_1 = seLastMod; } protoOf(StateIdAndLastModified).set_seStateId_7jplxp_k$ = function (_set____db54di) { this.seStateId_1 = _set____db54di; }; protoOf(StateIdAndLastModified).get_seStateId_okwh5b_k$ = function () { return this.seStateId_1; }; protoOf(StateIdAndLastModified).set_seLastMod_rbj81t_k$ = function (_set____db54di) { this.seLastMod_1 = _set____db54di; }; protoOf(StateIdAndLastModified).get_seLastMod_60knjl_k$ = function () { return this.seLastMod_1; }; protoOf(StateIdAndLastModified).component1_7eebsc_k$ = function () { return this.seStateId_1; }; protoOf(StateIdAndLastModified).component2_7eebsb_k$ = function () { return this.seLastMod_1; }; protoOf(StateIdAndLastModified).copy_7qnn3d_k$ = function (seStateId, seLastMod) { return new StateIdAndLastModified(seStateId, seLastMod); }; protoOf(StateIdAndLastModified).copy$default_lps6oq_k$ = function (seStateId, seLastMod, $super) { seStateId = seStateId === VOID ? this.seStateId_1 : seStateId; seLastMod = seLastMod === VOID ? this.seLastMod_1 : seLastMod; return $super === VOID ? this.copy_7qnn3d_k$(seStateId, seLastMod) : $super.copy_7qnn3d_k$.call(this, seStateId, seLastMod); }; protoOf(StateIdAndLastModified).toString = function () { return 'StateIdAndLastModified(seStateId=' + this.seStateId_1 + ', seLastMod=' + this.seLastMod_1.toString() + ')'; }; protoOf(StateIdAndLastModified).hashCode = function () { var result = getStringHashCode(this.seStateId_1); result = imul(result, 31) + this.seLastMod_1.hashCode() | 0; return result; }; protoOf(StateIdAndLastModified).equals = function (other) { if (this === other) return true; if (!(other instanceof StateIdAndLastModified)) return false; var tmp0_other_with_cast = other instanceof StateIdAndLastModified ? other : THROW_CCE(); if (!(this.seStateId_1 === tmp0_other_with_cast.seStateId_1)) return false; if (!this.seLastMod_1.equals(tmp0_other_with_cast.seLastMod_1)) return false; return true; }; function Companion_44() { Companion_instance_44 = this; } protoOf(Companion_44).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_42(); }; var Companion_instance_44; function Companion_getInstance_48() { if (Companion_instance_44 == null) new Companion_44(); return Companion_instance_44; } function $serializer_42() { $serializer_instance_42 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.StatementAndActivity', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('statementEntity', true); tmp0_serialDesc.addElement_5pzumi_k$('activityEntity', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_42).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_42).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_137(), get_nullable($serializer_getInstance_130())]; }; protoOf($serializer_42).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_130(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_130(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementAndActivity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_42).serialize_66t3wf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.statementEntity_1.equals(new StatementEntity())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_137(), value.statementEntity_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.activityEntity_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_130(), value.activityEntity_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_42).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_66t3wf_k$(encoder, value instanceof StatementAndActivity ? value : THROW_CCE()); }; var $serializer_instance_42; function $serializer_getInstance_42() { if ($serializer_instance_42 == null) new $serializer_42(); return $serializer_instance_42; } function StatementAndActivity_init_$Init$(seen1, statementEntity, activityEntity, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_42().descriptor_1); } if (0 === (seen1 & 1)) $this.statementEntity_1 = new StatementEntity(); else $this.statementEntity_1 = statementEntity; if (0 === (seen1 & 2)) $this.activityEntity_1 = null; else $this.activityEntity_1 = activityEntity; return $this; } function StatementAndActivity_init_$Create$(seen1, statementEntity, activityEntity, serializationConstructorMarker) { return StatementAndActivity_init_$Init$(seen1, statementEntity, activityEntity, serializationConstructorMarker, objectCreate(protoOf(StatementAndActivity))); } function StatementAndActivity(statementEntity, activityEntity) { Companion_getInstance_48(); statementEntity = statementEntity === VOID ? new StatementEntity() : statementEntity; activityEntity = activityEntity === VOID ? null : activityEntity; this.statementEntity_1 = statementEntity; this.activityEntity_1 = activityEntity; } protoOf(StatementAndActivity).set_statementEntity_jyzh7_k$ = function (_set____db54di) { this.statementEntity_1 = _set____db54di; }; protoOf(StatementAndActivity).get_statementEntity_xknex5_k$ = function () { return this.statementEntity_1; }; protoOf(StatementAndActivity).set_activityEntity_1vk8xy_k$ = function (_set____db54di) { this.activityEntity_1 = _set____db54di; }; protoOf(StatementAndActivity).get_activityEntity_d1963p_k$ = function () { return this.activityEntity_1; }; protoOf(StatementAndActivity).component1_7eebsc_k$ = function () { return this.statementEntity_1; }; protoOf(StatementAndActivity).component2_7eebsb_k$ = function () { return this.activityEntity_1; }; protoOf(StatementAndActivity).copy_x09xoa_k$ = function (statementEntity, activityEntity) { return new StatementAndActivity(statementEntity, activityEntity); }; protoOf(StatementAndActivity).copy$default_2o6nd4_k$ = function (statementEntity, activityEntity, $super) { statementEntity = statementEntity === VOID ? this.statementEntity_1 : statementEntity; activityEntity = activityEntity === VOID ? this.activityEntity_1 : activityEntity; return $super === VOID ? this.copy_x09xoa_k$(statementEntity, activityEntity) : $super.copy_x09xoa_k$.call(this, statementEntity, activityEntity); }; protoOf(StatementAndActivity).toString = function () { return 'StatementAndActivity(statementEntity=' + this.statementEntity_1 + ', activityEntity=' + this.activityEntity_1 + ')'; }; protoOf(StatementAndActivity).hashCode = function () { var result = this.statementEntity_1.hashCode(); result = imul(result, 31) + (this.activityEntity_1 == null ? 0 : this.activityEntity_1.hashCode()) | 0; return result; }; protoOf(StatementAndActivity).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementAndActivity)) return false; var tmp0_other_with_cast = other instanceof StatementAndActivity ? other : THROW_CCE(); if (!this.statementEntity_1.equals(tmp0_other_with_cast.statementEntity_1)) return false; if (!equals(this.activityEntity_1, tmp0_other_with_cast.activityEntity_1)) return false; return true; }; function Companion_45() { Companion_instance_45 = this; } protoOf(Companion_45).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_43(); }; var Companion_instance_45; function Companion_getInstance_49() { if (Companion_instance_45 == null) new Companion_45(); return Companion_instance_45; } function $serializer_43() { $serializer_instance_43 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.StatementEntityAndRelated', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('statementEntity', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberActorJoin', true); tmp0_serialDesc.addElement_5pzumi_k$('actorEntity', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_43).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_43).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_137()), get_nullable($serializer_getInstance_134()), get_nullable($serializer_getInstance_133())]; }; protoOf($serializer_43).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_134(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_133(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_134(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_133(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementEntityAndRelated_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_43).serialize_5th0q2_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.statementEntity_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_137(), value.statementEntity_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.groupMemberActorJoin_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_134(), value.groupMemberActorJoin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.actorEntity_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_133(), value.actorEntity_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_43).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_5th0q2_k$(encoder, value instanceof StatementEntityAndRelated ? value : THROW_CCE()); }; var $serializer_instance_43; function $serializer_getInstance_43() { if ($serializer_instance_43 == null) new $serializer_43(); return $serializer_instance_43; } function StatementEntityAndRelated_init_$Init$(seen1, statementEntity, groupMemberActorJoin, actorEntity, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_43().descriptor_1); } if (0 === (seen1 & 1)) $this.statementEntity_1 = null; else $this.statementEntity_1 = statementEntity; if (0 === (seen1 & 2)) $this.groupMemberActorJoin_1 = null; else $this.groupMemberActorJoin_1 = groupMemberActorJoin; if (0 === (seen1 & 4)) $this.actorEntity_1 = null; else $this.actorEntity_1 = actorEntity; return $this; } function StatementEntityAndRelated_init_$Create$(seen1, statementEntity, groupMemberActorJoin, actorEntity, serializationConstructorMarker) { return StatementEntityAndRelated_init_$Init$(seen1, statementEntity, groupMemberActorJoin, actorEntity, serializationConstructorMarker, objectCreate(protoOf(StatementEntityAndRelated))); } function StatementEntityAndRelated(statementEntity, groupMemberActorJoin, actorEntity) { Companion_getInstance_49(); statementEntity = statementEntity === VOID ? null : statementEntity; groupMemberActorJoin = groupMemberActorJoin === VOID ? null : groupMemberActorJoin; actorEntity = actorEntity === VOID ? null : actorEntity; this.statementEntity_1 = statementEntity; this.groupMemberActorJoin_1 = groupMemberActorJoin; this.actorEntity_1 = actorEntity; } protoOf(StatementEntityAndRelated).set_statementEntity_5iilp0_k$ = function (_set____db54di) { this.statementEntity_1 = _set____db54di; }; protoOf(StatementEntityAndRelated).get_statementEntity_xknex5_k$ = function () { return this.statementEntity_1; }; protoOf(StatementEntityAndRelated).set_groupMemberActorJoin_12ntwe_k$ = function (_set____db54di) { this.groupMemberActorJoin_1 = _set____db54di; }; protoOf(StatementEntityAndRelated).get_groupMemberActorJoin_ty0ovl_k$ = function () { return this.groupMemberActorJoin_1; }; protoOf(StatementEntityAndRelated).set_actorEntity_e8g3kk_k$ = function (_set____db54di) { this.actorEntity_1 = _set____db54di; }; protoOf(StatementEntityAndRelated).get_actorEntity_os4amn_k$ = function () { return this.actorEntity_1; }; function Companion_46() { Companion_instance_46 = this; } protoOf(Companion_46).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_44(); }; var Companion_instance_46; function Companion_getInstance_50() { if (Companion_instance_46 == null) new Companion_46(); return Companion_instance_46; } function $serializer_44() { $serializer_instance_44 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.StatementEntityAndVerb', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('statementEntity', true); tmp0_serialDesc.addElement_5pzumi_k$('verb', true); tmp0_serialDesc.addElement_5pzumi_k$('verbDisplay', true); tmp0_serialDesc.addElement_5pzumi_k$('activity', true); tmp0_serialDesc.addElement_5pzumi_k$('activityLangMapEntry', true); tmp0_serialDesc.addElement_5pzumi_k$('statementActivityDescription', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_44).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_44).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_137(), get_nullable($serializer_getInstance_139()), get_nullable($serializer_getInstance_140()), get_nullable($serializer_getInstance_130()), get_nullable($serializer_getInstance_132()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_44).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_139(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_140(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_130(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_132(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_139(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_140(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_130(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, $serializer_getInstance_132(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementEntityAndVerb_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_44).serialize_i1kt9u_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.statementEntity_1.equals(new StatementEntity())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_137(), value.statementEntity_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.verb_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_139(), value.verb_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.verbDisplay_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_140(), value.verbDisplay_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activity_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_130(), value.activity_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.activityLangMapEntry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, $serializer_getInstance_132(), value.activityLangMapEntry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.statementActivityDescription_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.statementActivityDescription_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_44).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_i1kt9u_k$(encoder, value instanceof StatementEntityAndVerb ? value : THROW_CCE()); }; var $serializer_instance_44; function $serializer_getInstance_44() { if ($serializer_instance_44 == null) new $serializer_44(); return $serializer_instance_44; } function StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_44().descriptor_1); } if (0 === (seen1 & 1)) $this.statementEntity_1 = new StatementEntity(); else $this.statementEntity_1 = statementEntity; if (0 === (seen1 & 2)) $this.verb_1 = null; else $this.verb_1 = verb; if (0 === (seen1 & 4)) $this.verbDisplay_1 = null; else $this.verbDisplay_1 = verbDisplay; if (0 === (seen1 & 8)) $this.activity_1 = null; else $this.activity_1 = activity; if (0 === (seen1 & 16)) $this.activityLangMapEntry_1 = null; else $this.activityLangMapEntry_1 = activityLangMapEntry; if (0 === (seen1 & 32)) $this.statementActivityDescription_1 = null; else $this.statementActivityDescription_1 = statementActivityDescription; return $this; } function StatementEntityAndVerb_init_$Create$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker) { return StatementEntityAndVerb_init_$Init$(seen1, statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription, serializationConstructorMarker, objectCreate(protoOf(StatementEntityAndVerb))); } function StatementEntityAndVerb(statementEntity, verb, verbDisplay, activity, activityLangMapEntry, statementActivityDescription) { Companion_getInstance_50(); statementEntity = statementEntity === VOID ? new StatementEntity() : statementEntity; verb = verb === VOID ? null : verb; verbDisplay = verbDisplay === VOID ? null : verbDisplay; activity = activity === VOID ? null : activity; activityLangMapEntry = activityLangMapEntry === VOID ? null : activityLangMapEntry; statementActivityDescription = statementActivityDescription === VOID ? null : statementActivityDescription; this.statementEntity_1 = statementEntity; this.verb_1 = verb; this.verbDisplay_1 = verbDisplay; this.activity_1 = activity; this.activityLangMapEntry_1 = activityLangMapEntry; this.statementActivityDescription_1 = statementActivityDescription; } protoOf(StatementEntityAndVerb).set_statementEntity_jyzh7_k$ = function (_set____db54di) { this.statementEntity_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_statementEntity_xknex5_k$ = function () { return this.statementEntity_1; }; protoOf(StatementEntityAndVerb).set_verb_jxiuon_k$ = function (_set____db54di) { this.verb_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_verb_wow5m0_k$ = function () { return this.verb_1; }; protoOf(StatementEntityAndVerb).set_verbDisplay_xz9wbm_k$ = function (_set____db54di) { this.verbDisplay_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_verbDisplay_g39qdi_k$ = function () { return this.verbDisplay_1; }; protoOf(StatementEntityAndVerb).set_activity_ffu349_k$ = function (_set____db54di) { this.activity_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_activity_bu9714_k$ = function () { return this.activity_1; }; protoOf(StatementEntityAndVerb).set_activityLangMapEntry_xsig70_k$ = function (_set____db54di) { this.activityLangMapEntry_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_activityLangMapEntry_2fkk8s_k$ = function () { return this.activityLangMapEntry_1; }; protoOf(StatementEntityAndVerb).set_statementActivityDescription_rpnujo_k$ = function (_set____db54di) { this.statementActivityDescription_1 = _set____db54di; }; protoOf(StatementEntityAndVerb).get_statementActivityDescription_3ax2d5_k$ = function () { return this.statementActivityDescription_1; }; function StatementConst() { StatementConst_instance = this; this.SORT_BY_TIMESTAMP_DESC_1 = 1; this.SORT_BY_TIMESTAMP_ASC_1 = 2; this.SORT_BY_SCORE_DESC_1 = 3; this.SORT_BY_SCORE_ASC_1 = 4; } protoOf(StatementConst).get_SORT_BY_TIMESTAMP_DESC_ubbcqe_k$ = function () { return this.SORT_BY_TIMESTAMP_DESC_1; }; protoOf(StatementConst).get_SORT_BY_TIMESTAMP_ASC_v3mbco_k$ = function () { return this.SORT_BY_TIMESTAMP_ASC_1; }; protoOf(StatementConst).get_SORT_BY_SCORE_DESC_wpt9se_k$ = function () { return this.SORT_BY_SCORE_DESC_1; }; protoOf(StatementConst).get_SORT_BY_SCORE_ASC_lodoj8_k$ = function () { return this.SORT_BY_SCORE_ASC_1; }; var StatementConst_instance; function StatementConst_getInstance() { if (StatementConst_instance == null) new StatementConst(); return StatementConst_instance; } function Companion_47() { Companion_instance_47 = this; } protoOf(Companion_47).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_45(); }; var Companion_instance_47; function Companion_getInstance_51() { if (Companion_instance_47 == null) new Companion_47(); return Companion_instance_47; } function $serializer_45() { $serializer_instance_45 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.composites.xapi.VerbEntityAndName', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('verbEntity', true); tmp0_serialDesc.addElement_5pzumi_k$('verbName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_45).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_45).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_139(), get_nullable($serializer_getInstance_140())]; }; protoOf($serializer_45).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_139(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_140(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_139(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_140(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return VerbEntityAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_45).serialize_7b2h9s_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.verbEntity_1.equals(new VerbEntity())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_139(), value.verbEntity_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.verbName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_140(), value.verbName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_45).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_7b2h9s_k$(encoder, value instanceof VerbEntityAndName ? value : THROW_CCE()); }; var $serializer_instance_45; function $serializer_getInstance_45() { if ($serializer_instance_45 == null) new $serializer_45(); return $serializer_instance_45; } function VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_45().descriptor_1); } if (0 === (seen1 & 1)) $this.verbEntity_1 = new VerbEntity(); else $this.verbEntity_1 = verbEntity; if (0 === (seen1 & 2)) $this.verbName_1 = null; else $this.verbName_1 = verbName; return $this; } function VerbEntityAndName_init_$Create$(seen1, verbEntity, verbName, serializationConstructorMarker) { return VerbEntityAndName_init_$Init$(seen1, verbEntity, verbName, serializationConstructorMarker, objectCreate(protoOf(VerbEntityAndName))); } function VerbEntityAndName(verbEntity, verbName) { Companion_getInstance_51(); verbEntity = verbEntity === VOID ? new VerbEntity() : verbEntity; verbName = verbName === VOID ? null : verbName; this.verbEntity_1 = verbEntity; this.verbName_1 = verbName; } protoOf(VerbEntityAndName).set_verbEntity_oyga7h_k$ = function (_set____db54di) { this.verbEntity_1 = _set____db54di; }; protoOf(VerbEntityAndName).get_verbEntity_dpswph_k$ = function () { return this.verbEntity_1; }; protoOf(VerbEntityAndName).set_verbName_7o3gf7_k$ = function (_set____db54di) { this.verbName_1 = _set____db54di; }; protoOf(VerbEntityAndName).get_verbName_64hpg3_k$ = function () { return this.verbName_1; }; protoOf(VerbEntityAndName).component1_7eebsc_k$ = function () { return this.verbEntity_1; }; protoOf(VerbEntityAndName).component2_7eebsb_k$ = function () { return this.verbName_1; }; protoOf(VerbEntityAndName).copy_a2v2hf_k$ = function (verbEntity, verbName) { return new VerbEntityAndName(verbEntity, verbName); }; protoOf(VerbEntityAndName).copy$default_atf5bq_k$ = function (verbEntity, verbName, $super) { verbEntity = verbEntity === VOID ? this.verbEntity_1 : verbEntity; verbName = verbName === VOID ? this.verbName_1 : verbName; return $super === VOID ? this.copy_a2v2hf_k$(verbEntity, verbName) : $super.copy_a2v2hf_k$.call(this, verbEntity, verbName); }; protoOf(VerbEntityAndName).toString = function () { return 'VerbEntityAndName(verbEntity=' + this.verbEntity_1 + ', verbName=' + this.verbName_1 + ')'; }; protoOf(VerbEntityAndName).hashCode = function () { var result = this.verbEntity_1.hashCode(); result = imul(result, 31) + (this.verbName_1 == null ? 0 : this.verbName_1.hashCode()) | 0; return result; }; protoOf(VerbEntityAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbEntityAndName)) return false; var tmp0_other_with_cast = other instanceof VerbEntityAndName ? other : THROW_CCE(); if (!this.verbEntity_1.equals(tmp0_other_with_cast.verbEntity_1)) return false; if (!equals(this.verbName_1, tmp0_other_with_cast.verbName_1)) return false; return true; }; function Companion_48() { Companion_instance_48 = this; } protoOf(Companion_48).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_46(); }; var Companion_instance_48; function Companion_getInstance_52() { if (Companion_instance_48 == null) new Companion_48(); return Companion_instance_48; } function $serializer_46() { $serializer_instance_46 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentProgressSummary', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('submittedStudents', true); tmp0_serialDesc.addElement_5pzumi_k$('totalStudents', true); tmp0_serialDesc.addElement_5pzumi_k$('markedStudents', true); tmp0_serialDesc.addElement_5pzumi_k$('activeUserHasViewLearnerRecordsPermission', true); tmp0_serialDesc.addElement_5pzumi_k$('isGroupAssignment', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_46).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_46).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_46).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = false; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return AssignmentProgressSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_46).serialize_f707by_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.submittedStudents_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.submittedStudents_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.totalStudents_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.totalStudents_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.markedStudents_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.markedStudents_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.activeUserHasViewLearnerRecordsPermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.activeUserHasViewLearnerRecordsPermission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.isGroupAssignment_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.isGroupAssignment_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_46).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_f707by_k$(encoder, value instanceof AssignmentProgressSummary ? value : THROW_CCE()); }; var $serializer_instance_46; function $serializer_getInstance_46() { if ($serializer_instance_46 == null) new $serializer_46(); return $serializer_instance_46; } function AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_46().descriptor_1); } if (0 === (seen1 & 1)) $this.submittedStudents_1 = 0; else $this.submittedStudents_1 = submittedStudents; if (0 === (seen1 & 2)) $this.totalStudents_1 = 0; else $this.totalStudents_1 = totalStudents; if (0 === (seen1 & 4)) $this.markedStudents_1 = 0; else $this.markedStudents_1 = markedStudents; if (0 === (seen1 & 8)) $this.activeUserHasViewLearnerRecordsPermission_1 = false; else $this.activeUserHasViewLearnerRecordsPermission_1 = activeUserHasViewLearnerRecordsPermission; if (0 === (seen1 & 16)) $this.isGroupAssignment_1 = false; else $this.isGroupAssignment_1 = isGroupAssignment; return $this; } function AssignmentProgressSummary_init_$Create$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker) { return AssignmentProgressSummary_init_$Init$(seen1, submittedStudents, totalStudents, markedStudents, activeUserHasViewLearnerRecordsPermission, isGroupAssignment, serializationConstructorMarker, objectCreate(protoOf(AssignmentProgressSummary))); } function AssignmentProgressSummary() { Companion_getInstance_52(); this.submittedStudents_1 = 0; this.totalStudents_1 = 0; this.markedStudents_1 = 0; this.activeUserHasViewLearnerRecordsPermission_1 = false; this.isGroupAssignment_1 = false; } protoOf(AssignmentProgressSummary).set_submittedStudents_3rq5ou_k$ = function (_set____db54di) { this.submittedStudents_1 = _set____db54di; }; protoOf(AssignmentProgressSummary).get_submittedStudents_17qkui_k$ = function () { return this.submittedStudents_1; }; protoOf(AssignmentProgressSummary).set_totalStudents_zdd8hj_k$ = function (_set____db54di) { this.totalStudents_1 = _set____db54di; }; protoOf(AssignmentProgressSummary).get_totalStudents_u8xtjn_k$ = function () { return this.totalStudents_1; }; protoOf(AssignmentProgressSummary).set_markedStudents_cjfldz_k$ = function (_set____db54di) { this.markedStudents_1 = _set____db54di; }; protoOf(AssignmentProgressSummary).get_markedStudents_tso3xp_k$ = function () { return this.markedStudents_1; }; protoOf(AssignmentProgressSummary).set_activeUserHasViewLearnerRecordsPermission_27x37o_k$ = function (_set____db54di) { this.activeUserHasViewLearnerRecordsPermission_1 = _set____db54di; }; protoOf(AssignmentProgressSummary).get_activeUserHasViewLearnerRecordsPermission_om1zmj_k$ = function () { return this.activeUserHasViewLearnerRecordsPermission_1; }; protoOf(AssignmentProgressSummary).set_isGroupAssignment_vlqu4w_k$ = function (_set____db54di) { this.isGroupAssignment_1 = _set____db54di; }; protoOf(AssignmentProgressSummary).get_isGroupAssignment_kf4m0p_k$ = function () { return this.isGroupAssignment_1; }; protoOf(AssignmentProgressSummary).calculateNotSubmittedStudents_3gzcfa_k$ = function () { return 0; }; function _get_$childSerializers__r2zwns_2($this) { return $this.$childSerializers_1; } function Companion_49() { Companion_instance_49 = this; var tmp = this; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call tmp.$childSerializers_1 = [null, new ArrayListSerializer($serializer_getInstance_103())]; } protoOf(Companion_49).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_47(); }; var Companion_instance_49; function Companion_getInstance_53() { if (Companion_instance_49 == null) new Companion_49(); return Companion_instance_49; } function $serializer_47() { $serializer_instance_47 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterAndAllocations', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('submitter', true); tmp0_serialDesc.addElement_5pzumi_k$('allocations', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_47).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_47).childSerializers_5ghqw5_k$ = function () { var tmp0_cached = Companion_getInstance_53().$childSerializers_1; // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [$serializer_getInstance_48(), tmp0_cached[1]]; }; protoOf($serializer_47).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); var tmp7_cached = Companion_getInstance_53().$childSerializers_1; if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_48(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, $serializer_getInstance_48(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, tmp7_cached[1], tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return AssignmentSubmitterAndAllocations_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_47).serialize_nkssy2_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); var tmp2_cached = Companion_getInstance_53().$childSerializers_1; if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.submitter_1.equals(new AssignmentSubmitterSummary())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, $serializer_getInstance_48(), value.submitter_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !equals(value.allocations_1, emptyList())) { tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, tmp2_cached[1], value.allocations_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_47).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_nkssy2_k$(encoder, value instanceof AssignmentSubmitterAndAllocations ? value : THROW_CCE()); }; var $serializer_instance_47; function $serializer_getInstance_47() { if ($serializer_instance_47 == null) new $serializer_47(); return $serializer_instance_47; } function AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_47().descriptor_1); } if (0 === (seen1 & 1)) $this.submitter_1 = new AssignmentSubmitterSummary(); else $this.submitter_1 = submitter; if (0 === (seen1 & 2)) $this.allocations_1 = emptyList(); else $this.allocations_1 = allocations; return $this; } function AssignmentSubmitterAndAllocations_init_$Create$(seen1, submitter, allocations, serializationConstructorMarker) { return AssignmentSubmitterAndAllocations_init_$Init$(seen1, submitter, allocations, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterAndAllocations))); } function AssignmentSubmitterAndAllocations(submitter, allocations) { Companion_getInstance_53(); submitter = submitter === VOID ? new AssignmentSubmitterSummary() : submitter; allocations = allocations === VOID ? emptyList() : allocations; this.submitter_1 = submitter; this.allocations_1 = allocations; } protoOf(AssignmentSubmitterAndAllocations).get_submitter_ea476o_k$ = function () { return this.submitter_1; }; protoOf(AssignmentSubmitterAndAllocations).get_allocations_rufsiy_k$ = function () { return this.allocations_1; }; protoOf(AssignmentSubmitterAndAllocations).component1_7eebsc_k$ = function () { return this.submitter_1; }; protoOf(AssignmentSubmitterAndAllocations).component2_7eebsb_k$ = function () { return this.allocations_1; }; protoOf(AssignmentSubmitterAndAllocations).copy_miheek_k$ = function (submitter, allocations) { return new AssignmentSubmitterAndAllocations(submitter, allocations); }; protoOf(AssignmentSubmitterAndAllocations).copy$default_sgybhn_k$ = function (submitter, allocations, $super) { submitter = submitter === VOID ? this.submitter_1 : submitter; allocations = allocations === VOID ? this.allocations_1 : allocations; return $super === VOID ? this.copy_miheek_k$(submitter, allocations) : $super.copy_miheek_k$.call(this, submitter, allocations); }; protoOf(AssignmentSubmitterAndAllocations).toString = function () { return 'AssignmentSubmitterAndAllocations(submitter=' + this.submitter_1 + ', allocations=' + this.allocations_1 + ')'; }; protoOf(AssignmentSubmitterAndAllocations).hashCode = function () { var result = this.submitter_1.hashCode(); result = imul(result, 31) + hashCode(this.allocations_1) | 0; return result; }; protoOf(AssignmentSubmitterAndAllocations).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterAndAllocations)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterAndAllocations ? other : THROW_CCE(); if (!this.submitter_1.equals(tmp0_other_with_cast.submitter_1)) return false; if (!equals(this.allocations_1, tmp0_other_with_cast.allocations_1)) return false; return true; }; function Companion_50() { Companion_instance_50 = this; } protoOf(Companion_50).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_48(); }; var Companion_instance_50; function Companion_getInstance_54() { if (Companion_instance_50 == null) new Companion_50(); return Companion_instance_50; } function $serializer_48() { $serializer_instance_48 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AssignmentSubmitterSummary', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('submitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('pictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('latestPrivateComment', true); tmp0_serialDesc.addElement_5pzumi_k$('fileSubmissionStatus', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_48).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_48).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_48).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return AssignmentSubmitterSummary_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_48).serialize_kewytu_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.submitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.submitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.pictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.pictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.latestPrivateComment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.latestPrivateComment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fileSubmissionStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fileSubmissionStatus_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_48).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_kewytu_k$(encoder, value instanceof AssignmentSubmitterSummary ? value : THROW_CCE()); }; var $serializer_instance_48; function $serializer_getInstance_48() { if ($serializer_instance_48 == null) new $serializer_48(); return $serializer_instance_48; } function AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_48().descriptor_1); } if (0 === (seen1 & 1)) $this.submitterUid_1 = new Long(0, 0); else $this.submitterUid_1 = submitterUid; if (0 === (seen1 & 2)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 4)) $this.pictureUri_1 = null; else $this.pictureUri_1 = pictureUri; if (0 === (seen1 & 8)) $this.latestPrivateComment_1 = null; else $this.latestPrivateComment_1 = latestPrivateComment; if (0 === (seen1 & 16)) $this.fileSubmissionStatus_1 = 0; else $this.fileSubmissionStatus_1 = fileSubmissionStatus; return $this; } function AssignmentSubmitterSummary_init_$Create$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker) { return AssignmentSubmitterSummary_init_$Init$(seen1, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, serializationConstructorMarker, objectCreate(protoOf(AssignmentSubmitterSummary))); } function AssignmentSubmitterSummary(submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus) { Companion_getInstance_54(); submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; name = name === VOID ? null : name; pictureUri = pictureUri === VOID ? null : pictureUri; latestPrivateComment = latestPrivateComment === VOID ? null : latestPrivateComment; fileSubmissionStatus = fileSubmissionStatus === VOID ? 0 : fileSubmissionStatus; this.submitterUid_1 = submitterUid; this.name_1 = name; this.pictureUri_1 = pictureUri; this.latestPrivateComment_1 = latestPrivateComment; this.fileSubmissionStatus_1 = fileSubmissionStatus; } protoOf(AssignmentSubmitterSummary).set_submitterUid_5nf92e_k$ = function (_set____db54di) { this.submitterUid_1 = _set____db54di; }; protoOf(AssignmentSubmitterSummary).get_submitterUid_tbcwmo_k$ = function () { return this.submitterUid_1; }; protoOf(AssignmentSubmitterSummary).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(AssignmentSubmitterSummary).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(AssignmentSubmitterSummary).set_pictureUri_ldxxh0_k$ = function (_set____db54di) { this.pictureUri_1 = _set____db54di; }; protoOf(AssignmentSubmitterSummary).get_pictureUri_oz22hj_k$ = function () { return this.pictureUri_1; }; protoOf(AssignmentSubmitterSummary).set_latestPrivateComment_l14w5z_k$ = function (_set____db54di) { this.latestPrivateComment_1 = _set____db54di; }; protoOf(AssignmentSubmitterSummary).get_latestPrivateComment_dw2x2s_k$ = function () { return this.latestPrivateComment_1; }; protoOf(AssignmentSubmitterSummary).set_fileSubmissionStatus_k5sqvj_k$ = function (_set____db54di) { this.fileSubmissionStatus_1 = _set____db54di; }; protoOf(AssignmentSubmitterSummary).get_fileSubmissionStatus_a7yfnh_k$ = function () { return this.fileSubmissionStatus_1; }; protoOf(AssignmentSubmitterSummary).component1_7eebsc_k$ = function () { return this.submitterUid_1; }; protoOf(AssignmentSubmitterSummary).component2_7eebsb_k$ = function () { return this.name_1; }; protoOf(AssignmentSubmitterSummary).component3_7eebsa_k$ = function () { return this.pictureUri_1; }; protoOf(AssignmentSubmitterSummary).component4_7eebs9_k$ = function () { return this.latestPrivateComment_1; }; protoOf(AssignmentSubmitterSummary).component5_7eebs8_k$ = function () { return this.fileSubmissionStatus_1; }; protoOf(AssignmentSubmitterSummary).copy_txrql0_k$ = function (submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus) { return new AssignmentSubmitterSummary(submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus); }; protoOf(AssignmentSubmitterSummary).copy$default_7vrhzo_k$ = function (submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus, $super) { submitterUid = submitterUid === VOID ? this.submitterUid_1 : submitterUid; name = name === VOID ? this.name_1 : name; pictureUri = pictureUri === VOID ? this.pictureUri_1 : pictureUri; latestPrivateComment = latestPrivateComment === VOID ? this.latestPrivateComment_1 : latestPrivateComment; fileSubmissionStatus = fileSubmissionStatus === VOID ? this.fileSubmissionStatus_1 : fileSubmissionStatus; return $super === VOID ? this.copy_txrql0_k$(submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus) : $super.copy_txrql0_k$.call(this, submitterUid, name, pictureUri, latestPrivateComment, fileSubmissionStatus); }; protoOf(AssignmentSubmitterSummary).toString = function () { return 'AssignmentSubmitterSummary(submitterUid=' + this.submitterUid_1.toString() + ', name=' + this.name_1 + ', pictureUri=' + this.pictureUri_1 + ', latestPrivateComment=' + this.latestPrivateComment_1 + ', fileSubmissionStatus=' + this.fileSubmissionStatus_1 + ')'; }; protoOf(AssignmentSubmitterSummary).hashCode = function () { var result = this.submitterUid_1.hashCode(); result = imul(result, 31) + (this.name_1 == null ? 0 : getStringHashCode(this.name_1)) | 0; result = imul(result, 31) + (this.pictureUri_1 == null ? 0 : getStringHashCode(this.pictureUri_1)) | 0; result = imul(result, 31) + (this.latestPrivateComment_1 == null ? 0 : getStringHashCode(this.latestPrivateComment_1)) | 0; result = imul(result, 31) + this.fileSubmissionStatus_1 | 0; return result; }; protoOf(AssignmentSubmitterSummary).equals = function (other) { if (this === other) return true; if (!(other instanceof AssignmentSubmitterSummary)) return false; var tmp0_other_with_cast = other instanceof AssignmentSubmitterSummary ? other : THROW_CCE(); if (!this.submitterUid_1.equals(tmp0_other_with_cast.submitterUid_1)) return false; if (!(this.name_1 == tmp0_other_with_cast.name_1)) return false; if (!(this.pictureUri_1 == tmp0_other_with_cast.pictureUri_1)) return false; if (!(this.latestPrivateComment_1 == tmp0_other_with_cast.latestPrivateComment_1)) return false; if (!(this.fileSubmissionStatus_1 === tmp0_other_with_cast.fileSubmissionStatus_1)) return false; return true; }; function Companion_51() { Companion_instance_51 = this; } protoOf(Companion_51).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_49(); }; var Companion_instance_51; function Companion_getInstance_55() { if (Companion_instance_51 == null) new Companion_51(); return Companion_instance_51; } function $serializer_49() { $serializer_instance_49 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.AverageCourseAssignmentMark', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('averageScore', true); tmp0_serialDesc.addElement_5pzumi_k$('averagePenalty', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_49).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_49).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [FloatSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_49).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0.0; var tmp5_local1 = 0; var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return AverageCourseAssignmentMark_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_49).serialize_yn6qak_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.averageScore_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.averageScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.averagePenalty_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.averagePenalty_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_49).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_yn6qak_k$(encoder, value instanceof AverageCourseAssignmentMark ? value : THROW_CCE()); }; var $serializer_instance_49; function $serializer_getInstance_49() { if ($serializer_instance_49 == null) new $serializer_49(); return $serializer_instance_49; } function AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_49().descriptor_1); } if (0 === (seen1 & 1)) $this.averageScore_1 = 0.0; else $this.averageScore_1 = averageScore; if (0 === (seen1 & 2)) $this.averagePenalty_1 = 0; else $this.averagePenalty_1 = averagePenalty; return $this; } function AverageCourseAssignmentMark_init_$Create$(seen1, averageScore, averagePenalty, serializationConstructorMarker) { return AverageCourseAssignmentMark_init_$Init$(seen1, averageScore, averagePenalty, serializationConstructorMarker, objectCreate(protoOf(AverageCourseAssignmentMark))); } function AverageCourseAssignmentMark() { Companion_getInstance_55(); this.averageScore_1 = 0.0; this.averagePenalty_1 = 0; } protoOf(AverageCourseAssignmentMark).set_averageScore_9emdai_k$ = function (_set____db54di) { this.averageScore_1 = _set____db54di; }; protoOf(AverageCourseAssignmentMark).get_averageScore_ov15fi_k$ = function () { return this.averageScore_1; }; protoOf(AverageCourseAssignmentMark).set_averagePenalty_87iz7l_k$ = function (_set____db54di) { this.averagePenalty_1 = _set____db54di; }; protoOf(AverageCourseAssignmentMark).get_averagePenalty_h42i4r_k$ = function () { return this.averagePenalty_1; }; protoOf(AverageCourseAssignmentMark).equals = function (other) { if (this === other) return true; if (!(other instanceof AverageCourseAssignmentMark)) return false; if (!(this.averageScore_1 === other.averageScore_1)) return false; if (!(this.averagePenalty_1 === other.averagePenalty_1)) return false; return true; }; protoOf(AverageCourseAssignmentMark).hashCode = function () { var result = getNumberHashCode(this.averageScore_1); result = imul(31, result) + this.averagePenalty_1 | 0; return result; }; function Companion_52() { Companion_instance_52 = this; this.STATUS_PENDING_CREATION_1 = 1; this.STATUS_CREATED_1 = 2; this.STATUS_PENDING_DELETE_1 = 3; this.STATUS_ERROR_1 = 4; this.TYPE_SERVER_RETENTION_1 = 1; this.TYPE_OFFLINE_ITEM_1 = 2; } protoOf(Companion_52).get_STATUS_PENDING_CREATION_qws8rv_k$ = function () { return this.STATUS_PENDING_CREATION_1; }; protoOf(Companion_52).get_STATUS_CREATED_6iky9o_k$ = function () { return this.STATUS_CREATED_1; }; protoOf(Companion_52).get_STATUS_PENDING_DELETE_jcrikp_k$ = function () { return this.STATUS_PENDING_DELETE_1; }; protoOf(Companion_52).get_STATUS_ERROR_r2qxes_k$ = function () { return this.STATUS_ERROR_1; }; protoOf(Companion_52).get_TYPE_SERVER_RETENTION_uogaf6_k$ = function () { return this.TYPE_SERVER_RETENTION_1; }; protoOf(Companion_52).get_TYPE_OFFLINE_ITEM_53hpvv_k$ = function () { return this.TYPE_OFFLINE_ITEM_1; }; var Companion_instance_52; function Companion_getInstance_56() { if (Companion_instance_52 == null) new Companion_52(); return Companion_instance_52; } function CacheLockJoin(cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) { Companion_getInstance_56(); cljId = cljId === VOID ? 0 : cljId; cljTableId = cljTableId === VOID ? 0 : cljTableId; cljEntityUid = cljEntityUid === VOID ? new Long(0, 0) : cljEntityUid; cljUrl = cljUrl === VOID ? '' : cljUrl; cljLockId = cljLockId === VOID ? new Long(0, 0) : cljLockId; cljStatus = cljStatus === VOID ? 0 : cljStatus; cljType = cljType === VOID ? 0 : cljType; cljOiUid = cljOiUid === VOID ? new Long(0, 0) : cljOiUid; this.cljId_1 = cljId; this.cljTableId_1 = cljTableId; this.cljEntityUid_1 = cljEntityUid; this.cljUrl_1 = cljUrl; this.cljLockId_1 = cljLockId; this.cljStatus_1 = cljStatus; this.cljType_1 = cljType; this.cljOiUid_1 = cljOiUid; } protoOf(CacheLockJoin).set_cljId_qcjql3_k$ = function (_set____db54di) { this.cljId_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljId_ips9gz_k$ = function () { return this.cljId_1; }; protoOf(CacheLockJoin).set_cljTableId_9xvs59_k$ = function (_set____db54di) { this.cljTableId_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljTableId_fyqczz_k$ = function () { return this.cljTableId_1; }; protoOf(CacheLockJoin).set_cljEntityUid_s4inn9_k$ = function (_set____db54di) { this.cljEntityUid_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljEntityUid_l5u2z9_k$ = function () { return this.cljEntityUid_1; }; protoOf(CacheLockJoin).set_cljUrl_wt3f0s_k$ = function (_set____db54di) { this.cljUrl_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljUrl_byfz4n_k$ = function () { return this.cljUrl_1; }; protoOf(CacheLockJoin).set_cljLockId_of2o18_k$ = function (_set____db54di) { this.cljLockId_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljLockId_k4ljeq_k$ = function () { return this.cljLockId_1; }; protoOf(CacheLockJoin).set_cljStatus_9olbm6_k$ = function (_set____db54di) { this.cljStatus_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljStatus_gqk9x2_k$ = function () { return this.cljStatus_1; }; protoOf(CacheLockJoin).set_cljType_t4jady_k$ = function (_set____db54di) { this.cljType_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljType_fi6hhu_k$ = function () { return this.cljType_1; }; protoOf(CacheLockJoin).set_cljOiUid_tqx2s4_k$ = function (_set____db54di) { this.cljOiUid_1 = _set____db54di; }; protoOf(CacheLockJoin).get_cljOiUid_gn922q_k$ = function () { return this.cljOiUid_1; }; protoOf(CacheLockJoin).component1_7eebsc_k$ = function () { return this.cljId_1; }; protoOf(CacheLockJoin).component2_7eebsb_k$ = function () { return this.cljTableId_1; }; protoOf(CacheLockJoin).component3_7eebsa_k$ = function () { return this.cljEntityUid_1; }; protoOf(CacheLockJoin).component4_7eebs9_k$ = function () { return this.cljUrl_1; }; protoOf(CacheLockJoin).component5_7eebs8_k$ = function () { return this.cljLockId_1; }; protoOf(CacheLockJoin).component6_7eebs7_k$ = function () { return this.cljStatus_1; }; protoOf(CacheLockJoin).component7_7eebs6_k$ = function () { return this.cljType_1; }; protoOf(CacheLockJoin).component8_7eebs5_k$ = function () { return this.cljOiUid_1; }; protoOf(CacheLockJoin).copy_rn9fce_k$ = function (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) { return new CacheLockJoin(cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid); }; protoOf(CacheLockJoin).copy$default_7r1zug_k$ = function (cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid, $super) { cljId = cljId === VOID ? this.cljId_1 : cljId; cljTableId = cljTableId === VOID ? this.cljTableId_1 : cljTableId; cljEntityUid = cljEntityUid === VOID ? this.cljEntityUid_1 : cljEntityUid; cljUrl = cljUrl === VOID ? this.cljUrl_1 : cljUrl; cljLockId = cljLockId === VOID ? this.cljLockId_1 : cljLockId; cljStatus = cljStatus === VOID ? this.cljStatus_1 : cljStatus; cljType = cljType === VOID ? this.cljType_1 : cljType; cljOiUid = cljOiUid === VOID ? this.cljOiUid_1 : cljOiUid; return $super === VOID ? this.copy_rn9fce_k$(cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid) : $super.copy_rn9fce_k$.call(this, cljId, cljTableId, cljEntityUid, cljUrl, cljLockId, cljStatus, cljType, cljOiUid); }; protoOf(CacheLockJoin).toString = function () { return 'CacheLockJoin(cljId=' + this.cljId_1 + ', cljTableId=' + this.cljTableId_1 + ', cljEntityUid=' + this.cljEntityUid_1.toString() + ', cljUrl=' + this.cljUrl_1 + ', cljLockId=' + this.cljLockId_1.toString() + ', cljStatus=' + this.cljStatus_1 + ', cljType=' + this.cljType_1 + ', cljOiUid=' + this.cljOiUid_1.toString() + ')'; }; protoOf(CacheLockJoin).hashCode = function () { var result = this.cljId_1; result = imul(result, 31) + this.cljTableId_1 | 0; result = imul(result, 31) + this.cljEntityUid_1.hashCode() | 0; result = imul(result, 31) + (this.cljUrl_1 == null ? 0 : getStringHashCode(this.cljUrl_1)) | 0; result = imul(result, 31) + this.cljLockId_1.hashCode() | 0; result = imul(result, 31) + this.cljStatus_1 | 0; result = imul(result, 31) + this.cljType_1 | 0; result = imul(result, 31) + this.cljOiUid_1.hashCode() | 0; return result; }; protoOf(CacheLockJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof CacheLockJoin)) return false; var tmp0_other_with_cast = other instanceof CacheLockJoin ? other : THROW_CCE(); if (!(this.cljId_1 === tmp0_other_with_cast.cljId_1)) return false; if (!(this.cljTableId_1 === tmp0_other_with_cast.cljTableId_1)) return false; if (!this.cljEntityUid_1.equals(tmp0_other_with_cast.cljEntityUid_1)) return false; if (!(this.cljUrl_1 == tmp0_other_with_cast.cljUrl_1)) return false; if (!this.cljLockId_1.equals(tmp0_other_with_cast.cljLockId_1)) return false; if (!(this.cljStatus_1 === tmp0_other_with_cast.cljStatus_1)) return false; if (!(this.cljType_1 === tmp0_other_with_cast.cljType_1)) return false; if (!this.cljOiUid_1.equals(tmp0_other_with_cast.cljOiUid_1)) return false; return true; }; function Clazz_init_$Init$(clazzName, $this) { Clazz.call($this); $this.clazzName_1 = clazzName; $this.clazzFeatures_1 = new Long(13, 0); $this.isClazzActive_1 = true; return $this; } function Clazz_init_$Create$(clazzName) { return Clazz_init_$Init$(clazzName, objectCreate(protoOf(Clazz))); } function Clazz_init_$Init$_0(clazzName, clazzLocationUid, $this) { Clazz.call($this); $this.clazzName_1 = clazzName; $this.clazzLocationUid_1 = clazzLocationUid; $this.clazzFeatures_1 = new Long(13, 0); $this.isClazzActive_1 = true; return $this; } function Clazz_init_$Create$_0(clazzName, clazzLocationUid) { return Clazz_init_$Init$_0(clazzName, clazzLocationUid, objectCreate(protoOf(Clazz))); } function Companion_53() { Companion_instance_53 = this; this.TABLE_ID_1 = 6; this.CLAZZ_FEATURE_ATTENDANCE_1 = new Long(1, 0); this.CLAZZ_FEATURE_ACTIVITY_1 = new Long(4, 0); this.CLAZZ_FEATURE_CLAZZ_ASSIGNMENT_1 = new Long(8, 0); this.CLAZZ_CODE_DEFAULT_LENGTH_1 = 6; this.CLAZZ_ENROLMENT_POLICY_WITH_LINK_1 = 100; this.CLAZZ_ENROLMENT_POLICY_OPEN_1 = 102; } protoOf(Companion_53).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_53).get_CLAZZ_FEATURE_ATTENDANCE_h2pzj6_k$ = function () { return this.CLAZZ_FEATURE_ATTENDANCE_1; }; protoOf(Companion_53).get_CLAZZ_FEATURE_ACTIVITY_9zyb9k_k$ = function () { return this.CLAZZ_FEATURE_ACTIVITY_1; }; protoOf(Companion_53).get_CLAZZ_FEATURE_CLAZZ_ASSIGNMENT_jbroh9_k$ = function () { return this.CLAZZ_FEATURE_CLAZZ_ASSIGNMENT_1; }; protoOf(Companion_53).get_CLAZZ_CODE_DEFAULT_LENGTH_c26xga_k$ = function () { return this.CLAZZ_CODE_DEFAULT_LENGTH_1; }; protoOf(Companion_53).get_CLAZZ_ENROLMENT_POLICY_WITH_LINK_w5gw29_k$ = function () { return this.CLAZZ_ENROLMENT_POLICY_WITH_LINK_1; }; protoOf(Companion_53).get_CLAZZ_ENROLMENT_POLICY_OPEN_3ryjuc_k$ = function () { return this.CLAZZ_ENROLMENT_POLICY_OPEN_1; }; protoOf(Companion_53).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_50(); }; var Companion_instance_53; function Companion_getInstance_57() { if (Companion_instance_53 == null) new Companion_53(); return Companion_instance_53; } function $serializer_50() { $serializer_instance_50 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Clazz', this, 25); tmp0_serialDesc.addElement_5pzumi_k$('clazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzDesc', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceAverage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('isClazzActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocationUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzFeatures', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzSchoolUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPolicy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTerminologyUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLct', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTimeZone', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzParentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzCode', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzOwnerPersonUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_50).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_50).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_50).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = 0.0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = new Long(0, 0); var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = new Long(0, 0); var tmp27_local23 = null; var tmp28_local24 = new Long(0, 0); var tmp29_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp29_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp29_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; } else while (tmp1_flag) { tmp2_index = tmp29_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp29_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp29_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp29_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp29_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp29_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp29_input.endStructure_1xqz0n_k$(tmp0_desc); return Clazz_init_$Create$_1(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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, null); }; protoOf($serializer_50).serialize_ooucsq_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.clazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.clazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.clazzName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.clazzName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.clazzDesc_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.clazzDesc_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.attendanceAverage_1, -1.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.attendanceAverage_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.clazzHolidayUMCalendarUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.clazzHolidayUMCalendarUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.clazzScheuleUMCalendarUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.clazzScheuleUMCalendarUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.isClazzActive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.isClazzActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.clazzLocationUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.clazzLocationUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.clazzStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.clazzStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.clazzEndTime_1.equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.clazzEndTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.clazzFeatures_1.equals(new Long(1, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.clazzFeatures_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.clazzSchoolUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.clazzSchoolUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.clazzEnrolmentPolicy_1 === 102)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.clazzEnrolmentPolicy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.clazzTerminologyUid_1.equals(new Long(25966, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.clazzTerminologyUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.clazzMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.clazzMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.clazzLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.clazzLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.clazzLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.clazzLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.clazzLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.clazzLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.clazzTimeZone_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, StringSerializer_getInstance(), value.clazzTimeZone_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.clazzStudentsPersonGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.clazzStudentsPersonGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.clazzTeachersPersonGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.clazzTeachersPersonGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.clazzPendingStudentsPersonGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.clazzPendingStudentsPersonGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.clazzParentsPersonGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 22, value.clazzParentsPersonGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.clazzCode_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.clazzCode_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.clazzOwnerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.clazzOwnerPersonUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_50).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ooucsq_k$(encoder, value instanceof Clazz ? value : THROW_CCE()); }; var $serializer_instance_50; function $serializer_getInstance_50() { if ($serializer_instance_50 == null) new $serializer_50(); return $serializer_instance_50; } function Clazz_init_$Init$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_50().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzUid_1 = new Long(0, 0); else $this.clazzUid_1 = clazzUid; if (0 === (seen1 & 2)) $this.clazzName_1 = null; else $this.clazzName_1 = clazzName; if (0 === (seen1 & 4)) $this.clazzDesc_1 = null; else $this.clazzDesc_1 = clazzDesc; if (0 === (seen1 & 8)) $this.attendanceAverage_1 = -1.0; else $this.attendanceAverage_1 = attendanceAverage; if (0 === (seen1 & 16)) $this.clazzHolidayUMCalendarUid_1 = new Long(0, 0); else $this.clazzHolidayUMCalendarUid_1 = clazzHolidayUMCalendarUid; if (0 === (seen1 & 32)) $this.clazzScheuleUMCalendarUid_1 = new Long(0, 0); else $this.clazzScheuleUMCalendarUid_1 = clazzScheuleUMCalendarUid; if (0 === (seen1 & 64)) $this.isClazzActive_1 = false; else $this.isClazzActive_1 = isClazzActive; if (0 === (seen1 & 128)) $this.clazzLocationUid_1 = new Long(0, 0); else $this.clazzLocationUid_1 = clazzLocationUid; if (0 === (seen1 & 256)) $this.clazzStartTime_1 = new Long(0, 0); else $this.clazzStartTime_1 = clazzStartTime; if (0 === (seen1 & 512)) $this.clazzEndTime_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); else $this.clazzEndTime_1 = clazzEndTime; if (0 === (seen1 & 1024)) $this.clazzFeatures_1 = new Long(1, 0); else $this.clazzFeatures_1 = clazzFeatures; if (0 === (seen1 & 2048)) $this.clazzSchoolUid_1 = new Long(0, 0); else $this.clazzSchoolUid_1 = clazzSchoolUid; if (0 === (seen1 & 4096)) $this.clazzEnrolmentPolicy_1 = 102; else $this.clazzEnrolmentPolicy_1 = clazzEnrolmentPolicy; if (0 === (seen1 & 8192)) $this.clazzTerminologyUid_1 = new Long(25966, 0); else $this.clazzTerminologyUid_1 = clazzTerminologyUid; if (0 === (seen1 & 16384)) $this.clazzMasterChangeSeqNum_1 = new Long(0, 0); else $this.clazzMasterChangeSeqNum_1 = clazzMasterChangeSeqNum; if (0 === (seen1 & 32768)) $this.clazzLocalChangeSeqNum_1 = new Long(0, 0); else $this.clazzLocalChangeSeqNum_1 = clazzLocalChangeSeqNum; if (0 === (seen1 & 65536)) $this.clazzLastChangedBy_1 = 0; else $this.clazzLastChangedBy_1 = clazzLastChangedBy; if (0 === (seen1 & 131072)) $this.clazzLct_1 = new Long(0, 0); else $this.clazzLct_1 = clazzLct; if (0 === (seen1 & 262144)) $this.clazzTimeZone_1 = null; else $this.clazzTimeZone_1 = clazzTimeZone; if (0 === (seen1 & 524288)) $this.clazzStudentsPersonGroupUid_1 = new Long(0, 0); else $this.clazzStudentsPersonGroupUid_1 = clazzStudentsPersonGroupUid; if (0 === (seen1 & 1048576)) $this.clazzTeachersPersonGroupUid_1 = new Long(0, 0); else $this.clazzTeachersPersonGroupUid_1 = clazzTeachersPersonGroupUid; if (0 === (seen1 & 2097152)) $this.clazzPendingStudentsPersonGroupUid_1 = new Long(0, 0); else $this.clazzPendingStudentsPersonGroupUid_1 = clazzPendingStudentsPersonGroupUid; if (0 === (seen1 & 4194304)) $this.clazzParentsPersonGroupUid_1 = new Long(0, 0); else $this.clazzParentsPersonGroupUid_1 = clazzParentsPersonGroupUid; if (0 === (seen1 & 8388608)) $this.clazzCode_1 = null; else $this.clazzCode_1 = clazzCode; if (0 === (seen1 & 16777216)) $this.clazzOwnerPersonUid_1 = new Long(0, 0); else $this.clazzOwnerPersonUid_1 = clazzOwnerPersonUid; return $this; } function Clazz_init_$Create$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker) { return Clazz_init_$Init$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(Clazz))); } function Clazz() { Companion_getInstance_57(); this.clazzUid_1 = new Long(0, 0); this.clazzName_1 = null; this.clazzDesc_1 = null; this.attendanceAverage_1 = -1.0; this.clazzHolidayUMCalendarUid_1 = new Long(0, 0); this.clazzScheuleUMCalendarUid_1 = new Long(0, 0); this.isClazzActive_1 = false; this.clazzLocationUid_1 = new Long(0, 0); this.clazzStartTime_1 = new Long(0, 0); this.clazzEndTime_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); this.clazzFeatures_1 = new Long(1, 0); this.clazzSchoolUid_1 = new Long(0, 0); this.clazzEnrolmentPolicy_1 = 102; this.clazzTerminologyUid_1 = new Long(25966, 0); this.clazzMasterChangeSeqNum_1 = new Long(0, 0); this.clazzLocalChangeSeqNum_1 = new Long(0, 0); this.clazzLastChangedBy_1 = 0; this.clazzLct_1 = new Long(0, 0); this.clazzTimeZone_1 = null; this.clazzStudentsPersonGroupUid_1 = new Long(0, 0); this.clazzTeachersPersonGroupUid_1 = new Long(0, 0); this.clazzPendingStudentsPersonGroupUid_1 = new Long(0, 0); this.clazzParentsPersonGroupUid_1 = new Long(0, 0); this.clazzCode_1 = null; this.clazzOwnerPersonUid_1 = new Long(0, 0); } protoOf(Clazz).set_clazzUid_tlygrb_k$ = function (_set____db54di) { this.clazzUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzUid_k8pnbz_k$ = function () { return this.clazzUid_1; }; protoOf(Clazz).set_clazzName_aqdmvj_k$ = function (_set____db54di) { this.clazzName_1 = _set____db54di; }; protoOf(Clazz).get_clazzName_brsrx6_k$ = function () { return this.clazzName_1; }; protoOf(Clazz).set_clazzDesc_gezt3p_k$ = function (_set____db54di) { this.clazzDesc_1 = _set____db54di; }; protoOf(Clazz).get_clazzDesc_brmh5s_k$ = function () { return this.clazzDesc_1; }; protoOf(Clazz).set_attendanceAverage_9una4v_k$ = function (_set____db54di) { this.attendanceAverage_1 = _set____db54di; }; protoOf(Clazz).get_attendanceAverage_q3uit1_k$ = function () { return this.attendanceAverage_1; }; protoOf(Clazz).set_clazzHolidayUMCalendarUid_fam2pr_k$ = function (_set____db54di) { this.clazzHolidayUMCalendarUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzHolidayUMCalendarUid_diy12p_k$ = function () { return this.clazzHolidayUMCalendarUid_1; }; protoOf(Clazz).set_clazzScheuleUMCalendarUid_f0khzq_k$ = function (_set____db54di) { this.clazzScheuleUMCalendarUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzScheuleUMCalendarUid_pyne08_k$ = function () { return this.clazzScheuleUMCalendarUid_1; }; protoOf(Clazz).set_isClazzActive_e2j2e6_k$ = function (_set____db54di) { this.isClazzActive_1 = _set____db54di; }; protoOf(Clazz).get_isClazzActive_pdk9bp_k$ = function () { return this.isClazzActive_1; }; protoOf(Clazz).set_clazzLocationUid_s7jxfi_k$ = function (_set____db54di) { this.clazzLocationUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzLocationUid_64jec4_k$ = function () { return this.clazzLocationUid_1; }; protoOf(Clazz).set_clazzStartTime_dq8pme_k$ = function (_set____db54di) { this.clazzStartTime_1 = _set____db54di; }; protoOf(Clazz).get_clazzStartTime_lc1vds_k$ = function () { return this.clazzStartTime_1; }; protoOf(Clazz).set_clazzEndTime_yahlip_k$ = function (_set____db54di) { this.clazzEndTime_1 = _set____db54di; }; protoOf(Clazz).get_clazzEndTime_sxjf8n_k$ = function () { return this.clazzEndTime_1; }; protoOf(Clazz).set_clazzFeatures_ypnqy_k$ = function (_set____db54di) { this.clazzFeatures_1 = _set____db54di; }; protoOf(Clazz).get_clazzFeatures_6nf4ac_k$ = function () { return this.clazzFeatures_1; }; protoOf(Clazz).set_clazzSchoolUid_sau1vh_k$ = function (_set____db54di) { this.clazzSchoolUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzSchoolUid_g4bglp_k$ = function () { return this.clazzSchoolUid_1; }; protoOf(Clazz).set_clazzEnrolmentPolicy_gowgj1_k$ = function (_set____db54di) { this.clazzEnrolmentPolicy_1 = _set____db54di; }; protoOf(Clazz).get_clazzEnrolmentPolicy_pv7kzr_k$ = function () { return this.clazzEnrolmentPolicy_1; }; protoOf(Clazz).set_clazzTerminologyUid_3itmsa_k$ = function (_set____db54di) { this.clazzTerminologyUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzTerminologyUid_4xpw4_k$ = function () { return this.clazzTerminologyUid_1; }; protoOf(Clazz).set_clazzMasterChangeSeqNum_tt8ty_k$ = function (_set____db54di) { this.clazzMasterChangeSeqNum_1 = _set____db54di; }; protoOf(Clazz).get_clazzMasterChangeSeqNum_7fn794_k$ = function () { return this.clazzMasterChangeSeqNum_1; }; protoOf(Clazz).set_clazzLocalChangeSeqNum_l29zef_k$ = function (_set____db54di) { this.clazzLocalChangeSeqNum_1 = _set____db54di; }; protoOf(Clazz).get_clazzLocalChangeSeqNum_9hlwk3_k$ = function () { return this.clazzLocalChangeSeqNum_1; }; protoOf(Clazz).set_clazzLastChangedBy_g3060i_k$ = function (_set____db54di) { this.clazzLastChangedBy_1 = _set____db54di; }; protoOf(Clazz).get_clazzLastChangedBy_wnz9za_k$ = function () { return this.clazzLastChangedBy_1; }; protoOf(Clazz).set_clazzLct_l8nosk_k$ = function (_set____db54di) { this.clazzLct_1 = _set____db54di; }; protoOf(Clazz).get_clazzLct_k8pu4y_k$ = function () { return this.clazzLct_1; }; protoOf(Clazz).set_clazzTimeZone_h8a7dv_k$ = function (_set____db54di) { this.clazzTimeZone_1 = _set____db54di; }; protoOf(Clazz).get_clazzTimeZone_yu1krs_k$ = function () { return this.clazzTimeZone_1; }; protoOf(Clazz).set_clazzStudentsPersonGroupUid_d6byqt_k$ = function (_set____db54di) { this.clazzStudentsPersonGroupUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzStudentsPersonGroupUid_myynpp_k$ = function () { return this.clazzStudentsPersonGroupUid_1; }; protoOf(Clazz).set_clazzTeachersPersonGroupUid_go0bzo_k$ = function (_set____db54di) { this.clazzTeachersPersonGroupUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzTeachersPersonGroupUid_5xdfqy_k$ = function () { return this.clazzTeachersPersonGroupUid_1; }; protoOf(Clazz).set_clazzPendingStudentsPersonGroupUid_6q00t8_k$ = function (_set____db54di) { this.clazzPendingStudentsPersonGroupUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzPendingStudentsPersonGroupUid_4kclja_k$ = function () { return this.clazzPendingStudentsPersonGroupUid_1; }; protoOf(Clazz).set_clazzParentsPersonGroupUid_l527ti_k$ = function (_set____db54di) { this.clazzParentsPersonGroupUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzParentsPersonGroupUid_gibku8_k$ = function () { return this.clazzParentsPersonGroupUid_1; }; protoOf(Clazz).set_clazzCode_xzrrf3_k$ = function (_set____db54di) { this.clazzCode_1 = _set____db54di; }; protoOf(Clazz).get_clazzCode_brm18c_k$ = function () { return this.clazzCode_1; }; protoOf(Clazz).set_clazzOwnerPersonUid_jbv4ez_k$ = function (_set____db54di) { this.clazzOwnerPersonUid_1 = _set____db54di; }; protoOf(Clazz).get_clazzOwnerPersonUid_iplxz_k$ = function () { return this.clazzOwnerPersonUid_1; }; protoOf(Clazz).equals = function (other) { if (this === other) return true; if (!(other instanceof Clazz)) return false; if (!this.clazzUid_1.equals(other.clazzUid_1)) return false; if (!(this.clazzName_1 == other.clazzName_1)) return false; if (!(this.clazzDesc_1 == other.clazzDesc_1)) return false; if (!(this.attendanceAverage_1 === other.attendanceAverage_1)) return false; if (!this.clazzHolidayUMCalendarUid_1.equals(other.clazzHolidayUMCalendarUid_1)) return false; if (!this.clazzScheuleUMCalendarUid_1.equals(other.clazzScheuleUMCalendarUid_1)) return false; if (!(this.isClazzActive_1 === other.isClazzActive_1)) return false; if (!this.clazzLocationUid_1.equals(other.clazzLocationUid_1)) return false; if (!this.clazzStartTime_1.equals(other.clazzStartTime_1)) return false; if (!this.clazzEndTime_1.equals(other.clazzEndTime_1)) return false; if (!this.clazzFeatures_1.equals(other.clazzFeatures_1)) return false; if (!this.clazzSchoolUid_1.equals(other.clazzSchoolUid_1)) return false; if (!(this.clazzEnrolmentPolicy_1 === other.clazzEnrolmentPolicy_1)) return false; if (!this.clazzTerminologyUid_1.equals(other.clazzTerminologyUid_1)) return false; if (!this.clazzMasterChangeSeqNum_1.equals(other.clazzMasterChangeSeqNum_1)) return false; if (!this.clazzLocalChangeSeqNum_1.equals(other.clazzLocalChangeSeqNum_1)) return false; if (!(this.clazzLastChangedBy_1 === other.clazzLastChangedBy_1)) return false; if (!this.clazzLct_1.equals(other.clazzLct_1)) return false; if (!(this.clazzTimeZone_1 == other.clazzTimeZone_1)) return false; if (!this.clazzStudentsPersonGroupUid_1.equals(other.clazzStudentsPersonGroupUid_1)) return false; if (!this.clazzTeachersPersonGroupUid_1.equals(other.clazzTeachersPersonGroupUid_1)) return false; if (!this.clazzPendingStudentsPersonGroupUid_1.equals(other.clazzPendingStudentsPersonGroupUid_1)) return false; if (!this.clazzParentsPersonGroupUid_1.equals(other.clazzParentsPersonGroupUid_1)) return false; if (!(this.clazzCode_1 == other.clazzCode_1)) return false; return true; }; protoOf(Clazz).hashCode = function () { var result = this.clazzUid_1.hashCode(); var tmp = imul(31, result); var tmp0_safe_receiver = this.clazzName_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.clazzDesc_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; result = imul(31, result) + getNumberHashCode(this.attendanceAverage_1) | 0; result = imul(31, result) + this.clazzHolidayUMCalendarUid_1.hashCode() | 0; result = imul(31, result) + this.clazzScheuleUMCalendarUid_1.hashCode() | 0; result = imul(31, result) + getBooleanHashCode(this.isClazzActive_1) | 0; result = imul(31, result) + this.clazzLocationUid_1.hashCode() | 0; result = imul(31, result) + this.clazzStartTime_1.hashCode() | 0; result = imul(31, result) + this.clazzEndTime_1.hashCode() | 0; result = imul(31, result) + this.clazzFeatures_1.hashCode() | 0; result = imul(31, result) + this.clazzSchoolUid_1.hashCode() | 0; result = imul(31, result) + this.clazzEnrolmentPolicy_1 | 0; result = imul(31, result) + this.clazzTerminologyUid_1.hashCode() | 0; result = imul(31, result) + this.clazzMasterChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.clazzLocalChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.clazzLastChangedBy_1 | 0; result = imul(31, result) + this.clazzLct_1.hashCode() | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.clazzTimeZone_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; result = imul(31, result) + this.clazzStudentsPersonGroupUid_1.hashCode() | 0; result = imul(31, result) + this.clazzTeachersPersonGroupUid_1.hashCode() | 0; result = imul(31, result) + this.clazzPendingStudentsPersonGroupUid_1.hashCode() | 0; result = imul(31, result) + this.clazzParentsPersonGroupUid_1.hashCode() | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.clazzCode_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; return result; }; function Companion_54() { Companion_instance_54 = this; this.TABLE_ID_1 = 520; this.SUBMISSION_POLICY_SUBMIT_ALL_AT_ONCE_1 = 1; this.SUBMISSION_POLICY_MULTIPLE_ALLOWED_1 = 2; this.MARKED_BY_COURSE_LEADER_1 = 1; this.MARKED_BY_PEERS_1 = 2; this.FILE_TYPE_ANY_1 = 0; this.FILE_TYPE_DOC_1 = 1; this.FILE_TYPE_IMAGE_1 = 2; this.FILE_TYPE_VIDEO_1 = 3; this.FILE_TYPE_AUDIO_1 = 4; this.TEXT_WORD_LIMIT_1 = 1; this.TEXT_CHAR_LIMIT_1 = 2; this.COMPLETION_CRITERIA_SUBMIT_1 = 100; this.COMPLETION_CRITERIA_GRADED_1 = 102; } protoOf(Companion_54).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_54).get_SUBMISSION_POLICY_SUBMIT_ALL_AT_ONCE_iohkb_k$ = function () { return this.SUBMISSION_POLICY_SUBMIT_ALL_AT_ONCE_1; }; protoOf(Companion_54).get_SUBMISSION_POLICY_MULTIPLE_ALLOWED_u89h7g_k$ = function () { return this.SUBMISSION_POLICY_MULTIPLE_ALLOWED_1; }; protoOf(Companion_54).get_MARKED_BY_COURSE_LEADER_54s4gf_k$ = function () { return this.MARKED_BY_COURSE_LEADER_1; }; protoOf(Companion_54).get_MARKED_BY_PEERS_w4tbtf_k$ = function () { return this.MARKED_BY_PEERS_1; }; protoOf(Companion_54).get_FILE_TYPE_ANY_ykm0sh_k$ = function () { return this.FILE_TYPE_ANY_1; }; protoOf(Companion_54).get_FILE_TYPE_DOC_ykm30t_k$ = function () { return this.FILE_TYPE_DOC_1; }; protoOf(Companion_54).get_FILE_TYPE_IMAGE_i4haog_k$ = function () { return this.FILE_TYPE_IMAGE_1; }; protoOf(Companion_54).get_FILE_TYPE_VIDEO_hxegq8_k$ = function () { return this.FILE_TYPE_VIDEO_1; }; protoOf(Companion_54).get_FILE_TYPE_AUDIO_i8qh91_k$ = function () { return this.FILE_TYPE_AUDIO_1; }; protoOf(Companion_54).get_TEXT_WORD_LIMIT_v2fc7j_k$ = function () { return this.TEXT_WORD_LIMIT_1; }; protoOf(Companion_54).get_TEXT_CHAR_LIMIT_kt4qmz_k$ = function () { return this.TEXT_CHAR_LIMIT_1; }; protoOf(Companion_54).get_COMPLETION_CRITERIA_SUBMIT_f0aleq_k$ = function () { return this.COMPLETION_CRITERIA_SUBMIT_1; }; protoOf(Companion_54).get_COMPLETION_CRITERIA_GRADED_kqi9ot_k$ = function () { return this.COMPLETION_CRITERIA_GRADED_1; }; protoOf(Companion_54).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_51(); }; var Companion_instance_54; function Companion_getInstance_58() { if (Companion_instance_54 == null) new Companion_54(); return Companion_instance_54; } function $serializer_51() { $serializer_instance_51 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignment', this, 24); tmp0_serialDesc.addElement_5pzumi_k$('caUid', true); tmp0_serialDesc.addElement_5pzumi_k$('caTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('caDescription', true); tmp0_serialDesc.addElement_5pzumi_k$('caGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('caActive', true); tmp0_serialDesc.addElement_5pzumi_k$('caClassCommentEnabled', true); tmp0_serialDesc.addElement_5pzumi_k$('caPrivateCommentsEnabled', true); tmp0_serialDesc.addElement_5pzumi_k$('caCompletionCriteria', true); tmp0_serialDesc.addElement_5pzumi_k$('caRequireFileSubmission', true); tmp0_serialDesc.addElement_5pzumi_k$('caFileType', true); tmp0_serialDesc.addElement_5pzumi_k$('caSizeLimit', true); tmp0_serialDesc.addElement_5pzumi_k$('caNumberOfFiles', true); tmp0_serialDesc.addElement_5pzumi_k$('caSubmissionPolicy', true); tmp0_serialDesc.addElement_5pzumi_k$('caMarkingType', true); tmp0_serialDesc.addElement_5pzumi_k$('caRequireTextSubmission', true); tmp0_serialDesc.addElement_5pzumi_k$('caTextLimitType', true); tmp0_serialDesc.addElement_5pzumi_k$('caTextLimit', true); tmp0_serialDesc.addElement_5pzumi_k$('caXObjectUid', true); tmp0_serialDesc.addElement_5pzumi_k$('caClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('caPeerReviewerCount', true); tmp0_serialDesc.addElement_5pzumi_k$('caLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('caMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('caLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('caLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_51).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_51).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_51).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = false; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_local8 = false; var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = 0; var tmp16_local12 = 0; var tmp17_local13 = 0; var tmp18_local14 = false; var tmp19_local15 = 0; var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = new Long(0, 0); var tmp23_local19 = 0; var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp28_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; } else while (tmp1_flag) { tmp2_index = tmp28_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp28_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzAssignment_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null); }; protoOf($serializer_51).serialize_1gaw2x_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.caUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.caUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.caTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.caTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.caDescription_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.caDescription_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.caGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.caGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.caActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.caActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.caClassCommentEnabled_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.caClassCommentEnabled_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.caPrivateCommentsEnabled_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.caPrivateCommentsEnabled_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.caCompletionCriteria_1 === 100)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.caCompletionCriteria_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.caRequireFileSubmission_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.caRequireFileSubmission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.caFileType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.caFileType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.caSizeLimit_1 === 50)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.caSizeLimit_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.caNumberOfFiles_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.caNumberOfFiles_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.caSubmissionPolicy_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.caSubmissionPolicy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.caMarkingType_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.caMarkingType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.caRequireTextSubmission_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.caRequireTextSubmission_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.caTextLimitType_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.caTextLimitType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.caTextLimit_1 === 500)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.caTextLimit_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.caXObjectUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.caXObjectUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.caClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 18, value.caClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.caPeerReviewerCount_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 19, value.caPeerReviewerCount_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.caLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.caLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.caMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.caMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.caLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 22, value.caLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !value.caLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 23, value.caLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_51).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_1gaw2x_k$(encoder, value instanceof ClazzAssignment ? value : THROW_CCE()); }; var $serializer_instance_51; function $serializer_getInstance_51() { if ($serializer_instance_51 == null) new $serializer_51(); return $serializer_instance_51; } function ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_51().descriptor_1); } if (0 === (seen1 & 1)) $this.caUid_1 = new Long(0, 0); else $this.caUid_1 = caUid; if (0 === (seen1 & 2)) $this.caTitle_1 = null; else $this.caTitle_1 = caTitle; if (0 === (seen1 & 4)) $this.caDescription_1 = null; else $this.caDescription_1 = caDescription; if (0 === (seen1 & 8)) $this.caGroupUid_1 = new Long(0, 0); else $this.caGroupUid_1 = caGroupUid; if (0 === (seen1 & 16)) $this.caActive_1 = true; else $this.caActive_1 = caActive; if (0 === (seen1 & 32)) $this.caClassCommentEnabled_1 = true; else $this.caClassCommentEnabled_1 = caClassCommentEnabled; if (0 === (seen1 & 64)) $this.caPrivateCommentsEnabled_1 = true; else $this.caPrivateCommentsEnabled_1 = caPrivateCommentsEnabled; if (0 === (seen1 & 128)) $this.caCompletionCriteria_1 = 100; else $this.caCompletionCriteria_1 = caCompletionCriteria; if (0 === (seen1 & 256)) $this.caRequireFileSubmission_1 = true; else $this.caRequireFileSubmission_1 = caRequireFileSubmission; if (0 === (seen1 & 512)) $this.caFileType_1 = 0; else $this.caFileType_1 = caFileType; if (0 === (seen1 & 1024)) $this.caSizeLimit_1 = 50; else $this.caSizeLimit_1 = caSizeLimit; if (0 === (seen1 & 2048)) $this.caNumberOfFiles_1 = 1; else $this.caNumberOfFiles_1 = caNumberOfFiles; if (0 === (seen1 & 4096)) $this.caSubmissionPolicy_1 = 1; else $this.caSubmissionPolicy_1 = caSubmissionPolicy; if (0 === (seen1 & 8192)) $this.caMarkingType_1 = 1; else $this.caMarkingType_1 = caMarkingType; if (0 === (seen1 & 16384)) $this.caRequireTextSubmission_1 = true; else $this.caRequireTextSubmission_1 = caRequireTextSubmission; if (0 === (seen1 & 32768)) $this.caTextLimitType_1 = 1; else $this.caTextLimitType_1 = caTextLimitType; if (0 === (seen1 & 65536)) $this.caTextLimit_1 = 500; else $this.caTextLimit_1 = caTextLimit; if (0 === (seen1 & 131072)) $this.caXObjectUid_1 = new Long(0, 0); else $this.caXObjectUid_1 = caXObjectUid; if (0 === (seen1 & 262144)) $this.caClazzUid_1 = new Long(0, 0); else $this.caClazzUid_1 = caClazzUid; if (0 === (seen1 & 524288)) $this.caPeerReviewerCount_1 = 0; else $this.caPeerReviewerCount_1 = caPeerReviewerCount; if (0 === (seen1 & 1048576)) $this.caLocalChangeSeqNum_1 = new Long(0, 0); else $this.caLocalChangeSeqNum_1 = caLocalChangeSeqNum; if (0 === (seen1 & 2097152)) $this.caMasterChangeSeqNum_1 = new Long(0, 0); else $this.caMasterChangeSeqNum_1 = caMasterChangeSeqNum; if (0 === (seen1 & 4194304)) $this.caLastChangedBy_1 = 0; else $this.caLastChangedBy_1 = caLastChangedBy; if (0 === (seen1 & 8388608)) $this.caLct_1 = new Long(0, 0); else $this.caLct_1 = caLct; return $this; } function ClazzAssignment_init_$Create$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker) { return ClazzAssignment_init_$Init$(seen1, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignment))); } function ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) { Companion_getInstance_58(); caUid = caUid === VOID ? new Long(0, 0) : caUid; caTitle = caTitle === VOID ? null : caTitle; caDescription = caDescription === VOID ? null : caDescription; caGroupUid = caGroupUid === VOID ? new Long(0, 0) : caGroupUid; caActive = caActive === VOID ? true : caActive; caClassCommentEnabled = caClassCommentEnabled === VOID ? true : caClassCommentEnabled; caPrivateCommentsEnabled = caPrivateCommentsEnabled === VOID ? true : caPrivateCommentsEnabled; caCompletionCriteria = caCompletionCriteria === VOID ? 100 : caCompletionCriteria; caRequireFileSubmission = caRequireFileSubmission === VOID ? true : caRequireFileSubmission; caFileType = caFileType === VOID ? 0 : caFileType; caSizeLimit = caSizeLimit === VOID ? 50 : caSizeLimit; caNumberOfFiles = caNumberOfFiles === VOID ? 1 : caNumberOfFiles; caSubmissionPolicy = caSubmissionPolicy === VOID ? 1 : caSubmissionPolicy; caMarkingType = caMarkingType === VOID ? 1 : caMarkingType; caRequireTextSubmission = caRequireTextSubmission === VOID ? true : caRequireTextSubmission; caTextLimitType = caTextLimitType === VOID ? 1 : caTextLimitType; caTextLimit = caTextLimit === VOID ? 500 : caTextLimit; caXObjectUid = caXObjectUid === VOID ? new Long(0, 0) : caXObjectUid; caClazzUid = caClazzUid === VOID ? new Long(0, 0) : caClazzUid; caPeerReviewerCount = caPeerReviewerCount === VOID ? 0 : caPeerReviewerCount; caLocalChangeSeqNum = caLocalChangeSeqNum === VOID ? new Long(0, 0) : caLocalChangeSeqNum; caMasterChangeSeqNum = caMasterChangeSeqNum === VOID ? new Long(0, 0) : caMasterChangeSeqNum; caLastChangedBy = caLastChangedBy === VOID ? 0 : caLastChangedBy; caLct = caLct === VOID ? new Long(0, 0) : caLct; this.caUid_1 = caUid; this.caTitle_1 = caTitle; this.caDescription_1 = caDescription; this.caGroupUid_1 = caGroupUid; this.caActive_1 = caActive; this.caClassCommentEnabled_1 = caClassCommentEnabled; this.caPrivateCommentsEnabled_1 = caPrivateCommentsEnabled; this.caCompletionCriteria_1 = caCompletionCriteria; this.caRequireFileSubmission_1 = caRequireFileSubmission; this.caFileType_1 = caFileType; this.caSizeLimit_1 = caSizeLimit; this.caNumberOfFiles_1 = caNumberOfFiles; this.caSubmissionPolicy_1 = caSubmissionPolicy; this.caMarkingType_1 = caMarkingType; this.caRequireTextSubmission_1 = caRequireTextSubmission; this.caTextLimitType_1 = caTextLimitType; this.caTextLimit_1 = caTextLimit; this.caXObjectUid_1 = caXObjectUid; this.caClazzUid_1 = caClazzUid; this.caPeerReviewerCount_1 = caPeerReviewerCount; this.caLocalChangeSeqNum_1 = caLocalChangeSeqNum; this.caMasterChangeSeqNum_1 = caMasterChangeSeqNum; this.caLastChangedBy_1 = caLastChangedBy; this.caLct_1 = caLct; } protoOf(ClazzAssignment).set_caUid_qwqlvb_k$ = function (_set____db54di) { this.caUid_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caUid_ipktt5_k$ = function () { return this.caUid_1; }; protoOf(ClazzAssignment).set_caTitle_3qxfdm_k$ = function (_set____db54di) { this.caTitle_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caTitle_9yyh0x_k$ = function () { return this.caTitle_1; }; protoOf(ClazzAssignment).set_caDescription_trgpu2_k$ = function (_set____db54di) { this.caDescription_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caDescription_8nvpud_k$ = function () { return this.caDescription_1; }; protoOf(ClazzAssignment).set_caGroupUid_zfz5m6_k$ = function (_set____db54di) { this.caGroupUid_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caGroupUid_zf52s8_k$ = function () { return this.caGroupUid_1; }; protoOf(ClazzAssignment).set_caActive_hd63bg_k$ = function (_set____db54di) { this.caActive_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caActive_fw2t3h_k$ = function () { return this.caActive_1; }; protoOf(ClazzAssignment).set_caClassCommentEnabled_p72yl2_k$ = function (_set____db54di) { this.caClassCommentEnabled_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caClassCommentEnabled_cfaj2r_k$ = function () { return this.caClassCommentEnabled_1; }; protoOf(ClazzAssignment).set_caPrivateCommentsEnabled_dvommo_k$ = function (_set____db54di) { this.caPrivateCommentsEnabled_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caPrivateCommentsEnabled_l0k0vl_k$ = function () { return this.caPrivateCommentsEnabled_1; }; protoOf(ClazzAssignment).set_caCompletionCriteria_z3wimm_k$ = function (_set____db54di) { this.caCompletionCriteria_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caCompletionCriteria_r0go66_k$ = function () { return this.caCompletionCriteria_1; }; protoOf(ClazzAssignment).set_caRequireFileSubmission_9cvgub_k$ = function (_set____db54di) { this.caRequireFileSubmission_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caRequireFileSubmission_w8j1mu_k$ = function () { return this.caRequireFileSubmission_1; }; protoOf(ClazzAssignment).set_caFileType_gbiz2v_k$ = function (_set____db54di) { this.caFileType_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caFileType_evrg7x_k$ = function () { return this.caFileType_1; }; protoOf(ClazzAssignment).set_caSizeLimit_8q851l_k$ = function (_set____db54di) { this.caSizeLimit_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caSizeLimit_60e6st_k$ = function () { return this.caSizeLimit_1; }; protoOf(ClazzAssignment).set_caNumberOfFiles_oglxsc_k$ = function (_set____db54di) { this.caNumberOfFiles_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caNumberOfFiles_gm3yhc_k$ = function () { return this.caNumberOfFiles_1; }; protoOf(ClazzAssignment).set_caSubmissionPolicy_yxt3u9_k$ = function (_set____db54di) { this.caSubmissionPolicy_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caSubmissionPolicy_6vp9k5_k$ = function () { return this.caSubmissionPolicy_1; }; protoOf(ClazzAssignment).set_caMarkingType_x9hdas_k$ = function (_set____db54di) { this.caMarkingType_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caMarkingType_qumoa0_k$ = function () { return this.caMarkingType_1; }; protoOf(ClazzAssignment).set_caRequireTextSubmission_31no36_k$ = function (_set____db54di) { this.caRequireTextSubmission_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caRequireTextSubmission_bngh2v_k$ = function () { return this.caRequireTextSubmission_1; }; protoOf(ClazzAssignment).set_caTextLimitType_g3o1ut_k$ = function (_set____db54di) { this.caTextLimitType_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caTextLimitType_w5xj27_k$ = function () { return this.caTextLimitType_1; }; protoOf(ClazzAssignment).set_caTextLimit_j6mogb_k$ = function (_set____db54di) { this.caTextLimit_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caTextLimit_vdw8ex_k$ = function () { return this.caTextLimit_1; }; protoOf(ClazzAssignment).set_caXObjectUid_q9jbvu_k$ = function (_set____db54di) { this.caXObjectUid_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caXObjectUid_w0d8e8_k$ = function () { return this.caXObjectUid_1; }; protoOf(ClazzAssignment).set_caClazzUid_5omoyd_k$ = function (_set____db54di) { this.caClazzUid_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caClazzUid_wf7rj5_k$ = function () { return this.caClazzUid_1; }; protoOf(ClazzAssignment).set_caPeerReviewerCount_w0n7sr_k$ = function (_set____db54di) { this.caPeerReviewerCount_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caPeerReviewerCount_xdajq7_k$ = function () { return this.caPeerReviewerCount_1; }; protoOf(ClazzAssignment).set_caLocalChangeSeqNum_uzi0dl_k$ = function (_set____db54di) { this.caLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caLocalChangeSeqNum_n6lkrf_k$ = function () { return this.caLocalChangeSeqNum_1; }; protoOf(ClazzAssignment).set_caMasterChangeSeqNum_jco7hm_k$ = function (_set____db54di) { this.caMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caMasterChangeSeqNum_93losg_k$ = function () { return this.caMasterChangeSeqNum_1; }; protoOf(ClazzAssignment).set_caLastChangedBy_n7nzqm_k$ = function (_set____db54di) { this.caLastChangedBy_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caLastChangedBy_4xab6_k$ = function () { return this.caLastChangedBy_1; }; protoOf(ClazzAssignment).set_caLct_ijftwk_k$ = function (_set____db54di) { this.caLct_1 = _set____db54di; }; protoOf(ClazzAssignment).get_caLct_ipkn06_k$ = function () { return this.caLct_1; }; protoOf(ClazzAssignment).component1_7eebsc_k$ = function () { return this.caUid_1; }; protoOf(ClazzAssignment).component2_7eebsb_k$ = function () { return this.caTitle_1; }; protoOf(ClazzAssignment).component3_7eebsa_k$ = function () { return this.caDescription_1; }; protoOf(ClazzAssignment).component4_7eebs9_k$ = function () { return this.caGroupUid_1; }; protoOf(ClazzAssignment).component5_7eebs8_k$ = function () { return this.caActive_1; }; protoOf(ClazzAssignment).component6_7eebs7_k$ = function () { return this.caClassCommentEnabled_1; }; protoOf(ClazzAssignment).component7_7eebs6_k$ = function () { return this.caPrivateCommentsEnabled_1; }; protoOf(ClazzAssignment).component8_7eebs5_k$ = function () { return this.caCompletionCriteria_1; }; protoOf(ClazzAssignment).component9_7eebs4_k$ = function () { return this.caRequireFileSubmission_1; }; protoOf(ClazzAssignment).component10_gazzfo_k$ = function () { return this.caFileType_1; }; protoOf(ClazzAssignment).component11_gazzfn_k$ = function () { return this.caSizeLimit_1; }; protoOf(ClazzAssignment).component12_gazzfm_k$ = function () { return this.caNumberOfFiles_1; }; protoOf(ClazzAssignment).component13_gazzfl_k$ = function () { return this.caSubmissionPolicy_1; }; protoOf(ClazzAssignment).component14_gazzfk_k$ = function () { return this.caMarkingType_1; }; protoOf(ClazzAssignment).component15_gazzfj_k$ = function () { return this.caRequireTextSubmission_1; }; protoOf(ClazzAssignment).component16_gazzfi_k$ = function () { return this.caTextLimitType_1; }; protoOf(ClazzAssignment).component17_gazzfh_k$ = function () { return this.caTextLimit_1; }; protoOf(ClazzAssignment).component18_gazzfg_k$ = function () { return this.caXObjectUid_1; }; protoOf(ClazzAssignment).component19_gazzff_k$ = function () { return this.caClazzUid_1; }; protoOf(ClazzAssignment).component20_gazzet_k$ = function () { return this.caPeerReviewerCount_1; }; protoOf(ClazzAssignment).component21_gazzes_k$ = function () { return this.caLocalChangeSeqNum_1; }; protoOf(ClazzAssignment).component22_gazzer_k$ = function () { return this.caMasterChangeSeqNum_1; }; protoOf(ClazzAssignment).component23_gazzeq_k$ = function () { return this.caLastChangedBy_1; }; protoOf(ClazzAssignment).component24_gazzep_k$ = function () { return this.caLct_1; }; protoOf(ClazzAssignment).copy_rqxeya_k$ = function (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) { return new ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct); }; protoOf(ClazzAssignment).copy$default_tuu5g2_k$ = function (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct, $super) { caUid = caUid === VOID ? this.caUid_1 : caUid; caTitle = caTitle === VOID ? this.caTitle_1 : caTitle; caDescription = caDescription === VOID ? this.caDescription_1 : caDescription; caGroupUid = caGroupUid === VOID ? this.caGroupUid_1 : caGroupUid; caActive = caActive === VOID ? this.caActive_1 : caActive; caClassCommentEnabled = caClassCommentEnabled === VOID ? this.caClassCommentEnabled_1 : caClassCommentEnabled; caPrivateCommentsEnabled = caPrivateCommentsEnabled === VOID ? this.caPrivateCommentsEnabled_1 : caPrivateCommentsEnabled; caCompletionCriteria = caCompletionCriteria === VOID ? this.caCompletionCriteria_1 : caCompletionCriteria; caRequireFileSubmission = caRequireFileSubmission === VOID ? this.caRequireFileSubmission_1 : caRequireFileSubmission; caFileType = caFileType === VOID ? this.caFileType_1 : caFileType; caSizeLimit = caSizeLimit === VOID ? this.caSizeLimit_1 : caSizeLimit; caNumberOfFiles = caNumberOfFiles === VOID ? this.caNumberOfFiles_1 : caNumberOfFiles; caSubmissionPolicy = caSubmissionPolicy === VOID ? this.caSubmissionPolicy_1 : caSubmissionPolicy; caMarkingType = caMarkingType === VOID ? this.caMarkingType_1 : caMarkingType; caRequireTextSubmission = caRequireTextSubmission === VOID ? this.caRequireTextSubmission_1 : caRequireTextSubmission; caTextLimitType = caTextLimitType === VOID ? this.caTextLimitType_1 : caTextLimitType; caTextLimit = caTextLimit === VOID ? this.caTextLimit_1 : caTextLimit; caXObjectUid = caXObjectUid === VOID ? this.caXObjectUid_1 : caXObjectUid; caClazzUid = caClazzUid === VOID ? this.caClazzUid_1 : caClazzUid; caPeerReviewerCount = caPeerReviewerCount === VOID ? this.caPeerReviewerCount_1 : caPeerReviewerCount; caLocalChangeSeqNum = caLocalChangeSeqNum === VOID ? this.caLocalChangeSeqNum_1 : caLocalChangeSeqNum; caMasterChangeSeqNum = caMasterChangeSeqNum === VOID ? this.caMasterChangeSeqNum_1 : caMasterChangeSeqNum; caLastChangedBy = caLastChangedBy === VOID ? this.caLastChangedBy_1 : caLastChangedBy; caLct = caLct === VOID ? this.caLct_1 : caLct; return $super === VOID ? this.copy_rqxeya_k$(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) : $super.copy_rqxeya_k$.call(this, caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caPeerReviewerCount, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct); }; protoOf(ClazzAssignment).toString = function () { return 'ClazzAssignment(caUid=' + this.caUid_1.toString() + ', caTitle=' + this.caTitle_1 + ', caDescription=' + this.caDescription_1 + ', caGroupUid=' + this.caGroupUid_1.toString() + ', caActive=' + this.caActive_1 + ', caClassCommentEnabled=' + this.caClassCommentEnabled_1 + ', caPrivateCommentsEnabled=' + this.caPrivateCommentsEnabled_1 + ', caCompletionCriteria=' + this.caCompletionCriteria_1 + ', caRequireFileSubmission=' + this.caRequireFileSubmission_1 + ', caFileType=' + this.caFileType_1 + ', caSizeLimit=' + this.caSizeLimit_1 + ', caNumberOfFiles=' + this.caNumberOfFiles_1 + ', caSubmissionPolicy=' + this.caSubmissionPolicy_1 + ', caMarkingType=' + this.caMarkingType_1 + ', caRequireTextSubmission=' + this.caRequireTextSubmission_1 + ', caTextLimitType=' + this.caTextLimitType_1 + ', caTextLimit=' + this.caTextLimit_1 + ', caXObjectUid=' + this.caXObjectUid_1.toString() + ', caClazzUid=' + this.caClazzUid_1.toString() + ', caPeerReviewerCount=' + this.caPeerReviewerCount_1 + ', caLocalChangeSeqNum=' + this.caLocalChangeSeqNum_1.toString() + ', caMasterChangeSeqNum=' + this.caMasterChangeSeqNum_1.toString() + ', caLastChangedBy=' + this.caLastChangedBy_1 + ', caLct=' + this.caLct_1.toString() + ')'; }; protoOf(ClazzAssignment).hashCode = function () { var result = this.caUid_1.hashCode(); result = imul(result, 31) + (this.caTitle_1 == null ? 0 : getStringHashCode(this.caTitle_1)) | 0; result = imul(result, 31) + (this.caDescription_1 == null ? 0 : getStringHashCode(this.caDescription_1)) | 0; result = imul(result, 31) + this.caGroupUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.caActive_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.caClassCommentEnabled_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.caPrivateCommentsEnabled_1) | 0; result = imul(result, 31) + this.caCompletionCriteria_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.caRequireFileSubmission_1) | 0; result = imul(result, 31) + this.caFileType_1 | 0; result = imul(result, 31) + this.caSizeLimit_1 | 0; result = imul(result, 31) + this.caNumberOfFiles_1 | 0; result = imul(result, 31) + this.caSubmissionPolicy_1 | 0; result = imul(result, 31) + this.caMarkingType_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.caRequireTextSubmission_1) | 0; result = imul(result, 31) + this.caTextLimitType_1 | 0; result = imul(result, 31) + this.caTextLimit_1 | 0; result = imul(result, 31) + this.caXObjectUid_1.hashCode() | 0; result = imul(result, 31) + this.caClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.caPeerReviewerCount_1 | 0; result = imul(result, 31) + this.caLocalChangeSeqNum_1.hashCode() | 0; result = imul(result, 31) + this.caMasterChangeSeqNum_1.hashCode() | 0; result = imul(result, 31) + this.caLastChangedBy_1 | 0; result = imul(result, 31) + this.caLct_1.hashCode() | 0; return result; }; protoOf(ClazzAssignment).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignment)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignment ? other : THROW_CCE(); if (!this.caUid_1.equals(tmp0_other_with_cast.caUid_1)) return false; if (!(this.caTitle_1 == tmp0_other_with_cast.caTitle_1)) return false; if (!(this.caDescription_1 == tmp0_other_with_cast.caDescription_1)) return false; if (!this.caGroupUid_1.equals(tmp0_other_with_cast.caGroupUid_1)) return false; if (!(this.caActive_1 === tmp0_other_with_cast.caActive_1)) return false; if (!(this.caClassCommentEnabled_1 === tmp0_other_with_cast.caClassCommentEnabled_1)) return false; if (!(this.caPrivateCommentsEnabled_1 === tmp0_other_with_cast.caPrivateCommentsEnabled_1)) return false; if (!(this.caCompletionCriteria_1 === tmp0_other_with_cast.caCompletionCriteria_1)) return false; if (!(this.caRequireFileSubmission_1 === tmp0_other_with_cast.caRequireFileSubmission_1)) return false; if (!(this.caFileType_1 === tmp0_other_with_cast.caFileType_1)) return false; if (!(this.caSizeLimit_1 === tmp0_other_with_cast.caSizeLimit_1)) return false; if (!(this.caNumberOfFiles_1 === tmp0_other_with_cast.caNumberOfFiles_1)) return false; if (!(this.caSubmissionPolicy_1 === tmp0_other_with_cast.caSubmissionPolicy_1)) return false; if (!(this.caMarkingType_1 === tmp0_other_with_cast.caMarkingType_1)) return false; if (!(this.caRequireTextSubmission_1 === tmp0_other_with_cast.caRequireTextSubmission_1)) return false; if (!(this.caTextLimitType_1 === tmp0_other_with_cast.caTextLimitType_1)) return false; if (!(this.caTextLimit_1 === tmp0_other_with_cast.caTextLimit_1)) return false; if (!this.caXObjectUid_1.equals(tmp0_other_with_cast.caXObjectUid_1)) return false; if (!this.caClazzUid_1.equals(tmp0_other_with_cast.caClazzUid_1)) return false; if (!(this.caPeerReviewerCount_1 === tmp0_other_with_cast.caPeerReviewerCount_1)) return false; if (!this.caLocalChangeSeqNum_1.equals(tmp0_other_with_cast.caLocalChangeSeqNum_1)) return false; if (!this.caMasterChangeSeqNum_1.equals(tmp0_other_with_cast.caMasterChangeSeqNum_1)) return false; if (!(this.caLastChangedBy_1 === tmp0_other_with_cast.caLastChangedBy_1)) return false; if (!this.caLct_1.equals(tmp0_other_with_cast.caLct_1)) return false; return true; }; function Companion_55() { Companion_instance_55 = this; } protoOf(Companion_55).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_52(); }; var Companion_instance_55; function Companion_getInstance_59() { if (Companion_instance_55 == null) new Companion_55(); return Companion_instance_55; } function $serializer_52() { $serializer_instance_52 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzAssignmentCourseBlockAndSubmitterUid', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('clazzAssignment', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlock', true); tmp0_serialDesc.addElement_5pzumi_k$('courseBlockPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('courseGroupSet', true); tmp0_serialDesc.addElement_5pzumi_k$('submitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('hasModeratePermission', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_52).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_52).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_51()), get_nullable($serializer_getInstance_82()), get_nullable($serializer_getInstance_83()), get_nullable($serializer_getInstance_86()), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_52).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = false; var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_82(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_83(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_86(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_51(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_82(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_83(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_86(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_52).serialize_1rumal_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.clazzAssignment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_51(), value.clazzAssignment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.courseBlock_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_82(), value.courseBlock_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.courseBlockPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_83(), value.courseBlockPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.courseGroupSet_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_86(), value.courseGroupSet_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.submitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.submitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.hasModeratePermission_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.hasModeratePermission_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_52).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_1rumal_k$(encoder, value instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? value : THROW_CCE()); }; var $serializer_instance_52; function $serializer_getInstance_52() { if ($serializer_instance_52 == null) new $serializer_52(); return $serializer_instance_52; } function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_52().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzAssignment_1 = null; else $this.clazzAssignment_1 = clazzAssignment; if (0 === (seen1 & 2)) $this.courseBlock_1 = null; else $this.courseBlock_1 = courseBlock; if (0 === (seen1 & 4)) $this.courseBlockPicture_1 = null; else $this.courseBlockPicture_1 = courseBlockPicture; if (0 === (seen1 & 8)) $this.courseGroupSet_1 = null; else $this.courseGroupSet_1 = courseGroupSet; if (0 === (seen1 & 16)) $this.submitterUid_1 = new Long(0, 0); else $this.submitterUid_1 = submitterUid; if (0 === (seen1 & 32)) $this.hasModeratePermission_1 = false; else $this.hasModeratePermission_1 = hasModeratePermission; return $this; } function ClazzAssignmentCourseBlockAndSubmitterUid_init_$Create$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker) { return ClazzAssignmentCourseBlockAndSubmitterUid_init_$Init$(seen1, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, serializationConstructorMarker, objectCreate(protoOf(ClazzAssignmentCourseBlockAndSubmitterUid))); } function ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission) { Companion_getInstance_59(); clazzAssignment = clazzAssignment === VOID ? null : clazzAssignment; courseBlock = courseBlock === VOID ? null : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? null : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? null : courseGroupSet; submitterUid = submitterUid === VOID ? new Long(0, 0) : submitterUid; hasModeratePermission = hasModeratePermission === VOID ? false : hasModeratePermission; this.clazzAssignment_1 = clazzAssignment; this.courseBlock_1 = courseBlock; this.courseBlockPicture_1 = courseBlockPicture; this.courseGroupSet_1 = courseGroupSet; this.submitterUid_1 = submitterUid; this.hasModeratePermission_1 = hasModeratePermission; } protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_clazzAssignment_qwtmo7_k$ = function (_set____db54di) { this.clazzAssignment_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_clazzAssignment_l29hss_k$ = function () { return this.clazzAssignment_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_courseBlock_x7q8yb_k$ = function (_set____db54di) { this.courseBlock_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_courseBlock_c2ojbd_k$ = function () { return this.courseBlock_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_courseBlockPicture_pbyd35_k$ = function (_set____db54di) { this.courseBlockPicture_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_courseBlockPicture_gnlyiz_k$ = function () { return this.courseBlockPicture_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_courseGroupSet_p20t1b_k$ = function (_set____db54di) { this.courseGroupSet_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_courseGroupSet_txhi1z_k$ = function () { return this.courseGroupSet_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_submitterUid_5nf92e_k$ = function (_set____db54di) { this.submitterUid_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_submitterUid_tbcwmo_k$ = function () { return this.submitterUid_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).set_hasModeratePermission_fm1pwm_k$ = function (_set____db54di) { this.hasModeratePermission_1 = _set____db54di; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).get_hasModeratePermission_rdln0d_k$ = function () { return this.hasModeratePermission_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component1_7eebsc_k$ = function () { return this.clazzAssignment_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component2_7eebsb_k$ = function () { return this.courseBlock_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component3_7eebsa_k$ = function () { return this.courseBlockPicture_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component4_7eebs9_k$ = function () { return this.courseGroupSet_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component5_7eebs8_k$ = function () { return this.submitterUid_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).component6_7eebs7_k$ = function () { return this.hasModeratePermission_1; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).copy_3jz92r_k$ = function (clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission) { return new ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission); }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).copy$default_1rtnvd_k$ = function (clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission, $super) { clazzAssignment = clazzAssignment === VOID ? this.clazzAssignment_1 : clazzAssignment; courseBlock = courseBlock === VOID ? this.courseBlock_1 : courseBlock; courseBlockPicture = courseBlockPicture === VOID ? this.courseBlockPicture_1 : courseBlockPicture; courseGroupSet = courseGroupSet === VOID ? this.courseGroupSet_1 : courseGroupSet; submitterUid = submitterUid === VOID ? this.submitterUid_1 : submitterUid; hasModeratePermission = hasModeratePermission === VOID ? this.hasModeratePermission_1 : hasModeratePermission; return $super === VOID ? this.copy_3jz92r_k$(clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission) : $super.copy_3jz92r_k$.call(this, clazzAssignment, courseBlock, courseBlockPicture, courseGroupSet, submitterUid, hasModeratePermission); }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).toString = function () { return 'ClazzAssignmentCourseBlockAndSubmitterUid(clazzAssignment=' + this.clazzAssignment_1 + ', courseBlock=' + this.courseBlock_1 + ', courseBlockPicture=' + this.courseBlockPicture_1 + ', courseGroupSet=' + this.courseGroupSet_1 + ', submitterUid=' + this.submitterUid_1.toString() + ', hasModeratePermission=' + this.hasModeratePermission_1 + ')'; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).hashCode = function () { var result = this.clazzAssignment_1 == null ? 0 : this.clazzAssignment_1.hashCode(); result = imul(result, 31) + (this.courseBlock_1 == null ? 0 : this.courseBlock_1.hashCode()) | 0; result = imul(result, 31) + (this.courseBlockPicture_1 == null ? 0 : this.courseBlockPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.courseGroupSet_1 == null ? 0 : hashCode(this.courseGroupSet_1)) | 0; result = imul(result, 31) + this.submitterUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.hasModeratePermission_1) | 0; return result; }; protoOf(ClazzAssignmentCourseBlockAndSubmitterUid).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzAssignmentCourseBlockAndSubmitterUid)) return false; var tmp0_other_with_cast = other instanceof ClazzAssignmentCourseBlockAndSubmitterUid ? other : THROW_CCE(); if (!equals(this.clazzAssignment_1, tmp0_other_with_cast.clazzAssignment_1)) return false; if (!equals(this.courseBlock_1, tmp0_other_with_cast.courseBlock_1)) return false; if (!equals(this.courseBlockPicture_1, tmp0_other_with_cast.courseBlockPicture_1)) return false; if (!equals(this.courseGroupSet_1, tmp0_other_with_cast.courseGroupSet_1)) return false; if (!this.submitterUid_1.equals(tmp0_other_with_cast.submitterUid_1)) return false; if (!(this.hasModeratePermission_1 === tmp0_other_with_cast.hasModeratePermission_1)) return false; return true; }; function ClazzEnrolment_init_$Init$(clazzUid, personUid, $this) { ClazzEnrolment.call($this); $this.clazzEnrolmentClazzUid_1 = clazzUid; $this.clazzEnrolmentPersonUid_1 = personUid; $this.clazzEnrolmentActive_1 = true; return $this; } function ClazzEnrolment_init_$Create$(clazzUid, personUid) { return ClazzEnrolment_init_$Init$(clazzUid, personUid, objectCreate(protoOf(ClazzEnrolment))); } function ClazzEnrolment_init_$Init$_0(clazzUid, personUid, role, $this) { ClazzEnrolment.call($this); $this.clazzEnrolmentClazzUid_1 = clazzUid; $this.clazzEnrolmentPersonUid_1 = personUid; $this.clazzEnrolmentRole_1 = role; $this.clazzEnrolmentActive_1 = true; return $this; } function ClazzEnrolment_init_$Create$_0(clazzUid, personUid, role) { return ClazzEnrolment_init_$Init$_0(clazzUid, personUid, role, objectCreate(protoOf(ClazzEnrolment))); } function Companion_56() { Companion_instance_56 = this; this.ROLE_STUDENT_1 = 1000; this.ROLE_TEACHER_1 = 1001; this.ROLE_STUDENT_PENDING_1 = 1002; this.ROLE_PARENT_1 = 1003; this.OUTCOME_IN_PROGRESS_1 = 200; this.OUTCOME_GRADUATED_1 = 201; this.OUTCOME_FAILED_1 = 202; this.OUTCOME_DROPPED_OUT_1 = 203; this.TABLE_ID_1 = 65; } protoOf(Companion_56).get_ROLE_STUDENT_h1t6zf_k$ = function () { return this.ROLE_STUDENT_1; }; protoOf(Companion_56).get_ROLE_TEACHER_obiog2_k$ = function () { return this.ROLE_TEACHER_1; }; protoOf(Companion_56).get_ROLE_STUDENT_PENDING_13dnf7_k$ = function () { return this.ROLE_STUDENT_PENDING_1; }; protoOf(Companion_56).get_ROLE_PARENT_x7h7vu_k$ = function () { return this.ROLE_PARENT_1; }; protoOf(Companion_56).get_OUTCOME_IN_PROGRESS_z4xz4h_k$ = function () { return this.OUTCOME_IN_PROGRESS_1; }; protoOf(Companion_56).get_OUTCOME_GRADUATED_1g2bz1_k$ = function () { return this.OUTCOME_GRADUATED_1; }; protoOf(Companion_56).get_OUTCOME_FAILED_3n82kt_k$ = function () { return this.OUTCOME_FAILED_1; }; protoOf(Companion_56).get_OUTCOME_DROPPED_OUT_oen6cn_k$ = function () { return this.OUTCOME_DROPPED_OUT_1; }; protoOf(Companion_56).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_56).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_53(); }; var Companion_instance_56; function Companion_getInstance_60() { if (Companion_instance_56 == null) new Companion_56(); return Companion_instance_56; } function $serializer_53() { $serializer_instance_53 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolment', this, 14); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateJoined', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateLeft', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentRole', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentOutcome', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_53).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_53).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_53).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp18_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolment_init_$Create$_1(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, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_53).serialize_fm7aoc_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.clazzEnrolmentUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.clazzEnrolmentUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.clazzEnrolmentPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.clazzEnrolmentPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.clazzEnrolmentClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.clazzEnrolmentClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.clazzEnrolmentDateJoined_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.clazzEnrolmentDateJoined_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.clazzEnrolmentDateLeft_1.equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.clazzEnrolmentDateLeft_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.clazzEnrolmentRole_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.clazzEnrolmentRole_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.clazzEnrolmentAttendancePercentage_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 6, value.clazzEnrolmentAttendancePercentage_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.clazzEnrolmentActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.clazzEnrolmentActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.clazzEnrolmentLeavingReasonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.clazzEnrolmentLeavingReasonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.clazzEnrolmentOutcome_1 === 200)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.clazzEnrolmentOutcome_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.clazzEnrolmentLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.clazzEnrolmentLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.clazzEnrolmentMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.clazzEnrolmentMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.clazzEnrolmentLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.clazzEnrolmentLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.clazzEnrolmentLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.clazzEnrolmentLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_53).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_fm7aoc_k$(encoder, value instanceof ClazzEnrolment ? value : THROW_CCE()); }; var $serializer_instance_53; function $serializer_getInstance_53() { if ($serializer_instance_53 == null) new $serializer_53(); return $serializer_instance_53; } function ClazzEnrolment_init_$Init$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_53().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzEnrolmentUid_1 = new Long(0, 0); else $this.clazzEnrolmentUid_1 = clazzEnrolmentUid; if (0 === (seen1 & 2)) $this.clazzEnrolmentPersonUid_1 = new Long(0, 0); else $this.clazzEnrolmentPersonUid_1 = clazzEnrolmentPersonUid; if (0 === (seen1 & 4)) $this.clazzEnrolmentClazzUid_1 = new Long(0, 0); else $this.clazzEnrolmentClazzUid_1 = clazzEnrolmentClazzUid; if (0 === (seen1 & 8)) $this.clazzEnrolmentDateJoined_1 = new Long(0, 0); else $this.clazzEnrolmentDateJoined_1 = clazzEnrolmentDateJoined; if (0 === (seen1 & 16)) $this.clazzEnrolmentDateLeft_1 = get_UNSET_DISTANT_FUTURE(); else $this.clazzEnrolmentDateLeft_1 = clazzEnrolmentDateLeft; if (0 === (seen1 & 32)) $this.clazzEnrolmentRole_1 = 0; else $this.clazzEnrolmentRole_1 = clazzEnrolmentRole; if (0 === (seen1 & 64)) $this.clazzEnrolmentAttendancePercentage_1 = 0.0; else $this.clazzEnrolmentAttendancePercentage_1 = clazzEnrolmentAttendancePercentage; if (0 === (seen1 & 128)) $this.clazzEnrolmentActive_1 = true; else $this.clazzEnrolmentActive_1 = clazzEnrolmentActive; if (0 === (seen1 & 256)) $this.clazzEnrolmentLeavingReasonUid_1 = new Long(0, 0); else $this.clazzEnrolmentLeavingReasonUid_1 = clazzEnrolmentLeavingReasonUid; if (0 === (seen1 & 512)) $this.clazzEnrolmentOutcome_1 = 200; else $this.clazzEnrolmentOutcome_1 = clazzEnrolmentOutcome; if (0 === (seen1 & 1024)) $this.clazzEnrolmentLocalChangeSeqNum_1 = new Long(0, 0); else $this.clazzEnrolmentLocalChangeSeqNum_1 = clazzEnrolmentLocalChangeSeqNum; if (0 === (seen1 & 2048)) $this.clazzEnrolmentMasterChangeSeqNum_1 = new Long(0, 0); else $this.clazzEnrolmentMasterChangeSeqNum_1 = clazzEnrolmentMasterChangeSeqNum; if (0 === (seen1 & 4096)) $this.clazzEnrolmentLastChangedBy_1 = 0; else $this.clazzEnrolmentLastChangedBy_1 = clazzEnrolmentLastChangedBy; if (0 === (seen1 & 8192)) $this.clazzEnrolmentLct_1 = new Long(0, 0); else $this.clazzEnrolmentLct_1 = clazzEnrolmentLct; return $this; } function ClazzEnrolment_init_$Create$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker) { return ClazzEnrolment_init_$Init$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolment))); } function ClazzEnrolment() { Companion_getInstance_60(); this.clazzEnrolmentUid_1 = new Long(0, 0); this.clazzEnrolmentPersonUid_1 = new Long(0, 0); this.clazzEnrolmentClazzUid_1 = new Long(0, 0); this.clazzEnrolmentDateJoined_1 = new Long(0, 0); this.clazzEnrolmentDateLeft_1 = get_UNSET_DISTANT_FUTURE(); this.clazzEnrolmentRole_1 = 0; this.clazzEnrolmentAttendancePercentage_1 = 0.0; this.clazzEnrolmentActive_1 = true; this.clazzEnrolmentLeavingReasonUid_1 = new Long(0, 0); this.clazzEnrolmentOutcome_1 = 200; this.clazzEnrolmentLocalChangeSeqNum_1 = new Long(0, 0); this.clazzEnrolmentMasterChangeSeqNum_1 = new Long(0, 0); this.clazzEnrolmentLastChangedBy_1 = 0; this.clazzEnrolmentLct_1 = new Long(0, 0); } protoOf(ClazzEnrolment).set_clazzEnrolmentUid_ymgyw9_k$ = function (_set____db54di) { this.clazzEnrolmentUid_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentUid_xeo3a3_k$ = function () { return this.clazzEnrolmentUid_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentPersonUid_qntlsc_k$ = function (_set____db54di) { this.clazzEnrolmentPersonUid_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentPersonUid_67nqh2_k$ = function () { return this.clazzEnrolmentPersonUid_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentClazzUid_1nipul_k$ = function (_set____db54di) { this.clazzEnrolmentClazzUid_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentClazzUid_5dtar_k$ = function () { return this.clazzEnrolmentClazzUid_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentDateJoined_miq3em_k$ = function (_set____db54di) { this.clazzEnrolmentDateJoined_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentDateJoined_r9j21g_k$ = function () { return this.clazzEnrolmentDateJoined_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentDateLeft_8szytc_k$ = function (_set____db54di) { this.clazzEnrolmentDateLeft_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentDateLeft_hxlqp6_k$ = function () { return this.clazzEnrolmentDateLeft_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentRole_38vbyv_k$ = function (_set____db54di) { this.clazzEnrolmentRole_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentRole_ttzs6t_k$ = function () { return this.clazzEnrolmentRole_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentAttendancePercentage_pmbqh0_k$ = function (_set____db54di) { this.clazzEnrolmentAttendancePercentage_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentAttendancePercentage_851g8o_k$ = function () { return this.clazzEnrolmentAttendancePercentage_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentActive_rmas2i_k$ = function (_set____db54di) { this.clazzEnrolmentActive_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentActive_il2uaj_k$ = function () { return this.clazzEnrolmentActive_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentLeavingReasonUid_ivk5wj_k$ = function (_set____db54di) { this.clazzEnrolmentLeavingReasonUid_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$ = function () { return this.clazzEnrolmentLeavingReasonUid_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentOutcome_dmmssf_k$ = function (_set____db54di) { this.clazzEnrolmentOutcome_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentOutcome_8tgopp_k$ = function () { return this.clazzEnrolmentOutcome_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentLocalChangeSeqNum_dnlxnp_k$ = function (_set____db54di) { this.clazzEnrolmentLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$ = function () { return this.clazzEnrolmentLocalChangeSeqNum_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentMasterChangeSeqNum_hd6kx0_k$ = function (_set____db54di) { this.clazzEnrolmentMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$ = function () { return this.clazzEnrolmentMasterChangeSeqNum_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentLastChangedBy_i735xg_k$ = function (_set____db54di) { this.clazzEnrolmentLastChangedBy_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentLastChangedBy_u2wke8_k$ = function () { return this.clazzEnrolmentLastChangedBy_1; }; protoOf(ClazzEnrolment).set_clazzEnrolmentLct_q966xi_k$ = function (_set____db54di) { this.clazzEnrolmentLct_1 = _set____db54di; }; protoOf(ClazzEnrolment).get_clazzEnrolmentLct_xenwh4_k$ = function () { return this.clazzEnrolmentLct_1; }; function Companion_57() { Companion_instance_57 = this; } protoOf(Companion_57).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_54(); }; var Companion_instance_57; function Companion_getInstance_61() { if (Companion_instance_57 == null) new Companion_57(); return Companion_instance_57; } function $serializer_54() { $serializer_instance_54 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolmentWithClazz', this, 15); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateJoined', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateLeft', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentRole', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentOutcome', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLct', true); tmp0_serialDesc.addElement_5pzumi_k$('clazz', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_54).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_54).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_50())]; }; protoOf($serializer_54).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = null; var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp19_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp19_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_50(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; } else while (tmp1_flag) { tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp19_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_50(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolmentWithClazz_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, tmp16_local12, tmp17_local13, tmp18_local14, null); }; protoOf($serializer_54).serialize_o4ddya_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzEnrolmentUid_xeo3a3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzEnrolmentUid_xeo3a3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_clazzEnrolmentPersonUid_67nqh2_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_clazzEnrolmentPersonUid_67nqh2_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_clazzEnrolmentClazzUid_5dtar_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_clazzEnrolmentClazzUid_5dtar_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.get_clazzEnrolmentDateJoined_r9j21g_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.get_clazzEnrolmentDateJoined_r9j21g_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzEnrolmentDateLeft_hxlqp6_k$().equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzEnrolmentDateLeft_hxlqp6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_clazzEnrolmentRole_ttzs6t_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.get_clazzEnrolmentRole_ttzs6t_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.get_clazzEnrolmentAttendancePercentage_851g8o_k$(), 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 6, value.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.get_clazzEnrolmentActive_il2uaj_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.get_clazzEnrolmentActive_il2uaj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.get_clazzEnrolmentOutcome_8tgopp_k$() === Companion_getInstance_60().get_OUTCOME_IN_PROGRESS_z4xz4h_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.get_clazzEnrolmentOutcome_8tgopp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentLastChangedBy_u2wke8_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzEnrolmentLct_xenwh4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzEnrolmentLct_xenwh4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.clazz_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_50(), value.clazz_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_54).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_o4ddya_k$(encoder, value instanceof ClazzEnrolmentWithClazz ? value : THROW_CCE()); }; var $serializer_instance_54; function $serializer_getInstance_54() { if ($serializer_instance_54 == null) new $serializer_54(); return $serializer_instance_54; } function ClazzEnrolmentWithClazz_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazz, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_54().descriptor_1); } ClazzEnrolment_init_$Init$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this); if (0 === (seen1 & 16384)) $this.clazz_1 = null; else $this.clazz_1 = clazz; return $this; } function ClazzEnrolmentWithClazz_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazz, serializationConstructorMarker) { return ClazzEnrolmentWithClazz_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, clazz, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithClazz))); } function ClazzEnrolmentWithClazz() { Companion_getInstance_61(); ClazzEnrolment.call(this); this.clazz_1 = null; } protoOf(ClazzEnrolmentWithClazz).set_clazz_sym4kf_k$ = function (_set____db54di) { this.clazz_1 = _set____db54di; }; protoOf(ClazzEnrolmentWithClazz).get_clazz_ips3zj_k$ = function () { return this.clazz_1; }; function Companion_58() { Companion_instance_58 = this; } protoOf(Companion_58).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_55(); }; var Companion_instance_58; function Companion_getInstance_62() { if (Companion_instance_58 == null) new Companion_58(); return Companion_instance_58; } function $serializer_55() { $serializer_instance_55 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolmentWithLeavingReason', this, 16); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateJoined', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateLeft', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentRole', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentOutcome', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLct', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReason', true); tmp0_serialDesc.addElement_5pzumi_k$('timeZone', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_55).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_55).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_100()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_55).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = null; var tmp19_local15 = null; var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp20_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp20_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_100(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; } else while (tmp1_flag) { tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp20_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_100(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolmentWithLeavingReason_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); }; protoOf($serializer_55).serialize_fjqk6a_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzEnrolmentUid_xeo3a3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzEnrolmentUid_xeo3a3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_clazzEnrolmentPersonUid_67nqh2_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_clazzEnrolmentPersonUid_67nqh2_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_clazzEnrolmentClazzUid_5dtar_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_clazzEnrolmentClazzUid_5dtar_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.get_clazzEnrolmentDateJoined_r9j21g_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.get_clazzEnrolmentDateJoined_r9j21g_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzEnrolmentDateLeft_hxlqp6_k$().equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzEnrolmentDateLeft_hxlqp6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_clazzEnrolmentRole_ttzs6t_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.get_clazzEnrolmentRole_ttzs6t_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.get_clazzEnrolmentAttendancePercentage_851g8o_k$(), 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 6, value.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.get_clazzEnrolmentActive_il2uaj_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.get_clazzEnrolmentActive_il2uaj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.get_clazzEnrolmentOutcome_8tgopp_k$() === Companion_getInstance_60().get_OUTCOME_IN_PROGRESS_z4xz4h_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.get_clazzEnrolmentOutcome_8tgopp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentLastChangedBy_u2wke8_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzEnrolmentLct_xenwh4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzEnrolmentLct_xenwh4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.leavingReason_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_100(), value.leavingReason_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.timeZone_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, StringSerializer_getInstance(), value.timeZone_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_55).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_fjqk6a_k$(encoder, value instanceof ClazzEnrolmentWithLeavingReason ? value : THROW_CCE()); }; var $serializer_instance_55; function $serializer_getInstance_55() { if ($serializer_instance_55 == null) new $serializer_55(); return $serializer_instance_55; } function ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_55().descriptor_1); } ClazzEnrolment_init_$Init$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this); if (0 === (seen1 & 16384)) $this.leavingReason_1 = null; else $this.leavingReason_1 = leavingReason; if (0 === (seen1 & 32768)) $this.timeZone_1 = null; else $this.timeZone_1 = timeZone; return $this; } function ClazzEnrolmentWithLeavingReason_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker) { return ClazzEnrolmentWithLeavingReason_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, leavingReason, timeZone, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithLeavingReason))); } function ClazzEnrolmentWithLeavingReason() { Companion_getInstance_62(); ClazzEnrolment.call(this); this.leavingReason_1 = null; this.timeZone_1 = null; } protoOf(ClazzEnrolmentWithLeavingReason).set_leavingReason_lyjv33_k$ = function (_set____db54di) { this.leavingReason_1 = _set____db54di; }; protoOf(ClazzEnrolmentWithLeavingReason).get_leavingReason_2vr8r5_k$ = function () { return this.leavingReason_1; }; protoOf(ClazzEnrolmentWithLeavingReason).set_timeZone_fxensv_k$ = function (_set____db54di) { this.timeZone_1 = _set____db54di; }; protoOf(ClazzEnrolmentWithLeavingReason).get_timeZone_4vh49u_k$ = function () { return this.timeZone_1; }; function Companion_59() { Companion_instance_59 = this; } protoOf(Companion_59).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_56(); }; var Companion_instance_59; function Companion_getInstance_63() { if (Companion_instance_59 == null) new Companion_59(); return Companion_instance_59; } function $serializer_56() { $serializer_instance_56 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzEnrolmentWithPerson', this, 15); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateJoined', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentDateLeft', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentRole', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentAttendancePercentage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLeavingReasonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentOutcome', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentLct', true); tmp0_serialDesc.addElement_5pzumi_k$('person', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_56).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_56).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_104())]; }; protoOf($serializer_56).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = 0.0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = null; var tmp19_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp19_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp19_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_104(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; } else while (tmp1_flag) { tmp2_index = tmp19_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp19_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp19_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp19_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp19_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp19_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, $serializer_getInstance_104(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp19_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzEnrolmentWithPerson_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, tmp16_local12, tmp17_local13, tmp18_local14, null); }; protoOf($serializer_56).serialize_8n7ymf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzEnrolmentUid_xeo3a3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzEnrolmentUid_xeo3a3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_clazzEnrolmentPersonUid_67nqh2_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_clazzEnrolmentPersonUid_67nqh2_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_clazzEnrolmentClazzUid_5dtar_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_clazzEnrolmentClazzUid_5dtar_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.get_clazzEnrolmentDateJoined_r9j21g_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.get_clazzEnrolmentDateJoined_r9j21g_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzEnrolmentDateLeft_hxlqp6_k$().equals(get_UNSET_DISTANT_FUTURE())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzEnrolmentDateLeft_hxlqp6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_clazzEnrolmentRole_ttzs6t_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.get_clazzEnrolmentRole_ttzs6t_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.get_clazzEnrolmentAttendancePercentage_851g8o_k$(), 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 6, value.get_clazzEnrolmentAttendancePercentage_851g8o_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.get_clazzEnrolmentActive_il2uaj_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.get_clazzEnrolmentActive_il2uaj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzEnrolmentLeavingReasonUid_7vfqdv_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.get_clazzEnrolmentOutcome_8tgopp_k$() === Companion_getInstance_60().get_OUTCOME_IN_PROGRESS_z4xz4h_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.get_clazzEnrolmentOutcome_8tgopp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzEnrolmentLocalChangeSeqNum_ylajcj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzEnrolmentMasterChangeSeqNum_ocfusy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentLastChangedBy_u2wke8_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentLastChangedBy_u2wke8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzEnrolmentLct_xenwh4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzEnrolmentLct_xenwh4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, $serializer_getInstance_104(), value.person_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_56).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_8n7ymf_k$(encoder, value instanceof ClazzEnrolmentWithPerson ? value : THROW_CCE()); }; var $serializer_instance_56; function $serializer_getInstance_56() { if ($serializer_instance_56 == null) new $serializer_56(); return $serializer_instance_56; } function ClazzEnrolmentWithPerson_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, person, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_56().descriptor_1); } ClazzEnrolment_init_$Init$_1(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, serializationConstructorMarker, $this); if (0 === (seen1 & 16384)) $this.person_1 = null; else $this.person_1 = person; return $this; } function ClazzEnrolmentWithPerson_init_$Create$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, person, serializationConstructorMarker) { return ClazzEnrolmentWithPerson_init_$Init$(seen1, clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct, person, serializationConstructorMarker, objectCreate(protoOf(ClazzEnrolmentWithPerson))); } function ClazzEnrolmentWithPerson() { Companion_getInstance_63(); ClazzEnrolment.call(this); this.person_1 = null; } protoOf(ClazzEnrolmentWithPerson).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(ClazzEnrolmentWithPerson).get_person_i0c866_k$ = function () { return this.person_1; }; function ClazzLog_init_$Init$(clazzLogUid, clazzUid, logDate, scheduleUid, $this) { ClazzLog.call($this); $this.clazzLogUid_1 = clazzLogUid; $this.clazzLogClazzUid_1 = clazzUid; $this.logDate_1 = logDate; $this.clazzLogScheduleUid_1 = scheduleUid; return $this; } function ClazzLog_init_$Create$(clazzLogUid, clazzUid, logDate, scheduleUid) { return ClazzLog_init_$Init$(clazzLogUid, clazzUid, logDate, scheduleUid, objectCreate(protoOf(ClazzLog))); } function Companion_60() { Companion_instance_60 = this; this.TABLE_ID_1 = 14; this.STATUS_CREATED_1 = 0; this.STATUS_HOLIDAY_1 = 1; this.STATUS_MANUALLYCANCELED_1 = 2; this.STATUS_RECORDED_1 = 4; this.STATUS_RESCHEDULED_1 = 8; this.STATUS_INACTIVE_1 = 16; } protoOf(Companion_60).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_60).get_STATUS_CREATED_6iky9o_k$ = function () { return this.STATUS_CREATED_1; }; protoOf(Companion_60).get_STATUS_HOLIDAY_5gv47g_k$ = function () { return this.STATUS_HOLIDAY_1; }; protoOf(Companion_60).get_STATUS_MANUALLYCANCELED_rowwcw_k$ = function () { return this.STATUS_MANUALLYCANCELED_1; }; protoOf(Companion_60).get_STATUS_RECORDED_w8dkek_k$ = function () { return this.STATUS_RECORDED_1; }; protoOf(Companion_60).get_STATUS_RESCHEDULED_ob487e_k$ = function () { return this.STATUS_RESCHEDULED_1; }; protoOf(Companion_60).get_STATUS_INACTIVE_ilujtd_k$ = function () { return this.STATUS_INACTIVE_1; }; protoOf(Companion_60).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_57(); }; var Companion_instance_60; function Companion_getInstance_64() { if (Companion_instance_60 == null) new Companion_60(); return Companion_instance_60; } function $serializer_57() { $serializer_instance_57 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLog', this, 16); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('logDate', true); tmp0_serialDesc.addElement_5pzumi_k$('timeRecorded', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogDone', true); tmp0_serialDesc.addElement_5pzumi_k$('cancellationNote', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogCancelled', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogNumPresent', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogNumAbsent', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogNumPartial', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogScheduleUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogStatusFlag', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogMSQN', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogLCSN', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogLCB', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogLastChangedTime', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_57).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_57).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_57).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = new Long(0, 0); var tmp20_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp20_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; } else while (tmp1_flag) { tmp2_index = tmp20_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp20_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp20_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp20_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp20_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp20_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzLog_init_$Create$_0(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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, null); }; protoOf($serializer_57).serialize_oyovdg_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.clazzLogUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.clazzLogUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.clazzLogClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.clazzLogClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.logDate_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.logDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.timeRecorded_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.timeRecorded_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.clazzLogDone_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.clazzLogDone_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cancellationNote_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.cancellationNote_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.clazzLogCancelled_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.clazzLogCancelled_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.clazzLogNumPresent_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.clazzLogNumPresent_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.clazzLogNumAbsent_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.clazzLogNumAbsent_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.clazzLogNumPartial_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.clazzLogNumPartial_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.clazzLogScheduleUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.clazzLogScheduleUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.clazzLogStatusFlag_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.clazzLogStatusFlag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.clazzLogMSQN_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.clazzLogMSQN_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.clazzLogLCSN_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.clazzLogLCSN_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.clazzLogLCB_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.clazzLogLCB_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.clazzLogLastChangedTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.clazzLogLastChangedTime_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_57).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_oyovdg_k$(encoder, value instanceof ClazzLog ? value : THROW_CCE()); }; var $serializer_instance_57; function $serializer_getInstance_57() { if ($serializer_instance_57 == null) new $serializer_57(); return $serializer_instance_57; } function ClazzLog_init_$Init$_0(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_57().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzLogUid_1 = new Long(0, 0); else $this.clazzLogUid_1 = clazzLogUid; if (0 === (seen1 & 2)) $this.clazzLogClazzUid_1 = new Long(0, 0); else $this.clazzLogClazzUid_1 = clazzLogClazzUid; if (0 === (seen1 & 4)) $this.logDate_1 = new Long(0, 0); else $this.logDate_1 = logDate; if (0 === (seen1 & 8)) $this.timeRecorded_1 = new Long(0, 0); else $this.timeRecorded_1 = timeRecorded; if (0 === (seen1 & 16)) $this.clazzLogDone_1 = false; else $this.clazzLogDone_1 = clazzLogDone; if (0 === (seen1 & 32)) $this.cancellationNote_1 = null; else $this.cancellationNote_1 = cancellationNote; if (0 === (seen1 & 64)) $this.clazzLogCancelled_1 = false; else $this.clazzLogCancelled_1 = clazzLogCancelled; if (0 === (seen1 & 128)) $this.clazzLogNumPresent_1 = 0; else $this.clazzLogNumPresent_1 = clazzLogNumPresent; if (0 === (seen1 & 256)) $this.clazzLogNumAbsent_1 = 0; else $this.clazzLogNumAbsent_1 = clazzLogNumAbsent; if (0 === (seen1 & 512)) $this.clazzLogNumPartial_1 = 0; else $this.clazzLogNumPartial_1 = clazzLogNumPartial; if (0 === (seen1 & 1024)) $this.clazzLogScheduleUid_1 = new Long(0, 0); else $this.clazzLogScheduleUid_1 = clazzLogScheduleUid; if (0 === (seen1 & 2048)) $this.clazzLogStatusFlag_1 = 0; else $this.clazzLogStatusFlag_1 = clazzLogStatusFlag; if (0 === (seen1 & 4096)) $this.clazzLogMSQN_1 = new Long(0, 0); else $this.clazzLogMSQN_1 = clazzLogMSQN; if (0 === (seen1 & 8192)) $this.clazzLogLCSN_1 = new Long(0, 0); else $this.clazzLogLCSN_1 = clazzLogLCSN; if (0 === (seen1 & 16384)) $this.clazzLogLCB_1 = 0; else $this.clazzLogLCB_1 = clazzLogLCB; if (0 === (seen1 & 32768)) $this.clazzLogLastChangedTime_1 = new Long(0, 0); else $this.clazzLogLastChangedTime_1 = clazzLogLastChangedTime; return $this; } function ClazzLog_init_$Create$_0(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker) { return ClazzLog_init_$Init$_0(seen1, clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLog))); } function ClazzLog() { Companion_getInstance_64(); this.clazzLogUid_1 = new Long(0, 0); this.clazzLogClazzUid_1 = new Long(0, 0); this.logDate_1 = new Long(0, 0); this.timeRecorded_1 = new Long(0, 0); this.clazzLogDone_1 = false; this.cancellationNote_1 = null; this.clazzLogCancelled_1 = false; this.clazzLogNumPresent_1 = 0; this.clazzLogNumAbsent_1 = 0; this.clazzLogNumPartial_1 = 0; this.clazzLogScheduleUid_1 = new Long(0, 0); this.clazzLogStatusFlag_1 = 0; this.clazzLogMSQN_1 = new Long(0, 0); this.clazzLogLCSN_1 = new Long(0, 0); this.clazzLogLCB_1 = 0; this.clazzLogLastChangedTime_1 = new Long(0, 0); } protoOf(ClazzLog).set_clazzLogUid_ks9wuh_k$ = function (_set____db54di) { this.clazzLogUid_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogUid_ifqem3_k$ = function () { return this.clazzLogUid_1; }; protoOf(ClazzLog).set_clazzLogClazzUid_g2lcqr_k$ = function (_set____db54di) { this.clazzLogClazzUid_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogClazzUid_p2tbpp_k$ = function () { return this.clazzLogClazzUid_1; }; protoOf(ClazzLog).set_logDate_dvs32h_k$ = function (_set____db54di) { this.logDate_1 = _set____db54di; }; protoOf(ClazzLog).get_logDate_6wppgp_k$ = function () { return this.logDate_1; }; protoOf(ClazzLog).set_timeRecorded_s2m610_k$ = function (_set____db54di) { this.timeRecorded_1 = _set____db54di; }; protoOf(ClazzLog).get_timeRecorded_30b196_k$ = function () { return this.timeRecorded_1; }; protoOf(ClazzLog).set_clazzLogDone_area5y_k$ = function (_set____db54di) { this.clazzLogDone_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogDone_3ajf7b_k$ = function () { return this.clazzLogDone_1; }; protoOf(ClazzLog).set_cancellationNote_5l3n97_k$ = function (_set____db54di) { this.cancellationNote_1 = _set____db54di; }; protoOf(ClazzLog).get_cancellationNote_xf4nfm_k$ = function () { return this.cancellationNote_1; }; protoOf(ClazzLog).set_clazzLogCancelled_ws6ff1_k$ = function (_set____db54di) { this.clazzLogCancelled_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogCancelled_pcu2k_k$ = function () { return this.clazzLogCancelled_1; }; protoOf(ClazzLog).set_clazzLogNumPresent_oia4y2_k$ = function (_set____db54di) { this.clazzLogNumPresent_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogNumPresent_9zzoay_k$ = function () { return this.clazzLogNumPresent_1; }; protoOf(ClazzLog).set_clazzLogNumAbsent_m3kfwu_k$ = function (_set____db54di) { this.clazzLogNumAbsent_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogNumAbsent_4ftf7u_k$ = function () { return this.clazzLogNumAbsent_1; }; protoOf(ClazzLog).set_clazzLogNumPartial_5wqx38_k$ = function (_set____db54di) { this.clazzLogNumPartial_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogNumPartial_25e4y8_k$ = function () { return this.clazzLogNumPartial_1; }; protoOf(ClazzLog).set_clazzLogScheduleUid_98b2vm_k$ = function (_set____db54di) { this.clazzLogScheduleUid_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogScheduleUid_4puu8s_k$ = function () { return this.clazzLogScheduleUid_1; }; protoOf(ClazzLog).set_clazzLogStatusFlag_tr01j3_k$ = function (_set____db54di) { this.clazzLogStatusFlag_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogStatusFlag_5bedjh_k$ = function () { return this.clazzLogStatusFlag_1; }; protoOf(ClazzLog).set_clazzLogMSQN_a5eeoi_k$ = function (_set____db54di) { this.clazzLogMSQN_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogMSQN_3aokm0_k$ = function () { return this.clazzLogMSQN_1; }; protoOf(ClazzLog).set_clazzLogLCSN_tbobmr_k$ = function (_set____db54di) { this.clazzLogLCSN_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogLCSN_3anlt3_k$ = function () { return this.clazzLogLCSN_1; }; protoOf(ClazzLog).set_clazzLogLCB_x6ghiy_k$ = function (_set____db54di) { this.clazzLogLCB_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogLCB_ifq706_k$ = function () { return this.clazzLogLCB_1; }; protoOf(ClazzLog).set_clazzLogLastChangedTime_hpmcu4_k$ = function (_set____db54di) { this.clazzLogLastChangedTime_1 = _set____db54di; }; protoOf(ClazzLog).get_clazzLogLastChangedTime_dwg7je_k$ = function () { return this.clazzLogLastChangedTime_1; }; protoOf(ClazzLog).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ClazzLog)) THROW_CCE(); if (!this.clazzLogUid_1.equals(other.clazzLogUid_1)) return false; if (!this.clazzLogClazzUid_1.equals(other.clazzLogClazzUid_1)) return false; if (!this.logDate_1.equals(other.logDate_1)) return false; if (!this.timeRecorded_1.equals(other.timeRecorded_1)) return false; if (!(this.clazzLogDone_1 === other.clazzLogDone_1)) return false; if (!(this.cancellationNote_1 == other.cancellationNote_1)) return false; if (!(this.clazzLogCancelled_1 === other.clazzLogCancelled_1)) return false; if (!(this.clazzLogNumPresent_1 === other.clazzLogNumPresent_1)) return false; if (!(this.clazzLogNumAbsent_1 === other.clazzLogNumAbsent_1)) return false; if (!(this.clazzLogNumPartial_1 === other.clazzLogNumPartial_1)) return false; if (!this.clazzLogScheduleUid_1.equals(other.clazzLogScheduleUid_1)) return false; if (!(this.clazzLogStatusFlag_1 === other.clazzLogStatusFlag_1)) return false; if (!this.clazzLogMSQN_1.equals(other.clazzLogMSQN_1)) return false; if (!this.clazzLogLCSN_1.equals(other.clazzLogLCSN_1)) return false; if (!(this.clazzLogLCB_1 === other.clazzLogLCB_1)) return false; if (!this.clazzLogLastChangedTime_1.equals(other.clazzLogLastChangedTime_1)) return false; return true; }; protoOf(ClazzLog).hashCode = function () { var result = this.clazzLogUid_1.hashCode(); result = imul(31, result) + this.clazzLogClazzUid_1.hashCode() | 0; result = imul(31, result) + this.logDate_1.hashCode() | 0; result = imul(31, result) + this.timeRecorded_1.hashCode() | 0; result = imul(31, result) + getBooleanHashCode(this.clazzLogDone_1) | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.cancellationNote_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; result = imul(31, result) + getBooleanHashCode(this.clazzLogCancelled_1) | 0; result = imul(31, result) + this.clazzLogNumPresent_1 | 0; result = imul(31, result) + this.clazzLogNumAbsent_1 | 0; result = imul(31, result) + this.clazzLogNumPartial_1 | 0; result = imul(31, result) + this.clazzLogScheduleUid_1.hashCode() | 0; result = imul(31, result) + this.clazzLogStatusFlag_1 | 0; result = imul(31, result) + this.clazzLogMSQN_1.hashCode() | 0; result = imul(31, result) + this.clazzLogLCSN_1.hashCode() | 0; result = imul(31, result) + this.clazzLogLCB_1 | 0; result = imul(31, result) + this.clazzLogLastChangedTime_1.hashCode() | 0; return result; }; function Companion_61() { Companion_instance_61 = this; this.TABLE_ID_1 = 15; this.STATUS_ATTENDED_1 = 1; this.STATUS_ABSENT_1 = 2; this.STATUS_PARTIAL_1 = 4; this.ATTENDANCE_THRESHOLD_GOOD_1 = 0.8; this.ATTENDANCE_THRESHOLD_WARNING_1 = 0.6; } protoOf(Companion_61).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_61).get_STATUS_ATTENDED_a1e2df_k$ = function () { return this.STATUS_ATTENDED_1; }; protoOf(Companion_61).get_STATUS_ABSENT_f54nib_k$ = function () { return this.STATUS_ABSENT_1; }; protoOf(Companion_61).get_STATUS_PARTIAL_ye2a71_k$ = function () { return this.STATUS_PARTIAL_1; }; protoOf(Companion_61).get_ATTENDANCE_THRESHOLD_GOOD_duyf6q_k$ = function () { return this.ATTENDANCE_THRESHOLD_GOOD_1; }; protoOf(Companion_61).get_ATTENDANCE_THRESHOLD_WARNING_hqyigr_k$ = function () { return this.ATTENDANCE_THRESHOLD_WARNING_1; }; protoOf(Companion_61).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_58(); }; var Companion_instance_61; function Companion_getInstance_65() { if (Companion_instance_61 == null) new Companion_61(); return Companion_instance_61; } function $serializer_58() { $serializer_instance_58 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecord', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordClazzLogUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLastChangedTime', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_58).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_58).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_58).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzLogAttendanceRecord_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_58).serialize_tdf8i6_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.clazzLogAttendanceRecordUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.clazzLogAttendanceRecordUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.clazzLogAttendanceRecordClazzLogUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.clazzLogAttendanceRecordClazzLogUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.clazzLogAttendanceRecordPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.clazzLogAttendanceRecordPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.attendanceStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.attendanceStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.clazzLogAttendanceRecordMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.clazzLogAttendanceRecordMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.clazzLogAttendanceRecordLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.clazzLogAttendanceRecordLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.clazzLogAttendanceRecordLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.clazzLogAttendanceRecordLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.clazzLogAttendanceRecordLastChangedTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.clazzLogAttendanceRecordLastChangedTime_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_58).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_tdf8i6_k$(encoder, value instanceof ClazzLogAttendanceRecord ? value : THROW_CCE()); }; var $serializer_instance_58; function $serializer_getInstance_58() { if ($serializer_instance_58 == null) new $serializer_58(); return $serializer_instance_58; } function ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_58().descriptor_1); } if (0 === (seen1 & 1)) $this.clazzLogAttendanceRecordUid_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordUid_1 = clazzLogAttendanceRecordUid; if (0 === (seen1 & 2)) $this.clazzLogAttendanceRecordClazzLogUid_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordClazzLogUid_1 = clazzLogAttendanceRecordClazzLogUid; if (0 === (seen1 & 4)) $this.clazzLogAttendanceRecordPersonUid_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordPersonUid_1 = clazzLogAttendanceRecordPersonUid; if (0 === (seen1 & 8)) $this.attendanceStatus_1 = 0; else $this.attendanceStatus_1 = attendanceStatus; if (0 === (seen1 & 16)) $this.clazzLogAttendanceRecordMasterChangeSeqNum_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordMasterChangeSeqNum_1 = clazzLogAttendanceRecordMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.clazzLogAttendanceRecordLocalChangeSeqNum_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordLocalChangeSeqNum_1 = clazzLogAttendanceRecordLocalChangeSeqNum; if (0 === (seen1 & 64)) $this.clazzLogAttendanceRecordLastChangedBy_1 = 0; else $this.clazzLogAttendanceRecordLastChangedBy_1 = clazzLogAttendanceRecordLastChangedBy; if (0 === (seen1 & 128)) $this.clazzLogAttendanceRecordLastChangedTime_1 = new Long(0, 0); else $this.clazzLogAttendanceRecordLastChangedTime_1 = clazzLogAttendanceRecordLastChangedTime; return $this; } function ClazzLogAttendanceRecord_init_$Create$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker) { return ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, objectCreate(protoOf(ClazzLogAttendanceRecord))); } function ClazzLogAttendanceRecord() { Companion_getInstance_65(); this.clazzLogAttendanceRecordUid_1 = new Long(0, 0); this.clazzLogAttendanceRecordClazzLogUid_1 = new Long(0, 0); this.clazzLogAttendanceRecordPersonUid_1 = new Long(0, 0); this.attendanceStatus_1 = 0; this.clazzLogAttendanceRecordMasterChangeSeqNum_1 = new Long(0, 0); this.clazzLogAttendanceRecordLocalChangeSeqNum_1 = new Long(0, 0); this.clazzLogAttendanceRecordLastChangedBy_1 = 0; this.clazzLogAttendanceRecordLastChangedTime_1 = new Long(0, 0); } protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordUid_u3gxm9_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordUid_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordUid_a6xjzz_k$ = function () { return this.clazzLogAttendanceRecordUid_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordClazzLogUid_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$ = function () { return this.clazzLogAttendanceRecordClazzLogUid_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordPersonUid_tldzbu_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordPersonUid_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordPersonUid_1jxn10_k$ = function () { return this.clazzLogAttendanceRecordPersonUid_1; }; protoOf(ClazzLogAttendanceRecord).set_attendanceStatus_scnmkw_k$ = function (_set____db54di) { this.attendanceStatus_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_attendanceStatus_noqiv8_k$ = function () { return this.attendanceStatus_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$ = function () { return this.clazzLogAttendanceRecordMasterChangeSeqNum_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$ = function () { return this.clazzLogAttendanceRecordLocalChangeSeqNum_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordLastChangedBy_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$ = function () { return this.clazzLogAttendanceRecordLastChangedBy_1; }; protoOf(ClazzLogAttendanceRecord).set_clazzLogAttendanceRecordLastChangedTime_oygn9m_k$ = function (_set____db54di) { this.clazzLogAttendanceRecordLastChangedTime_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecord).get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$ = function () { return this.clazzLogAttendanceRecordLastChangedTime_1; }; protoOf(ClazzLogAttendanceRecord).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ClazzLogAttendanceRecord)) THROW_CCE(); if (!this.clazzLogAttendanceRecordUid_1.equals(other.clazzLogAttendanceRecordUid_1)) return false; if (!this.clazzLogAttendanceRecordClazzLogUid_1.equals(other.clazzLogAttendanceRecordClazzLogUid_1)) return false; if (!this.clazzLogAttendanceRecordPersonUid_1.equals(other.clazzLogAttendanceRecordPersonUid_1)) return false; if (!(this.attendanceStatus_1 === other.attendanceStatus_1)) return false; if (!this.clazzLogAttendanceRecordMasterChangeSeqNum_1.equals(other.clazzLogAttendanceRecordMasterChangeSeqNum_1)) return false; if (!this.clazzLogAttendanceRecordLocalChangeSeqNum_1.equals(other.clazzLogAttendanceRecordLocalChangeSeqNum_1)) return false; if (!(this.clazzLogAttendanceRecordLastChangedBy_1 === other.clazzLogAttendanceRecordLastChangedBy_1)) return false; return true; }; protoOf(ClazzLogAttendanceRecord).hashCode = function () { var result = this.clazzLogAttendanceRecordUid_1.hashCode(); result = imul(31, result) + this.clazzLogAttendanceRecordClazzLogUid_1.hashCode() | 0; result = imul(31, result) + this.clazzLogAttendanceRecordPersonUid_1.hashCode() | 0; result = imul(31, result) + this.attendanceStatus_1 | 0; result = imul(31, result) + this.clazzLogAttendanceRecordMasterChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.clazzLogAttendanceRecordLocalChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.clazzLogAttendanceRecordLastChangedBy_1 | 0; return result; }; function Companion_62() { Companion_instance_62 = this; } protoOf(Companion_62).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_59(); }; var Companion_instance_62; function Companion_getInstance_66() { if (Companion_instance_62 == null) new Companion_62(); return Companion_instance_62; } function $serializer_59() { $serializer_instance_59 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecordWithPerson', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordClazzLogUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLogAttendanceRecordLastChangedTime', true); tmp0_serialDesc.addElement_5pzumi_k$('person', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_59).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_59).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_104())]; }; protoOf($serializer_59).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = null; var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_104(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, $serializer_getInstance_104(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzLogAttendanceRecordWithPerson_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_59).serialize_y9wfnd_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzLogAttendanceRecordUid_a6xjzz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_attendanceStatus_noqiv8_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.get_attendanceStatus_noqiv8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_clazzLogAttendanceRecordLastChangedTime_lqwc7w_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, $serializer_getInstance_104(), value.person_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_59).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_y9wfnd_k$(encoder, value instanceof ClazzLogAttendanceRecordWithPerson ? value : THROW_CCE()); }; var $serializer_instance_59; function $serializer_getInstance_59() { if ($serializer_instance_59 == null) new $serializer_59(); return $serializer_instance_59; } function ClazzLogAttendanceRecordWithPerson_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, person, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_59().descriptor_1); } ClazzLogAttendanceRecord_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, serializationConstructorMarker, $this); if (0 === (seen1 & 256)) $this.person_1 = null; else $this.person_1 = person; return $this; } function ClazzLogAttendanceRecordWithPerson_init_$Create$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, person, serializationConstructorMarker) { return ClazzLogAttendanceRecordWithPerson_init_$Init$(seen1, clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime, person, serializationConstructorMarker, objectCreate(protoOf(ClazzLogAttendanceRecordWithPerson))); } function ClazzLogAttendanceRecordWithPerson() { Companion_getInstance_66(); ClazzLogAttendanceRecord.call(this); this.person_1 = null; } protoOf(ClazzLogAttendanceRecordWithPerson).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(ClazzLogAttendanceRecordWithPerson).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(ClazzLogAttendanceRecordWithPerson).copy_1tks5_k$ = function () { // Inline function 'kotlin.also' call var this_0 = new ClazzLogAttendanceRecordWithPerson(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecordWithPerson.copy.' call this_0.person_1 = this.person_1; this_0.set_clazzLogAttendanceRecordUid_u3gxm9_k$(this.get_clazzLogAttendanceRecordUid_a6xjzz_k$()); this_0.set_clazzLogAttendanceRecordPersonUid_tldzbu_k$(this.get_clazzLogAttendanceRecordPersonUid_1jxn10_k$()); this_0.set_clazzLogAttendanceRecordClazzLogUid_ln2yg3_k$(this.get_clazzLogAttendanceRecordClazzLogUid_a8zaj9_k$()); this_0.set_clazzLogAttendanceRecordLastChangedBy_pjw2y2_k$(this.get_clazzLogAttendanceRecordLastChangedBy_9c33mu_k$()); this_0.set_clazzLogAttendanceRecordLocalChangeSeqNum_vs2uwx_k$(this.get_clazzLogAttendanceRecordLocalChangeSeqNum_2q8zx_k$()); this_0.set_clazzLogAttendanceRecordMasterChangeSeqNum_59a35q_k$(this.get_clazzLogAttendanceRecordMasterChangeSeqNum_jtnrko_k$()); this_0.set_attendanceStatus_scnmkw_k$(this.get_attendanceStatus_noqiv8_k$()); return this_0; }; function Companion_63() { Companion_instance_63 = this; } protoOf(Companion_63).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_60(); }; var Companion_instance_63; function Companion_getInstance_67() { if (Companion_instance_63 == null) new Companion_63(); return Companion_instance_63; } function $serializer_60() { $serializer_instance_60 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithDisplayDetails', this, 30); tmp0_serialDesc.addElement_5pzumi_k$('clazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzDesc', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceAverage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('isClazzActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocationUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzFeatures', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzSchoolUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPolicy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTerminologyUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLct', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTimeZone', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzParentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzCode', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzOwnerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzHolidayCalendar', true); tmp0_serialDesc.addElement_5pzumi_k$('terminology', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePicture', true); tmp0_serialDesc.addElement_5pzumi_k$('numStudents', true); tmp0_serialDesc.addElement_5pzumi_k$('numTeachers', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_60).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_60).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_88()), IntSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_60).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = 0.0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = new Long(0, 0); var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = new Long(0, 0); var tmp27_local23 = null; var tmp28_local24 = new Long(0, 0); var tmp29_local25 = null; var tmp30_local26 = null; var tmp31_local27 = null; var tmp32_local28 = 0; var tmp33_local29 = 0; var tmp34_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp34_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp34_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp34_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_96(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_89(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp31_local27 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; tmp32_local28 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; tmp33_local29 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; } else while (tmp1_flag) { tmp2_index = tmp34_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp34_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp34_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp34_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_96(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_89(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp31_local27 = tmp34_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; case 28: tmp32_local28 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; break; case 29: tmp33_local29 = tmp34_input.decodeIntElement_941u6a_k$(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp34_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzWithDisplayDetails_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, tmp32_local28, tmp33_local29, null); }; protoOf($serializer_60).serialize_rxfzoi_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzUid_k8pnbz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzUid_k8pnbz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_clazzName_brsrx6_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_clazzName_brsrx6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_clazzDesc_brmh5s_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_clazzDesc_brmh5s_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.get_attendanceAverage_q3uit1_k$(), -1.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.get_attendanceAverage_q3uit1_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzHolidayUMCalendarUid_diy12p_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzHolidayUMCalendarUid_diy12p_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_clazzScheuleUMCalendarUid_pyne08_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_clazzScheuleUMCalendarUid_pyne08_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_isClazzActive_pdk9bp_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.get_isClazzActive_pdk9bp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_clazzLocationUid_64jec4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_clazzLocationUid_64jec4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzStartTime_lc1vds_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzStartTime_lc1vds_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.get_clazzEndTime_sxjf8n_k$().equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.get_clazzEndTime_sxjf8n_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzFeatures_6nf4ac_k$().equals(Companion_getInstance_57().get_CLAZZ_FEATURE_ATTENDANCE_h2pzj6_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzFeatures_6nf4ac_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzSchoolUid_g4bglp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzSchoolUid_g4bglp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentPolicy_pv7kzr_k$() === Companion_getInstance_57().get_CLAZZ_ENROLMENT_POLICY_OPEN_3ryjuc_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentPolicy_pv7kzr_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzTerminologyUid_4xpw4_k$().equals(new Long(25966, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzTerminologyUid_4xpw4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.get_clazzMasterChangeSeqNum_7fn794_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.get_clazzMasterChangeSeqNum_7fn794_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.get_clazzLocalChangeSeqNum_9hlwk3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.get_clazzLocalChangeSeqNum_9hlwk3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.get_clazzLastChangedBy_wnz9za_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.get_clazzLastChangedBy_wnz9za_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.get_clazzLct_k8pu4y_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.get_clazzLct_k8pu4y_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.get_clazzTimeZone_yu1krs_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, StringSerializer_getInstance(), value.get_clazzTimeZone_yu1krs_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.get_clazzStudentsPersonGroupUid_myynpp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.get_clazzStudentsPersonGroupUid_myynpp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.get_clazzTeachersPersonGroupUid_5xdfqy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.get_clazzParentsPersonGroupUid_gibku8_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 22, value.get_clazzParentsPersonGroupUid_gibku8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.get_clazzCode_brm18c_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.get_clazzCode_brm18c_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.get_clazzOwnerPersonUid_iplxz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.get_clazzOwnerPersonUid_iplxz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.clazzHolidayCalendar_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_96(), value.clazzHolidayCalendar_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.terminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_89(), value.terminology_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.coursePicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_88(), value.coursePicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.numStudents_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 28, value.numStudents_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.numTeachers_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 29, value.numTeachers_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_60).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_rxfzoi_k$(encoder, value instanceof ClazzWithDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_60; function $serializer_getInstance_60() { if ($serializer_instance_60 == null) new $serializer_60(); return $serializer_instance_60; } function ClazzWithDisplayDetails_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, clazzHolidayCalendar, terminology, coursePicture, numStudents, numTeachers, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_60().descriptor_1); } Clazz_init_$Init$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this); if (0 === (seen1 & 33554432)) $this.clazzHolidayCalendar_1 = null; else $this.clazzHolidayCalendar_1 = clazzHolidayCalendar; if (0 === (seen1 & 67108864)) $this.terminology_1 = null; else $this.terminology_1 = terminology; if (0 === (seen1 & 134217728)) $this.coursePicture_1 = null; else $this.coursePicture_1 = coursePicture; if (0 === (seen1 & 268435456)) $this.numStudents_1 = 0; else $this.numStudents_1 = numStudents; if (0 === (seen1 & 536870912)) $this.numTeachers_1 = 0; else $this.numTeachers_1 = numTeachers; return $this; } function ClazzWithDisplayDetails_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, clazzHolidayCalendar, terminology, coursePicture, numStudents, numTeachers, serializationConstructorMarker) { return ClazzWithDisplayDetails_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, clazzHolidayCalendar, terminology, coursePicture, numStudents, numTeachers, serializationConstructorMarker, objectCreate(protoOf(ClazzWithDisplayDetails))); } function ClazzWithDisplayDetails() { Companion_getInstance_67(); Clazz.call(this); this.clazzHolidayCalendar_1 = null; this.terminology_1 = null; this.coursePicture_1 = null; this.numStudents_1 = 0; this.numTeachers_1 = 0; } protoOf(ClazzWithDisplayDetails).set_clazzHolidayCalendar_fp531_k$ = function (_set____db54di) { this.clazzHolidayCalendar_1 = _set____db54di; }; protoOf(ClazzWithDisplayDetails).get_clazzHolidayCalendar_cwdsah_k$ = function () { return this.clazzHolidayCalendar_1; }; protoOf(ClazzWithDisplayDetails).set_terminology_opn48q_k$ = function (_set____db54di) { this.terminology_1 = _set____db54di; }; protoOf(ClazzWithDisplayDetails).get_terminology_hmih12_k$ = function () { return this.terminology_1; }; protoOf(ClazzWithDisplayDetails).set_coursePicture_h9sgol_k$ = function (_set____db54di) { this.coursePicture_1 = _set____db54di; }; protoOf(ClazzWithDisplayDetails).get_coursePicture_gcf86y_k$ = function () { return this.coursePicture_1; }; protoOf(ClazzWithDisplayDetails).set_numStudents_sx9y7t_k$ = function (_set____db54di) { this.numStudents_1 = _set____db54di; }; protoOf(ClazzWithDisplayDetails).get_numStudents_si1t5h_k$ = function () { return this.numStudents_1; }; protoOf(ClazzWithDisplayDetails).set_numTeachers_35yqj6_k$ = function (_set____db54di) { this.numTeachers_1 = _set____db54di; }; protoOf(ClazzWithDisplayDetails).get_numTeachers_u9gdf6_k$ = function () { return this.numTeachers_1; }; function Companion_64() { Companion_instance_64 = this; } protoOf(Companion_64).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_61(); }; var Companion_instance_64; function Companion_getInstance_68() { if (Companion_instance_64 == null) new Companion_64(); return Companion_instance_64; } function $serializer_61() { $serializer_instance_61 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithHolidayCalendarAndAndTerminology', this, 28); tmp0_serialDesc.addElement_5pzumi_k$('clazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzDesc', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceAverage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('isClazzActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocationUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzFeatures', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzSchoolUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPolicy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTerminologyUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLct', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTimeZone', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzParentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzCode', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzOwnerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('holidayCalendar', true); tmp0_serialDesc.addElement_5pzumi_k$('terminology', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePicture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_61).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_61).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_96()), get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_61).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = 0.0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = 0; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = new Long(0, 0); var tmp24_local20 = new Long(0, 0); var tmp25_local21 = new Long(0, 0); var tmp26_local22 = new Long(0, 0); var tmp27_local23 = null; var tmp28_local24 = new Long(0, 0); var tmp29_local25 = null; var tmp30_local26 = null; var tmp31_local27 = null; var tmp32_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp32_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp32_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_96(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_89(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; } else while (tmp1_flag) { tmp2_index = tmp32_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp32_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 25, $serializer_getInstance_96(), tmp29_local25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 26, $serializer_getInstance_89(), tmp30_local26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_88(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp32_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzWithHolidayCalendarAndAndTerminology_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null); }; protoOf($serializer_61).serialize_3722gr_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzUid_k8pnbz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzUid_k8pnbz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_clazzName_brsrx6_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_clazzName_brsrx6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_clazzDesc_brmh5s_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_clazzDesc_brmh5s_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.get_attendanceAverage_q3uit1_k$(), -1.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.get_attendanceAverage_q3uit1_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzHolidayUMCalendarUid_diy12p_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzHolidayUMCalendarUid_diy12p_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_clazzScheuleUMCalendarUid_pyne08_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_clazzScheuleUMCalendarUid_pyne08_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_isClazzActive_pdk9bp_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.get_isClazzActive_pdk9bp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_clazzLocationUid_64jec4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_clazzLocationUid_64jec4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzStartTime_lc1vds_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzStartTime_lc1vds_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.get_clazzEndTime_sxjf8n_k$().equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.get_clazzEndTime_sxjf8n_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzFeatures_6nf4ac_k$().equals(Companion_getInstance_57().get_CLAZZ_FEATURE_ATTENDANCE_h2pzj6_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzFeatures_6nf4ac_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzSchoolUid_g4bglp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzSchoolUid_g4bglp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentPolicy_pv7kzr_k$() === Companion_getInstance_57().get_CLAZZ_ENROLMENT_POLICY_OPEN_3ryjuc_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentPolicy_pv7kzr_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzTerminologyUid_4xpw4_k$().equals(new Long(25966, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzTerminologyUid_4xpw4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.get_clazzMasterChangeSeqNum_7fn794_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.get_clazzMasterChangeSeqNum_7fn794_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.get_clazzLocalChangeSeqNum_9hlwk3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.get_clazzLocalChangeSeqNum_9hlwk3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.get_clazzLastChangedBy_wnz9za_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.get_clazzLastChangedBy_wnz9za_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.get_clazzLct_k8pu4y_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.get_clazzLct_k8pu4y_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.get_clazzTimeZone_yu1krs_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, StringSerializer_getInstance(), value.get_clazzTimeZone_yu1krs_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.get_clazzStudentsPersonGroupUid_myynpp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.get_clazzStudentsPersonGroupUid_myynpp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.get_clazzTeachersPersonGroupUid_5xdfqy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.get_clazzParentsPersonGroupUid_gibku8_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 22, value.get_clazzParentsPersonGroupUid_gibku8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.get_clazzCode_brm18c_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.get_clazzCode_brm18c_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.get_clazzOwnerPersonUid_iplxz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.get_clazzOwnerPersonUid_iplxz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.holidayCalendar_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 25, $serializer_getInstance_96(), value.holidayCalendar_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.terminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 26, $serializer_getInstance_89(), value.terminology_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.coursePicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_88(), value.coursePicture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_61).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_3722gr_k$(encoder, value instanceof ClazzWithHolidayCalendarAndAndTerminology ? value : THROW_CCE()); }; var $serializer_instance_61; function $serializer_getInstance_61() { if ($serializer_instance_61 == null) new $serializer_61(); return $serializer_instance_61; } function ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_61().descriptor_1); } Clazz_init_$Init$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this); if (0 === (seen1 & 33554432)) $this.holidayCalendar_1 = null; else $this.holidayCalendar_1 = holidayCalendar; if (0 === (seen1 & 67108864)) $this.terminology_1 = null; else $this.terminology_1 = terminology; if (0 === (seen1 & 134217728)) $this.coursePicture_1 = null; else $this.coursePicture_1 = coursePicture; return $this; } function ClazzWithHolidayCalendarAndAndTerminology_init_$Create$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker) { return ClazzWithHolidayCalendarAndAndTerminology_init_$Init$(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, holidayCalendar, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithHolidayCalendarAndAndTerminology))); } function ClazzWithHolidayCalendarAndAndTerminology() { Companion_getInstance_68(); Clazz.call(this); this.holidayCalendar_1 = null; this.terminology_1 = null; this.coursePicture_1 = null; } protoOf(ClazzWithHolidayCalendarAndAndTerminology).set_holidayCalendar_1i7d23_k$ = function (_set____db54di) { this.holidayCalendar_1 = _set____db54di; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).get_holidayCalendar_vsvfar_k$ = function () { return this.holidayCalendar_1; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).set_terminology_opn48q_k$ = function (_set____db54di) { this.terminology_1 = _set____db54di; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).get_terminology_hmih12_k$ = function () { return this.terminology_1; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).set_coursePicture_h9sgol_k$ = function (_set____db54di) { this.coursePicture_1 = _set____db54di; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).get_coursePicture_gcf86y_k$ = function () { return this.coursePicture_1; }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzWithHolidayCalendarAndAndTerminology)) return false; if (!protoOf(Clazz).equals.call(this, other)) return false; if (!equals(this.holidayCalendar_1, other.holidayCalendar_1)) return false; if (!equals(this.terminology_1, other.terminology_1)) return false; return equals(this.coursePicture_1, other.coursePicture_1); }; protoOf(ClazzWithHolidayCalendarAndAndTerminology).hashCode = function () { var result = protoOf(Clazz).hashCode.call(this); var tmp = imul(31, result); var tmp0_safe_receiver = this.holidayCalendar_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.terminology_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.coursePicture_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hashCode(); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; return result; }; function Companion_65() { Companion_instance_65 = this; } protoOf(Companion_65).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_62(); }; var Companion_instance_65; function Companion_getInstance_69() { if (Companion_instance_65 == null) new Companion_65(); return Companion_instance_65; } function $serializer_62() { $serializer_instance_62 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ClazzWithListDisplayDetails', this, 32); tmp0_serialDesc.addElement_5pzumi_k$('clazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzDesc', true); tmp0_serialDesc.addElement_5pzumi_k$('attendanceAverage', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzHolidayUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzScheuleUMCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('isClazzActive', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocationUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzFeatures', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzSchoolUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzEnrolmentPolicy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTerminologyUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzLct', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTimeZone', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzTeachersPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzPendingStudentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzParentsPersonGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzCode', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzOwnerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('numStudents', true); tmp0_serialDesc.addElement_5pzumi_k$('numTeachers', true); tmp0_serialDesc.addElement_5pzumi_k$('teacherNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastRecorded', true); tmp0_serialDesc.addElement_5pzumi_k$('clazzActiveEnrolment', true); tmp0_serialDesc.addElement_5pzumi_k$('terminology', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePicture', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_62).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_62).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable($serializer_getInstance_53()), get_nullable($serializer_getInstance_89()), get_nullable($serializer_getInstance_88())]; }; protoOf($serializer_62).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp5_local0 = new Long(0, 0); var tmp6_local1 = null; var tmp7_local2 = null; var tmp8_local3 = 0.0; var tmp9_local4 = new Long(0, 0); var tmp10_local5 = new Long(0, 0); var tmp11_local6 = false; var tmp12_local7 = new Long(0, 0); var tmp13_local8 = new Long(0, 0); var tmp14_local9 = new Long(0, 0); var tmp15_local10 = new Long(0, 0); var tmp16_local11 = new Long(0, 0); var tmp17_local12 = 0; var tmp18_local13 = new Long(0, 0); var tmp19_local14 = new Long(0, 0); var tmp20_local15 = new Long(0, 0); var tmp21_local16 = 0; var tmp22_local17 = new Long(0, 0); var tmp23_local18 = null; var tmp24_local19 = new Long(0, 0); var tmp25_local20 = new Long(0, 0); var tmp26_local21 = new Long(0, 0); var tmp27_local22 = new Long(0, 0); var tmp28_local23 = null; var tmp29_local24 = new Long(0, 0); var tmp30_local25 = 0; var tmp31_local26 = 0; var tmp32_local27 = null; var tmp33_local28 = new Long(0, 0); var tmp34_local29 = null; var tmp35_local30 = null; var tmp36_local31 = null; var tmp37_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp37_input.decodeSequentially_xlblqy_k$()) { tmp5_local0 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp6_local1 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp7_local2 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp8_local3 = tmp37_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp9_local4 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp10_local5 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp11_local6 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp12_local7 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp13_local8 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp14_local9 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp15_local10 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp16_local11 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp17_local12 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp18_local13 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp19_local14 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp20_local15 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp21_local16 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp22_local17 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp23_local18 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp24_local19 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp25_local20 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp26_local21 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp27_local22 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp28_local23 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp29_local24 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp30_local25 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp31_local26 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp32_local27 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; tmp33_local28 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; tmp34_local29 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_53(), tmp34_local29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; tmp35_local30 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_89(), tmp35_local30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; tmp36_local31 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_88(), tmp36_local31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; } else while (tmp1_flag) { tmp2_index = tmp37_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp5_local0 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp6_local1 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp6_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp7_local2 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp7_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp8_local3 = tmp37_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp9_local4 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp10_local5 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp11_local6 = tmp37_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp12_local7 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp13_local8 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp14_local9 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp15_local10 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp16_local11 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp17_local12 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp18_local13 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp19_local14 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp20_local15 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp21_local16 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp22_local17 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp23_local18 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp23_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp24_local19 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp25_local20 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp26_local21 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp27_local22 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp28_local23 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp29_local24 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp30_local25 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp31_local26 = tmp37_input.decodeIntElement_941u6a_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp32_local27 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, StringSerializer_getInstance(), tmp32_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; case 28: tmp33_local28 = tmp37_input.decodeLongElement_994anb_k$(tmp0_desc, 28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; break; case 29: tmp34_local29 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 29, $serializer_getInstance_53(), tmp34_local29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; break; case 30: tmp35_local30 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 30, $serializer_getInstance_89(), tmp35_local30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; break; case 31: tmp36_local31 = tmp37_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 31, $serializer_getInstance_88(), tmp36_local31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp37_input.endStructure_1xqz0n_k$(tmp0_desc); return ClazzWithListDisplayDetails_init_$Create$(tmp3_bitMask0, 0, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, null); }; protoOf($serializer_62).serialize_5oqtd0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_clazzUid_k8pnbz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_clazzUid_k8pnbz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_clazzName_brsrx6_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_clazzName_brsrx6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_clazzDesc_brmh5s_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_clazzDesc_brmh5s_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !equals(value.get_attendanceAverage_q3uit1_k$(), -1.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 3, value.get_attendanceAverage_q3uit1_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_clazzHolidayUMCalendarUid_diy12p_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_clazzHolidayUMCalendarUid_diy12p_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_clazzScheuleUMCalendarUid_pyne08_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_clazzScheuleUMCalendarUid_pyne08_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_isClazzActive_pdk9bp_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.get_isClazzActive_pdk9bp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_clazzLocationUid_64jec4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_clazzLocationUid_64jec4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_clazzStartTime_lc1vds_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_clazzStartTime_lc1vds_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.get_clazzEndTime_sxjf8n_k$().equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.get_clazzEndTime_sxjf8n_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.get_clazzFeatures_6nf4ac_k$().equals(Companion_getInstance_57().get_CLAZZ_FEATURE_ATTENDANCE_h2pzj6_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.get_clazzFeatures_6nf4ac_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_clazzSchoolUid_g4bglp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_clazzSchoolUid_g4bglp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.get_clazzEnrolmentPolicy_pv7kzr_k$() === Companion_getInstance_57().get_CLAZZ_ENROLMENT_POLICY_OPEN_3ryjuc_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.get_clazzEnrolmentPolicy_pv7kzr_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_clazzTerminologyUid_4xpw4_k$().equals(new Long(25966, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_clazzTerminologyUid_4xpw4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.get_clazzMasterChangeSeqNum_7fn794_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.get_clazzMasterChangeSeqNum_7fn794_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.get_clazzLocalChangeSeqNum_9hlwk3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.get_clazzLocalChangeSeqNum_9hlwk3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.get_clazzLastChangedBy_wnz9za_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.get_clazzLastChangedBy_wnz9za_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.get_clazzLct_k8pu4y_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.get_clazzLct_k8pu4y_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.get_clazzTimeZone_yu1krs_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, StringSerializer_getInstance(), value.get_clazzTimeZone_yu1krs_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.get_clazzStudentsPersonGroupUid_myynpp_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.get_clazzStudentsPersonGroupUid_myynpp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.get_clazzTeachersPersonGroupUid_5xdfqy_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.get_clazzTeachersPersonGroupUid_5xdfqy_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.get_clazzPendingStudentsPersonGroupUid_4kclja_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.get_clazzParentsPersonGroupUid_gibku8_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 22, value.get_clazzParentsPersonGroupUid_gibku8_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.get_clazzCode_brm18c_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.get_clazzCode_brm18c_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.get_clazzOwnerPersonUid_iplxz_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.get_clazzOwnerPersonUid_iplxz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.numStudents_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 25, value.numStudents_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !(value.numTeachers_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 26, value.numTeachers_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.teacherNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, StringSerializer_getInstance(), value.teacherNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !value.lastRecorded_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 28, value.lastRecorded_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.clazzActiveEnrolment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 29, $serializer_getInstance_53(), value.clazzActiveEnrolment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !(value.terminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 30, $serializer_getInstance_89(), value.terminology_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !(value.coursePicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 31, $serializer_getInstance_88(), value.coursePicture_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_62).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_5oqtd0_k$(encoder, value instanceof ClazzWithListDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_62; function $serializer_getInstance_62() { if ($serializer_instance_62 == null) new $serializer_62(); return $serializer_instance_62; } function ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, $this) { if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { // Inline function 'kotlin.intArrayOf' call var tmp = new Int32Array([seen1, seen2]); // Inline function 'kotlin.intArrayOf' call var tmp$ret$1 = new Int32Array([0, 0]); throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_62().descriptor_1); } Clazz_init_$Init$_1(seen1, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, serializationConstructorMarker, $this); if (0 === (seen1 & 33554432)) $this.numStudents_1 = 0; else $this.numStudents_1 = numStudents; if (0 === (seen1 & 67108864)) $this.numTeachers_1 = 0; else $this.numTeachers_1 = numTeachers; if (0 === (seen1 & 134217728)) $this.teacherNames_1 = null; else $this.teacherNames_1 = teacherNames; if (0 === (seen1 & 268435456)) $this.lastRecorded_1 = new Long(0, 0); else $this.lastRecorded_1 = lastRecorded; if (0 === (seen1 & 536870912)) $this.clazzActiveEnrolment_1 = null; else $this.clazzActiveEnrolment_1 = clazzActiveEnrolment; if (0 === (seen1 & 1073741824)) $this.terminology_1 = null; else $this.terminology_1 = terminology; if (0 === (seen1 & -2147483648)) $this.coursePicture_1 = null; else $this.coursePicture_1 = coursePicture; return $this; } function ClazzWithListDisplayDetails_init_$Create$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker) { return ClazzWithListDisplayDetails_init_$Init$(seen1, seen2, clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode, clazzOwnerPersonUid, numStudents, numTeachers, teacherNames, lastRecorded, clazzActiveEnrolment, terminology, coursePicture, serializationConstructorMarker, objectCreate(protoOf(ClazzWithListDisplayDetails))); } function ClazzWithListDisplayDetails() { Companion_getInstance_69(); Clazz.call(this); this.numStudents_1 = 0; this.numTeachers_1 = 0; this.teacherNames_1 = null; this.lastRecorded_1 = new Long(0, 0); this.clazzActiveEnrolment_1 = null; this.terminology_1 = null; this.coursePicture_1 = null; } protoOf(ClazzWithListDisplayDetails).set_numStudents_sx9y7t_k$ = function (_set____db54di) { this.numStudents_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_numStudents_si1t5h_k$ = function () { return this.numStudents_1; }; protoOf(ClazzWithListDisplayDetails).set_numTeachers_35yqj6_k$ = function (_set____db54di) { this.numTeachers_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_numTeachers_u9gdf6_k$ = function () { return this.numTeachers_1; }; protoOf(ClazzWithListDisplayDetails).set_teacherNames_eipx1w_k$ = function (_set____db54di) { this.teacherNames_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_teacherNames_2yyfv3_k$ = function () { return this.teacherNames_1; }; protoOf(ClazzWithListDisplayDetails).set_lastRecorded_46vqe3_k$ = function (_set____db54di) { this.lastRecorded_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_lastRecorded_xwirhr_k$ = function () { return this.lastRecorded_1; }; protoOf(ClazzWithListDisplayDetails).set_clazzActiveEnrolment_bpyzvp_k$ = function (_set____db54di) { this.clazzActiveEnrolment_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_clazzActiveEnrolment_qyeb7z_k$ = function () { return this.clazzActiveEnrolment_1; }; protoOf(ClazzWithListDisplayDetails).set_terminology_opn48q_k$ = function (_set____db54di) { this.terminology_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_terminology_hmih12_k$ = function () { return this.terminology_1; }; protoOf(ClazzWithListDisplayDetails).set_coursePicture_h9sgol_k$ = function (_set____db54di) { this.coursePicture_1 = _set____db54di; }; protoOf(ClazzWithListDisplayDetails).get_coursePicture_gcf86y_k$ = function () { return this.coursePicture_1; }; protoOf(ClazzWithListDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof ClazzWithListDisplayDetails)) return false; if (!protoOf(Clazz).equals.call(this, other)) return false; if (!(this.numStudents_1 === other.numStudents_1)) return false; if (!(this.numTeachers_1 === other.numTeachers_1)) return false; if (!(this.teacherNames_1 == other.teacherNames_1)) return false; if (!this.lastRecorded_1.equals(other.lastRecorded_1)) return false; if (!equals(this.clazzActiveEnrolment_1, other.clazzActiveEnrolment_1)) return false; if (!equals(this.terminology_1, other.terminology_1)) return false; return equals(this.coursePicture_1, other.coursePicture_1); }; protoOf(ClazzWithListDisplayDetails).hashCode = function () { var result = protoOf(Clazz).hashCode.call(this); result = imul(31, result) + this.numStudents_1 | 0; result = imul(31, result) + this.numTeachers_1 | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.teacherNames_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; result = imul(31, result) + this.lastRecorded_1.hashCode() | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.clazzActiveEnrolment_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : hashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.terminology_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : hashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.coursePicture_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : tmp6_safe_receiver.hashCode(); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; return result; }; function Companion_66() { Companion_instance_66 = this; this.TABLE_ID_1 = 208; this.COMMENTS_STATUS_APPROVED_1 = 0; } protoOf(Companion_66).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_66).get_COMMENTS_STATUS_APPROVED_sk8l42_k$ = function () { return this.COMMENTS_STATUS_APPROVED_1; }; protoOf(Companion_66).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_63(); }; var Companion_instance_66; function Companion_getInstance_70() { if (Companion_instance_66 == null) new Companion_66(); return Companion_instance_66; } function $serializer_63() { $serializer_instance_63 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Comments', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('commentsUid', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsText', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsFromPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsForSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsFromSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsFlagged', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsDateTimeAdded', true); tmp0_serialDesc.addElement_5pzumi_k$('commentsLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_63).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_63).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_63).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = false; var tmp12_local8 = false; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return Comments_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null); }; protoOf($serializer_63).serialize_cyve9o_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.commentsUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.commentsUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.commentsText_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.commentsText_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.commentsEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.commentsEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.commentsStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.commentsStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.commentsFromPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.commentsFromPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.commentsForSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.commentsForSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.commentsFromSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.commentsFromSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.commentsFlagged_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.commentsFlagged_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.commentsDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.commentsDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.commentsDateTimeAdded_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.commentsDateTimeAdded_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.commentsLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.commentsLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_63).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_cyve9o_k$(encoder, value instanceof Comments ? value : THROW_CCE()); }; var $serializer_instance_63; function $serializer_getInstance_63() { if ($serializer_instance_63 == null) new $serializer_63(); return $serializer_instance_63; } function Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_63().descriptor_1); } if (0 === (seen1 & 1)) $this.commentsUid_1 = new Long(0, 0); else $this.commentsUid_1 = commentsUid; if (0 === (seen1 & 2)) $this.commentsText_1 = null; else $this.commentsText_1 = commentsText; if (0 === (seen1 & 4)) $this.commentsEntityUid_1 = new Long(0, 0); else $this.commentsEntityUid_1 = commentsEntityUid; if (0 === (seen1 & 8)) $this.commentsStatus_1 = 0; else $this.commentsStatus_1 = commentsStatus; if (0 === (seen1 & 16)) $this.commentsFromPersonUid_1 = new Long(0, 0); else $this.commentsFromPersonUid_1 = commentsFromPersonUid; if (0 === (seen1 & 32)) $this.commentsForSubmitterUid_1 = new Long(0, 0); else $this.commentsForSubmitterUid_1 = commentsForSubmitterUid; if (0 === (seen1 & 64)) $this.commentsFromSubmitterUid_1 = new Long(0, 0); else $this.commentsFromSubmitterUid_1 = commentsFromSubmitterUid; if (0 === (seen1 & 128)) $this.commentsFlagged_1 = false; else $this.commentsFlagged_1 = commentsFlagged; if (0 === (seen1 & 256)) $this.commentsDeleted_1 = false; else $this.commentsDeleted_1 = commentsDeleted; if (0 === (seen1 & 512)) $this.commentsDateTimeAdded_1 = new Long(0, 0); else $this.commentsDateTimeAdded_1 = commentsDateTimeAdded; if (0 === (seen1 & 1024)) $this.commentsLct_1 = new Long(0, 0); else $this.commentsLct_1 = commentsLct; return $this; } function Comments_init_$Create$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker) { return Comments_init_$Init$(seen1, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, serializationConstructorMarker, objectCreate(protoOf(Comments))); } function Comments(commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) { Companion_getInstance_70(); commentsUid = commentsUid === VOID ? new Long(0, 0) : commentsUid; commentsText = commentsText === VOID ? null : commentsText; commentsEntityUid = commentsEntityUid === VOID ? new Long(0, 0) : commentsEntityUid; commentsStatus = commentsStatus === VOID ? 0 : commentsStatus; commentsFromPersonUid = commentsFromPersonUid === VOID ? new Long(0, 0) : commentsFromPersonUid; commentsForSubmitterUid = commentsForSubmitterUid === VOID ? new Long(0, 0) : commentsForSubmitterUid; commentsFromSubmitterUid = commentsFromSubmitterUid === VOID ? new Long(0, 0) : commentsFromSubmitterUid; commentsFlagged = commentsFlagged === VOID ? false : commentsFlagged; commentsDeleted = commentsDeleted === VOID ? false : commentsDeleted; commentsDateTimeAdded = commentsDateTimeAdded === VOID ? new Long(0, 0) : commentsDateTimeAdded; commentsLct = commentsLct === VOID ? new Long(0, 0) : commentsLct; this.commentsUid_1 = commentsUid; this.commentsText_1 = commentsText; this.commentsEntityUid_1 = commentsEntityUid; this.commentsStatus_1 = commentsStatus; this.commentsFromPersonUid_1 = commentsFromPersonUid; this.commentsForSubmitterUid_1 = commentsForSubmitterUid; this.commentsFromSubmitterUid_1 = commentsFromSubmitterUid; this.commentsFlagged_1 = commentsFlagged; this.commentsDeleted_1 = commentsDeleted; this.commentsDateTimeAdded_1 = commentsDateTimeAdded; this.commentsLct_1 = commentsLct; } protoOf(Comments).set_commentsUid_j6laht_k$ = function (_set____db54di) { this.commentsUid_1 = _set____db54di; }; protoOf(Comments).get_commentsUid_mbzbu5_k$ = function () { return this.commentsUid_1; }; protoOf(Comments).set_commentsText_l77wpl_k$ = function (_set____db54di) { this.commentsText_1 = _set____db54di; }; protoOf(Comments).get_commentsText_hzoney_k$ = function () { return this.commentsText_1; }; protoOf(Comments).set_commentsEntityUid_efls2q_k$ = function (_set____db54di) { this.commentsEntityUid_1 = _set____db54di; }; protoOf(Comments).get_commentsEntityUid_550xjk_k$ = function () { return this.commentsEntityUid_1; }; protoOf(Comments).set_commentsStatus_9c8691_k$ = function (_set____db54di) { this.commentsStatus_1 = _set____db54di; }; protoOf(Comments).get_commentsStatus_stgemn_k$ = function () { return this.commentsStatus_1; }; protoOf(Comments).set_commentsFromPersonUid_5ww49q_k$ = function (_set____db54di) { this.commentsFromPersonUid_1 = _set____db54di; }; protoOf(Comments).get_commentsFromPersonUid_xf607g_k$ = function () { return this.commentsFromPersonUid_1; }; protoOf(Comments).set_commentsForSubmitterUid_kngio1_k$ = function (_set____db54di) { this.commentsForSubmitterUid_1 = _set____db54di; }; protoOf(Comments).get_commentsForSubmitterUid_1gyutp_k$ = function () { return this.commentsForSubmitterUid_1; }; protoOf(Comments).set_commentsFromSubmitterUid_brso5g_k$ = function (_set____db54di) { this.commentsFromSubmitterUid_1 = _set____db54di; }; protoOf(Comments).get_commentsFromSubmitterUid_xf26um_k$ = function () { return this.commentsFromSubmitterUid_1; }; protoOf(Comments).set_commentsFlagged_5zmmto_k$ = function (_set____db54di) { this.commentsFlagged_1 = _set____db54di; }; protoOf(Comments).get_commentsFlagged_bjr7s3_k$ = function () { return this.commentsFlagged_1; }; protoOf(Comments).set_commentsDeleted_pcy4od_k$ = function (_set____db54di) { this.commentsDeleted_1 = _set____db54di; }; protoOf(Comments).get_commentsDeleted_qz9n6k_k$ = function () { return this.commentsDeleted_1; }; protoOf(Comments).set_commentsDateTimeAdded_w1vh7a_k$ = function (_set____db54di) { this.commentsDateTimeAdded_1 = _set____db54di; }; protoOf(Comments).get_commentsDateTimeAdded_giu1d4_k$ = function () { return this.commentsDateTimeAdded_1; }; protoOf(Comments).set_commentsLct_ataij2_k$ = function (_set____db54di) { this.commentsLct_1 = _set____db54di; }; protoOf(Comments).get_commentsLct_mbzin4_k$ = function () { return this.commentsLct_1; }; protoOf(Comments).component1_7eebsc_k$ = function () { return this.commentsUid_1; }; protoOf(Comments).component2_7eebsb_k$ = function () { return this.commentsText_1; }; protoOf(Comments).component3_7eebsa_k$ = function () { return this.commentsEntityUid_1; }; protoOf(Comments).component4_7eebs9_k$ = function () { return this.commentsStatus_1; }; protoOf(Comments).component5_7eebs8_k$ = function () { return this.commentsFromPersonUid_1; }; protoOf(Comments).component6_7eebs7_k$ = function () { return this.commentsForSubmitterUid_1; }; protoOf(Comments).component7_7eebs6_k$ = function () { return this.commentsFromSubmitterUid_1; }; protoOf(Comments).component8_7eebs5_k$ = function () { return this.commentsFlagged_1; }; protoOf(Comments).component9_7eebs4_k$ = function () { return this.commentsDeleted_1; }; protoOf(Comments).component10_gazzfo_k$ = function () { return this.commentsDateTimeAdded_1; }; protoOf(Comments).component11_gazzfn_k$ = function () { return this.commentsLct_1; }; protoOf(Comments).copy_iiedv2_k$ = function (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) { return new Comments(commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct); }; protoOf(Comments).copy$default_qhyi10_k$ = function (commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct, $super) { commentsUid = commentsUid === VOID ? this.commentsUid_1 : commentsUid; commentsText = commentsText === VOID ? this.commentsText_1 : commentsText; commentsEntityUid = commentsEntityUid === VOID ? this.commentsEntityUid_1 : commentsEntityUid; commentsStatus = commentsStatus === VOID ? this.commentsStatus_1 : commentsStatus; commentsFromPersonUid = commentsFromPersonUid === VOID ? this.commentsFromPersonUid_1 : commentsFromPersonUid; commentsForSubmitterUid = commentsForSubmitterUid === VOID ? this.commentsForSubmitterUid_1 : commentsForSubmitterUid; commentsFromSubmitterUid = commentsFromSubmitterUid === VOID ? this.commentsFromSubmitterUid_1 : commentsFromSubmitterUid; commentsFlagged = commentsFlagged === VOID ? this.commentsFlagged_1 : commentsFlagged; commentsDeleted = commentsDeleted === VOID ? this.commentsDeleted_1 : commentsDeleted; commentsDateTimeAdded = commentsDateTimeAdded === VOID ? this.commentsDateTimeAdded_1 : commentsDateTimeAdded; commentsLct = commentsLct === VOID ? this.commentsLct_1 : commentsLct; return $super === VOID ? this.copy_iiedv2_k$(commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct) : $super.copy_iiedv2_k$.call(this, commentsUid, commentsText, commentsEntityUid, commentsStatus, commentsFromPersonUid, commentsForSubmitterUid, commentsFromSubmitterUid, commentsFlagged, commentsDeleted, commentsDateTimeAdded, commentsLct); }; protoOf(Comments).toString = function () { return 'Comments(commentsUid=' + this.commentsUid_1.toString() + ', commentsText=' + this.commentsText_1 + ', commentsEntityUid=' + this.commentsEntityUid_1.toString() + ', commentsStatus=' + this.commentsStatus_1 + ', commentsFromPersonUid=' + this.commentsFromPersonUid_1.toString() + ', commentsForSubmitterUid=' + this.commentsForSubmitterUid_1.toString() + ', commentsFromSubmitterUid=' + this.commentsFromSubmitterUid_1.toString() + ', commentsFlagged=' + this.commentsFlagged_1 + ', commentsDeleted=' + this.commentsDeleted_1 + ', commentsDateTimeAdded=' + this.commentsDateTimeAdded_1.toString() + ', commentsLct=' + this.commentsLct_1.toString() + ')'; }; protoOf(Comments).hashCode = function () { var result = this.commentsUid_1.hashCode(); result = imul(result, 31) + (this.commentsText_1 == null ? 0 : getStringHashCode(this.commentsText_1)) | 0; result = imul(result, 31) + this.commentsEntityUid_1.hashCode() | 0; result = imul(result, 31) + this.commentsStatus_1 | 0; result = imul(result, 31) + this.commentsFromPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.commentsForSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + this.commentsFromSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.commentsFlagged_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.commentsDeleted_1) | 0; result = imul(result, 31) + this.commentsDateTimeAdded_1.hashCode() | 0; result = imul(result, 31) + this.commentsLct_1.hashCode() | 0; return result; }; protoOf(Comments).equals = function (other) { if (this === other) return true; if (!(other instanceof Comments)) return false; var tmp0_other_with_cast = other instanceof Comments ? other : THROW_CCE(); if (!this.commentsUid_1.equals(tmp0_other_with_cast.commentsUid_1)) return false; if (!(this.commentsText_1 == tmp0_other_with_cast.commentsText_1)) return false; if (!this.commentsEntityUid_1.equals(tmp0_other_with_cast.commentsEntityUid_1)) return false; if (!(this.commentsStatus_1 === tmp0_other_with_cast.commentsStatus_1)) return false; if (!this.commentsFromPersonUid_1.equals(tmp0_other_with_cast.commentsFromPersonUid_1)) return false; if (!this.commentsForSubmitterUid_1.equals(tmp0_other_with_cast.commentsForSubmitterUid_1)) return false; if (!this.commentsFromSubmitterUid_1.equals(tmp0_other_with_cast.commentsFromSubmitterUid_1)) return false; if (!(this.commentsFlagged_1 === tmp0_other_with_cast.commentsFlagged_1)) return false; if (!(this.commentsDeleted_1 === tmp0_other_with_cast.commentsDeleted_1)) return false; if (!this.commentsDateTimeAdded_1.equals(tmp0_other_with_cast.commentsDateTimeAdded_1)) return false; if (!this.commentsLct_1.equals(tmp0_other_with_cast.commentsLct_1)) return false; return true; }; function Companion_67() { Companion_instance_67 = this; this.TABLE_ID_1 = 1; } protoOf(Companion_67).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_67).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_64(); }; var Companion_instance_67; function Companion_getInstance_71() { if (Companion_instance_67 == null) new Companion_67(); return Companion_instance_67; } function $serializer_64() { $serializer_instance_64 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategory', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('contentCategoryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ctnCatContentCategorySchemaUid', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategoryLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategoryMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategoryLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategoryLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_64).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_64).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_64).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentCategory_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_64).serialize_sckjhl_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.contentCategoryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.contentCategoryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.ctnCatContentCategorySchemaUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.ctnCatContentCategorySchemaUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.contentCategoryLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.contentCategoryLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.contentCategoryMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.contentCategoryMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.contentCategoryLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.contentCategoryLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.contentCategoryLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.contentCategoryLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_64).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_sckjhl_k$(encoder, value instanceof ContentCategory ? value : THROW_CCE()); }; var $serializer_instance_64; function $serializer_getInstance_64() { if ($serializer_instance_64 == null) new $serializer_64(); return $serializer_instance_64; } function ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_64().descriptor_1); } if (0 === (seen1 & 1)) $this.contentCategoryUid_1 = new Long(0, 0); else $this.contentCategoryUid_1 = contentCategoryUid; if (0 === (seen1 & 2)) $this.ctnCatContentCategorySchemaUid_1 = new Long(0, 0); else $this.ctnCatContentCategorySchemaUid_1 = ctnCatContentCategorySchemaUid; if (0 === (seen1 & 4)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 8)) $this.contentCategoryLocalChangeSeqNum_1 = new Long(0, 0); else $this.contentCategoryLocalChangeSeqNum_1 = contentCategoryLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.contentCategoryMasterChangeSeqNum_1 = new Long(0, 0); else $this.contentCategoryMasterChangeSeqNum_1 = contentCategoryMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.contentCategoryLastChangedBy_1 = 0; else $this.contentCategoryLastChangedBy_1 = contentCategoryLastChangedBy; if (0 === (seen1 & 64)) $this.contentCategoryLct_1 = new Long(0, 0); else $this.contentCategoryLct_1 = contentCategoryLct; return $this; } function ContentCategory_init_$Create$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker) { return ContentCategory_init_$Init$(seen1, contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategory))); } function ContentCategory() { Companion_getInstance_71(); this.contentCategoryUid_1 = new Long(0, 0); this.ctnCatContentCategorySchemaUid_1 = new Long(0, 0); this.name_1 = null; this.contentCategoryLocalChangeSeqNum_1 = new Long(0, 0); this.contentCategoryMasterChangeSeqNum_1 = new Long(0, 0); this.contentCategoryLastChangedBy_1 = 0; this.contentCategoryLct_1 = new Long(0, 0); } protoOf(ContentCategory).set_contentCategoryUid_6aaso8_k$ = function (_set____db54di) { this.contentCategoryUid_1 = _set____db54di; }; protoOf(ContentCategory).get_contentCategoryUid_bl11ry_k$ = function () { return this.contentCategoryUid_1; }; protoOf(ContentCategory).set_ctnCatContentCategorySchemaUid_wwv5ps_k$ = function (_set____db54di) { this.ctnCatContentCategorySchemaUid_1 = _set____db54di; }; protoOf(ContentCategory).get_ctnCatContentCategorySchemaUid_9uofqy_k$ = function () { return this.ctnCatContentCategorySchemaUid_1; }; protoOf(ContentCategory).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(ContentCategory).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(ContentCategory).set_contentCategoryLocalChangeSeqNum_12rgzu_k$ = function (_set____db54di) { this.contentCategoryLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentCategory).get_contentCategoryLocalChangeSeqNum_wbgrck_k$ = function () { return this.contentCategoryLocalChangeSeqNum_1; }; protoOf(ContentCategory).set_contentCategoryMasterChangeSeqNum_n526nf_k$ = function (_set____db54di) { this.contentCategoryMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentCategory).get_contentCategoryMasterChangeSeqNum_a178hl_k$ = function () { return this.contentCategoryMasterChangeSeqNum_1; }; protoOf(ContentCategory).set_contentCategoryLastChangedBy_yh4bjn_k$ = function (_set____db54di) { this.contentCategoryLastChangedBy_1 = _set____db54di; }; protoOf(ContentCategory).get_contentCategoryLastChangedBy_v71fbt_k$ = function () { return this.contentCategoryLastChangedBy_1; }; protoOf(ContentCategory).set_contentCategoryLct_enlkmz_k$ = function (_set____db54di) { this.contentCategoryLct_1 = _set____db54di; }; protoOf(ContentCategory).get_contentCategoryLct_bl18kx_k$ = function () { return this.contentCategoryLct_1; }; protoOf(ContentCategory).equals = function (other) { if (this === other) return true; var category = (other == null ? true : other instanceof ContentCategory) ? other : THROW_CCE(); if (!this.contentCategoryUid_1.equals(ensureNotNull(category).contentCategoryUid_1)) return false; if (!this.ctnCatContentCategorySchemaUid_1.equals(category.ctnCatContentCategorySchemaUid_1)) return false; return !(this.name_1 == null) ? this.name_1 == category.name_1 : category.name_1 == null; }; protoOf(ContentCategory).hashCode = function () { var result = this.contentCategoryUid_1.xor_qzz94j_k$(this.contentCategoryUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + this.ctnCatContentCategorySchemaUid_1.xor_qzz94j_k$(this.ctnCatContentCategorySchemaUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; result = imul(31, result) + (!(this.name_1 == null) ? getStringHashCode(ensureNotNull(this.name_1)) : 0) | 0; return result; }; function Companion_68() { Companion_instance_68 = this; this.TABLE_ID_1 = 2; } protoOf(Companion_68).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_68).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_65(); }; var Companion_instance_68; function Companion_getInstance_72() { if (Companion_instance_68 == null) new Companion_68(); return Companion_instance_68; } function $serializer_65() { $serializer_instance_65 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentCategorySchema', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('contentCategorySchemaUid', true); tmp0_serialDesc.addElement_5pzumi_k$('schemaName', true); tmp0_serialDesc.addElement_5pzumi_k$('schemaUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategorySchemaLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategorySchemaMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategorySchemaLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('contentCategorySchemaLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_65).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_65).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_65).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentCategorySchema_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_65).serialize_cnvj0q_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.contentCategorySchemaUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.contentCategorySchemaUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.schemaName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.schemaName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.schemaUrl_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.schemaUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.contentCategorySchemaLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.contentCategorySchemaLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.contentCategorySchemaMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.contentCategorySchemaMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.contentCategorySchemaLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.contentCategorySchemaLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.contentCategorySchemaLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.contentCategorySchemaLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_65).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_cnvj0q_k$(encoder, value instanceof ContentCategorySchema ? value : THROW_CCE()); }; var $serializer_instance_65; function $serializer_getInstance_65() { if ($serializer_instance_65 == null) new $serializer_65(); return $serializer_instance_65; } function ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_65().descriptor_1); } if (0 === (seen1 & 1)) $this.contentCategorySchemaUid_1 = new Long(0, 0); else $this.contentCategorySchemaUid_1 = contentCategorySchemaUid; if (0 === (seen1 & 2)) $this.schemaName_1 = null; else $this.schemaName_1 = schemaName; if (0 === (seen1 & 4)) $this.schemaUrl_1 = null; else $this.schemaUrl_1 = schemaUrl; if (0 === (seen1 & 8)) $this.contentCategorySchemaLocalChangeSeqNum_1 = new Long(0, 0); else $this.contentCategorySchemaLocalChangeSeqNum_1 = contentCategorySchemaLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.contentCategorySchemaMasterChangeSeqNum_1 = new Long(0, 0); else $this.contentCategorySchemaMasterChangeSeqNum_1 = contentCategorySchemaMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.contentCategorySchemaLastChangedBy_1 = 0; else $this.contentCategorySchemaLastChangedBy_1 = contentCategorySchemaLastChangedBy; if (0 === (seen1 & 64)) $this.contentCategorySchemaLct_1 = new Long(0, 0); else $this.contentCategorySchemaLct_1 = contentCategorySchemaLct; return $this; } function ContentCategorySchema_init_$Create$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker) { return ContentCategorySchema_init_$Init$(seen1, contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct, serializationConstructorMarker, objectCreate(protoOf(ContentCategorySchema))); } function ContentCategorySchema() { Companion_getInstance_72(); this.contentCategorySchemaUid_1 = new Long(0, 0); this.schemaName_1 = null; this.schemaUrl_1 = null; this.contentCategorySchemaLocalChangeSeqNum_1 = new Long(0, 0); this.contentCategorySchemaMasterChangeSeqNum_1 = new Long(0, 0); this.contentCategorySchemaLastChangedBy_1 = 0; this.contentCategorySchemaLct_1 = new Long(0, 0); } protoOf(ContentCategorySchema).set_contentCategorySchemaUid_e4p507_k$ = function (_set____db54di) { this.contentCategorySchemaUid_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_contentCategorySchemaUid_j392ox_k$ = function () { return this.contentCategorySchemaUid_1; }; protoOf(ContentCategorySchema).set_schemaName_rihn9q_k$ = function (_set____db54di) { this.schemaName_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_schemaName_rlfmaz_k$ = function () { return this.schemaName_1; }; protoOf(ContentCategorySchema).set_schemaUrl_2ssgii_k$ = function (_set____db54di) { this.schemaUrl_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_schemaUrl_5zf52d_k$ = function () { return this.schemaUrl_1; }; protoOf(ContentCategorySchema).set_contentCategorySchemaLocalChangeSeqNum_fi539l_k$ = function (_set____db54di) { this.contentCategorySchemaLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_contentCategorySchemaLocalChangeSeqNum_fiv0rx_k$ = function () { return this.contentCategorySchemaLocalChangeSeqNum_1; }; protoOf(ContentCategorySchema).set_contentCategorySchemaMasterChangeSeqNum_230c3u_k$ = function (_set____db54di) { this.contentCategorySchemaMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_contentCategorySchemaMasterChangeSeqNum_1hzauw_k$ = function () { return this.contentCategorySchemaMasterChangeSeqNum_1; }; protoOf(ContentCategorySchema).set_contentCategorySchemaLastChangedBy_zgg9ma_k$ = function (_set____db54di) { this.contentCategorySchemaLastChangedBy_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_contentCategorySchemaLastChangedBy_ev2nwa_k$ = function () { return this.contentCategorySchemaLastChangedBy_1; }; protoOf(ContentCategorySchema).set_contentCategorySchemaLct_5red1g_k$ = function (_set____db54di) { this.contentCategorySchemaLct_1 = _set____db54di; }; protoOf(ContentCategorySchema).get_contentCategorySchemaLct_j38vvy_k$ = function () { return this.contentCategorySchemaLct_1; }; protoOf(ContentCategorySchema).equals = function (other) { if (this === other) return true; var schema = (other == null ? true : other instanceof ContentCategorySchema) ? other : THROW_CCE(); if (!this.contentCategorySchemaUid_1.equals(ensureNotNull(schema).contentCategorySchemaUid_1)) return false; if (!(this.schemaName_1 == null) ? !(this.schemaName_1 == schema.schemaName_1) : !(schema.schemaName_1 == null)) return false; return !(this.schemaUrl_1 == null) ? this.schemaUrl_1 == schema.schemaUrl_1 : schema.schemaUrl_1 == null; }; protoOf(ContentCategorySchema).hashCode = function () { var result = this.contentCategorySchemaUid_1.xor_qzz94j_k$(this.contentCategorySchemaUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + (!(this.schemaName_1 == null) ? getStringHashCode(ensureNotNull(this.schemaName_1)) : 0) | 0; result = imul(31, result) + (!(this.schemaUrl_1 == null) ? getStringHashCode(ensureNotNull(this.schemaUrl_1)) : 0) | 0; return result; }; function ContentEntry_init_$Init$(title, description, leaf, publik, $this) { ContentEntry.call($this); $this.title_1 = title; $this.description_1 = description; $this.leaf_1 = leaf; $this.publik_1 = publik; return $this; } function ContentEntry_init_$Create$(title, description, leaf, publik) { return ContentEntry_init_$Init$(title, description, leaf, publik, objectCreate(protoOf(ContentEntry))); } function Companion_69() { Companion_instance_69 = this; this.TABLE_ID_1 = 42; this.LICENSE_TYPE_UNSPECIFIED_1 = 0; this.LICENSE_TYPE_CC_BY_1 = 1; this.LICENSE_TYPE_CC_BY_SA_1 = 2; this.LICENSE_TYPE_CC_BY_SA_NC_1 = 3; this.LICENSE_TYPE_CC_BY_NC_1 = 4; this.ALL_RIGHTS_RESERVED_1 = 5; this.LICENSE_TYPE_CC_BY_NC_SA_1 = 6; this.LICENSE_TYPE_PUBLIC_DOMAIN_1 = 7; this.LICENSE_TYPE_OTHER_1 = 8; this.LICENSE_TYPE_CC_BY_ND_1 = 10; this.LICENSE_TYPE_CC_BY_NC_ND_1 = 11; this.LICENSE_TYPE_CC_0__1 = 9; this.TYPE_UNDEFINED_1 = 0; this.TYPE_COLLECTION_1 = 1; this.TYPE_EBOOK_1 = 2; this.TYPE_INTERACTIVE_EXERCISE_1 = 3; this.TYPE_VIDEO_1 = 4; this.TYPE_AUDIO_1 = 5; this.TYPE_DOCUMENT_1 = 6; this.TYPE_ARTICLE_1 = 7; this.TYPE_PDF_1 = 8; this.FLAG_IMPORTED_1 = 1; this.COMPLETION_CRITERIA_AUTOMATIC_1 = 0; this.COMPLETION_CRITERIA_MIN_SCORE_1 = 1; this.COMPLETION_CRITERIA_MARKED_BY_STUDENT_1 = 2; this.OWNER_TYPE_LIBRARY_1 = 1; this.OWNER_TYPE_COURSE_1 = 2; } protoOf(Companion_69).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_69).get_LICENSE_TYPE_UNSPECIFIED_hafl4p_k$ = function () { return this.LICENSE_TYPE_UNSPECIFIED_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_x2hlqg_k$ = function () { return this.LICENSE_TYPE_CC_BY_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_SA_z2dyh7_k$ = function () { return this.LICENSE_TYPE_CC_BY_SA_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_SA_NC_9ct7nl_k$ = function () { return this.LICENSE_TYPE_CC_BY_SA_NC_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_NC_z2dylg_k$ = function () { return this.LICENSE_TYPE_CC_BY_NC_1; }; protoOf(Companion_69).get_ALL_RIGHTS_RESERVED_z8200n_k$ = function () { return this.ALL_RIGHTS_RESERVED_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_NC_SA_9fiwj3_k$ = function () { return this.LICENSE_TYPE_CC_BY_NC_SA_1; }; protoOf(Companion_69).get_LICENSE_TYPE_PUBLIC_DOMAIN_r5wb5w_k$ = function () { return this.LICENSE_TYPE_PUBLIC_DOMAIN_1; }; protoOf(Companion_69).get_LICENSE_TYPE_OTHER_wvlotq_k$ = function () { return this.LICENSE_TYPE_OTHER_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_ND_z2dylf_k$ = function () { return this.LICENSE_TYPE_CC_BY_ND_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_BY_NC_ND_9fiwnb_k$ = function () { return this.LICENSE_TYPE_CC_BY_NC_ND_1; }; protoOf(Companion_69).get_LICENSE_TYPE_CC_0_12ei4x_k$ = function () { return this.LICENSE_TYPE_CC_0__1; }; protoOf(Companion_69).get_TYPE_UNDEFINED_6zk6t0_k$ = function () { return this.TYPE_UNDEFINED_1; }; protoOf(Companion_69).get_TYPE_COLLECTION_9qw3x6_k$ = function () { return this.TYPE_COLLECTION_1; }; protoOf(Companion_69).get_TYPE_EBOOK_f31atq_k$ = function () { return this.TYPE_EBOOK_1; }; protoOf(Companion_69).get_TYPE_INTERACTIVE_EXERCISE_xcz7kf_k$ = function () { return this.TYPE_INTERACTIVE_EXERCISE_1; }; protoOf(Companion_69).get_TYPE_VIDEO_etkk81_k$ = function () { return this.TYPE_VIDEO_1; }; protoOf(Companion_69).get_TYPE_AUDIO_f4wkqu_k$ = function () { return this.TYPE_AUDIO_1; }; protoOf(Companion_69).get_TYPE_DOCUMENT_lmp8dl_k$ = function () { return this.TYPE_DOCUMENT_1; }; protoOf(Companion_69).get_TYPE_ARTICLE_e853x6_k$ = function () { return this.TYPE_ARTICLE_1; }; protoOf(Companion_69).get_TYPE_PDF_u0vn56_k$ = function () { return this.TYPE_PDF_1; }; protoOf(Companion_69).get_FLAG_IMPORTED_aehmby_k$ = function () { return this.FLAG_IMPORTED_1; }; protoOf(Companion_69).get_COMPLETION_CRITERIA_AUTOMATIC_i3k6gr_k$ = function () { return this.COMPLETION_CRITERIA_AUTOMATIC_1; }; protoOf(Companion_69).get_COMPLETION_CRITERIA_MIN_SCORE_lqhbxd_k$ = function () { return this.COMPLETION_CRITERIA_MIN_SCORE_1; }; protoOf(Companion_69).get_COMPLETION_CRITERIA_MARKED_BY_STUDENT_9ahw80_k$ = function () { return this.COMPLETION_CRITERIA_MARKED_BY_STUDENT_1; }; protoOf(Companion_69).get_OWNER_TYPE_LIBRARY_sj7et1_k$ = function () { return this.OWNER_TYPE_LIBRARY_1; }; protoOf(Companion_69).get_OWNER_TYPE_COURSE_9nvo9h_k$ = function () { return this.OWNER_TYPE_COURSE_1; }; protoOf(Companion_69).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_66(); }; var Companion_instance_69; function Companion_getInstance_73() { if (Companion_instance_69 == null) new Companion_69(); return Companion_instance_69; } function $serializer_66() { $serializer_instance_66 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntry', this, 27); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('title', true); tmp0_serialDesc.addElement_5pzumi_k$('description', true); tmp0_serialDesc.addElement_5pzumi_k$('entryId', true); tmp0_serialDesc.addElement_5pzumi_k$('author', true); tmp0_serialDesc.addElement_5pzumi_k$('publisher', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseType', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseName', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('sourceUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('thumbnailUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('lastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('primaryLanguageUid', true); tmp0_serialDesc.addElement_5pzumi_k$('languageVariantUid', true); tmp0_serialDesc.addElement_5pzumi_k$('contentFlags', true); tmp0_serialDesc.addElement_5pzumi_k$('leaf', true); tmp0_serialDesc.addElement_5pzumi_k$('publik', true); tmp0_serialDesc.addElement_5pzumi_k$('ceInactive', true); tmp0_serialDesc.addElement_5pzumi_k$('completionCriteria', true); tmp0_serialDesc.addElement_5pzumi_k$('minScore', true); tmp0_serialDesc.addElement_5pzumi_k$('contentTypeFlag', true); tmp0_serialDesc.addElement_5pzumi_k$('contentOwner', true); tmp0_serialDesc.addElement_5pzumi_k$('contentOwnerType', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_66).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_66).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_66).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = false; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = 0; var tmp23_local19 = 0; var tmp24_local20 = 0; var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_local24 = new Long(0, 0); var tmp29_local25 = 0; var tmp30_local26 = new Long(0, 0); var tmp31_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp31_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; } else while (tmp1_flag) { tmp2_index = tmp31_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp31_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp31_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp31_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp31_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp31_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntry_init_$Create$_0(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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, null); }; protoOf($serializer_66).serialize_d3d3q9_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.contentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.contentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.title_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.title_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.description_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.description_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.entryId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.entryId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.author_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.author_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.publisher_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.publisher_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.licenseType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.licenseType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.licenseName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, StringSerializer_getInstance(), value.licenseName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.licenseUrl_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.licenseUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.sourceUrl_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, StringSerializer_getInstance(), value.sourceUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.thumbnailUrl_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, StringSerializer_getInstance(), value.thumbnailUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.lastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.lastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.primaryLanguageUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.primaryLanguageUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.languageVariantUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.languageVariantUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.contentFlags_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.contentFlags_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.leaf_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 15, value.leaf_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.publik_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.publik_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.ceInactive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.ceInactive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.completionCriteria_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 18, value.completionCriteria_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.minScore_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 19, value.minScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.contentTypeFlag_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 20, value.contentTypeFlag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.contentOwner_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.contentOwner_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.contentOwnerType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 22, value.contentOwnerType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !value.contentEntryLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 23, value.contentEntryLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.contentEntryMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.contentEntryMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.contentEntryLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 25, value.contentEntryLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !value.contentEntryLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 26, value.contentEntryLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_66).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_d3d3q9_k$(encoder, value instanceof ContentEntry ? value : THROW_CCE()); }; var $serializer_instance_66; function $serializer_getInstance_66() { if ($serializer_instance_66 == null) new $serializer_66(); return $serializer_instance_66; } function ContentEntry_init_$Init$_0(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_66().descriptor_1); } if (0 === (seen1 & 1)) $this.contentEntryUid_1 = new Long(0, 0); else $this.contentEntryUid_1 = contentEntryUid; if (0 === (seen1 & 2)) $this.title_1 = null; else $this.title_1 = title; if (0 === (seen1 & 4)) $this.description_1 = null; else $this.description_1 = description; if (0 === (seen1 & 8)) $this.entryId_1 = null; else $this.entryId_1 = entryId; if (0 === (seen1 & 16)) $this.author_1 = null; else $this.author_1 = author; if (0 === (seen1 & 32)) $this.publisher_1 = null; else $this.publisher_1 = publisher; if (0 === (seen1 & 64)) $this.licenseType_1 = 0; else $this.licenseType_1 = licenseType; if (0 === (seen1 & 128)) $this.licenseName_1 = null; else $this.licenseName_1 = licenseName; if (0 === (seen1 & 256)) $this.licenseUrl_1 = null; else $this.licenseUrl_1 = licenseUrl; if (0 === (seen1 & 512)) $this.sourceUrl_1 = null; else $this.sourceUrl_1 = sourceUrl; if (0 === (seen1 & 1024)) $this.thumbnailUrl_1 = null; else $this.thumbnailUrl_1 = thumbnailUrl; if (0 === (seen1 & 2048)) $this.lastModified_1 = new Long(0, 0); else $this.lastModified_1 = lastModified; if (0 === (seen1 & 4096)) $this.primaryLanguageUid_1 = new Long(0, 0); else $this.primaryLanguageUid_1 = primaryLanguageUid; if (0 === (seen1 & 8192)) $this.languageVariantUid_1 = new Long(0, 0); else $this.languageVariantUid_1 = languageVariantUid; if (0 === (seen1 & 16384)) $this.contentFlags_1 = 0; else $this.contentFlags_1 = contentFlags; if (0 === (seen1 & 32768)) $this.leaf_1 = false; else $this.leaf_1 = leaf; if (0 === (seen1 & 65536)) $this.publik_1 = true; else $this.publik_1 = publik; if (0 === (seen1 & 131072)) $this.ceInactive_1 = false; else $this.ceInactive_1 = ceInactive; if (0 === (seen1 & 262144)) $this.completionCriteria_1 = 0; else $this.completionCriteria_1 = completionCriteria; if (0 === (seen1 & 524288)) $this.minScore_1 = 0; else $this.minScore_1 = minScore; if (0 === (seen1 & 1048576)) $this.contentTypeFlag_1 = 0; else $this.contentTypeFlag_1 = contentTypeFlag; if (0 === (seen1 & 2097152)) $this.contentOwner_1 = new Long(0, 0); else $this.contentOwner_1 = contentOwner; if (0 === (seen1 & 4194304)) $this.contentOwnerType_1 = 0; else $this.contentOwnerType_1 = contentOwnerType; if (0 === (seen1 & 8388608)) $this.contentEntryLocalChangeSeqNum_1 = new Long(0, 0); else $this.contentEntryLocalChangeSeqNum_1 = contentEntryLocalChangeSeqNum; if (0 === (seen1 & 16777216)) $this.contentEntryMasterChangeSeqNum_1 = new Long(0, 0); else $this.contentEntryMasterChangeSeqNum_1 = contentEntryMasterChangeSeqNum; if (0 === (seen1 & 33554432)) $this.contentEntryLastChangedBy_1 = 0; else $this.contentEntryLastChangedBy_1 = contentEntryLastChangedBy; if (0 === (seen1 & 67108864)) $this.contentEntryLct_1 = new Long(0, 0); else $this.contentEntryLct_1 = contentEntryLct; return $this; } function ContentEntry_init_$Create$_0(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker) { return ContentEntry_init_$Init$_0(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntry))); } function ContentEntry() { Companion_getInstance_73(); this.contentEntryUid_1 = new Long(0, 0); this.title_1 = null; this.description_1 = null; this.entryId_1 = null; this.author_1 = null; this.publisher_1 = null; this.licenseType_1 = 0; this.licenseName_1 = null; this.licenseUrl_1 = null; this.sourceUrl_1 = null; this.thumbnailUrl_1 = null; this.lastModified_1 = new Long(0, 0); this.primaryLanguageUid_1 = new Long(0, 0); this.languageVariantUid_1 = new Long(0, 0); this.contentFlags_1 = 0; this.leaf_1 = false; this.publik_1 = true; this.ceInactive_1 = false; this.completionCriteria_1 = 0; this.minScore_1 = 0; this.contentTypeFlag_1 = 0; this.contentOwner_1 = new Long(0, 0); this.contentOwnerType_1 = 0; this.contentEntryLocalChangeSeqNum_1 = new Long(0, 0); this.contentEntryMasterChangeSeqNum_1 = new Long(0, 0); this.contentEntryLastChangedBy_1 = 0; this.contentEntryLct_1 = new Long(0, 0); } protoOf(ContentEntry).set_contentEntryUid_82c9uk_k$ = function (_set____db54di) { this.contentEntryUid_1 = _set____db54di; }; protoOf(ContentEntry).get_contentEntryUid_pu6bbm_k$ = function () { return this.contentEntryUid_1; }; protoOf(ContentEntry).set_title_ceyuu4_k$ = function (_set____db54di) { this.title_1 = _set____db54di; }; protoOf(ContentEntry).get_title_iz32un_k$ = function () { return this.title_1; }; protoOf(ContentEntry).set_description_s1386w_k$ = function (_set____db54di) { this.description_1 = _set____db54di; }; protoOf(ContentEntry).get_description_emjre5_k$ = function () { return this.description_1; }; protoOf(ContentEntry).set_entryId_b4l6o7_k$ = function (_set____db54di) { this.entryId_1 = _set____db54di; }; protoOf(ContentEntry).get_entryId_p20on0_k$ = function () { return this.entryId_1; }; protoOf(ContentEntry).set_author_btovnz_k$ = function (_set____db54di) { this.author_1 = _set____db54di; }; protoOf(ContentEntry).get_author_b5hnkk_k$ = function () { return this.author_1; }; protoOf(ContentEntry).set_publisher_u973bc_k$ = function (_set____db54di) { this.publisher_1 = _set____db54di; }; protoOf(ContentEntry).get_publisher_wg9par_k$ = function () { return this.publisher_1; }; protoOf(ContentEntry).set_licenseType_n5xz3q_k$ = function (_set____db54di) { this.licenseType_1 = _set____db54di; }; protoOf(ContentEntry).get_licenseType_3ajir6_k$ = function () { return this.licenseType_1; }; protoOf(ContentEntry).set_licenseName_gyoh54_k$ = function (_set____db54di) { this.licenseName_1 = _set____db54di; }; protoOf(ContentEntry).get_licenseName_3af6yr_k$ = function () { return this.licenseName_1; }; protoOf(ContentEntry).set_licenseUrl_1fxkks_k$ = function (_set____db54di) { this.licenseUrl_1 = _set____db54di; }; protoOf(ContentEntry).get_licenseUrl_rloa2f_k$ = function () { return this.licenseUrl_1; }; protoOf(ContentEntry).set_sourceUrl_nz40kg_k$ = function (_set____db54di) { this.sourceUrl_1 = _set____db54di; }; protoOf(ContentEntry).get_sourceUrl_jko7yt_k$ = function () { return this.sourceUrl_1; }; protoOf(ContentEntry).set_thumbnailUrl_m15vw7_k$ = function (_set____db54di) { this.thumbnailUrl_1 = _set____db54di; }; protoOf(ContentEntry).get_thumbnailUrl_1cubbo_k$ = function () { return this.thumbnailUrl_1; }; protoOf(ContentEntry).set_lastModified_2tc4ma_k$ = function (_set____db54di) { this.lastModified_1 = _set____db54di; }; protoOf(ContentEntry).get_lastModified_y37iuw_k$ = function () { return this.lastModified_1; }; protoOf(ContentEntry).set_primaryLanguageUid_mnu87f_k$ = function (_set____db54di) { this.primaryLanguageUid_1 = _set____db54di; }; protoOf(ContentEntry).get_primaryLanguageUid_r5tse9_k$ = function () { return this.primaryLanguageUid_1; }; protoOf(ContentEntry).set_languageVariantUid_j38ahq_k$ = function (_set____db54di) { this.languageVariantUid_1 = _set____db54di; }; protoOf(ContentEntry).get_languageVariantUid_i54xak_k$ = function () { return this.languageVariantUid_1; }; protoOf(ContentEntry).set_contentFlags_bzqxgd_k$ = function (_set____db54di) { this.contentFlags_1 = _set____db54di; }; protoOf(ContentEntry).get_contentFlags_hwx6mv_k$ = function () { return this.contentFlags_1; }; protoOf(ContentEntry).set_leaf_nt94be_k$ = function (_set____db54di) { this.leaf_1 = _set____db54di; }; protoOf(ContentEntry).get_leaf_woprc7_k$ = function () { return this.leaf_1; }; protoOf(ContentEntry).set_publik_bkafrt_k$ = function (_set____db54di) { this.publik_1 = _set____db54di; }; protoOf(ContentEntry).get_publik_i8ukje_k$ = function () { return this.publik_1; }; protoOf(ContentEntry).set_ceInactive_jm4757_k$ = function (_set____db54di) { this.ceInactive_1 = _set____db54di; }; protoOf(ContentEntry).get_ceInactive_l2z6a2_k$ = function () { return this.ceInactive_1; }; protoOf(ContentEntry).set_completionCriteria_r963w0_k$ = function (_set____db54di) { this.completionCriteria_1 = _set____db54di; }; protoOf(ContentEntry).get_completionCriteria_godp98_k$ = function () { return this.completionCriteria_1; }; protoOf(ContentEntry).set_minScore_d3l9dh_k$ = function (_set____db54di) { this.minScore_1 = _set____db54di; }; protoOf(ContentEntry).get_minScore_ger1gp_k$ = function () { return this.minScore_1; }; protoOf(ContentEntry).set_contentTypeFlag_c07dx6_k$ = function (_set____db54di) { this.contentTypeFlag_1 = _set____db54di; }; protoOf(ContentEntry).get_contentTypeFlag_2ekfii_k$ = function () { return this.contentTypeFlag_1; }; protoOf(ContentEntry).set_contentOwner_87csqv_k$ = function (_set____db54di) { this.contentOwner_1 = _set____db54di; }; protoOf(ContentEntry).get_contentOwner_i22mf7_k$ = function () { return this.contentOwner_1; }; protoOf(ContentEntry).set_contentOwnerType_rj9ic7_k$ = function (_set____db54di) { this.contentOwnerType_1 = _set____db54di; }; protoOf(ContentEntry).get_contentOwnerType_bfan1f_k$ = function () { return this.contentOwnerType_1; }; protoOf(ContentEntry).set_contentEntryLocalChangeSeqNum_q6f3ny_k$ = function (_set____db54di) { this.contentEntryLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntry).get_contentEntryLocalChangeSeqNum_awxlpc_k$ = function () { return this.contentEntryLocalChangeSeqNum_1; }; protoOf(ContentEntry).set_contentEntryMasterChangeSeqNum_qby9m7_k$ = function (_set____db54di) { this.contentEntryMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntry).get_contentEntryMasterChangeSeqNum_offl1_k$ = function () { return this.contentEntryMasterChangeSeqNum_1; }; protoOf(ContentEntry).set_contentEntryLastChangedBy_5d0hdj_k$ = function (_set____db54di) { this.contentEntryLastChangedBy_1 = _set____db54di; }; protoOf(ContentEntry).get_contentEntryLastChangedBy_4itnjh_k$ = function () { return this.contentEntryLastChangedBy_1; }; protoOf(ContentEntry).set_contentEntryLct_ayi47_k$ = function (_set____db54di) { this.contentEntryLct_1 = _set____db54di; }; protoOf(ContentEntry).get_contentEntryLct_pu6i4l_k$ = function () { return this.contentEntryLct_1; }; protoOf(ContentEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntry)) return false; if (!this.contentEntryUid_1.equals(other.contentEntryUid_1)) return false; if (!(this.title_1 == other.title_1)) return false; if (!(this.description_1 == other.description_1)) return false; if (!(this.entryId_1 == other.entryId_1)) return false; if (!(this.author_1 == other.author_1)) return false; if (!(this.publisher_1 == other.publisher_1)) return false; if (!(this.licenseType_1 === other.licenseType_1)) return false; if (!(this.licenseName_1 == other.licenseName_1)) return false; if (!(this.licenseUrl_1 == other.licenseUrl_1)) return false; if (!(this.sourceUrl_1 == other.sourceUrl_1)) return false; if (!(this.thumbnailUrl_1 == other.thumbnailUrl_1)) return false; if (!this.lastModified_1.equals(other.lastModified_1)) return false; if (!this.primaryLanguageUid_1.equals(other.primaryLanguageUid_1)) return false; if (!this.languageVariantUid_1.equals(other.languageVariantUid_1)) return false; if (!(this.contentFlags_1 === other.contentFlags_1)) return false; if (!(this.leaf_1 === other.leaf_1)) return false; if (!(this.publik_1 === other.publik_1)) return false; if (!(this.ceInactive_1 === other.ceInactive_1)) return false; if (!(this.contentTypeFlag_1 === other.contentTypeFlag_1)) return false; if (!(this.completionCriteria_1 === other.completionCriteria_1)) return false; if (!(this.minScore_1 === other.minScore_1)) return false; if (!this.contentEntryLocalChangeSeqNum_1.equals(other.contentEntryLocalChangeSeqNum_1)) return false; if (!this.contentEntryMasterChangeSeqNum_1.equals(other.contentEntryMasterChangeSeqNum_1)) return false; if (!(this.contentEntryLastChangedBy_1 === other.contentEntryLastChangedBy_1)) return false; return true; }; protoOf(ContentEntry).hashCode = function () { var result = this.contentEntryUid_1.hashCode(); var tmp = imul(31, result); var tmp0_safe_receiver = this.title_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.description_1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.entryId_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; var tmp_2 = imul(31, result); var tmp6_safe_receiver = this.author_1; var tmp7_elvis_lhs = tmp6_safe_receiver == null ? null : getStringHashCode(tmp6_safe_receiver); result = tmp_2 + (tmp7_elvis_lhs == null ? 0 : tmp7_elvis_lhs) | 0; var tmp_3 = imul(31, result); var tmp8_safe_receiver = this.publisher_1; var tmp9_elvis_lhs = tmp8_safe_receiver == null ? null : getStringHashCode(tmp8_safe_receiver); result = tmp_3 + (tmp9_elvis_lhs == null ? 0 : tmp9_elvis_lhs) | 0; result = imul(31, result) + this.licenseType_1 | 0; var tmp_4 = imul(31, result); var tmp10_safe_receiver = this.licenseName_1; var tmp11_elvis_lhs = tmp10_safe_receiver == null ? null : getStringHashCode(tmp10_safe_receiver); result = tmp_4 + (tmp11_elvis_lhs == null ? 0 : tmp11_elvis_lhs) | 0; var tmp_5 = imul(31, result); var tmp12_safe_receiver = this.licenseUrl_1; var tmp13_elvis_lhs = tmp12_safe_receiver == null ? null : getStringHashCode(tmp12_safe_receiver); result = tmp_5 + (tmp13_elvis_lhs == null ? 0 : tmp13_elvis_lhs) | 0; var tmp_6 = imul(31, result); var tmp14_safe_receiver = this.sourceUrl_1; var tmp15_elvis_lhs = tmp14_safe_receiver == null ? null : getStringHashCode(tmp14_safe_receiver); result = tmp_6 + (tmp15_elvis_lhs == null ? 0 : tmp15_elvis_lhs) | 0; var tmp_7 = imul(31, result); var tmp16_safe_receiver = this.thumbnailUrl_1; var tmp17_elvis_lhs = tmp16_safe_receiver == null ? null : getStringHashCode(tmp16_safe_receiver); result = tmp_7 + (tmp17_elvis_lhs == null ? 0 : tmp17_elvis_lhs) | 0; result = imul(31, result) + this.lastModified_1.hashCode() | 0; result = imul(31, result) + this.primaryLanguageUid_1.hashCode() | 0; result = imul(31, result) + this.languageVariantUid_1.hashCode() | 0; result = imul(31, result) + this.contentFlags_1 | 0; result = imul(31, result) + getBooleanHashCode(this.leaf_1) | 0; result = imul(31, result) + getBooleanHashCode(this.publik_1) | 0; result = imul(31, result) + getBooleanHashCode(this.ceInactive_1) | 0; result = imul(31, result) + this.contentTypeFlag_1 | 0; result = imul(31, result) + this.completionCriteria_1 | 0; result = imul(31, result) + this.minScore_1 | 0; result = imul(31, result) + this.contentEntryLocalChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.contentEntryMasterChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.contentEntryLastChangedBy_1 | 0; return result; }; function ContentEntryButtonModel() { this.showDownloadButton_1 = false; this.showOpenButton_1 = false; this.showUpdateButton_1 = false; this.showDeleteButton_1 = false; this.showManageDownloadButton_1 = false; } protoOf(ContentEntryButtonModel).set_showDownloadButton_4pryu9_k$ = function (_set____db54di) { this.showDownloadButton_1 = _set____db54di; }; protoOf(ContentEntryButtonModel).get_showDownloadButton_ceymv4_k$ = function () { return this.showDownloadButton_1; }; protoOf(ContentEntryButtonModel).set_showOpenButton_ksdogv_k$ = function (_set____db54di) { this.showOpenButton_1 = _set____db54di; }; protoOf(ContentEntryButtonModel).get_showOpenButton_dkp24e_k$ = function () { return this.showOpenButton_1; }; protoOf(ContentEntryButtonModel).set_showUpdateButton_30hkxs_k$ = function (_set____db54di) { this.showUpdateButton_1 = _set____db54di; }; protoOf(ContentEntryButtonModel).get_showUpdateButton_m6z6f3_k$ = function () { return this.showUpdateButton_1; }; protoOf(ContentEntryButtonModel).set_showDeleteButton_cl3ehq_k$ = function (_set____db54di) { this.showDeleteButton_1 = _set____db54di; }; protoOf(ContentEntryButtonModel).get_showDeleteButton_j7owkd_k$ = function () { return this.showDeleteButton_1; }; protoOf(ContentEntryButtonModel).set_showManageDownloadButton_ppaetg_k$ = function (_set____db54di) { this.showManageDownloadButton_1 = _set____db54di; }; protoOf(ContentEntryButtonModel).get_showManageDownloadButton_uvkvzv_k$ = function () { return this.showManageDownloadButton_1; }; function Companion_70() { Companion_instance_70 = this; this.TABLE_ID_1 = 3; } protoOf(Companion_70).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_70).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_67(); }; var Companion_instance_70; function Companion_getInstance_74() { if (Companion_instance_70 == null) new Companion_70(); return Companion_instance_70; } function $serializer_67() { $serializer_instance_67 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryContentCategoryJoin', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('ceccjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjContentCategoryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('ceccjLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_67).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_67).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_67).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryContentCategoryJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_67).serialize_73ejom_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.ceccjUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.ceccjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.ceccjContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.ceccjContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.ceccjContentCategoryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.ceccjContentCategoryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.ceccjLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.ceccjLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.ceccjMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.ceccjMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.ceccjLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.ceccjLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.ceccjLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.ceccjLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_67).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_73ejom_k$(encoder, value instanceof ContentEntryContentCategoryJoin ? value : THROW_CCE()); }; var $serializer_instance_67; function $serializer_getInstance_67() { if ($serializer_instance_67 == null) new $serializer_67(); return $serializer_instance_67; } function ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_67().descriptor_1); } if (0 === (seen1 & 1)) $this.ceccjUid_1 = new Long(0, 0); else $this.ceccjUid_1 = ceccjUid; if (0 === (seen1 & 2)) $this.ceccjContentEntryUid_1 = new Long(0, 0); else $this.ceccjContentEntryUid_1 = ceccjContentEntryUid; if (0 === (seen1 & 4)) $this.ceccjContentCategoryUid_1 = new Long(0, 0); else $this.ceccjContentCategoryUid_1 = ceccjContentCategoryUid; if (0 === (seen1 & 8)) $this.ceccjLocalChangeSeqNum_1 = new Long(0, 0); else $this.ceccjLocalChangeSeqNum_1 = ceccjLocalChangeSeqNum; if (0 === (seen1 & 16)) $this.ceccjMasterChangeSeqNum_1 = new Long(0, 0); else $this.ceccjMasterChangeSeqNum_1 = ceccjMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.ceccjLastChangedBy_1 = 0; else $this.ceccjLastChangedBy_1 = ceccjLastChangedBy; if (0 === (seen1 & 64)) $this.ceccjLct_1 = new Long(0, 0); else $this.ceccjLct_1 = ceccjLct; return $this; } function ContentEntryContentCategoryJoin_init_$Create$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker) { return ContentEntryContentCategoryJoin_init_$Init$(seen1, ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryContentCategoryJoin))); } function ContentEntryContentCategoryJoin() { Companion_getInstance_74(); this.ceccjUid_1 = new Long(0, 0); this.ceccjContentEntryUid_1 = new Long(0, 0); this.ceccjContentCategoryUid_1 = new Long(0, 0); this.ceccjLocalChangeSeqNum_1 = new Long(0, 0); this.ceccjMasterChangeSeqNum_1 = new Long(0, 0); this.ceccjLastChangedBy_1 = 0; this.ceccjLct_1 = new Long(0, 0); } protoOf(ContentEntryContentCategoryJoin).set_ceccjUid_jeg2pl_k$ = function (_set____db54di) { this.ceccjUid_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjUid_jnw8ep_k$ = function () { return this.ceccjUid_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjContentEntryUid_v909ta_k$ = function (_set____db54di) { this.ceccjContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjContentEntryUid_xbpd5k_k$ = function () { return this.ceccjContentEntryUid_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjContentCategoryUid_zppyy_k$ = function (_set____db54di) { this.ceccjContentCategoryUid_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjContentCategoryUid_xe5qs8_k$ = function () { return this.ceccjContentCategoryUid_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjLocalChangeSeqNum_76g2o7_k$ = function (_set____db54di) { this.ceccjLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjLocalChangeSeqNum_boys59_k$ = function () { return this.ceccjLocalChangeSeqNum_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjMasterChangeSeqNum_51w3k6_k$ = function (_set____db54di) { this.ceccjMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjMasterChangeSeqNum_otfzag_k$ = function () { return this.ceccjMasterChangeSeqNum_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjLastChangedBy_dyrov2_k$ = function (_set____db54di) { this.ceccjLastChangedBy_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjLastChangedBy_cazpvu_k$ = function () { return this.ceccjLastChangedBy_1; }; protoOf(ContentEntryContentCategoryJoin).set_ceccjLct_rrquoc_k$ = function (_set____db54di) { this.ceccjLct_1 = _set____db54di; }; protoOf(ContentEntryContentCategoryJoin).get_ceccjLct_jnw1lq_k$ = function () { return this.ceccjLct_1; }; protoOf(ContentEntryContentCategoryJoin).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof ContentEntryContentCategoryJoin) ? other : THROW_CCE(); if (!this.ceccjUid_1.equals(ensureNotNull(that).ceccjUid_1)) return false; return !this.ceccjContentEntryUid_1.equals(that.ceccjContentEntryUid_1) ? false : this.ceccjContentCategoryUid_1.equals(that.ceccjContentCategoryUid_1); }; protoOf(ContentEntryContentCategoryJoin).hashCode = function () { var result = this.ceccjUid_1.xor_qzz94j_k$(this.ceccjUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + this.ceccjContentEntryUid_1.xor_qzz94j_k$(this.ceccjContentEntryUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; result = imul(31, result) + this.ceccjContentCategoryUid_1.xor_qzz94j_k$(this.ceccjContentCategoryUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; return result; }; function Companion_71() { Companion_instance_71 = this; this.TABLE_ID_1 = 720; this.PARAM_KEY_SUBTITLES_1 = 'subtitles'; } protoOf(Companion_71).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_71).get_PARAM_KEY_SUBTITLES_95z14w_k$ = function () { return this.PARAM_KEY_SUBTITLES_1; }; protoOf(Companion_71).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_68(); }; var Companion_instance_71; function Companion_getInstance_75() { if (Companion_instance_71 == null) new Companion_71(); return Companion_instance_71; } function $serializer_68() { $serializer_instance_68 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryImportJob', this, 20); tmp0_serialDesc.addElement_5pzumi_k$('cjiUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sourceUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiOriginalFilename', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiParentContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiContentEntryVersion', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiItemProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiItemTotal', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiRecursiveStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiPluginId', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiParentCjiUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiFinishTime', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiContentDeletedOnCancellation', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiCompressionLevel', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiError', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiErrorDismissed', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiOwnerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cjiParams', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_68).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_68).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_68).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = false; var tmp19_local15 = 0; var tmp20_local16 = null; var tmp21_local17 = false; var tmp22_local18 = new Long(0, 0); var tmp23_local19 = null; var tmp24_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp24_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; } else while (tmp1_flag) { tmp2_index = tmp24_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp24_input.decodeIntElement_941u6a_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp24_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp24_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp24_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp24_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryImportJob_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, null); }; protoOf($serializer_68).serialize_c72ybz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cjiUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cjiUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.sourceUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.sourceUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cjiOriginalFilename_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.cjiOriginalFilename_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.cjiContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.cjiContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cjiParentContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.cjiParentContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cjiContentEntryVersion_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cjiContentEntryVersion_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.cjiItemProgress_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.cjiItemProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cjiItemTotal_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cjiItemTotal_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cjiStatus_1 === 4)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.cjiStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cjiRecursiveStatus_1 === 4)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.cjiRecursiveStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.cjiPluginId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.cjiPluginId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.cjiParentCjiUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.cjiParentCjiUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.cjiStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.cjiStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.cjiFinishTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.cjiFinishTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.cjiContentDeletedOnCancellation_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 14, value.cjiContentDeletedOnCancellation_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.cjiCompressionLevel_1 === 3)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 15, value.cjiCompressionLevel_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.cjiError_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, StringSerializer_getInstance(), value.cjiError_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.cjiErrorDismissed_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.cjiErrorDismissed_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.cjiOwnerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 18, value.cjiOwnerPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.cjiParams_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, StringSerializer_getInstance(), value.cjiParams_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_68).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_c72ybz_k$(encoder, value instanceof ContentEntryImportJob ? value : THROW_CCE()); }; var $serializer_instance_68; function $serializer_getInstance_68() { if ($serializer_instance_68 == null) new $serializer_68(); return $serializer_instance_68; } function ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_68().descriptor_1); } if (0 === (seen1 & 1)) $this.cjiUid_1 = new Long(0, 0); else $this.cjiUid_1 = cjiUid; if (0 === (seen1 & 2)) $this.sourceUri_1 = null; else $this.sourceUri_1 = sourceUri; if (0 === (seen1 & 4)) $this.cjiOriginalFilename_1 = null; else $this.cjiOriginalFilename_1 = cjiOriginalFilename; if (0 === (seen1 & 8)) $this.cjiContentEntryUid_1 = new Long(0, 0); else $this.cjiContentEntryUid_1 = cjiContentEntryUid; if (0 === (seen1 & 16)) $this.cjiParentContentEntryUid_1 = new Long(0, 0); else $this.cjiParentContentEntryUid_1 = cjiParentContentEntryUid; if (0 === (seen1 & 32)) $this.cjiContentEntryVersion_1 = new Long(0, 0); else $this.cjiContentEntryVersion_1 = cjiContentEntryVersion; if (0 === (seen1 & 64)) $this.cjiItemProgress_1 = new Long(0, 0); else $this.cjiItemProgress_1 = cjiItemProgress; if (0 === (seen1 & 128)) $this.cjiItemTotal_1 = new Long(0, 0); else $this.cjiItemTotal_1 = cjiItemTotal; if (0 === (seen1 & 256)) $this.cjiStatus_1 = 4; else $this.cjiStatus_1 = cjiStatus; if (0 === (seen1 & 512)) $this.cjiRecursiveStatus_1 = 4; else $this.cjiRecursiveStatus_1 = cjiRecursiveStatus; if (0 === (seen1 & 1024)) $this.cjiPluginId_1 = 0; else $this.cjiPluginId_1 = cjiPluginId; if (0 === (seen1 & 2048)) $this.cjiParentCjiUid_1 = new Long(0, 0); else $this.cjiParentCjiUid_1 = cjiParentCjiUid; if (0 === (seen1 & 4096)) $this.cjiStartTime_1 = new Long(0, 0); else $this.cjiStartTime_1 = cjiStartTime; if (0 === (seen1 & 8192)) $this.cjiFinishTime_1 = new Long(0, 0); else $this.cjiFinishTime_1 = cjiFinishTime; if (0 === (seen1 & 16384)) $this.cjiContentDeletedOnCancellation_1 = false; else $this.cjiContentDeletedOnCancellation_1 = cjiContentDeletedOnCancellation; if (0 === (seen1 & 32768)) $this.cjiCompressionLevel_1 = 3; else $this.cjiCompressionLevel_1 = cjiCompressionLevel; if (0 === (seen1 & 65536)) $this.cjiError_1 = null; else $this.cjiError_1 = cjiError; if (0 === (seen1 & 131072)) $this.cjiErrorDismissed_1 = false; else $this.cjiErrorDismissed_1 = cjiErrorDismissed; if (0 === (seen1 & 262144)) $this.cjiOwnerPersonUid_1 = new Long(0, 0); else $this.cjiOwnerPersonUid_1 = cjiOwnerPersonUid; if (0 === (seen1 & 524288)) $this.cjiParams_1 = null; else $this.cjiParams_1 = cjiParams; return $this; } function ContentEntryImportJob_init_$Create$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker) { return ContentEntryImportJob_init_$Init$(seen1, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, serializationConstructorMarker, objectCreate(protoOf(ContentEntryImportJob))); } function ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) { Companion_getInstance_75(); cjiUid = cjiUid === VOID ? new Long(0, 0) : cjiUid; sourceUri = sourceUri === VOID ? null : sourceUri; cjiOriginalFilename = cjiOriginalFilename === VOID ? null : cjiOriginalFilename; cjiContentEntryUid = cjiContentEntryUid === VOID ? new Long(0, 0) : cjiContentEntryUid; cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? new Long(0, 0) : cjiParentContentEntryUid; cjiContentEntryVersion = cjiContentEntryVersion === VOID ? new Long(0, 0) : cjiContentEntryVersion; cjiItemProgress = cjiItemProgress === VOID ? new Long(0, 0) : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? new Long(0, 0) : cjiItemTotal; cjiStatus = cjiStatus === VOID ? 4 : cjiStatus; cjiRecursiveStatus = cjiRecursiveStatus === VOID ? 4 : cjiRecursiveStatus; cjiPluginId = cjiPluginId === VOID ? 0 : cjiPluginId; cjiParentCjiUid = cjiParentCjiUid === VOID ? new Long(0, 0) : cjiParentCjiUid; cjiStartTime = cjiStartTime === VOID ? new Long(0, 0) : cjiStartTime; cjiFinishTime = cjiFinishTime === VOID ? new Long(0, 0) : cjiFinishTime; cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? false : cjiContentDeletedOnCancellation; cjiCompressionLevel = cjiCompressionLevel === VOID ? 3 : cjiCompressionLevel; cjiError = cjiError === VOID ? null : cjiError; cjiErrorDismissed = cjiErrorDismissed === VOID ? false : cjiErrorDismissed; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? new Long(0, 0) : cjiOwnerPersonUid; cjiParams = cjiParams === VOID ? null : cjiParams; this.cjiUid_1 = cjiUid; this.sourceUri_1 = sourceUri; this.cjiOriginalFilename_1 = cjiOriginalFilename; this.cjiContentEntryUid_1 = cjiContentEntryUid; this.cjiParentContentEntryUid_1 = cjiParentContentEntryUid; this.cjiContentEntryVersion_1 = cjiContentEntryVersion; this.cjiItemProgress_1 = cjiItemProgress; this.cjiItemTotal_1 = cjiItemTotal; this.cjiStatus_1 = cjiStatus; this.cjiRecursiveStatus_1 = cjiRecursiveStatus; this.cjiPluginId_1 = cjiPluginId; this.cjiParentCjiUid_1 = cjiParentCjiUid; this.cjiStartTime_1 = cjiStartTime; this.cjiFinishTime_1 = cjiFinishTime; this.cjiContentDeletedOnCancellation_1 = cjiContentDeletedOnCancellation; this.cjiCompressionLevel_1 = cjiCompressionLevel; this.cjiError_1 = cjiError; this.cjiErrorDismissed_1 = cjiErrorDismissed; this.cjiOwnerPersonUid_1 = cjiOwnerPersonUid; this.cjiParams_1 = cjiParams; } protoOf(ContentEntryImportJob).set_cjiUid_520bub_k$ = function (_set____db54di) { this.cjiUid_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiUid_bxbqqf_k$ = function () { return this.cjiUid_1; }; protoOf(ContentEntryImportJob).set_sourceUri_cxuqfx_k$ = function (_set____db54di) { this.sourceUri_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_sourceUri_jko7yw_k$ = function () { return this.sourceUri_1; }; protoOf(ContentEntryImportJob).set_cjiOriginalFilename_wioxc6_k$ = function (_set____db54di) { this.cjiOriginalFilename_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiOriginalFilename_5qc9rj_k$ = function () { return this.cjiOriginalFilename_1; }; protoOf(ContentEntryImportJob).set_cjiContentEntryUid_auvyx8_k$ = function (_set____db54di) { this.cjiContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiContentEntryUid_ayw19a_k$ = function () { return this.cjiContentEntryUid_1; }; protoOf(ContentEntryImportJob).set_cjiParentContentEntryUid_56m7ai_k$ = function (_set____db54di) { this.cjiParentContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiParentContentEntryUid_lqm49g_k$ = function () { return this.cjiParentContentEntryUid_1; }; protoOf(ContentEntryImportJob).set_cjiContentEntryVersion_gz0d8c_k$ = function (_set____db54di) { this.cjiContentEntryVersion_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiContentEntryVersion_km06ca_k$ = function () { return this.cjiContentEntryVersion_1; }; protoOf(ContentEntryImportJob).set_cjiItemProgress_7dh35l_k$ = function (_set____db54di) { this.cjiItemProgress_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiItemProgress_rooux3_k$ = function () { return this.cjiItemProgress_1; }; protoOf(ContentEntryImportJob).set_cjiItemTotal_nqgzw2_k$ = function (_set____db54di) { this.cjiItemTotal_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiItemTotal_aik9s8_k$ = function () { return this.cjiItemTotal_1; }; protoOf(ContentEntryImportJob).set_cjiStatus_kle71r_k$ = function (_set____db54di) { this.cjiStatus_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiStatus_i13gad_k$ = function () { return this.cjiStatus_1; }; protoOf(ContentEntryImportJob).set_cjiRecursiveStatus_uk8izt_k$ = function (_set____db54di) { this.cjiRecursiveStatus_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiRecursiveStatus_a66z2j_k$ = function () { return this.cjiRecursiveStatus_1; }; protoOf(ContentEntryImportJob).set_cjiPluginId_8nr8b9_k$ = function (_set____db54di) { this.cjiPluginId_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiPluginId_mr5gsn_k$ = function () { return this.cjiPluginId_1; }; protoOf(ContentEntryImportJob).set_cjiParentCjiUid_exikw1_k$ = function (_set____db54di) { this.cjiParentCjiUid_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiParentCjiUid_bo2s9b_k$ = function () { return this.cjiParentCjiUid_1; }; protoOf(ContentEntryImportJob).set_cjiStartTime_j5vht8_k$ = function (_set____db54di) { this.cjiStartTime_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiStartTime_a5da96_k$ = function () { return this.cjiStartTime_1; }; protoOf(ContentEntryImportJob).set_cjiFinishTime_kuemah_k$ = function (_set____db54di) { this.cjiFinishTime_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiFinishTime_eqg509_k$ = function () { return this.cjiFinishTime_1; }; protoOf(ContentEntryImportJob).set_cjiContentDeletedOnCancellation_x1z53i_k$ = function (_set____db54di) { this.cjiContentDeletedOnCancellation_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiContentDeletedOnCancellation_a7jylh_k$ = function () { return this.cjiContentDeletedOnCancellation_1; }; protoOf(ContentEntryImportJob).set_cjiCompressionLevel_p9rlj9_k$ = function (_set____db54di) { this.cjiCompressionLevel_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiCompressionLevel_5fa7jd_k$ = function () { return this.cjiCompressionLevel_1; }; protoOf(ContentEntryImportJob).set_cjiError_crtvak_k$ = function (_set____db54di) { this.cjiError_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiError_oep7nz_k$ = function () { return this.cjiError_1; }; protoOf(ContentEntryImportJob).set_cjiErrorDismissed_g4yptb_k$ = function (_set____db54di) { this.cjiErrorDismissed_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiErrorDismissed_sti1cq_k$ = function () { return this.cjiErrorDismissed_1; }; protoOf(ContentEntryImportJob).set_cjiOwnerPersonUid_mxouc1_k$ = function (_set____db54di) { this.cjiOwnerPersonUid_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiOwnerPersonUid_7yysrl_k$ = function () { return this.cjiOwnerPersonUid_1; }; protoOf(ContentEntryImportJob).set_cjiParams_lov0yc_k$ = function (_set____db54di) { this.cjiParams_1 = _set____db54di; }; protoOf(ContentEntryImportJob).get_cjiParams_jqdy8x_k$ = function () { return this.cjiParams_1; }; protoOf(ContentEntryImportJob).component1_7eebsc_k$ = function () { return this.cjiUid_1; }; protoOf(ContentEntryImportJob).component2_7eebsb_k$ = function () { return this.sourceUri_1; }; protoOf(ContentEntryImportJob).component3_7eebsa_k$ = function () { return this.cjiOriginalFilename_1; }; protoOf(ContentEntryImportJob).component4_7eebs9_k$ = function () { return this.cjiContentEntryUid_1; }; protoOf(ContentEntryImportJob).component5_7eebs8_k$ = function () { return this.cjiParentContentEntryUid_1; }; protoOf(ContentEntryImportJob).component6_7eebs7_k$ = function () { return this.cjiContentEntryVersion_1; }; protoOf(ContentEntryImportJob).component7_7eebs6_k$ = function () { return this.cjiItemProgress_1; }; protoOf(ContentEntryImportJob).component8_7eebs5_k$ = function () { return this.cjiItemTotal_1; }; protoOf(ContentEntryImportJob).component9_7eebs4_k$ = function () { return this.cjiStatus_1; }; protoOf(ContentEntryImportJob).component10_gazzfo_k$ = function () { return this.cjiRecursiveStatus_1; }; protoOf(ContentEntryImportJob).component11_gazzfn_k$ = function () { return this.cjiPluginId_1; }; protoOf(ContentEntryImportJob).component12_gazzfm_k$ = function () { return this.cjiParentCjiUid_1; }; protoOf(ContentEntryImportJob).component13_gazzfl_k$ = function () { return this.cjiStartTime_1; }; protoOf(ContentEntryImportJob).component14_gazzfk_k$ = function () { return this.cjiFinishTime_1; }; protoOf(ContentEntryImportJob).component15_gazzfj_k$ = function () { return this.cjiContentDeletedOnCancellation_1; }; protoOf(ContentEntryImportJob).component16_gazzfi_k$ = function () { return this.cjiCompressionLevel_1; }; protoOf(ContentEntryImportJob).component17_gazzfh_k$ = function () { return this.cjiError_1; }; protoOf(ContentEntryImportJob).component18_gazzfg_k$ = function () { return this.cjiErrorDismissed_1; }; protoOf(ContentEntryImportJob).component19_gazzff_k$ = function () { return this.cjiOwnerPersonUid_1; }; protoOf(ContentEntryImportJob).component20_gazzet_k$ = function () { return this.cjiParams_1; }; protoOf(ContentEntryImportJob).copy_9epjd3_k$ = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) { return new ContentEntryImportJob(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams); }; protoOf(ContentEntryImportJob).copy$default_kp0j0x_k$ = function (cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams, $super) { cjiUid = cjiUid === VOID ? this.cjiUid_1 : cjiUid; sourceUri = sourceUri === VOID ? this.sourceUri_1 : sourceUri; cjiOriginalFilename = cjiOriginalFilename === VOID ? this.cjiOriginalFilename_1 : cjiOriginalFilename; cjiContentEntryUid = cjiContentEntryUid === VOID ? this.cjiContentEntryUid_1 : cjiContentEntryUid; cjiParentContentEntryUid = cjiParentContentEntryUid === VOID ? this.cjiParentContentEntryUid_1 : cjiParentContentEntryUid; cjiContentEntryVersion = cjiContentEntryVersion === VOID ? this.cjiContentEntryVersion_1 : cjiContentEntryVersion; cjiItemProgress = cjiItemProgress === VOID ? this.cjiItemProgress_1 : cjiItemProgress; cjiItemTotal = cjiItemTotal === VOID ? this.cjiItemTotal_1 : cjiItemTotal; cjiStatus = cjiStatus === VOID ? this.cjiStatus_1 : cjiStatus; cjiRecursiveStatus = cjiRecursiveStatus === VOID ? this.cjiRecursiveStatus_1 : cjiRecursiveStatus; cjiPluginId = cjiPluginId === VOID ? this.cjiPluginId_1 : cjiPluginId; cjiParentCjiUid = cjiParentCjiUid === VOID ? this.cjiParentCjiUid_1 : cjiParentCjiUid; cjiStartTime = cjiStartTime === VOID ? this.cjiStartTime_1 : cjiStartTime; cjiFinishTime = cjiFinishTime === VOID ? this.cjiFinishTime_1 : cjiFinishTime; cjiContentDeletedOnCancellation = cjiContentDeletedOnCancellation === VOID ? this.cjiContentDeletedOnCancellation_1 : cjiContentDeletedOnCancellation; cjiCompressionLevel = cjiCompressionLevel === VOID ? this.cjiCompressionLevel_1 : cjiCompressionLevel; cjiError = cjiError === VOID ? this.cjiError_1 : cjiError; cjiErrorDismissed = cjiErrorDismissed === VOID ? this.cjiErrorDismissed_1 : cjiErrorDismissed; cjiOwnerPersonUid = cjiOwnerPersonUid === VOID ? this.cjiOwnerPersonUid_1 : cjiOwnerPersonUid; cjiParams = cjiParams === VOID ? this.cjiParams_1 : cjiParams; return $super === VOID ? this.copy_9epjd3_k$(cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams) : $super.copy_9epjd3_k$.call(this, cjiUid, sourceUri, cjiOriginalFilename, cjiContentEntryUid, cjiParentContentEntryUid, cjiContentEntryVersion, cjiItemProgress, cjiItemTotal, cjiStatus, cjiRecursiveStatus, cjiPluginId, cjiParentCjiUid, cjiStartTime, cjiFinishTime, cjiContentDeletedOnCancellation, cjiCompressionLevel, cjiError, cjiErrorDismissed, cjiOwnerPersonUid, cjiParams); }; protoOf(ContentEntryImportJob).toString = function () { return 'ContentEntryImportJob(cjiUid=' + this.cjiUid_1.toString() + ', sourceUri=' + this.sourceUri_1 + ', cjiOriginalFilename=' + this.cjiOriginalFilename_1 + ', cjiContentEntryUid=' + this.cjiContentEntryUid_1.toString() + ', cjiParentContentEntryUid=' + this.cjiParentContentEntryUid_1.toString() + ', cjiContentEntryVersion=' + this.cjiContentEntryVersion_1.toString() + ', cjiItemProgress=' + this.cjiItemProgress_1.toString() + ', cjiItemTotal=' + this.cjiItemTotal_1.toString() + ', cjiStatus=' + this.cjiStatus_1 + ', cjiRecursiveStatus=' + this.cjiRecursiveStatus_1 + ', cjiPluginId=' + this.cjiPluginId_1 + ', cjiParentCjiUid=' + this.cjiParentCjiUid_1.toString() + ', cjiStartTime=' + this.cjiStartTime_1.toString() + ', cjiFinishTime=' + this.cjiFinishTime_1.toString() + ', cjiContentDeletedOnCancellation=' + this.cjiContentDeletedOnCancellation_1 + ', cjiCompressionLevel=' + this.cjiCompressionLevel_1 + ', cjiError=' + this.cjiError_1 + ', cjiErrorDismissed=' + this.cjiErrorDismissed_1 + ', cjiOwnerPersonUid=' + this.cjiOwnerPersonUid_1.toString() + ', cjiParams=' + this.cjiParams_1 + ')'; }; protoOf(ContentEntryImportJob).hashCode = function () { var result = this.cjiUid_1.hashCode(); result = imul(result, 31) + (this.sourceUri_1 == null ? 0 : getStringHashCode(this.sourceUri_1)) | 0; result = imul(result, 31) + (this.cjiOriginalFilename_1 == null ? 0 : getStringHashCode(this.cjiOriginalFilename_1)) | 0; result = imul(result, 31) + this.cjiContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + this.cjiParentContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + this.cjiContentEntryVersion_1.hashCode() | 0; result = imul(result, 31) + this.cjiItemProgress_1.hashCode() | 0; result = imul(result, 31) + this.cjiItemTotal_1.hashCode() | 0; result = imul(result, 31) + this.cjiStatus_1 | 0; result = imul(result, 31) + this.cjiRecursiveStatus_1 | 0; result = imul(result, 31) + this.cjiPluginId_1 | 0; result = imul(result, 31) + this.cjiParentCjiUid_1.hashCode() | 0; result = imul(result, 31) + this.cjiStartTime_1.hashCode() | 0; result = imul(result, 31) + this.cjiFinishTime_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.cjiContentDeletedOnCancellation_1) | 0; result = imul(result, 31) + this.cjiCompressionLevel_1 | 0; result = imul(result, 31) + (this.cjiError_1 == null ? 0 : getStringHashCode(this.cjiError_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.cjiErrorDismissed_1) | 0; result = imul(result, 31) + this.cjiOwnerPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.cjiParams_1 == null ? 0 : getStringHashCode(this.cjiParams_1)) | 0; return result; }; protoOf(ContentEntryImportJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryImportJob)) return false; var tmp0_other_with_cast = other instanceof ContentEntryImportJob ? other : THROW_CCE(); if (!this.cjiUid_1.equals(tmp0_other_with_cast.cjiUid_1)) return false; if (!(this.sourceUri_1 == tmp0_other_with_cast.sourceUri_1)) return false; if (!(this.cjiOriginalFilename_1 == tmp0_other_with_cast.cjiOriginalFilename_1)) return false; if (!this.cjiContentEntryUid_1.equals(tmp0_other_with_cast.cjiContentEntryUid_1)) return false; if (!this.cjiParentContentEntryUid_1.equals(tmp0_other_with_cast.cjiParentContentEntryUid_1)) return false; if (!this.cjiContentEntryVersion_1.equals(tmp0_other_with_cast.cjiContentEntryVersion_1)) return false; if (!this.cjiItemProgress_1.equals(tmp0_other_with_cast.cjiItemProgress_1)) return false; if (!this.cjiItemTotal_1.equals(tmp0_other_with_cast.cjiItemTotal_1)) return false; if (!(this.cjiStatus_1 === tmp0_other_with_cast.cjiStatus_1)) return false; if (!(this.cjiRecursiveStatus_1 === tmp0_other_with_cast.cjiRecursiveStatus_1)) return false; if (!(this.cjiPluginId_1 === tmp0_other_with_cast.cjiPluginId_1)) return false; if (!this.cjiParentCjiUid_1.equals(tmp0_other_with_cast.cjiParentCjiUid_1)) return false; if (!this.cjiStartTime_1.equals(tmp0_other_with_cast.cjiStartTime_1)) return false; if (!this.cjiFinishTime_1.equals(tmp0_other_with_cast.cjiFinishTime_1)) return false; if (!(this.cjiContentDeletedOnCancellation_1 === tmp0_other_with_cast.cjiContentDeletedOnCancellation_1)) return false; if (!(this.cjiCompressionLevel_1 === tmp0_other_with_cast.cjiCompressionLevel_1)) return false; if (!(this.cjiError_1 == tmp0_other_with_cast.cjiError_1)) return false; if (!(this.cjiErrorDismissed_1 === tmp0_other_with_cast.cjiErrorDismissed_1)) return false; if (!this.cjiOwnerPersonUid_1.equals(tmp0_other_with_cast.cjiOwnerPersonUid_1)) return false; if (!(this.cjiParams_1 == tmp0_other_with_cast.cjiParams_1)) return false; return true; }; function ContentEntryParentChildJoin_init_$Init$(parentEntry, childEntry, index, $this) { ContentEntryParentChildJoin.call($this); $this.cepcjParentContentEntryUid_1 = parentEntry.get_contentEntryUid_pu6bbm_k$(); $this.cepcjChildContentEntryUid_1 = childEntry.get_contentEntryUid_pu6bbm_k$(); $this.childIndex_1 = index; return $this; } function ContentEntryParentChildJoin_init_$Create$(parentEntry, childEntry, index) { return ContentEntryParentChildJoin_init_$Init$(parentEntry, childEntry, index, objectCreate(protoOf(ContentEntryParentChildJoin))); } function Companion_72() { Companion_instance_72 = this; this.TABLE_ID_1 = 7; } protoOf(Companion_72).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_72).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_69(); }; var Companion_instance_72; function Companion_getInstance_76() { if (Companion_instance_72 == null) new Companion_72(); return Companion_instance_72; } function $serializer_69() { $serializer_instance_69 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryParentChildJoin', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('cepcjParentContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjChildContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('childIndex', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjLct', true); tmp0_serialDesc.addElement_5pzumi_k$('cepcjDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_69).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_69).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_69).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = false; var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryParentChildJoin_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, null); }; protoOf($serializer_69).serialize_kut6ph_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cepcjParentContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cepcjParentContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cepcjChildContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cepcjChildContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.childIndex_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.childIndex_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.cepcjUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.cepcjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cepcjLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.cepcjLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cepcjMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cepcjMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cepcjLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.cepcjLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cepcjLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cepcjLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.cepcjDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 8, value.cepcjDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_69).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_kut6ph_k$(encoder, value instanceof ContentEntryParentChildJoin ? value : THROW_CCE()); }; var $serializer_instance_69; function $serializer_getInstance_69() { if ($serializer_instance_69 == null) new $serializer_69(); return $serializer_instance_69; } function ContentEntryParentChildJoin_init_$Init$_0(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_69().descriptor_1); } if (0 === (seen1 & 1)) $this.cepcjParentContentEntryUid_1 = new Long(0, 0); else $this.cepcjParentContentEntryUid_1 = cepcjParentContentEntryUid; if (0 === (seen1 & 2)) $this.cepcjChildContentEntryUid_1 = new Long(0, 0); else $this.cepcjChildContentEntryUid_1 = cepcjChildContentEntryUid; if (0 === (seen1 & 4)) $this.childIndex_1 = 0; else $this.childIndex_1 = childIndex; if (0 === (seen1 & 8)) $this.cepcjUid_1 = new Long(0, 0); else $this.cepcjUid_1 = cepcjUid; if (0 === (seen1 & 16)) $this.cepcjLocalChangeSeqNum_1 = new Long(0, 0); else $this.cepcjLocalChangeSeqNum_1 = cepcjLocalChangeSeqNum; if (0 === (seen1 & 32)) $this.cepcjMasterChangeSeqNum_1 = new Long(0, 0); else $this.cepcjMasterChangeSeqNum_1 = cepcjMasterChangeSeqNum; if (0 === (seen1 & 64)) $this.cepcjLastChangedBy_1 = 0; else $this.cepcjLastChangedBy_1 = cepcjLastChangedBy; if (0 === (seen1 & 128)) $this.cepcjLct_1 = new Long(0, 0); else $this.cepcjLct_1 = cepcjLct; if (0 === (seen1 & 256)) $this.cepcjDeleted_1 = false; else $this.cepcjDeleted_1 = cepcjDeleted; return $this; } function ContentEntryParentChildJoin_init_$Create$_0(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker) { return ContentEntryParentChildJoin_init_$Init$_0(seen1, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjDeleted, serializationConstructorMarker, objectCreate(protoOf(ContentEntryParentChildJoin))); } function ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) { Companion_getInstance_76(); cepcjParentContentEntryUid = cepcjParentContentEntryUid === VOID ? new Long(0, 0) : cepcjParentContentEntryUid; cepcjChildContentEntryUid = cepcjChildContentEntryUid === VOID ? new Long(0, 0) : cepcjChildContentEntryUid; childIndex = childIndex === VOID ? 0 : childIndex; this.cepcjParentContentEntryUid_1 = cepcjParentContentEntryUid; this.cepcjChildContentEntryUid_1 = cepcjChildContentEntryUid; this.childIndex_1 = childIndex; this.cepcjUid_1 = new Long(0, 0); this.cepcjLocalChangeSeqNum_1 = new Long(0, 0); this.cepcjMasterChangeSeqNum_1 = new Long(0, 0); this.cepcjLastChangedBy_1 = 0; this.cepcjLct_1 = new Long(0, 0); this.cepcjDeleted_1 = false; } protoOf(ContentEntryParentChildJoin).set_cepcjParentContentEntryUid_oowyqx_k$ = function (_set____db54di) { this.cepcjParentContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjParentContentEntryUid_27xw81_k$ = function () { return this.cepcjParentContentEntryUid_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjChildContentEntryUid_xs79pn_k$ = function (_set____db54di) { this.cepcjChildContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjChildContentEntryUid_mkd6kn_k$ = function () { return this.cepcjChildContentEntryUid_1; }; protoOf(ContentEntryParentChildJoin).set_childIndex_yj4tez_k$ = function (_set____db54di) { this.childIndex_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_childIndex_1wd0v3_k$ = function () { return this.childIndex_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjUid_psyd4q_k$ = function (_set____db54di) { this.cepcjUid_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjUid_pthbj8_k$ = function () { return this.cepcjUid_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjLocalChangeSeqNum_grk6p8_k$ = function (_set____db54di) { this.cepcjLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjLocalChangeSeqNum_sk3iga_k$ = function () { return this.cepcjLocalChangeSeqNum_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjMasterChangeSeqNum_y04fm5_k$ = function (_set____db54di) { this.cepcjMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjMasterChangeSeqNum_kmdt0l_k$ = function () { return this.cepcjMasterChangeSeqNum_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjLastChangedBy_djiuqd_k$ = function (_set____db54di) { this.cepcjLastChangedBy_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjLastChangedBy_jzrn2h_k$ = function () { return this.cepcjLastChangedBy_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjLct_hfnl5z_k$ = function (_set____db54di) { this.cepcjLct_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjLct_pth4q9_k$ = function () { return this.cepcjLct_1; }; protoOf(ContentEntryParentChildJoin).set_cepcjDeleted_vbtces_k$ = function (_set____db54di) { this.cepcjDeleted_1 = _set____db54di; }; protoOf(ContentEntryParentChildJoin).get_cepcjDeleted_h9leab_k$ = function () { return this.cepcjDeleted_1; }; protoOf(ContentEntryParentChildJoin).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryParentChildJoin)) THROW_CCE(); if (!this.cepcjUid_1.equals(other.cepcjUid_1)) return false; if (!this.cepcjLocalChangeSeqNum_1.equals(other.cepcjLocalChangeSeqNum_1)) return false; if (!this.cepcjMasterChangeSeqNum_1.equals(other.cepcjMasterChangeSeqNum_1)) return false; if (!(this.cepcjLastChangedBy_1 === other.cepcjLastChangedBy_1)) return false; if (!this.cepcjParentContentEntryUid_1.equals(other.cepcjParentContentEntryUid_1)) return false; if (!this.cepcjChildContentEntryUid_1.equals(other.cepcjChildContentEntryUid_1)) return false; if (!(this.childIndex_1 === other.childIndex_1)) return false; return true; }; protoOf(ContentEntryParentChildJoin).hashCode = function () { var result = this.cepcjUid_1.hashCode(); result = imul(31, result) + this.cepcjLocalChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.cepcjMasterChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.cepcjLastChangedBy_1 | 0; result = imul(31, result) + this.cepcjParentContentEntryUid_1.hashCode() | 0; result = imul(31, result) + this.cepcjChildContentEntryUid_1.hashCode() | 0; result = imul(31, result) + this.childIndex_1 | 0; return result; }; function Companion_73() { Companion_instance_73 = this; this.TABLE_ID_1 = 138; } protoOf(Companion_73).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_73).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_70(); }; var Companion_instance_73; function Companion_getInstance_77() { if (Companion_instance_73 == null) new Companion_73(); return Companion_instance_73; } function $serializer_70() { $serializer_instance_70 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('cepUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cepContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cepUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cepMd5', true); tmp0_serialDesc.addElement_5pzumi_k$('cepFileSize', true); tmp0_serialDesc.addElement_5pzumi_k$('cepTimestamp', true); tmp0_serialDesc.addElement_5pzumi_k$('cepMimeType', true); tmp0_serialDesc.addElement_5pzumi_k$('cepActive', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_70).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_70).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_70).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = null; var tmp11_local7 = false; var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_70).serialize_oeiy5l_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cepUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cepUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cepContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cepContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cepUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.cepUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cepMd5__1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.cepMd5__1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cepFileSize_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.cepFileSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cepTimestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cepTimestamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cepMimeType_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.cepMimeType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cepActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.cepActive_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_70).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_oeiy5l_k$(encoder, value instanceof ContentEntryPicture ? value : THROW_CCE()); }; var $serializer_instance_70; function $serializer_getInstance_70() { if ($serializer_instance_70 == null) new $serializer_70(); return $serializer_instance_70; } function ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_70().descriptor_1); } if (0 === (seen1 & 1)) $this.cepUid_1 = new Long(0, 0); else $this.cepUid_1 = cepUid; if (0 === (seen1 & 2)) $this.cepContentEntryUid_1 = new Long(0, 0); else $this.cepContentEntryUid_1 = cepContentEntryUid; if (0 === (seen1 & 4)) $this.cepUri_1 = null; else $this.cepUri_1 = cepUri; if (0 === (seen1 & 8)) $this.cepMd5__1 = null; else $this.cepMd5__1 = cepMd5; if (0 === (seen1 & 16)) $this.cepFileSize_1 = 0; else $this.cepFileSize_1 = cepFileSize; if (0 === (seen1 & 32)) $this.cepTimestamp_1 = new Long(0, 0); else $this.cepTimestamp_1 = cepTimestamp; if (0 === (seen1 & 64)) $this.cepMimeType_1 = null; else $this.cepMimeType_1 = cepMimeType; if (0 === (seen1 & 128)) $this.cepActive_1 = true; else $this.cepActive_1 = cepActive; return $this; } function ContentEntryPicture_init_$Create$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker) { return ContentEntryPicture_init_$Init$(seen1, cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture))); } function ContentEntryPicture() { Companion_getInstance_77(); this.cepUid_1 = new Long(0, 0); this.cepContentEntryUid_1 = new Long(0, 0); this.cepUri_1 = null; this.cepMd5__1 = null; this.cepFileSize_1 = 0; this.cepTimestamp_1 = new Long(0, 0); this.cepMimeType_1 = null; this.cepActive_1 = true; } protoOf(ContentEntryPicture).set_cepUid_s2fsm9_k$ = function (_set____db54di) { this.cepUid_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepUid_bup8ob_k$ = function () { return this.cepUid_1; }; protoOf(ContentEntryPicture).set_cepContentEntryUid_up5wc8_k$ = function (_set____db54di) { this.cepContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepContentEntryUid_hz83v2_k$ = function () { return this.cepContentEntryUid_1; }; protoOf(ContentEntryPicture).set_cepUri_mg6dic_k$ = function (_set____db54di) { this.cepUri_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepUri_bup8w7_k$ = function () { return this.cepUri_1; }; protoOf(ContentEntryPicture).set_cepMd5_loo4y2_k$ = function (_set____db54di) { this.cepMd5__1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepMd5_bup2l5_k$ = function () { return this.cepMd5__1; }; protoOf(ContentEntryPicture).set_cepFileSize_o3ewbe_k$ = function (_set____db54di) { this.cepFileSize_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepFileSize_9l6d7i_k$ = function () { return this.cepFileSize_1; }; protoOf(ContentEntryPicture).set_cepTimestamp_vlvzon_k$ = function (_set____db54di) { this.cepTimestamp_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepTimestamp_9r931t_k$ = function () { return this.cepTimestamp_1; }; protoOf(ContentEntryPicture).set_cepMimeType_a6gyx4_k$ = function (_set____db54di) { this.cepMimeType_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepMimeType_kg2mp9_k$ = function () { return this.cepMimeType_1; }; protoOf(ContentEntryPicture).set_cepActive_cro1um_k$ = function (_set____db54di) { this.cepActive_1 = _set____db54di; }; protoOf(ContentEntryPicture).get_cepActive_2uufd7_k$ = function () { return this.cepActive_1; }; protoOf(ContentEntryPicture).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryPicture)) THROW_CCE(); if (!this.cepUid_1.equals(other.cepUid_1)) return false; if (!this.cepContentEntryUid_1.equals(other.cepContentEntryUid_1)) return false; if (!(this.cepUri_1 == other.cepUri_1)) return false; if (!(this.cepMd5__1 == other.cepMd5__1)) return false; if (!(this.cepFileSize_1 === other.cepFileSize_1)) return false; if (!this.cepTimestamp_1.equals(other.cepTimestamp_1)) return false; if (!(this.cepMimeType_1 == other.cepMimeType_1)) return false; if (!(this.cepActive_1 === other.cepActive_1)) return false; return true; }; protoOf(ContentEntryPicture).hashCode = function () { var result = this.cepUid_1.hashCode(); result = imul(31, result) + this.cepContentEntryUid_1.hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.cepUri_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; var tmp_0 = imul(31, result); var tmp2_safe_receiver = this.cepMd5__1; var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : getStringHashCode(tmp2_safe_receiver); result = tmp_0 + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0; result = imul(31, result) + this.cepFileSize_1 | 0; result = imul(31, result) + this.cepTimestamp_1.hashCode() | 0; var tmp_1 = imul(31, result); var tmp4_safe_receiver = this.cepMimeType_1; var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : getStringHashCode(tmp4_safe_receiver); result = tmp_1 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0; result = imul(31, result) + getBooleanHashCode(this.cepActive_1) | 0; return result; }; function Companion_74() { Companion_instance_74 = this; this.TABLE_ID_1 = 6678; } protoOf(Companion_74).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_74).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_71(); }; var Companion_instance_74; function Companion_getInstance_78() { if (Companion_instance_74 == null) new Companion_74(); return Companion_instance_74; } function $serializer_71() { $serializer_instance_71 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryPicture2', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('cepUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cepLct', true); tmp0_serialDesc.addElement_5pzumi_k$('cepPictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cepThumbnailUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_71).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_71).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_71).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryPicture2_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_71).serialize_78279n_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cepUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cepUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cepLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cepLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cepPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.cepPictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cepThumbnailUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.cepThumbnailUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_71).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_78279n_k$(encoder, value instanceof ContentEntryPicture2 ? value : THROW_CCE()); }; var $serializer_instance_71; function $serializer_getInstance_71() { if ($serializer_instance_71 == null) new $serializer_71(); return $serializer_instance_71; } function ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_71().descriptor_1); } if (0 === (seen1 & 1)) $this.cepUid_1 = new Long(0, 0); else $this.cepUid_1 = cepUid; if (0 === (seen1 & 2)) $this.cepLct_1 = new Long(0, 0); else $this.cepLct_1 = cepLct; if (0 === (seen1 & 4)) $this.cepPictureUri_1 = null; else $this.cepPictureUri_1 = cepPictureUri; if (0 === (seen1 & 8)) $this.cepThumbnailUri_1 = null; else $this.cepThumbnailUri_1 = cepThumbnailUri; return $this; } function ContentEntryPicture2_init_$Create$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker) { return ContentEntryPicture2_init_$Init$(seen1, cepUid, cepLct, cepPictureUri, cepThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(ContentEntryPicture2))); } function ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri) { Companion_getInstance_78(); cepUid = cepUid === VOID ? new Long(0, 0) : cepUid; cepLct = cepLct === VOID ? new Long(0, 0) : cepLct; cepPictureUri = cepPictureUri === VOID ? null : cepPictureUri; cepThumbnailUri = cepThumbnailUri === VOID ? null : cepThumbnailUri; this.cepUid_1 = cepUid; this.cepLct_1 = cepLct; this.cepPictureUri_1 = cepPictureUri; this.cepThumbnailUri_1 = cepThumbnailUri; } protoOf(ContentEntryPicture2).set_cepUid_s2fsm9_k$ = function (_set____db54di) { this.cepUid_1 = _set____db54di; }; protoOf(ContentEntryPicture2).get_cepUid_bup8ob_k$ = function () { return this.cepUid_1; }; protoOf(ContentEntryPicture2).set_cepLct_jp50ni_k$ = function (_set____db54di) { this.cepLct_1 = _set____db54di; }; protoOf(ContentEntryPicture2).get_cepLct_bup1vc_k$ = function () { return this.cepLct_1; }; protoOf(ContentEntryPicture2).set_cepPictureUri_op8u48_k$ = function (_set____db54di) { this.cepPictureUri_1 = _set____db54di; }; protoOf(ContentEntryPicture2).get_cepPictureUri_z88ker_k$ = function () { return this.cepPictureUri_1; }; protoOf(ContentEntryPicture2).set_cepThumbnailUri_vrexy_k$ = function (_set____db54di) { this.cepThumbnailUri_1 = _set____db54di; }; protoOf(ContentEntryPicture2).get_cepThumbnailUri_jl1i1n_k$ = function () { return this.cepThumbnailUri_1; }; protoOf(ContentEntryPicture2).component1_7eebsc_k$ = function () { return this.cepUid_1; }; protoOf(ContentEntryPicture2).component2_7eebsb_k$ = function () { return this.cepLct_1; }; protoOf(ContentEntryPicture2).component3_7eebsa_k$ = function () { return this.cepPictureUri_1; }; protoOf(ContentEntryPicture2).component4_7eebs9_k$ = function () { return this.cepThumbnailUri_1; }; protoOf(ContentEntryPicture2).copy_wdqa93_k$ = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri) { return new ContentEntryPicture2(cepUid, cepLct, cepPictureUri, cepThumbnailUri); }; protoOf(ContentEntryPicture2).copy$default_mj71ff_k$ = function (cepUid, cepLct, cepPictureUri, cepThumbnailUri, $super) { cepUid = cepUid === VOID ? this.cepUid_1 : cepUid; cepLct = cepLct === VOID ? this.cepLct_1 : cepLct; cepPictureUri = cepPictureUri === VOID ? this.cepPictureUri_1 : cepPictureUri; cepThumbnailUri = cepThumbnailUri === VOID ? this.cepThumbnailUri_1 : cepThumbnailUri; return $super === VOID ? this.copy_wdqa93_k$(cepUid, cepLct, cepPictureUri, cepThumbnailUri) : $super.copy_wdqa93_k$.call(this, cepUid, cepLct, cepPictureUri, cepThumbnailUri); }; protoOf(ContentEntryPicture2).toString = function () { return 'ContentEntryPicture2(cepUid=' + this.cepUid_1.toString() + ', cepLct=' + this.cepLct_1.toString() + ', cepPictureUri=' + this.cepPictureUri_1 + ', cepThumbnailUri=' + this.cepThumbnailUri_1 + ')'; }; protoOf(ContentEntryPicture2).hashCode = function () { var result = this.cepUid_1.hashCode(); result = imul(result, 31) + this.cepLct_1.hashCode() | 0; result = imul(result, 31) + (this.cepPictureUri_1 == null ? 0 : getStringHashCode(this.cepPictureUri_1)) | 0; result = imul(result, 31) + (this.cepThumbnailUri_1 == null ? 0 : getStringHashCode(this.cepThumbnailUri_1)) | 0; return result; }; protoOf(ContentEntryPicture2).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryPicture2)) return false; var tmp0_other_with_cast = other instanceof ContentEntryPicture2 ? other : THROW_CCE(); if (!this.cepUid_1.equals(tmp0_other_with_cast.cepUid_1)) return false; if (!this.cepLct_1.equals(tmp0_other_with_cast.cepLct_1)) return false; if (!(this.cepPictureUri_1 == tmp0_other_with_cast.cepPictureUri_1)) return false; if (!(this.cepThumbnailUri_1 == tmp0_other_with_cast.cepThumbnailUri_1)) return false; return true; }; function Companion_75() { Companion_instance_75 = this; this.TABLE_ID_1 = 8; this.REL_TYPE_TRANSLATED_VERSION_1 = 1; this.REL_TYPE_SEE_ALSO_1 = 2; } protoOf(Companion_75).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_75).get_REL_TYPE_TRANSLATED_VERSION_3a79z9_k$ = function () { return this.REL_TYPE_TRANSLATED_VERSION_1; }; protoOf(Companion_75).get_REL_TYPE_SEE_ALSO_xfawg9_k$ = function () { return this.REL_TYPE_SEE_ALSO_1; }; protoOf(Companion_75).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_72(); }; var Companion_instance_75; function Companion_getInstance_79() { if (Companion_instance_75 == null) new Companion_75(); return Companion_instance_75; } function $serializer_72() { $serializer_instance_72 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoin', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('cerejUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejRelatedEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('relType', true); tmp0_serialDesc.addElement_5pzumi_k$('comment', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejRelLanguageUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_72).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_72).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_72).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryRelatedEntryJoin_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_72).serialize_mpm376_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cerejUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cerejUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cerejContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cerejContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cerejRelatedEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.cerejRelatedEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cerejLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.cerejLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.relType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.relType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.comment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.comment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.cerejRelLanguageUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.cerejRelLanguageUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cerejLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cerejLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.cerejMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.cerejMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.cerejLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.cerejLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_72).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_mpm376_k$(encoder, value instanceof ContentEntryRelatedEntryJoin ? value : THROW_CCE()); }; var $serializer_instance_72; function $serializer_getInstance_72() { if ($serializer_instance_72 == null) new $serializer_72(); return $serializer_instance_72; } function ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_72().descriptor_1); } if (0 === (seen1 & 1)) $this.cerejUid_1 = new Long(0, 0); else $this.cerejUid_1 = cerejUid; if (0 === (seen1 & 2)) $this.cerejContentEntryUid_1 = new Long(0, 0); else $this.cerejContentEntryUid_1 = cerejContentEntryUid; if (0 === (seen1 & 4)) $this.cerejRelatedEntryUid_1 = new Long(0, 0); else $this.cerejRelatedEntryUid_1 = cerejRelatedEntryUid; if (0 === (seen1 & 8)) $this.cerejLastChangedBy_1 = 0; else $this.cerejLastChangedBy_1 = cerejLastChangedBy; if (0 === (seen1 & 16)) $this.relType_1 = 0; else $this.relType_1 = relType; if (0 === (seen1 & 32)) $this.comment_1 = null; else $this.comment_1 = comment; if (0 === (seen1 & 64)) $this.cerejRelLanguageUid_1 = new Long(0, 0); else $this.cerejRelLanguageUid_1 = cerejRelLanguageUid; if (0 === (seen1 & 128)) $this.cerejLocalChangeSeqNum_1 = new Long(0, 0); else $this.cerejLocalChangeSeqNum_1 = cerejLocalChangeSeqNum; if (0 === (seen1 & 256)) $this.cerejMasterChangeSeqNum_1 = new Long(0, 0); else $this.cerejMasterChangeSeqNum_1 = cerejMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.cerejLct_1 = new Long(0, 0); else $this.cerejLct_1 = cerejLct; return $this; } function ContentEntryRelatedEntryJoin_init_$Create$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker) { return ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoin))); } function ContentEntryRelatedEntryJoin() { Companion_getInstance_79(); this.cerejUid_1 = new Long(0, 0); this.cerejContentEntryUid_1 = new Long(0, 0); this.cerejRelatedEntryUid_1 = new Long(0, 0); this.cerejLastChangedBy_1 = 0; this.relType_1 = 0; this.comment_1 = null; this.cerejRelLanguageUid_1 = new Long(0, 0); this.cerejLocalChangeSeqNum_1 = new Long(0, 0); this.cerejMasterChangeSeqNum_1 = new Long(0, 0); this.cerejLct_1 = new Long(0, 0); } protoOf(ContentEntryRelatedEntryJoin).set_cerejUid_7ydsfu_k$ = function (_set____db54di) { this.cerejUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejUid_qso5ic_k$ = function () { return this.cerejUid_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejContentEntryUid_rteom9_k$ = function (_set____db54di) { this.cerejContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejContentEntryUid_r7339x_k$ = function () { return this.cerejContentEntryUid_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejRelatedEntryUid_jaf6nh_k$ = function (_set____db54di) { this.cerejRelatedEntryUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejRelatedEntryUid_z3n04d_k$ = function () { return this.cerejRelatedEntryUid_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejLastChangedBy_feg7mz_k$ = function (_set____db54di) { this.cerejLastChangedBy_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejLastChangedBy_i25bg7_k$ = function () { return this.cerejLastChangedBy_1; }; protoOf(ContentEntryRelatedEntryJoin).set_relType_w0aqq6_k$ = function (_set____db54di) { this.relType_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_relType_jaktca_k$ = function () { return this.relType_1; }; protoOf(ContentEntryRelatedEntryJoin).set_comment_aa11d7_k$ = function (_set____db54di) { this.comment_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_comment_gzea9i_k$ = function () { return this.comment_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejRelLanguageUid_qernnd_k$ = function (_set____db54di) { this.cerejRelLanguageUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejRelLanguageUid_rv382d_k$ = function () { return this.cerejRelLanguageUid_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejLocalChangeSeqNum_vujpkc_k$ = function (_set____db54di) { this.cerejLocalChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejLocalChangeSeqNum_10nkly_k$ = function () { return this.cerejLocalChangeSeqNum_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejMasterChangeSeqNum_7dshbn_k$ = function (_set____db54di) { this.cerejMasterChangeSeqNum_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejMasterChangeSeqNum_e38q91_k$ = function () { return this.cerejMasterChangeSeqNum_1; }; protoOf(ContentEntryRelatedEntryJoin).set_cerejLct_ewzix_k$ = function (_set____db54di) { this.cerejLct_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoin).get_cerejLct_qsnypd_k$ = function () { return this.cerejLct_1; }; protoOf(ContentEntryRelatedEntryJoin).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof ContentEntryRelatedEntryJoin) ? other : THROW_CCE(); if (!this.cerejUid_1.equals(ensureNotNull(that).cerejUid_1)) return false; if (!this.cerejContentEntryUid_1.equals(that.cerejContentEntryUid_1)) return false; if (!this.cerejRelatedEntryUid_1.equals(that.cerejRelatedEntryUid_1)) return false; if (!(this.relType_1 === that.relType_1)) return false; if (!this.cerejRelLanguageUid_1.equals(that.cerejRelLanguageUid_1)) return false; return !(this.comment_1 == null) ? this.comment_1 == that.comment_1 : that.comment_1 == null; }; protoOf(ContentEntryRelatedEntryJoin).hashCode = function () { var result = this.cerejUid_1.xor_qzz94j_k$(this.cerejUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + this.cerejContentEntryUid_1.xor_qzz94j_k$(this.cerejContentEntryUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; result = imul(31, result) + this.cerejRelatedEntryUid_1.xor_qzz94j_k$(this.cerejRelatedEntryUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; result = imul(31, result) + this.relType_1 | 0; result = imul(31, result) + (!(this.comment_1 == null) ? getStringHashCode(ensureNotNull(this.comment_1)) : 0) | 0; result = imul(31, result) + this.cerejRelLanguageUid_1.xor_qzz94j_k$(this.cerejRelLanguageUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; return result; }; function Companion_76() { Companion_instance_76 = this; } protoOf(Companion_76).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_73(); }; var Companion_instance_76; function Companion_getInstance_80() { if (Companion_instance_76 == null) new Companion_76(); return Companion_instance_76; } function $serializer_73() { $serializer_instance_73 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLangName', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('cerejContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejRelatedEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('languageName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_73).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_73).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_73).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryRelatedEntryJoinWithLangName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_73).serialize_j5zkfl_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cerejContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cerejContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cerejRelatedEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cerejRelatedEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.languageName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.languageName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_73).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_j5zkfl_k$(encoder, value instanceof ContentEntryRelatedEntryJoinWithLangName ? value : THROW_CCE()); }; var $serializer_instance_73; function $serializer_getInstance_73() { if ($serializer_instance_73 == null) new $serializer_73(); return $serializer_instance_73; } function ContentEntryRelatedEntryJoinWithLangName_init_$Init$(seen1, cerejContentEntryUid, cerejRelatedEntryUid, languageName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_73().descriptor_1); } if (0 === (seen1 & 1)) $this.cerejContentEntryUid_1 = new Long(0, 0); else $this.cerejContentEntryUid_1 = cerejContentEntryUid; if (0 === (seen1 & 2)) $this.cerejRelatedEntryUid_1 = new Long(0, 0); else $this.cerejRelatedEntryUid_1 = cerejRelatedEntryUid; if (0 === (seen1 & 4)) $this.languageName_1 = null; else $this.languageName_1 = languageName; return $this; } function ContentEntryRelatedEntryJoinWithLangName_init_$Create$(seen1, cerejContentEntryUid, cerejRelatedEntryUid, languageName, serializationConstructorMarker) { return ContentEntryRelatedEntryJoinWithLangName_init_$Init$(seen1, cerejContentEntryUid, cerejRelatedEntryUid, languageName, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoinWithLangName))); } function ContentEntryRelatedEntryJoinWithLangName() { Companion_getInstance_80(); this.cerejContentEntryUid_1 = new Long(0, 0); this.cerejRelatedEntryUid_1 = new Long(0, 0); this.languageName_1 = null; } protoOf(ContentEntryRelatedEntryJoinWithLangName).set_cerejContentEntryUid_rteom9_k$ = function (_set____db54di) { this.cerejContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).get_cerejContentEntryUid_r7339x_k$ = function () { return this.cerejContentEntryUid_1; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).set_cerejRelatedEntryUid_jaf6nh_k$ = function (_set____db54di) { this.cerejRelatedEntryUid_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).get_cerejRelatedEntryUid_z3n04d_k$ = function () { return this.cerejRelatedEntryUid_1; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).set_languageName_mn7rs9_k$ = function (_set____db54di) { this.languageName_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).get_languageName_u1z9h0_k$ = function () { return this.languageName_1; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryRelatedEntryJoinWithLangName)) THROW_CCE(); if (!this.cerejContentEntryUid_1.equals(other.cerejContentEntryUid_1)) return false; if (!this.cerejRelatedEntryUid_1.equals(other.cerejRelatedEntryUid_1)) return false; if (!(this.languageName_1 == other.languageName_1)) return false; return true; }; protoOf(ContentEntryRelatedEntryJoinWithLangName).hashCode = function () { var result = this.cerejContentEntryUid_1.hashCode(); result = imul(31, result) + this.cerejRelatedEntryUid_1.hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.languageName_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(relatedEntryJoin, $this) { ContentEntryRelatedEntryJoinWithLanguage.call($this); protoOf(ContentEntryRelatedEntryJoin).set_cerejUid_7ydsfu_k$.call($this, relatedEntryJoin.get_cerejUid_qso5ic_k$()); protoOf(ContentEntryRelatedEntryJoin).set_comment_aa11d7_k$.call($this, relatedEntryJoin.get_comment_gzea9i_k$()); protoOf(ContentEntryRelatedEntryJoin).set_relType_w0aqq6_k$.call($this, relatedEntryJoin.get_relType_jaktca_k$()); protoOf(ContentEntryRelatedEntryJoin).set_cerejRelLanguageUid_qernnd_k$.call($this, relatedEntryJoin.get_cerejRelLanguageUid_rv382d_k$()); protoOf(ContentEntryRelatedEntryJoin).set_cerejContentEntryUid_rteom9_k$.call($this, relatedEntryJoin.get_cerejContentEntryUid_r7339x_k$()); protoOf(ContentEntryRelatedEntryJoin).set_cerejRelatedEntryUid_jaf6nh_k$.call($this, relatedEntryJoin.get_cerejRelatedEntryUid_z3n04d_k$()); return $this; } function ContentEntryRelatedEntryJoinWithLanguage_init_$Create$(relatedEntryJoin) { return ContentEntryRelatedEntryJoinWithLanguage_init_$Init$(relatedEntryJoin, objectCreate(protoOf(ContentEntryRelatedEntryJoinWithLanguage))); } function Companion_77() { Companion_instance_77 = this; } protoOf(Companion_77).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_74(); }; var Companion_instance_77; function Companion_getInstance_81() { if (Companion_instance_77 == null) new Companion_77(); return Companion_instance_77; } function $serializer_74() { $serializer_instance_74 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLanguage', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('cerejUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejRelatedEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('relType', true); tmp0_serialDesc.addElement_5pzumi_k$('comment', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejRelLanguageUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('cerejLct', true); tmp0_serialDesc.addElement_5pzumi_k$('language', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_74).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_74).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_98())]; }; protoOf($serializer_74).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = null; var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_98(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, $serializer_getInstance_98(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryRelatedEntryJoinWithLanguage_init_$Create$_0(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_74).serialize_y0oz50_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_cerejUid_qso5ic_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_cerejUid_qso5ic_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_cerejContentEntryUid_r7339x_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_cerejContentEntryUid_r7339x_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_cerejRelatedEntryUid_z3n04d_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_cerejRelatedEntryUid_z3n04d_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_cerejLastChangedBy_i25bg7_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.get_cerejLastChangedBy_i25bg7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.get_relType_jaktca_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.get_relType_jaktca_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_comment_gzea9i_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.get_comment_gzea9i_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.get_cerejRelLanguageUid_rv382d_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.get_cerejRelLanguageUid_rv382d_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_cerejLocalChangeSeqNum_10nkly_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_cerejLocalChangeSeqNum_10nkly_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_cerejMasterChangeSeqNum_e38q91_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_cerejMasterChangeSeqNum_e38q91_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.get_cerejLct_qsnypd_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.get_cerejLct_qsnypd_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.language_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, $serializer_getInstance_98(), value.language_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_74).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_y0oz50_k$(encoder, value instanceof ContentEntryRelatedEntryJoinWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_74; function $serializer_getInstance_74() { if ($serializer_instance_74 == null) new $serializer_74(); return $serializer_instance_74; } function ContentEntryRelatedEntryJoinWithLanguage_init_$Init$_0(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_74().descriptor_1); } ContentEntryRelatedEntryJoin_init_$Init$(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, serializationConstructorMarker, $this); if (0 === (seen1 & 1024)) $this.language_1 = null; else $this.language_1 = language; return $this; } function ContentEntryRelatedEntryJoinWithLanguage_init_$Create$_0(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker) { return ContentEntryRelatedEntryJoinWithLanguage_init_$Init$_0(seen1, cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryRelatedEntryJoinWithLanguage))); } function ContentEntryRelatedEntryJoinWithLanguage() { Companion_getInstance_81(); ContentEntryRelatedEntryJoin.call(this); this.language_1 = null; } protoOf(ContentEntryRelatedEntryJoinWithLanguage).set_language_k1j0e9_k$ = function (_set____db54di) { this.language_1 = _set____db54di; }; protoOf(ContentEntryRelatedEntryJoinWithLanguage).get_language_cjhhk1_k$ = function () { return this.language_1; }; protoOf(ContentEntryRelatedEntryJoinWithLanguage).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!protoOf(ContentEntryRelatedEntryJoin).equals.call(this, other)) return false; if (!(other instanceof ContentEntryRelatedEntryJoinWithLanguage)) THROW_CCE(); if (!equals(this.language_1, other.language_1)) return false; return true; }; protoOf(ContentEntryRelatedEntryJoinWithLanguage).hashCode = function () { var result = protoOf(ContentEntryRelatedEntryJoin).hashCode.call(this); var tmp = imul(31, result); var tmp0_safe_receiver = this.language_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode(); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function Companion_78() { Companion_instance_78 = this; } protoOf(Companion_78).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_75(); }; var Companion_instance_78; function Companion_getInstance_82() { if (Companion_instance_78 == null) new Companion_78(); return Companion_instance_78; } function $serializer_75() { $serializer_instance_75 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryStatementScoreProgress', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('resultScore', true); tmp0_serialDesc.addElement_5pzumi_k$('resultMax', true); tmp0_serialDesc.addElement_5pzumi_k$('resultScaled', true); tmp0_serialDesc.addElement_5pzumi_k$('resultWeight', true); tmp0_serialDesc.addElement_5pzumi_k$('contentComplete', true); tmp0_serialDesc.addElement_5pzumi_k$('progress', true); tmp0_serialDesc.addElement_5pzumi_k$('success', true); tmp0_serialDesc.addElement_5pzumi_k$('penalty', true); tmp0_serialDesc.addElement_5pzumi_k$('totalContent', true); tmp0_serialDesc.addElement_5pzumi_k$('totalCompletedContent', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_75).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_75).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), ByteSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_75).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0.0; var tmp7_local3 = 0; var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = 0; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeByteElement_c1pisz_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeByteElement_c1pisz_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryStatementScoreProgress_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_75).serialize_40581d_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.resultScore_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.resultScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.resultMax_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.resultMax_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !equals(value.resultScaled_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 2, value.resultScaled_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.resultWeight_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.resultWeight_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.contentComplete_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.contentComplete_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.progress_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.progress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.success_1 === Companion_getInstance_147().get_RESULT_UNSET_481jkg_k$())) { tmp1_output.encodeByteElement_kft2ib_k$(tmp0_desc, 6, value.success_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.penalty_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.penalty_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.totalContent_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.totalContent_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.totalCompletedContent_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.totalCompletedContent_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_75).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_40581d_k$(encoder, value instanceof ContentEntryStatementScoreProgress ? value : THROW_CCE()); }; var $serializer_instance_75; function $serializer_getInstance_75() { if ($serializer_instance_75 == null) new $serializer_75(); return $serializer_instance_75; } function ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_75().descriptor_1); } if (0 === (seen1 & 1)) $this.resultScore_1 = 0; else $this.resultScore_1 = resultScore; if (0 === (seen1 & 2)) $this.resultMax_1 = 0; else $this.resultMax_1 = resultMax; if (0 === (seen1 & 4)) $this.resultScaled_1 = 0.0; else $this.resultScaled_1 = resultScaled; if (0 === (seen1 & 8)) $this.resultWeight_1 = 0; else $this.resultWeight_1 = resultWeight; if (0 === (seen1 & 16)) $this.contentComplete_1 = false; else $this.contentComplete_1 = contentComplete; if (0 === (seen1 & 32)) $this.progress_1 = 0; else $this.progress_1 = progress; if (0 === (seen1 & 64)) $this.success_1 = Companion_getInstance_147().get_RESULT_UNSET_481jkg_k$(); else $this.success_1 = success; if (0 === (seen1 & 128)) $this.penalty_1 = 0; else $this.penalty_1 = penalty; if (0 === (seen1 & 256)) $this.totalContent_1 = 0; else $this.totalContent_1 = totalContent; if (0 === (seen1 & 512)) $this.totalCompletedContent_1 = 0; else $this.totalCompletedContent_1 = totalCompletedContent; return $this; } function ContentEntryStatementScoreProgress_init_$Create$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker) { return ContentEntryStatementScoreProgress_init_$Init$(seen1, resultScore, resultMax, resultScaled, resultWeight, contentComplete, progress, success, penalty, totalContent, totalCompletedContent, serializationConstructorMarker, objectCreate(protoOf(ContentEntryStatementScoreProgress))); } function ContentEntryStatementScoreProgress() { Companion_getInstance_82(); this.resultScore_1 = 0; this.resultMax_1 = 0; this.resultScaled_1 = 0.0; this.resultWeight_1 = 0; this.contentComplete_1 = false; this.progress_1 = 0; this.success_1 = Companion_getInstance_147().get_RESULT_UNSET_481jkg_k$(); this.penalty_1 = 0; this.totalContent_1 = 0; this.totalCompletedContent_1 = 0; } protoOf(ContentEntryStatementScoreProgress).set_resultScore_kp381c_k$ = function (_set____db54di) { this.resultScore_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_resultScore_4tjhn0_k$ = function () { return this.resultScore_1; }; protoOf(ContentEntryStatementScoreProgress).set_resultMax_s3899a_k$ = function (_set____db54di) { this.resultMax_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_resultMax_lksvc2_k$ = function () { return this.resultMax_1; }; protoOf(ContentEntryStatementScoreProgress).set_resultScaled_z2ekyc_k$ = function (_set____db54di) { this.resultScaled_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_resultScaled_7db0o0_k$ = function () { return this.resultScaled_1; }; protoOf(ContentEntryStatementScoreProgress).set_resultWeight_somm52_k$ = function (_set____db54di) { this.resultWeight_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_resultWeight_9aq3pa_k$ = function () { return this.resultWeight_1; }; protoOf(ContentEntryStatementScoreProgress).set_contentComplete_hltqbk_k$ = function (_set____db54di) { this.contentComplete_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_contentComplete_14jtw7_k$ = function () { return this.contentComplete_1; }; protoOf(ContentEntryStatementScoreProgress).set_progress_b501lu_k$ = function (_set____db54di) { this.progress_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_progress_mo5qeu_k$ = function () { return this.progress_1; }; protoOf(ContentEntryStatementScoreProgress).set_success_glm1b2_k$ = function (_set____db54di) { this.success_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_success_tm3zdy_k$ = function () { return this.success_1; }; protoOf(ContentEntryStatementScoreProgress).set_penalty_vc4t3w_k$ = function (_set____db54di) { this.penalty_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_penalty_a0w4m8_k$ = function () { return this.penalty_1; }; protoOf(ContentEntryStatementScoreProgress).set_totalContent_pybd9y_k$ = function (_set____db54di) { this.totalContent_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_totalContent_tgje8u_k$ = function () { return this.totalContent_1; }; protoOf(ContentEntryStatementScoreProgress).set_totalCompletedContent_62a96b_k$ = function (_set____db54di) { this.totalCompletedContent_1 = _set____db54di; }; protoOf(ContentEntryStatementScoreProgress).get_totalCompletedContent_8tr28n_k$ = function () { return this.totalCompletedContent_1; }; protoOf(ContentEntryStatementScoreProgress).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof ContentEntryStatementScoreProgress)) THROW_CCE(); if (!(this.resultScore_1 === other.resultScore_1)) return false; if (!(this.resultMax_1 === other.resultMax_1)) return false; if (!(this.resultScaled_1 === other.resultScaled_1)) return false; if (!(this.resultWeight_1 === other.resultWeight_1)) return false; if (!(this.contentComplete_1 === other.contentComplete_1)) return false; if (!(this.progress_1 === other.progress_1)) return false; if (!(this.success_1 === other.success_1)) return false; if (!(this.penalty_1 === other.penalty_1)) return false; if (!(this.totalContent_1 === other.totalContent_1)) return false; if (!(this.totalCompletedContent_1 === other.totalCompletedContent_1)) return false; return true; }; protoOf(ContentEntryStatementScoreProgress).hashCode = function () { var result = this.resultScore_1; result = imul(31, result) + this.resultMax_1 | 0; result = imul(31, result) + getNumberHashCode(this.resultScaled_1) | 0; result = imul(31, result) + this.resultWeight_1 | 0; result = imul(31, result) + getBooleanHashCode(this.contentComplete_1) | 0; result = imul(31, result) + this.progress_1 | 0; result = imul(31, result) + this.success_1 | 0; result = imul(31, result) + this.penalty_1 | 0; result = imul(31, result) + this.totalContent_1 | 0; result = imul(31, result) + this.totalCompletedContent_1 | 0; return result; }; function Companion_79() { Companion_instance_79 = this; this.TYPE_EPUB_1 = 'epub'; this.TYPE_VIDEO_1 = 'video'; this.TYPE_PDF_1 = 'pdf'; this.TYPE_XAPI_1 = 'xapi'; this.PATH_POSTFIX_1 = 'api/content/'; this.TABLE_ID_1 = 738; this.SELECT_OFFLINE_ITEM_UID_FOR_NEW_CONTENT_ENTRY_VERSION_SQL_1 = '\n SELECT OfflineItem.oiUid\n FROM OfflineItem\n WHERE OfflineItem.oiContentEntryUid = NEW.cevContentEntryUid\n AND CAST(OfflineItem.oiActive AS INTEGER) = 1\n AND OfflineItem.oiNodeId = \n (SELECT COALESCE(\n (SELECT nodeClientId \n FROM SyncNode \n LIMIT 1), 0))\n \n '; } protoOf(Companion_79).get_TYPE_EPUB_7cyzbg_k$ = function () { return this.TYPE_EPUB_1; }; protoOf(Companion_79).get_TYPE_VIDEO_etkk81_k$ = function () { return this.TYPE_VIDEO_1; }; protoOf(Companion_79).get_TYPE_PDF_u0vn56_k$ = function () { return this.TYPE_PDF_1; }; protoOf(Companion_79).get_TYPE_XAPI_7cn5sy_k$ = function () { return this.TYPE_XAPI_1; }; protoOf(Companion_79).get_PATH_POSTFIX_hdvv5o_k$ = function () { return this.PATH_POSTFIX_1; }; protoOf(Companion_79).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_79).get_SELECT_OFFLINE_ITEM_UID_FOR_NEW_CONTENT_ENTRY_VERSION_SQL_bwkyii_k$ = function () { return this.SELECT_OFFLINE_ITEM_UID_FOR_NEW_CONTENT_ENTRY_VERSION_SQL_1; }; protoOf(Companion_79).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_76(); }; var Companion_instance_79; function Companion_getInstance_83() { if (Companion_instance_79 == null) new Companion_79(); return Companion_instance_79; } function $serializer_76() { $serializer_instance_76 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryVersion', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('cevUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cevContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cevOpenUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cevContentType', true); tmp0_serialDesc.addElement_5pzumi_k$('cevManifestUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('cevSize', true); tmp0_serialDesc.addElement_5pzumi_k$('cevInActive', true); tmp0_serialDesc.addElement_5pzumi_k$('cevLastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('cevLct', true); tmp0_serialDesc.addElement_5pzumi_k$('cevStorageSize', true); tmp0_serialDesc.addElement_5pzumi_k$('cevOriginalSize', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_76).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_76).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_76).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryVersion_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_76).serialize_o9e8q9_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cevUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cevUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cevContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cevContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cevOpenUri_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.cevOpenUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cevContentType_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.cevContentType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cevManifestUrl_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.cevManifestUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cevSize_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cevSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cevInActive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.cevInActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cevLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cevLastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.cevLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.cevLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.cevStorageSize_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.cevStorageSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.cevOriginalSize_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.cevOriginalSize_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_76).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_o9e8q9_k$(encoder, value instanceof ContentEntryVersion ? value : THROW_CCE()); }; var $serializer_instance_76; function $serializer_getInstance_76() { if ($serializer_instance_76 == null) new $serializer_76(); return $serializer_instance_76; } function ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_76().descriptor_1); } if (0 === (seen1 & 1)) $this.cevUid_1 = new Long(0, 0); else $this.cevUid_1 = cevUid; if (0 === (seen1 & 2)) $this.cevContentEntryUid_1 = new Long(0, 0); else $this.cevContentEntryUid_1 = cevContentEntryUid; if (0 === (seen1 & 4)) $this.cevOpenUri_1 = ''; else $this.cevOpenUri_1 = cevOpenUri; if (0 === (seen1 & 8)) $this.cevContentType_1 = ''; else $this.cevContentType_1 = cevContentType; if (0 === (seen1 & 16)) $this.cevManifestUrl_1 = null; else $this.cevManifestUrl_1 = cevManifestUrl; if (0 === (seen1 & 32)) $this.cevSize_1 = new Long(0, 0); else $this.cevSize_1 = cevSize; if (0 === (seen1 & 64)) $this.cevInActive_1 = false; else $this.cevInActive_1 = cevInActive; if (0 === (seen1 & 128)) $this.cevLastModified_1 = new Long(0, 0); else $this.cevLastModified_1 = cevLastModified; if (0 === (seen1 & 256)) $this.cevLct_1 = new Long(0, 0); else $this.cevLct_1 = cevLct; if (0 === (seen1 & 512)) $this.cevStorageSize_1 = new Long(0, 0); else $this.cevStorageSize_1 = cevStorageSize; if (0 === (seen1 & 1024)) $this.cevOriginalSize_1 = new Long(0, 0); else $this.cevOriginalSize_1 = cevOriginalSize; return $this; } function ContentEntryVersion_init_$Create$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker) { return ContentEntryVersion_init_$Init$(seen1, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, serializationConstructorMarker, objectCreate(protoOf(ContentEntryVersion))); } function ContentEntryVersion(cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) { Companion_getInstance_83(); cevUid = cevUid === VOID ? new Long(0, 0) : cevUid; cevContentEntryUid = cevContentEntryUid === VOID ? new Long(0, 0) : cevContentEntryUid; cevOpenUri = cevOpenUri === VOID ? '' : cevOpenUri; cevContentType = cevContentType === VOID ? '' : cevContentType; cevManifestUrl = cevManifestUrl === VOID ? null : cevManifestUrl; cevSize = cevSize === VOID ? new Long(0, 0) : cevSize; cevInActive = cevInActive === VOID ? false : cevInActive; cevLastModified = cevLastModified === VOID ? new Long(0, 0) : cevLastModified; cevLct = cevLct === VOID ? new Long(0, 0) : cevLct; cevStorageSize = cevStorageSize === VOID ? new Long(0, 0) : cevStorageSize; cevOriginalSize = cevOriginalSize === VOID ? new Long(0, 0) : cevOriginalSize; this.cevUid_1 = cevUid; this.cevContentEntryUid_1 = cevContentEntryUid; this.cevOpenUri_1 = cevOpenUri; this.cevContentType_1 = cevContentType; this.cevManifestUrl_1 = cevManifestUrl; this.cevSize_1 = cevSize; this.cevInActive_1 = cevInActive; this.cevLastModified_1 = cevLastModified; this.cevLct_1 = cevLct; this.cevStorageSize_1 = cevStorageSize; this.cevOriginalSize_1 = cevOriginalSize; } protoOf(ContentEntryVersion).set_cevUid_qq3grf_k$ = function (_set____db54di) { this.cevUid_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevUid_but2lh_k$ = function () { return this.cevUid_1; }; protoOf(ContentEntryVersion).set_cevContentEntryUid_7jgl4y_k$ = function (_set____db54di) { this.cevContentEntryUid_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevContentEntryUid_2e4tyk_k$ = function () { return this.cevContentEntryUid_1; }; protoOf(ContentEntryVersion).set_cevOpenUri_pcvf0_k$ = function (_set____db54di) { this.cevOpenUri_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevOpenUri_oavmw9_k$ = function () { return this.cevOpenUri_1; }; protoOf(ContentEntryVersion).set_cevContentType_ideg79_k$ = function (_set____db54di) { this.cevContentType_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevContentType_gzbvyw_k$ = function () { return this.cevContentType_1; }; protoOf(ContentEntryVersion).set_cevManifestUrl_j9gcjy_k$ = function (_set____db54di) { this.cevManifestUrl_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevManifestUrl_71wl63_k$ = function () { return this.cevManifestUrl_1; }; protoOf(ContentEntryVersion).set_cevSize_6z2zqy_k$ = function (_set____db54di) { this.cevSize_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevSize_cdfp8s_k$ = function () { return this.cevSize_1; }; protoOf(ContentEntryVersion).set_cevInActive_fcf9u5_k$ = function (_set____db54di) { this.cevInActive_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevInActive_lko4nq_k$ = function () { return this.cevInActive_1; }; protoOf(ContentEntryVersion).set_cevLastModified_av83s_k$ = function (_set____db54di) { this.cevLastModified_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevLastModified_aeeiuu_k$ = function () { return this.cevLastModified_1; }; protoOf(ContentEntryVersion).set_cevLct_icsoso_k$ = function (_set____db54di) { this.cevLct_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevLct_busvsi_k$ = function () { return this.cevLct_1; }; protoOf(ContentEntryVersion).set_cevStorageSize_l6q8m1_k$ = function (_set____db54di) { this.cevStorageSize_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevStorageSize_j8l0wf_k$ = function () { return this.cevStorageSize_1; }; protoOf(ContentEntryVersion).set_cevOriginalSize_ehp645_k$ = function (_set____db54di) { this.cevOriginalSize_1 = _set____db54di; }; protoOf(ContentEntryVersion).get_cevOriginalSize_7fv18j_k$ = function () { return this.cevOriginalSize_1; }; protoOf(ContentEntryVersion).component1_7eebsc_k$ = function () { return this.cevUid_1; }; protoOf(ContentEntryVersion).component2_7eebsb_k$ = function () { return this.cevContentEntryUid_1; }; protoOf(ContentEntryVersion).component3_7eebsa_k$ = function () { return this.cevOpenUri_1; }; protoOf(ContentEntryVersion).component4_7eebs9_k$ = function () { return this.cevContentType_1; }; protoOf(ContentEntryVersion).component5_7eebs8_k$ = function () { return this.cevManifestUrl_1; }; protoOf(ContentEntryVersion).component6_7eebs7_k$ = function () { return this.cevSize_1; }; protoOf(ContentEntryVersion).component7_7eebs6_k$ = function () { return this.cevInActive_1; }; protoOf(ContentEntryVersion).component8_7eebs5_k$ = function () { return this.cevLastModified_1; }; protoOf(ContentEntryVersion).component9_7eebs4_k$ = function () { return this.cevLct_1; }; protoOf(ContentEntryVersion).component10_gazzfo_k$ = function () { return this.cevStorageSize_1; }; protoOf(ContentEntryVersion).component11_gazzfn_k$ = function () { return this.cevOriginalSize_1; }; protoOf(ContentEntryVersion).copy_qt5kq1_k$ = function (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) { return new ContentEntryVersion(cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize); }; protoOf(ContentEntryVersion).copy$default_fcm5hg_k$ = function (cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize, $super) { cevUid = cevUid === VOID ? this.cevUid_1 : cevUid; cevContentEntryUid = cevContentEntryUid === VOID ? this.cevContentEntryUid_1 : cevContentEntryUid; cevOpenUri = cevOpenUri === VOID ? this.cevOpenUri_1 : cevOpenUri; cevContentType = cevContentType === VOID ? this.cevContentType_1 : cevContentType; cevManifestUrl = cevManifestUrl === VOID ? this.cevManifestUrl_1 : cevManifestUrl; cevSize = cevSize === VOID ? this.cevSize_1 : cevSize; cevInActive = cevInActive === VOID ? this.cevInActive_1 : cevInActive; cevLastModified = cevLastModified === VOID ? this.cevLastModified_1 : cevLastModified; cevLct = cevLct === VOID ? this.cevLct_1 : cevLct; cevStorageSize = cevStorageSize === VOID ? this.cevStorageSize_1 : cevStorageSize; cevOriginalSize = cevOriginalSize === VOID ? this.cevOriginalSize_1 : cevOriginalSize; return $super === VOID ? this.copy_qt5kq1_k$(cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize) : $super.copy_qt5kq1_k$.call(this, cevUid, cevContentEntryUid, cevOpenUri, cevContentType, cevManifestUrl, cevSize, cevInActive, cevLastModified, cevLct, cevStorageSize, cevOriginalSize); }; protoOf(ContentEntryVersion).toString = function () { return 'ContentEntryVersion(cevUid=' + this.cevUid_1.toString() + ', cevContentEntryUid=' + this.cevContentEntryUid_1.toString() + ', cevOpenUri=' + this.cevOpenUri_1 + ', cevContentType=' + this.cevContentType_1 + ', cevManifestUrl=' + this.cevManifestUrl_1 + ', cevSize=' + this.cevSize_1.toString() + ', cevInActive=' + this.cevInActive_1 + ', cevLastModified=' + this.cevLastModified_1.toString() + ', cevLct=' + this.cevLct_1.toString() + ', cevStorageSize=' + this.cevStorageSize_1.toString() + ', cevOriginalSize=' + this.cevOriginalSize_1.toString() + ')'; }; protoOf(ContentEntryVersion).hashCode = function () { var result = this.cevUid_1.hashCode(); result = imul(result, 31) + this.cevContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + (this.cevOpenUri_1 == null ? 0 : getStringHashCode(this.cevOpenUri_1)) | 0; result = imul(result, 31) + (this.cevContentType_1 == null ? 0 : getStringHashCode(this.cevContentType_1)) | 0; result = imul(result, 31) + (this.cevManifestUrl_1 == null ? 0 : getStringHashCode(this.cevManifestUrl_1)) | 0; result = imul(result, 31) + this.cevSize_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.cevInActive_1) | 0; result = imul(result, 31) + this.cevLastModified_1.hashCode() | 0; result = imul(result, 31) + this.cevLct_1.hashCode() | 0; result = imul(result, 31) + this.cevStorageSize_1.hashCode() | 0; result = imul(result, 31) + this.cevOriginalSize_1.hashCode() | 0; return result; }; protoOf(ContentEntryVersion).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentEntryVersion)) return false; var tmp0_other_with_cast = other instanceof ContentEntryVersion ? other : THROW_CCE(); if (!this.cevUid_1.equals(tmp0_other_with_cast.cevUid_1)) return false; if (!this.cevContentEntryUid_1.equals(tmp0_other_with_cast.cevContentEntryUid_1)) return false; if (!(this.cevOpenUri_1 == tmp0_other_with_cast.cevOpenUri_1)) return false; if (!(this.cevContentType_1 == tmp0_other_with_cast.cevContentType_1)) return false; if (!(this.cevManifestUrl_1 == tmp0_other_with_cast.cevManifestUrl_1)) return false; if (!this.cevSize_1.equals(tmp0_other_with_cast.cevSize_1)) return false; if (!(this.cevInActive_1 === tmp0_other_with_cast.cevInActive_1)) return false; if (!this.cevLastModified_1.equals(tmp0_other_with_cast.cevLastModified_1)) return false; if (!this.cevLct_1.equals(tmp0_other_with_cast.cevLct_1)) return false; if (!this.cevStorageSize_1.equals(tmp0_other_with_cast.cevStorageSize_1)) return false; if (!this.cevOriginalSize_1.equals(tmp0_other_with_cast.cevOriginalSize_1)) return false; return true; }; function Companion_80() { Companion_instance_80 = this; } protoOf(Companion_80).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_77(); }; var Companion_instance_80; function Companion_getInstance_84() { if (Companion_instance_80 == null) new Companion_80(); return Companion_instance_80; } function $serializer_77() { $serializer_instance_77 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentEntryWithLanguage', this, 28); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('title', true); tmp0_serialDesc.addElement_5pzumi_k$('description', true); tmp0_serialDesc.addElement_5pzumi_k$('entryId', true); tmp0_serialDesc.addElement_5pzumi_k$('author', true); tmp0_serialDesc.addElement_5pzumi_k$('publisher', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseType', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseName', true); tmp0_serialDesc.addElement_5pzumi_k$('licenseUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('sourceUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('thumbnailUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('lastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('primaryLanguageUid', true); tmp0_serialDesc.addElement_5pzumi_k$('languageVariantUid', true); tmp0_serialDesc.addElement_5pzumi_k$('contentFlags', true); tmp0_serialDesc.addElement_5pzumi_k$('leaf', true); tmp0_serialDesc.addElement_5pzumi_k$('publik', true); tmp0_serialDesc.addElement_5pzumi_k$('ceInactive', true); tmp0_serialDesc.addElement_5pzumi_k$('completionCriteria', true); tmp0_serialDesc.addElement_5pzumi_k$('minScore', true); tmp0_serialDesc.addElement_5pzumi_k$('contentTypeFlag', true); tmp0_serialDesc.addElement_5pzumi_k$('contentOwner', true); tmp0_serialDesc.addElement_5pzumi_k$('contentOwnerType', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('contentEntryLct', true); tmp0_serialDesc.addElement_5pzumi_k$('language', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_77).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_77).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_98())]; }; protoOf($serializer_77).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = new Long(0, 0); var tmp18_local14 = 0; var tmp19_local15 = false; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = 0; var tmp23_local19 = 0; var tmp24_local20 = 0; var tmp25_local21 = new Long(0, 0); var tmp26_local22 = 0; var tmp27_local23 = new Long(0, 0); var tmp28_local24 = new Long(0, 0); var tmp29_local25 = 0; var tmp30_local26 = new Long(0, 0); var tmp31_local27 = null; var tmp32_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp32_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp28_local24 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp29_local25 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp30_local26 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_98(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; } else while (tmp1_flag) { tmp2_index = tmp32_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp32_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp28_local24 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp29_local25 = tmp32_input.decodeIntElement_941u6a_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp30_local26 = tmp32_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp31_local27 = tmp32_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 27, $serializer_getInstance_98(), tmp31_local27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp32_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentEntryWithLanguage_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, tmp28_local24, tmp29_local25, tmp30_local26, tmp31_local27, null); }; protoOf($serializer_77).serialize_sq4vw_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_contentEntryUid_pu6bbm_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_contentEntryUid_pu6bbm_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_title_iz32un_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_title_iz32un_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_description_emjre5_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_description_emjre5_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_entryId_p20on0_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.get_entryId_p20on0_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.get_author_b5hnkk_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.get_author_b5hnkk_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_publisher_wg9par_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.get_publisher_wg9par_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_licenseType_3ajir6_k$() === Companion_getInstance_73().get_LICENSE_TYPE_UNSPECIFIED_hafl4p_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.get_licenseType_3ajir6_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.get_licenseName_3af6yr_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, StringSerializer_getInstance(), value.get_licenseName_3af6yr_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.get_licenseUrl_rloa2f_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.get_licenseUrl_rloa2f_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.get_sourceUrl_jko7yt_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, StringSerializer_getInstance(), value.get_sourceUrl_jko7yt_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.get_thumbnailUrl_1cubbo_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, StringSerializer_getInstance(), value.get_thumbnailUrl_1cubbo_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.get_lastModified_y37iuw_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.get_lastModified_y37iuw_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.get_primaryLanguageUid_r5tse9_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.get_primaryLanguageUid_r5tse9_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.get_languageVariantUid_i54xak_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.get_languageVariantUid_i54xak_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.get_contentFlags_hwx6mv_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.get_contentFlags_hwx6mv_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.get_leaf_woprc7_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 15, value.get_leaf_woprc7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.get_publik_i8ukje_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.get_publik_i8ukje_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.get_ceInactive_l2z6a2_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.get_ceInactive_l2z6a2_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.get_completionCriteria_godp98_k$() === Companion_getInstance_73().get_COMPLETION_CRITERIA_AUTOMATIC_i3k6gr_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 18, value.get_completionCriteria_godp98_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.get_minScore_ger1gp_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 19, value.get_minScore_ger1gp_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.get_contentTypeFlag_2ekfii_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 20, value.get_contentTypeFlag_2ekfii_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.get_contentOwner_i22mf7_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.get_contentOwner_i22mf7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.get_contentOwnerType_bfan1f_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 22, value.get_contentOwnerType_bfan1f_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !value.get_contentEntryLocalChangeSeqNum_awxlpc_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 23, value.get_contentEntryLocalChangeSeqNum_awxlpc_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.get_contentEntryMasterChangeSeqNum_offl1_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.get_contentEntryMasterChangeSeqNum_offl1_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !(value.get_contentEntryLastChangedBy_4itnjh_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 25, value.get_contentEntryLastChangedBy_4itnjh_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !value.get_contentEntryLct_pu6i4l_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 26, value.get_contentEntryLct_pu6i4l_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !(value.language_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 27, $serializer_getInstance_98(), value.language_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_77).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_sq4vw_k$(encoder, value instanceof ContentEntryWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_77; function $serializer_getInstance_77() { if ($serializer_instance_77 == null) new $serializer_77(); return $serializer_instance_77; } function ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_77().descriptor_1); } ContentEntry_init_$Init$_0(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, serializationConstructorMarker, $this); if (0 === (seen1 & 134217728)) $this.language_1 = null; else $this.language_1 = language; return $this; } function ContentEntryWithLanguage_init_$Create$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker) { return ContentEntryWithLanguage_init_$Init$(seen1, contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentOwnerType, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct, language, serializationConstructorMarker, objectCreate(protoOf(ContentEntryWithLanguage))); } function ContentEntryWithLanguage() { Companion_getInstance_84(); ContentEntry.call(this); this.language_1 = null; } protoOf(ContentEntryWithLanguage).set_language_k1j0e9_k$ = function (_set____db54di) { this.language_1 = _set____db54di; }; protoOf(ContentEntryWithLanguage).get_language_cjhhk1_k$ = function () { return this.language_1; }; function Companion_81() { Companion_instance_81 = this; this.TABLE_ID_1 = 702; } protoOf(Companion_81).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_81).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_78(); }; var Companion_instance_81; function Companion_getInstance_85() { if (Companion_instance_81 == null) new Companion_81(); return Companion_instance_81; } function $serializer_78() { $serializer_instance_78 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ContentJob', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('cjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('toUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cjProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('cjTotal', true); tmp0_serialDesc.addElement_5pzumi_k$('cjNotificationTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('cjIsMeteredAllowed', true); tmp0_serialDesc.addElement_5pzumi_k$('params', true); tmp0_serialDesc.addElement_5pzumi_k$('cjLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_78).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_78).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_78).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = false; var tmp10_local6 = null; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return ContentJob_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_78).serialize_3uhsr0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cjUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.toUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.toUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cjProgress_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.cjProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.cjTotal_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.cjTotal_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cjNotificationTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.cjNotificationTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cjIsMeteredAllowed_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.cjIsMeteredAllowed_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.params_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.params_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cjLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cjLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_78).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_3uhsr0_k$(encoder, value instanceof ContentJob ? value : THROW_CCE()); }; var $serializer_instance_78; function $serializer_getInstance_78() { if ($serializer_instance_78 == null) new $serializer_78(); return $serializer_instance_78; } function ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_78().descriptor_1); } if (0 === (seen1 & 1)) $this.cjUid_1 = new Long(0, 0); else $this.cjUid_1 = cjUid; if (0 === (seen1 & 2)) $this.toUri_1 = null; else $this.toUri_1 = toUri; if (0 === (seen1 & 4)) $this.cjProgress_1 = new Long(0, 0); else $this.cjProgress_1 = cjProgress; if (0 === (seen1 & 8)) $this.cjTotal_1 = new Long(0, 0); else $this.cjTotal_1 = cjTotal; if (0 === (seen1 & 16)) $this.cjNotificationTitle_1 = null; else $this.cjNotificationTitle_1 = cjNotificationTitle; if (0 === (seen1 & 32)) $this.cjIsMeteredAllowed_1 = false; else $this.cjIsMeteredAllowed_1 = cjIsMeteredAllowed; if (0 === (seen1 & 64)) $this.params_1 = null; else $this.params_1 = params; if (0 === (seen1 & 128)) $this.cjLct_1 = new Long(0, 0); else $this.cjLct_1 = cjLct; return $this; } function ContentJob_init_$Create$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker) { return ContentJob_init_$Init$(seen1, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, serializationConstructorMarker, objectCreate(protoOf(ContentJob))); } function ContentJob(cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) { Companion_getInstance_85(); cjUid = cjUid === VOID ? new Long(0, 0) : cjUid; toUri = toUri === VOID ? null : toUri; cjProgress = cjProgress === VOID ? new Long(0, 0) : cjProgress; cjTotal = cjTotal === VOID ? new Long(0, 0) : cjTotal; cjNotificationTitle = cjNotificationTitle === VOID ? null : cjNotificationTitle; cjIsMeteredAllowed = cjIsMeteredAllowed === VOID ? false : cjIsMeteredAllowed; params = params === VOID ? null : params; cjLct = cjLct === VOID ? new Long(0, 0) : cjLct; this.cjUid_1 = cjUid; this.toUri_1 = toUri; this.cjProgress_1 = cjProgress; this.cjTotal_1 = cjTotal; this.cjNotificationTitle_1 = cjNotificationTitle; this.cjIsMeteredAllowed_1 = cjIsMeteredAllowed; this.params_1 = params; this.cjLct_1 = cjLct; } protoOf(ContentJob).set_cjUid_ow8432_k$ = function (_set____db54di) { this.cjUid_1 = _set____db54di; }; protoOf(ContentJob).get_cjUid_ipqkow_k$ = function () { return this.cjUid_1; }; protoOf(ContentJob).set_toUri_hwbsl9_k$ = function (_set____db54di) { this.toUri_1 = _set____db54di; }; protoOf(ContentJob).get_toUri_iz69xk_k$ = function () { return this.toUri_1; }; protoOf(ContentJob).set_cjProgress_qenxjh_k$ = function (_set____db54di) { this.cjProgress_1 = _set____db54di; }; protoOf(ContentJob).get_cjProgress_pl3n0d_k$ = function () { return this.cjProgress_1; }; protoOf(ContentJob).set_cjTotal_n2jp3y_k$ = function (_set____db54di) { this.cjTotal_1 = _set____db54di; }; protoOf(ContentJob).get_cjTotal_e8gw8k_k$ = function () { return this.cjTotal_1; }; protoOf(ContentJob).set_cjNotificationTitle_9owj82_k$ = function (_set____db54di) { this.cjNotificationTitle_1 = _set____db54di; }; protoOf(ContentJob).get_cjNotificationTitle_4o2a71_k$ = function () { return this.cjNotificationTitle_1; }; protoOf(ContentJob).set_cjIsMeteredAllowed_xm01pj_k$ = function (_set____db54di) { this.cjIsMeteredAllowed_1 = _set____db54di; }; protoOf(ContentJob).get_cjIsMeteredAllowed_fq7iiu_k$ = function () { return this.cjIsMeteredAllowed_1; }; protoOf(ContentJob).set_params_kkmx4c_k$ = function (_set____db54di) { this.params_1 = _set____db54di; }; protoOf(ContentJob).get_params_hy4oen_k$ = function () { return this.params_1; }; protoOf(ContentJob).set_cjLct_gixc4b_k$ = function (_set____db54di) { this.cjLct_1 = _set____db54di; }; protoOf(ContentJob).get_cjLct_ipqdvx_k$ = function () { return this.cjLct_1; }; protoOf(ContentJob).component1_7eebsc_k$ = function () { return this.cjUid_1; }; protoOf(ContentJob).component2_7eebsb_k$ = function () { return this.toUri_1; }; protoOf(ContentJob).component3_7eebsa_k$ = function () { return this.cjProgress_1; }; protoOf(ContentJob).component4_7eebs9_k$ = function () { return this.cjTotal_1; }; protoOf(ContentJob).component5_7eebs8_k$ = function () { return this.cjNotificationTitle_1; }; protoOf(ContentJob).component6_7eebs7_k$ = function () { return this.cjIsMeteredAllowed_1; }; protoOf(ContentJob).component7_7eebs6_k$ = function () { return this.params_1; }; protoOf(ContentJob).component8_7eebs5_k$ = function () { return this.cjLct_1; }; protoOf(ContentJob).copy_m7p0th_k$ = function (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) { return new ContentJob(cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct); }; protoOf(ContentJob).copy$default_8644to_k$ = function (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct, $super) { cjUid = cjUid === VOID ? this.cjUid_1 : cjUid; toUri = toUri === VOID ? this.toUri_1 : toUri; cjProgress = cjProgress === VOID ? this.cjProgress_1 : cjProgress; cjTotal = cjTotal === VOID ? this.cjTotal_1 : cjTotal; cjNotificationTitle = cjNotificationTitle === VOID ? this.cjNotificationTitle_1 : cjNotificationTitle; cjIsMeteredAllowed = cjIsMeteredAllowed === VOID ? this.cjIsMeteredAllowed_1 : cjIsMeteredAllowed; params = params === VOID ? this.params_1 : params; cjLct = cjLct === VOID ? this.cjLct_1 : cjLct; return $super === VOID ? this.copy_m7p0th_k$(cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct) : $super.copy_m7p0th_k$.call(this, cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params, cjLct); }; protoOf(ContentJob).toString = function () { return 'ContentJob(cjUid=' + this.cjUid_1.toString() + ', toUri=' + this.toUri_1 + ', cjProgress=' + this.cjProgress_1.toString() + ', cjTotal=' + this.cjTotal_1.toString() + ', cjNotificationTitle=' + this.cjNotificationTitle_1 + ', cjIsMeteredAllowed=' + this.cjIsMeteredAllowed_1 + ', params=' + this.params_1 + ', cjLct=' + this.cjLct_1.toString() + ')'; }; protoOf(ContentJob).hashCode = function () { var result = this.cjUid_1.hashCode(); result = imul(result, 31) + (this.toUri_1 == null ? 0 : getStringHashCode(this.toUri_1)) | 0; result = imul(result, 31) + this.cjProgress_1.hashCode() | 0; result = imul(result, 31) + this.cjTotal_1.hashCode() | 0; result = imul(result, 31) + (this.cjNotificationTitle_1 == null ? 0 : getStringHashCode(this.cjNotificationTitle_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.cjIsMeteredAllowed_1) | 0; result = imul(result, 31) + (this.params_1 == null ? 0 : getStringHashCode(this.params_1)) | 0; result = imul(result, 31) + this.cjLct_1.hashCode() | 0; return result; }; protoOf(ContentJob).equals = function (other) { if (this === other) return true; if (!(other instanceof ContentJob)) return false; var tmp0_other_with_cast = other instanceof ContentJob ? other : THROW_CCE(); if (!this.cjUid_1.equals(tmp0_other_with_cast.cjUid_1)) return false; if (!(this.toUri_1 == tmp0_other_with_cast.toUri_1)) return false; if (!this.cjProgress_1.equals(tmp0_other_with_cast.cjProgress_1)) return false; if (!this.cjTotal_1.equals(tmp0_other_with_cast.cjTotal_1)) return false; if (!(this.cjNotificationTitle_1 == tmp0_other_with_cast.cjNotificationTitle_1)) return false; if (!(this.cjIsMeteredAllowed_1 === tmp0_other_with_cast.cjIsMeteredAllowed_1)) return false; if (!(this.params_1 == tmp0_other_with_cast.params_1)) return false; if (!this.cjLct_1.equals(tmp0_other_with_cast.cjLct_1)) return false; return true; }; function Companion_82() { Companion_instance_82 = this; this.TABLE_ID_1 = 523; } protoOf(Companion_82).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_82).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_79(); }; var Companion_instance_82; function Companion_getInstance_86() { if (Companion_instance_82 == null) new Companion_82(); return Companion_instance_82; } function $serializer_79() { $serializer_instance_79 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentMark', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('camUid', true); tmp0_serialDesc.addElement_5pzumi_k$('camAssignmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('camSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('camMarkerSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('camMarkerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('camMarkerComment', true); tmp0_serialDesc.addElement_5pzumi_k$('camMark', true); tmp0_serialDesc.addElement_5pzumi_k$('camMaxMark', true); tmp0_serialDesc.addElement_5pzumi_k$('camPenalty', true); tmp0_serialDesc.addElement_5pzumi_k$('camLct', true); tmp0_serialDesc.addElement_5pzumi_k$('camClazzUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_79).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_79).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), FloatSerializer_getInstance(), FloatSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_79).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = 0.0; var tmp11_local7 = 0.0; var tmp12_local8 = 0.0; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseAssignmentMark_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_79).serialize_9mnjqb_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.camUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.camUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.camAssignmentUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.camAssignmentUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.camSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.camSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.camMarkerSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.camMarkerSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.camMarkerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.camMarkerPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.camMarkerComment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.camMarkerComment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.camMark_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 6, value.camMark_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !equals(value.camMaxMark_1, 1.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 7, value.camMaxMark_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !equals(value.camPenalty_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 8, value.camPenalty_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.camLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.camLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.camClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.camClazzUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_79).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_9mnjqb_k$(encoder, value instanceof CourseAssignmentMark ? value : THROW_CCE()); }; var $serializer_instance_79; function $serializer_getInstance_79() { if ($serializer_instance_79 == null) new $serializer_79(); return $serializer_instance_79; } function CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_79().descriptor_1); } if (0 === (seen1 & 1)) $this.camUid_1 = new Long(0, 0); else $this.camUid_1 = camUid; if (0 === (seen1 & 2)) $this.camAssignmentUid_1 = new Long(0, 0); else $this.camAssignmentUid_1 = camAssignmentUid; if (0 === (seen1 & 4)) $this.camSubmitterUid_1 = new Long(0, 0); else $this.camSubmitterUid_1 = camSubmitterUid; if (0 === (seen1 & 8)) $this.camMarkerSubmitterUid_1 = new Long(0, 0); else $this.camMarkerSubmitterUid_1 = camMarkerSubmitterUid; if (0 === (seen1 & 16)) $this.camMarkerPersonUid_1 = new Long(0, 0); else $this.camMarkerPersonUid_1 = camMarkerPersonUid; if (0 === (seen1 & 32)) $this.camMarkerComment_1 = null; else $this.camMarkerComment_1 = camMarkerComment; if (0 === (seen1 & 64)) $this.camMark_1 = 0.0; else $this.camMark_1 = camMark; if (0 === (seen1 & 128)) $this.camMaxMark_1 = 1.0; else $this.camMaxMark_1 = camMaxMark; if (0 === (seen1 & 256)) $this.camPenalty_1 = 0.0; else $this.camPenalty_1 = camPenalty; if (0 === (seen1 & 512)) $this.camLct_1 = new Long(0, 0); else $this.camLct_1 = camLct; if (0 === (seen1 & 1024)) $this.camClazzUid_1 = new Long(0, 0); else $this.camClazzUid_1 = camClazzUid; return $this; } function CourseAssignmentMark_init_$Create$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker) { return CourseAssignmentMark_init_$Init$(seen1, camUid, camAssignmentUid, camSubmitterUid, camMarkerSubmitterUid, camMarkerPersonUid, camMarkerComment, camMark, camMaxMark, camPenalty, camLct, camClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentMark))); } function CourseAssignmentMark() { Companion_getInstance_86(); this.camUid_1 = new Long(0, 0); this.camAssignmentUid_1 = new Long(0, 0); this.camSubmitterUid_1 = new Long(0, 0); this.camMarkerSubmitterUid_1 = new Long(0, 0); this.camMarkerPersonUid_1 = new Long(0, 0); this.camMarkerComment_1 = null; this.camMark_1 = 0.0; this.camMaxMark_1 = 1.0; this.camPenalty_1 = 0.0; this.camLct_1 = new Long(0, 0); this.camClazzUid_1 = new Long(0, 0); } protoOf(CourseAssignmentMark).set_camUid_ejfae8_k$ = function (_set____db54di) { this.camUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camUid_bsg5ca_k$ = function () { return this.camUid_1; }; protoOf(CourseAssignmentMark).set_camAssignmentUid_j3ay0j_k$ = function (_set____db54di) { this.camAssignmentUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camAssignmentUid_se0bjx_k$ = function () { return this.camAssignmentUid_1; }; protoOf(CourseAssignmentMark).set_camSubmitterUid_kl6od7_k$ = function (_set____db54di) { this.camSubmitterUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camSubmitterUid_ghcel_k$ = function () { return this.camSubmitterUid_1; }; protoOf(CourseAssignmentMark).set_camMarkerSubmitterUid_eboa5x_k$ = function (_set____db54di) { this.camMarkerSubmitterUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camMarkerSubmitterUid_4ixg61_k$ = function () { return this.camMarkerSubmitterUid_1; }; protoOf(CourseAssignmentMark).set_camMarkerPersonUid_xbe3hr_k$ = function (_set____db54di) { this.camMarkerPersonUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camMarkerPersonUid_g7yjbv_k$ = function () { return this.camMarkerPersonUid_1; }; protoOf(CourseAssignmentMark).set_camMarkerComment_by6xyc_k$ = function (_set____db54di) { this.camMarkerComment_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camMarkerComment_fhxt6n_k$ = function () { return this.camMarkerComment_1; }; protoOf(CourseAssignmentMark).set_camMark_87svl5_k$ = function (_set____db54di) { this.camMark_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camMark_ac72ab_k$ = function () { return this.camMark_1; }; protoOf(CourseAssignmentMark).set_camMaxMark_ahvi6h_k$ = function (_set____db54di) { this.camMaxMark_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camMaxMark_cropvv_k$ = function () { return this.camMaxMark_1; }; protoOf(CourseAssignmentMark).set_camPenalty_f53gbz_k$ = function (_set____db54di) { this.camPenalty_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camPenalty_ch6xtp_k$ = function () { return this.camPenalty_1; }; protoOf(CourseAssignmentMark).set_camLct_mwq2cz_k$ = function (_set____db54di) { this.camLct_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camLct_bsfyjb_k$ = function () { return this.camLct_1; }; protoOf(CourseAssignmentMark).set_camClazzUid_408elw_k$ = function (_set____db54di) { this.camClazzUid_1 = _set____db54di; }; protoOf(CourseAssignmentMark).get_camClazzUid_p8wqsi_k$ = function () { return this.camClazzUid_1; }; function CourseAssignmentMarkWithPersonMarker() { CourseAssignmentMark.call(this); this.isGroup_1 = false; this.marker_1 = null; } protoOf(CourseAssignmentMarkWithPersonMarker).set_isGroup_i7r0zn_k$ = function (_set____db54di) { this.isGroup_1 = _set____db54di; }; protoOf(CourseAssignmentMarkWithPersonMarker).get_isGroup_zc1n64_k$ = function () { return this.isGroup_1; }; protoOf(CourseAssignmentMarkWithPersonMarker).set_marker_onle6y_k$ = function (_set____db54di) { this.marker_1 = _set____db54di; }; protoOf(CourseAssignmentMarkWithPersonMarker).get_marker_gj00g3_k$ = function () { return this.marker_1; }; function Companion_83() { Companion_instance_83 = this; this.TABLE_ID_1 = 522; this.SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP_1 = new Long(-1, -1); this.SUBMISSION_TYPE_TEXT_1 = 1; this.SUBMISSION_TYPE_FILE_1 = 2; this.NOT_SUBMITTED_1 = 0; this.SUBMITTED_1 = 1; this.MARKED_1 = 2; this.MIN_SUBMITTER_UID_FOR_PERSON_1 = 10000; } protoOf(Companion_83).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_83).get_SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP_ldit4a_k$ = function () { return this.SUBMITTER_ENROLLED_BUT_NOT_IN_GROUP_1; }; protoOf(Companion_83).get_SUBMISSION_TYPE_TEXT_yxaey0_k$ = function () { return this.SUBMISSION_TYPE_TEXT_1; }; protoOf(Companion_83).get_SUBMISSION_TYPE_FILE_yx1jsn_k$ = function () { return this.SUBMISSION_TYPE_FILE_1; }; protoOf(Companion_83).get_NOT_SUBMITTED_j0kqw6_k$ = function () { return this.NOT_SUBMITTED_1; }; protoOf(Companion_83).get_SUBMITTED_anxgi6_k$ = function () { return this.SUBMITTED_1; }; protoOf(Companion_83).get_MARKED_vdkqd_k$ = function () { return this.MARKED_1; }; protoOf(Companion_83).get_MIN_SUBMITTER_UID_FOR_PERSON_uk2rru_k$ = function () { return this.MIN_SUBMITTER_UID_FOR_PERSON_1; }; protoOf(Companion_83).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_80(); }; var Companion_instance_83; function Companion_getInstance_87() { if (Companion_instance_83 == null) new Companion_83(); return Companion_instance_83; } function $serializer_80() { $serializer_instance_80 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmission', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('casUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casAssignmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casSubmitterPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casText', true); tmp0_serialDesc.addElement_5pzumi_k$('casType', true); tmp0_serialDesc.addElement_5pzumi_k$('casTimestamp', true); tmp0_serialDesc.addElement_5pzumi_k$('casClazzUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_80).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_80).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_80).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseAssignmentSubmission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_80).serialize_7eb4zo_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.casUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.casUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.casAssignmentUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.casAssignmentUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.casSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.casSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.casSubmitterPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.casSubmitterPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.casText_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.casText_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.casType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.casType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.casTimestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.casTimestamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.casClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.casClazzUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_80).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_7eb4zo_k$(encoder, value instanceof CourseAssignmentSubmission ? value : THROW_CCE()); }; var $serializer_instance_80; function $serializer_getInstance_80() { if ($serializer_instance_80 == null) new $serializer_80(); return $serializer_instance_80; } function CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_80().descriptor_1); } if (0 === (seen1 & 1)) $this.casUid_1 = new Long(0, 0); else $this.casUid_1 = casUid; if (0 === (seen1 & 2)) $this.casAssignmentUid_1 = new Long(0, 0); else $this.casAssignmentUid_1 = casAssignmentUid; if (0 === (seen1 & 4)) $this.casSubmitterUid_1 = new Long(0, 0); else $this.casSubmitterUid_1 = casSubmitterUid; if (0 === (seen1 & 8)) $this.casSubmitterPersonUid_1 = new Long(0, 0); else $this.casSubmitterPersonUid_1 = casSubmitterPersonUid; if (0 === (seen1 & 16)) $this.casText_1 = null; else $this.casText_1 = casText; if (0 === (seen1 & 32)) $this.casType_1 = 0; else $this.casType_1 = casType; if (0 === (seen1 & 64)) $this.casTimestamp_1 = new Long(0, 0); else $this.casTimestamp_1 = casTimestamp; if (0 === (seen1 & 128)) $this.casClazzUid_1 = new Long(0, 0); else $this.casClazzUid_1 = casClazzUid; return $this; } function CourseAssignmentSubmission_init_$Create$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker) { return CourseAssignmentSubmission_init_$Init$(seen1, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmission))); } function CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) { Companion_getInstance_87(); casUid = casUid === VOID ? new Long(0, 0) : casUid; casAssignmentUid = casAssignmentUid === VOID ? new Long(0, 0) : casAssignmentUid; casSubmitterUid = casSubmitterUid === VOID ? new Long(0, 0) : casSubmitterUid; casSubmitterPersonUid = casSubmitterPersonUid === VOID ? new Long(0, 0) : casSubmitterPersonUid; casText = casText === VOID ? null : casText; casType = casType === VOID ? 0 : casType; casTimestamp = casTimestamp === VOID ? new Long(0, 0) : casTimestamp; casClazzUid = casClazzUid === VOID ? new Long(0, 0) : casClazzUid; this.casUid_1 = casUid; this.casAssignmentUid_1 = casAssignmentUid; this.casSubmitterUid_1 = casSubmitterUid; this.casSubmitterPersonUid_1 = casSubmitterPersonUid; this.casText_1 = casText; this.casType_1 = casType; this.casTimestamp_1 = casTimestamp; this.casClazzUid_1 = casClazzUid; } protoOf(CourseAssignmentSubmission).set_casUid_fvrm92_k$ = function (_set____db54di) { this.casUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casUid_bsjz9g_k$ = function () { return this.casUid_1; }; protoOf(CourseAssignmentSubmission).set_casAssignmentUid_munb2r_k$ = function (_set____db54di) { this.casAssignmentUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casAssignmentUid_lryxmx_k$ = function () { return this.casAssignmentUid_1; }; protoOf(CourseAssignmentSubmission).set_casSubmitterUid_oas9nj_k$ = function (_set____db54di) { this.casSubmitterUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casSubmitterUid_snmiul_k$ = function () { return this.casSubmitterUid_1; }; protoOf(CourseAssignmentSubmission).set_casSubmitterPersonUid_ow553o_k$ = function (_set____db54di) { this.casSubmitterPersonUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casSubmitterPersonUid_fp4ypu_k$ = function () { return this.casSubmitterPersonUid_1; }; protoOf(CourseAssignmentSubmission).set_casText_o0fpqq_k$ = function (_set____db54di) { this.casText_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casText_afmdvd_k$ = function () { return this.casText_1; }; protoOf(CourseAssignmentSubmission).set_casType_8ly6iy_k$ = function (_set____db54di) { this.casType_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casType_afmshy_k$ = function () { return this.casType_1; }; protoOf(CourseAssignmentSubmission).set_casTimestamp_rwaz4w_k$ = function (_set____db54di) { this.casTimestamp_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casTimestamp_n6jb3q_k$ = function () { return this.casTimestamp_1; }; protoOf(CourseAssignmentSubmission).set_casClazzUid_apjj5a_k$ = function (_set____db54di) { this.casClazzUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmission).get_casClazzUid_8hraec_k$ = function () { return this.casClazzUid_1; }; protoOf(CourseAssignmentSubmission).component1_7eebsc_k$ = function () { return this.casUid_1; }; protoOf(CourseAssignmentSubmission).component2_7eebsb_k$ = function () { return this.casAssignmentUid_1; }; protoOf(CourseAssignmentSubmission).component3_7eebsa_k$ = function () { return this.casSubmitterUid_1; }; protoOf(CourseAssignmentSubmission).component4_7eebs9_k$ = function () { return this.casSubmitterPersonUid_1; }; protoOf(CourseAssignmentSubmission).component5_7eebs8_k$ = function () { return this.casText_1; }; protoOf(CourseAssignmentSubmission).component6_7eebs7_k$ = function () { return this.casType_1; }; protoOf(CourseAssignmentSubmission).component7_7eebs6_k$ = function () { return this.casTimestamp_1; }; protoOf(CourseAssignmentSubmission).component8_7eebs5_k$ = function () { return this.casClazzUid_1; }; protoOf(CourseAssignmentSubmission).copy_nfpj12_k$ = function (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) { return new CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid); }; protoOf(CourseAssignmentSubmission).copy$default_dcw3hj_k$ = function (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid, $super) { casUid = casUid === VOID ? this.casUid_1 : casUid; casAssignmentUid = casAssignmentUid === VOID ? this.casAssignmentUid_1 : casAssignmentUid; casSubmitterUid = casSubmitterUid === VOID ? this.casSubmitterUid_1 : casSubmitterUid; casSubmitterPersonUid = casSubmitterPersonUid === VOID ? this.casSubmitterPersonUid_1 : casSubmitterPersonUid; casText = casText === VOID ? this.casText_1 : casText; casType = casType === VOID ? this.casType_1 : casType; casTimestamp = casTimestamp === VOID ? this.casTimestamp_1 : casTimestamp; casClazzUid = casClazzUid === VOID ? this.casClazzUid_1 : casClazzUid; return $super === VOID ? this.copy_nfpj12_k$(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid) : $super.copy_nfpj12_k$.call(this, casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp, casClazzUid); }; protoOf(CourseAssignmentSubmission).toString = function () { return 'CourseAssignmentSubmission(casUid=' + this.casUid_1.toString() + ', casAssignmentUid=' + this.casAssignmentUid_1.toString() + ', casSubmitterUid=' + this.casSubmitterUid_1.toString() + ', casSubmitterPersonUid=' + this.casSubmitterPersonUid_1.toString() + ', casText=' + this.casText_1 + ', casType=' + this.casType_1 + ', casTimestamp=' + this.casTimestamp_1.toString() + ', casClazzUid=' + this.casClazzUid_1.toString() + ')'; }; protoOf(CourseAssignmentSubmission).hashCode = function () { var result = this.casUid_1.hashCode(); result = imul(result, 31) + this.casAssignmentUid_1.hashCode() | 0; result = imul(result, 31) + this.casSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + this.casSubmitterPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.casText_1 == null ? 0 : getStringHashCode(this.casText_1)) | 0; result = imul(result, 31) + this.casType_1 | 0; result = imul(result, 31) + this.casTimestamp_1.hashCode() | 0; result = imul(result, 31) + this.casClazzUid_1.hashCode() | 0; return result; }; protoOf(CourseAssignmentSubmission).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmission)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmission ? other : THROW_CCE(); if (!this.casUid_1.equals(tmp0_other_with_cast.casUid_1)) return false; if (!this.casAssignmentUid_1.equals(tmp0_other_with_cast.casAssignmentUid_1)) return false; if (!this.casSubmitterUid_1.equals(tmp0_other_with_cast.casSubmitterUid_1)) return false; if (!this.casSubmitterPersonUid_1.equals(tmp0_other_with_cast.casSubmitterPersonUid_1)) return false; if (!(this.casText_1 == tmp0_other_with_cast.casText_1)) return false; if (!(this.casType_1 === tmp0_other_with_cast.casType_1)) return false; if (!this.casTimestamp_1.equals(tmp0_other_with_cast.casTimestamp_1)) return false; if (!this.casClazzUid_1.equals(tmp0_other_with_cast.casClazzUid_1)) return false; return true; }; function Companion_84() { Companion_instance_84 = this; this.TABLE_ID_1 = 90; } protoOf(Companion_84).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_84).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_81(); }; var Companion_instance_84; function Companion_getInstance_88() { if (Companion_instance_84 == null) new Companion_84(); return Companion_instance_84; } function $serializer_81() { $serializer_instance_81 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionFile', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('casaUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casaSubmissionUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casaSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casaCaUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casaClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('casaMimeType', true); tmp0_serialDesc.addElement_5pzumi_k$('casaFileName', true); tmp0_serialDesc.addElement_5pzumi_k$('casaUri', true); tmp0_serialDesc.addElement_5pzumi_k$('casaSize', true); tmp0_serialDesc.addElement_5pzumi_k$('casaTimestamp', true); tmp0_serialDesc.addElement_5pzumi_k$('casaDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_81).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_81).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_81).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = 0; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseAssignmentSubmissionFile_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_81).serialize_9b6x60_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.casaUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.casaUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.casaSubmissionUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.casaSubmissionUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.casaSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.casaSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.casaCaUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.casaCaUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.casaClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.casaClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.casaMimeType_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.casaMimeType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.casaFileName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.casaFileName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.casaUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, StringSerializer_getInstance(), value.casaUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.casaSize_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.casaSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.casaTimestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.casaTimestamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.casaDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.casaDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_81).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_9b6x60_k$(encoder, value instanceof CourseAssignmentSubmissionFile ? value : THROW_CCE()); }; var $serializer_instance_81; function $serializer_getInstance_81() { if ($serializer_instance_81 == null) new $serializer_81(); return $serializer_instance_81; } function CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_81().descriptor_1); } if (0 === (seen1 & 1)) $this.casaUid_1 = new Long(0, 0); else $this.casaUid_1 = casaUid; if (0 === (seen1 & 2)) $this.casaSubmissionUid_1 = new Long(0, 0); else $this.casaSubmissionUid_1 = casaSubmissionUid; if (0 === (seen1 & 4)) $this.casaSubmitterUid_1 = new Long(0, 0); else $this.casaSubmitterUid_1 = casaSubmitterUid; if (0 === (seen1 & 8)) $this.casaCaUid_1 = new Long(0, 0); else $this.casaCaUid_1 = casaCaUid; if (0 === (seen1 & 16)) $this.casaClazzUid_1 = new Long(0, 0); else $this.casaClazzUid_1 = casaClazzUid; if (0 === (seen1 & 32)) $this.casaMimeType_1 = null; else $this.casaMimeType_1 = casaMimeType; if (0 === (seen1 & 64)) $this.casaFileName_1 = null; else $this.casaFileName_1 = casaFileName; if (0 === (seen1 & 128)) $this.casaUri_1 = null; else $this.casaUri_1 = casaUri; if (0 === (seen1 & 256)) $this.casaSize_1 = 0; else $this.casaSize_1 = casaSize; if (0 === (seen1 & 512)) $this.casaTimestamp_1 = new Long(0, 0); else $this.casaTimestamp_1 = casaTimestamp; if (0 === (seen1 & 1024)) $this.casaDeleted_1 = false; else $this.casaDeleted_1 = casaDeleted; return $this; } function CourseAssignmentSubmissionFile_init_$Create$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker) { return CourseAssignmentSubmissionFile_init_$Init$(seen1, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, serializationConstructorMarker, objectCreate(protoOf(CourseAssignmentSubmissionFile))); } function CourseAssignmentSubmissionFile(casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) { Companion_getInstance_88(); casaUid = casaUid === VOID ? new Long(0, 0) : casaUid; casaSubmissionUid = casaSubmissionUid === VOID ? new Long(0, 0) : casaSubmissionUid; casaSubmitterUid = casaSubmitterUid === VOID ? new Long(0, 0) : casaSubmitterUid; casaCaUid = casaCaUid === VOID ? new Long(0, 0) : casaCaUid; casaClazzUid = casaClazzUid === VOID ? new Long(0, 0) : casaClazzUid; casaMimeType = casaMimeType === VOID ? null : casaMimeType; casaFileName = casaFileName === VOID ? null : casaFileName; casaUri = casaUri === VOID ? null : casaUri; casaSize = casaSize === VOID ? 0 : casaSize; casaTimestamp = casaTimestamp === VOID ? new Long(0, 0) : casaTimestamp; casaDeleted = casaDeleted === VOID ? false : casaDeleted; this.casaUid_1 = casaUid; this.casaSubmissionUid_1 = casaSubmissionUid; this.casaSubmitterUid_1 = casaSubmitterUid; this.casaCaUid_1 = casaCaUid; this.casaClazzUid_1 = casaClazzUid; this.casaMimeType_1 = casaMimeType; this.casaFileName_1 = casaFileName; this.casaUri_1 = casaUri; this.casaSize_1 = casaSize; this.casaTimestamp_1 = casaTimestamp; this.casaDeleted_1 = casaDeleted; } protoOf(CourseAssignmentSubmissionFile).set_casaUid_b6pf3d_k$ = function (_set____db54di) { this.casaUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaUid_afucgr_k$ = function () { return this.casaUid_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaSubmissionUid_kkikcj_k$ = function (_set____db54di) { this.casaSubmissionUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaSubmissionUid_1x308f_k$ = function () { return this.casaSubmissionUid_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaSubmitterUid_nijjm6_k$ = function (_set____db54di) { this.casaSubmitterUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaSubmitterUid_1el2fw_k$ = function () { return this.casaSubmitterUid_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaCaUid_8pcmej_k$ = function (_set____db54di) { this.casaCaUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaCaUid_ha5di5_k$ = function () { return this.casaCaUid_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaClazzUid_1l6qu5_k$ = function (_set____db54di) { this.casaClazzUid_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaClazzUid_vuz2xf_k$ = function () { return this.casaClazzUid_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaMimeType_fnm5kw_k$ = function (_set____db54di) { this.casaMimeType_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaMimeType_4l2wpv_k$ = function () { return this.casaMimeType_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaFileName_wj90dj_k$ = function (_set____db54di) { this.casaFileName_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaFileName_ffvt18_k$ = function () { return this.casaFileName_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaUri_f6f9po_k$ = function (_set____db54di) { this.casaUri_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaUri_afucon_k$ = function () { return this.casaUri_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaSize_heel36_k$ = function (_set____db54di) { this.casaSize_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaSize_vigstm_k$ = function () { return this.casaSize_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaTimestamp_t9qtg1_k$ = function (_set____db54di) { this.casaTimestamp_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaTimestamp_4es7c1_k$ = function () { return this.casaTimestamp_1; }; protoOf(CourseAssignmentSubmissionFile).set_casaDeleted_xf74yt_k$ = function (_set____db54di) { this.casaDeleted_1 = _set____db54di; }; protoOf(CourseAssignmentSubmissionFile).get_casaDeleted_3maiuc_k$ = function () { return this.casaDeleted_1; }; protoOf(CourseAssignmentSubmissionFile).component1_7eebsc_k$ = function () { return this.casaUid_1; }; protoOf(CourseAssignmentSubmissionFile).component2_7eebsb_k$ = function () { return this.casaSubmissionUid_1; }; protoOf(CourseAssignmentSubmissionFile).component3_7eebsa_k$ = function () { return this.casaSubmitterUid_1; }; protoOf(CourseAssignmentSubmissionFile).component4_7eebs9_k$ = function () { return this.casaCaUid_1; }; protoOf(CourseAssignmentSubmissionFile).component5_7eebs8_k$ = function () { return this.casaClazzUid_1; }; protoOf(CourseAssignmentSubmissionFile).component6_7eebs7_k$ = function () { return this.casaMimeType_1; }; protoOf(CourseAssignmentSubmissionFile).component7_7eebs6_k$ = function () { return this.casaFileName_1; }; protoOf(CourseAssignmentSubmissionFile).component8_7eebs5_k$ = function () { return this.casaUri_1; }; protoOf(CourseAssignmentSubmissionFile).component9_7eebs4_k$ = function () { return this.casaSize_1; }; protoOf(CourseAssignmentSubmissionFile).component10_gazzfo_k$ = function () { return this.casaTimestamp_1; }; protoOf(CourseAssignmentSubmissionFile).component11_gazzfn_k$ = function () { return this.casaDeleted_1; }; protoOf(CourseAssignmentSubmissionFile).copy_qeubpn_k$ = function (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) { return new CourseAssignmentSubmissionFile(casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted); }; protoOf(CourseAssignmentSubmissionFile).copy$default_5fesxh_k$ = function (casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted, $super) { casaUid = casaUid === VOID ? this.casaUid_1 : casaUid; casaSubmissionUid = casaSubmissionUid === VOID ? this.casaSubmissionUid_1 : casaSubmissionUid; casaSubmitterUid = casaSubmitterUid === VOID ? this.casaSubmitterUid_1 : casaSubmitterUid; casaCaUid = casaCaUid === VOID ? this.casaCaUid_1 : casaCaUid; casaClazzUid = casaClazzUid === VOID ? this.casaClazzUid_1 : casaClazzUid; casaMimeType = casaMimeType === VOID ? this.casaMimeType_1 : casaMimeType; casaFileName = casaFileName === VOID ? this.casaFileName_1 : casaFileName; casaUri = casaUri === VOID ? this.casaUri_1 : casaUri; casaSize = casaSize === VOID ? this.casaSize_1 : casaSize; casaTimestamp = casaTimestamp === VOID ? this.casaTimestamp_1 : casaTimestamp; casaDeleted = casaDeleted === VOID ? this.casaDeleted_1 : casaDeleted; return $super === VOID ? this.copy_qeubpn_k$(casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted) : $super.copy_qeubpn_k$.call(this, casaUid, casaSubmissionUid, casaSubmitterUid, casaCaUid, casaClazzUid, casaMimeType, casaFileName, casaUri, casaSize, casaTimestamp, casaDeleted); }; protoOf(CourseAssignmentSubmissionFile).toString = function () { return 'CourseAssignmentSubmissionFile(casaUid=' + this.casaUid_1.toString() + ', casaSubmissionUid=' + this.casaSubmissionUid_1.toString() + ', casaSubmitterUid=' + this.casaSubmitterUid_1.toString() + ', casaCaUid=' + this.casaCaUid_1.toString() + ', casaClazzUid=' + this.casaClazzUid_1.toString() + ', casaMimeType=' + this.casaMimeType_1 + ', casaFileName=' + this.casaFileName_1 + ', casaUri=' + this.casaUri_1 + ', casaSize=' + this.casaSize_1 + ', casaTimestamp=' + this.casaTimestamp_1.toString() + ', casaDeleted=' + this.casaDeleted_1 + ')'; }; protoOf(CourseAssignmentSubmissionFile).hashCode = function () { var result = this.casaUid_1.hashCode(); result = imul(result, 31) + this.casaSubmissionUid_1.hashCode() | 0; result = imul(result, 31) + this.casaSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + this.casaCaUid_1.hashCode() | 0; result = imul(result, 31) + this.casaClazzUid_1.hashCode() | 0; result = imul(result, 31) + (this.casaMimeType_1 == null ? 0 : getStringHashCode(this.casaMimeType_1)) | 0; result = imul(result, 31) + (this.casaFileName_1 == null ? 0 : getStringHashCode(this.casaFileName_1)) | 0; result = imul(result, 31) + (this.casaUri_1 == null ? 0 : getStringHashCode(this.casaUri_1)) | 0; result = imul(result, 31) + this.casaSize_1 | 0; result = imul(result, 31) + this.casaTimestamp_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.casaDeleted_1) | 0; return result; }; protoOf(CourseAssignmentSubmissionFile).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseAssignmentSubmissionFile)) return false; var tmp0_other_with_cast = other instanceof CourseAssignmentSubmissionFile ? other : THROW_CCE(); if (!this.casaUid_1.equals(tmp0_other_with_cast.casaUid_1)) return false; if (!this.casaSubmissionUid_1.equals(tmp0_other_with_cast.casaSubmissionUid_1)) return false; if (!this.casaSubmitterUid_1.equals(tmp0_other_with_cast.casaSubmitterUid_1)) return false; if (!this.casaCaUid_1.equals(tmp0_other_with_cast.casaCaUid_1)) return false; if (!this.casaClazzUid_1.equals(tmp0_other_with_cast.casaClazzUid_1)) return false; if (!(this.casaMimeType_1 == tmp0_other_with_cast.casaMimeType_1)) return false; if (!(this.casaFileName_1 == tmp0_other_with_cast.casaFileName_1)) return false; if (!(this.casaUri_1 == tmp0_other_with_cast.casaUri_1)) return false; if (!(this.casaSize_1 === tmp0_other_with_cast.casaSize_1)) return false; if (!this.casaTimestamp_1.equals(tmp0_other_with_cast.casaTimestamp_1)) return false; if (!(this.casaDeleted_1 === tmp0_other_with_cast.casaDeleted_1)) return false; return true; }; function Companion_85() { Companion_instance_85 = this; this.TABLE_ID_1 = 124; this.BLOCK_MODULE_TYPE_1 = 100; this.BLOCK_TEXT_TYPE_1 = 102; this.BLOCK_ASSIGNMENT_TYPE_1 = 103; this.BLOCK_CONTENT_TYPE_1 = 104; this.BLOCK_DISCUSSION_TYPE_1 = 105; this.BLOCK_EXTERNAL_APP_1 = 300; } protoOf(Companion_85).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_85).get_BLOCK_MODULE_TYPE_bb862a_k$ = function () { return this.BLOCK_MODULE_TYPE_1; }; protoOf(Companion_85).get_BLOCK_TEXT_TYPE_61wg5t_k$ = function () { return this.BLOCK_TEXT_TYPE_1; }; protoOf(Companion_85).get_BLOCK_ASSIGNMENT_TYPE_9x3ld_k$ = function () { return this.BLOCK_ASSIGNMENT_TYPE_1; }; protoOf(Companion_85).get_BLOCK_CONTENT_TYPE_w45ev9_k$ = function () { return this.BLOCK_CONTENT_TYPE_1; }; protoOf(Companion_85).get_BLOCK_DISCUSSION_TYPE_ghy0om_k$ = function () { return this.BLOCK_DISCUSSION_TYPE_1; }; protoOf(Companion_85).get_BLOCK_EXTERNAL_APP_1rprc8_k$ = function () { return this.BLOCK_EXTERNAL_APP_1; }; protoOf(Companion_85).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_82(); }; var Companion_instance_85; function Companion_getInstance_89() { if (Companion_instance_85 == null) new Companion_85(); return Companion_instance_85; } function $serializer_82() { $serializer_instance_82 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlock', this, 23); tmp0_serialDesc.addElement_5pzumi_k$('cbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cbType', true); tmp0_serialDesc.addElement_5pzumi_k$('cbIndentLevel', true); tmp0_serialDesc.addElement_5pzumi_k$('cbModuleParentBlockUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cbTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('cbDescription', true); tmp0_serialDesc.addElement_5pzumi_k$('cbCompletionCriteria', true); tmp0_serialDesc.addElement_5pzumi_k$('cbHideUntilDate', true); tmp0_serialDesc.addElement_5pzumi_k$('cbDeadlineDate', true); tmp0_serialDesc.addElement_5pzumi_k$('cbLateSubmissionPenalty', true); tmp0_serialDesc.addElement_5pzumi_k$('cbGracePeriodDate', true); tmp0_serialDesc.addElement_5pzumi_k$('cbMaxPoints', true); tmp0_serialDesc.addElement_5pzumi_k$('cbMinPoints', true); tmp0_serialDesc.addElement_5pzumi_k$('cbIndex', true); tmp0_serialDesc.addElement_5pzumi_k$('cbClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cbClazzSourcedId', true); tmp0_serialDesc.addElement_5pzumi_k$('cbActive', true); tmp0_serialDesc.addElement_5pzumi_k$('cbHidden', true); tmp0_serialDesc.addElement_5pzumi_k$('cbEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cbLct', true); tmp0_serialDesc.addElement_5pzumi_k$('cbSourcedId', true); tmp0_serialDesc.addElement_5pzumi_k$('cbMetadata', true); tmp0_serialDesc.addElement_5pzumi_k$('cbCreatedByAppId', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_82).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_82).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_82).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = null; var tmp16_local12 = null; var tmp17_local13 = 0; var tmp18_local14 = new Long(0, 0); var tmp19_local15 = null; var tmp20_local16 = false; var tmp21_local17 = false; var tmp22_local18 = new Long(0, 0); var tmp23_local19 = new Long(0, 0); var tmp24_local20 = null; var tmp25_local21 = null; var tmp26_local22 = null; var tmp27_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp27_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; } else while (tmp1_flag) { tmp2_index = tmp27_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, FloatSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, FloatSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp27_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp27_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp27_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp27_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp27_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlock_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, null); }; protoOf($serializer_82).serialize_1qdvto_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cbType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.cbType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cbIndentLevel_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.cbIndentLevel_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.cbModuleParentBlockUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.cbModuleParentBlockUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.cbTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.cbTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.cbDescription_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.cbDescription_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.cbCompletionCriteria_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.cbCompletionCriteria_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.cbHideUntilDate_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.cbHideUntilDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.cbDeadlineDate_1.equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.cbDeadlineDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.cbLateSubmissionPenalty_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.cbLateSubmissionPenalty_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.cbGracePeriodDate_1.equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.cbGracePeriodDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.cbMaxPoints_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, FloatSerializer_getInstance(), value.cbMaxPoints_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.cbMinPoints_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, FloatSerializer_getInstance(), value.cbMinPoints_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.cbIndex_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.cbIndex_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.cbClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.cbClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.cbClazzSourcedId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, StringSerializer_getInstance(), value.cbClazzSourcedId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.cbActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 16, value.cbActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.cbHidden_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.cbHidden_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.cbEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 18, value.cbEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.cbLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.cbLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.cbSourcedId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, StringSerializer_getInstance(), value.cbSourcedId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.cbMetadata_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, StringSerializer_getInstance(), value.cbMetadata_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.cbCreatedByAppId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, StringSerializer_getInstance(), value.cbCreatedByAppId_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_82).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_1qdvto_k$(encoder, value instanceof CourseBlock ? value : THROW_CCE()); }; var $serializer_instance_82; function $serializer_getInstance_82() { if ($serializer_instance_82 == null) new $serializer_82(); return $serializer_instance_82; } function CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_82().descriptor_1); } if (0 === (seen1 & 1)) $this.cbUid_1 = new Long(0, 0); else $this.cbUid_1 = cbUid; if (0 === (seen1 & 2)) $this.cbType_1 = 0; else $this.cbType_1 = cbType; if (0 === (seen1 & 4)) $this.cbIndentLevel_1 = 0; else $this.cbIndentLevel_1 = cbIndentLevel; if (0 === (seen1 & 8)) $this.cbModuleParentBlockUid_1 = new Long(0, 0); else $this.cbModuleParentBlockUid_1 = cbModuleParentBlockUid; if (0 === (seen1 & 16)) $this.cbTitle_1 = null; else $this.cbTitle_1 = cbTitle; if (0 === (seen1 & 32)) $this.cbDescription_1 = null; else $this.cbDescription_1 = cbDescription; if (0 === (seen1 & 64)) $this.cbCompletionCriteria_1 = 0; else $this.cbCompletionCriteria_1 = cbCompletionCriteria; if (0 === (seen1 & 128)) $this.cbHideUntilDate_1 = new Long(0, 0); else $this.cbHideUntilDate_1 = cbHideUntilDate; if (0 === (seen1 & 256)) $this.cbDeadlineDate_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); else $this.cbDeadlineDate_1 = cbDeadlineDate; if (0 === (seen1 & 512)) $this.cbLateSubmissionPenalty_1 = 0; else $this.cbLateSubmissionPenalty_1 = cbLateSubmissionPenalty; if (0 === (seen1 & 1024)) $this.cbGracePeriodDate_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); else $this.cbGracePeriodDate_1 = cbGracePeriodDate; if (0 === (seen1 & 2048)) $this.cbMaxPoints_1 = null; else $this.cbMaxPoints_1 = cbMaxPoints; if (0 === (seen1 & 4096)) $this.cbMinPoints_1 = null; else $this.cbMinPoints_1 = cbMinPoints; if (0 === (seen1 & 8192)) $this.cbIndex_1 = 0; else $this.cbIndex_1 = cbIndex; if (0 === (seen1 & 16384)) $this.cbClazzUid_1 = new Long(0, 0); else $this.cbClazzUid_1 = cbClazzUid; if (0 === (seen1 & 32768)) $this.cbClazzSourcedId_1 = null; else $this.cbClazzSourcedId_1 = cbClazzSourcedId; if (0 === (seen1 & 65536)) $this.cbActive_1 = true; else $this.cbActive_1 = cbActive; if (0 === (seen1 & 131072)) $this.cbHidden_1 = false; else $this.cbHidden_1 = cbHidden; if (0 === (seen1 & 262144)) $this.cbEntityUid_1 = new Long(0, 0); else $this.cbEntityUid_1 = cbEntityUid; if (0 === (seen1 & 524288)) $this.cbLct_1 = new Long(0, 0); else $this.cbLct_1 = cbLct; if (0 === (seen1 & 1048576)) $this.cbSourcedId_1 = null; else $this.cbSourcedId_1 = cbSourcedId; if (0 === (seen1 & 2097152)) $this.cbMetadata_1 = null; else $this.cbMetadata_1 = cbMetadata; if (0 === (seen1 & 4194304)) $this.cbCreatedByAppId_1 = null; else $this.cbCreatedByAppId_1 = cbCreatedByAppId; return $this; } function CourseBlock_init_$Create$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker) { return CourseBlock_init_$Init$(seen1, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, serializationConstructorMarker, objectCreate(protoOf(CourseBlock))); } function CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) { Companion_getInstance_89(); cbUid = cbUid === VOID ? new Long(0, 0) : cbUid; cbType = cbType === VOID ? 0 : cbType; cbIndentLevel = cbIndentLevel === VOID ? 0 : cbIndentLevel; cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? new Long(0, 0) : cbModuleParentBlockUid; cbTitle = cbTitle === VOID ? null : cbTitle; cbDescription = cbDescription === VOID ? null : cbDescription; cbCompletionCriteria = cbCompletionCriteria === VOID ? 0 : cbCompletionCriteria; cbHideUntilDate = cbHideUntilDate === VOID ? new Long(0, 0) : cbHideUntilDate; cbDeadlineDate = cbDeadlineDate === VOID ? Companion_getInstance().get_MAX_VALUE_54a9lf_k$() : cbDeadlineDate; cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? 0 : cbLateSubmissionPenalty; cbGracePeriodDate = cbGracePeriodDate === VOID ? Companion_getInstance().get_MAX_VALUE_54a9lf_k$() : cbGracePeriodDate; cbMaxPoints = cbMaxPoints === VOID ? null : cbMaxPoints; cbMinPoints = cbMinPoints === VOID ? null : cbMinPoints; cbIndex = cbIndex === VOID ? 0 : cbIndex; cbClazzUid = cbClazzUid === VOID ? new Long(0, 0) : cbClazzUid; cbClazzSourcedId = cbClazzSourcedId === VOID ? null : cbClazzSourcedId; cbActive = cbActive === VOID ? true : cbActive; cbHidden = cbHidden === VOID ? false : cbHidden; cbEntityUid = cbEntityUid === VOID ? new Long(0, 0) : cbEntityUid; cbLct = cbLct === VOID ? new Long(0, 0) : cbLct; cbSourcedId = cbSourcedId === VOID ? null : cbSourcedId; cbMetadata = cbMetadata === VOID ? null : cbMetadata; cbCreatedByAppId = cbCreatedByAppId === VOID ? null : cbCreatedByAppId; this.cbUid_1 = cbUid; this.cbType_1 = cbType; this.cbIndentLevel_1 = cbIndentLevel; this.cbModuleParentBlockUid_1 = cbModuleParentBlockUid; this.cbTitle_1 = cbTitle; this.cbDescription_1 = cbDescription; this.cbCompletionCriteria_1 = cbCompletionCriteria; this.cbHideUntilDate_1 = cbHideUntilDate; this.cbDeadlineDate_1 = cbDeadlineDate; this.cbLateSubmissionPenalty_1 = cbLateSubmissionPenalty; this.cbGracePeriodDate_1 = cbGracePeriodDate; this.cbMaxPoints_1 = cbMaxPoints; this.cbMinPoints_1 = cbMinPoints; this.cbIndex_1 = cbIndex; this.cbClazzUid_1 = cbClazzUid; this.cbClazzSourcedId_1 = cbClazzSourcedId; this.cbActive_1 = cbActive; this.cbHidden_1 = cbHidden; this.cbEntityUid_1 = cbEntityUid; this.cbLct_1 = cbLct; this.cbSourcedId_1 = cbSourcedId; this.cbMetadata_1 = cbMetadata; this.cbCreatedByAppId_1 = cbCreatedByAppId; } protoOf(CourseBlock).set_cbUid_qoojw6_k$ = function (_set____db54di) { this.cbUid_1 = _set____db54di; }; protoOf(CourseBlock).get_cbUid_iplgso_k$ = function () { return this.cbUid_1; }; protoOf(CourseBlock).set_cbType_tflke_k$ = function (_set____db54di) { this.cbType_1 = _set____db54di; }; protoOf(CourseBlock).get_cbType_bskq4i_k$ = function () { return this.cbType_1; }; protoOf(CourseBlock).set_cbIndentLevel_b0ddcc_k$ = function (_set____db54di) { this.cbIndentLevel_1 = _set____db54di; }; protoOf(CourseBlock).get_cbIndentLevel_ss1m8_k$ = function () { return this.cbIndentLevel_1; }; protoOf(CourseBlock).set_cbModuleParentBlockUid_5us6sp_k$ = function (_set____db54di) { this.cbModuleParentBlockUid_1 = _set____db54di; }; protoOf(CourseBlock).get_cbModuleParentBlockUid_kgmwbj_k$ = function () { return this.cbModuleParentBlockUid_1; }; protoOf(CourseBlock).set_cbTitle_bruk91_k$ = function (_set____db54di) { this.cbTitle_1 = _set____db54di; }; protoOf(CourseBlock).get_cbTitle_ag03f4_k$ = function () { return this.cbTitle_1; }; protoOf(CourseBlock).set_cbDescription_l0w0bt_k$ = function (_set____db54di) { this.cbDescription_1 = _set____db54di; }; protoOf(CourseBlock).get_cbDescription_asqepg_k$ = function () { return this.cbDescription_1; }; protoOf(CourseBlock).set_cbCompletionCriteria_jl4izz_k$ = function (_set____db54di) { this.cbCompletionCriteria_1 = _set____db54di; }; protoOf(CourseBlock).get_cbCompletionCriteria_u1vf4z_k$ = function () { return this.cbCompletionCriteria_1; }; protoOf(CourseBlock).set_cbHideUntilDate_jhoca8_k$ = function (_set____db54di) { this.cbHideUntilDate_1 = _set____db54di; }; protoOf(CourseBlock).get_cbHideUntilDate_7s19tu_k$ = function () { return this.cbHideUntilDate_1; }; protoOf(CourseBlock).set_cbDeadlineDate_j15nic_k$ = function (_set____db54di) { this.cbDeadlineDate_1 = _set____db54di; }; protoOf(CourseBlock).get_cbDeadlineDate_nvh1aq_k$ = function () { return this.cbDeadlineDate_1; }; protoOf(CourseBlock).set_cbLateSubmissionPenalty_spbtzh_k$ = function (_set____db54di) { this.cbLateSubmissionPenalty_1 = _set____db54di; }; protoOf(CourseBlock).get_cbLateSubmissionPenalty_1lsxv5_k$ = function () { return this.cbLateSubmissionPenalty_1; }; protoOf(CourseBlock).set_cbGracePeriodDate_ynrpub_k$ = function (_set____db54di) { this.cbGracePeriodDate_1 = _set____db54di; }; protoOf(CourseBlock).get_cbGracePeriodDate_kapsrj_k$ = function () { return this.cbGracePeriodDate_1; }; protoOf(CourseBlock).set_cbMaxPoints_fbqjqu_k$ = function (_set____db54di) { this.cbMaxPoints_1 = _set____db54di; }; protoOf(CourseBlock).get_cbMaxPoints_s83kbl_k$ = function () { return this.cbMaxPoints_1; }; protoOf(CourseBlock).set_cbMinPoints_5fzt3w_k$ = function (_set____db54di) { this.cbMinPoints_1 = _set____db54di; }; protoOf(CourseBlock).get_cbMinPoints_fg6o1f_k$ = function () { return this.cbMinPoints_1; }; protoOf(CourseBlock).set_cbIndex_grlur6_k$ = function (_set____db54di) { this.cbIndex_1 = _set____db54di; }; protoOf(CourseBlock).get_cbIndex_aa17t6_k$ = function () { return this.cbIndex_1; }; protoOf(CourseBlock).set_cbClazzUid_79ru4q_k$ = function (_set____db54di) { this.cbClazzUid_1 = _set____db54di; }; protoOf(CourseBlock).get_cbClazzUid_8ps9nk_k$ = function () { return this.cbClazzUid_1; }; protoOf(CourseBlock).set_cbClazzSourcedId_wwkfjj_k$ = function (_set____db54di) { this.cbClazzSourcedId_1 = _set____db54di; }; protoOf(CourseBlock).get_cbClazzSourcedId_4wy0j8_k$ = function () { return this.cbClazzSourcedId_1; }; protoOf(CourseBlock).set_cbActive_isa26r_k$ = function (_set____db54di) { this.cbActive_1 = _set____db54di; }; protoOf(CourseBlock).get_cbActive_ukh3bi_k$ = function () { return this.cbActive_1; }; protoOf(CourseBlock).set_cbHidden_de3tzl_k$ = function (_set____db54di) { this.cbHidden_1 = _set____db54di; }; protoOf(CourseBlock).get_cbHidden_xysvqq_k$ = function () { return this.cbHidden_1; }; protoOf(CourseBlock).set_cbEntityUid_m0t7oz_k$ = function (_set____db54di) { this.cbEntityUid_1 = _set____db54di; }; protoOf(CourseBlock).get_cbEntityUid_tffl3v_k$ = function () { return this.cbEntityUid_1; }; protoOf(CourseBlock).set_cbLct_ibdrxf_k$ = function (_set____db54di) { this.cbLct_1 = _set____db54di; }; protoOf(CourseBlock).get_cbLct_ipl9zp_k$ = function () { return this.cbLct_1; }; protoOf(CourseBlock).set_cbSourcedId_jrt4y9_k$ = function (_set____db54di) { this.cbSourcedId_1 = _set____db54di; }; protoOf(CourseBlock).get_cbSourcedId_pret24_k$ = function () { return this.cbSourcedId_1; }; protoOf(CourseBlock).set_cbMetadata_bvbmlo_k$ = function (_set____db54di) { this.cbMetadata_1 = _set____db54di; }; protoOf(CourseBlock).get_cbMetadata_aacz49_k$ = function () { return this.cbMetadata_1; }; protoOf(CourseBlock).set_cbCreatedByAppId_3wodr6_k$ = function (_set____db54di) { this.cbCreatedByAppId_1 = _set____db54di; }; protoOf(CourseBlock).get_cbCreatedByAppId_1p8i63_k$ = function () { return this.cbCreatedByAppId_1; }; protoOf(CourseBlock).component1_7eebsc_k$ = function () { return this.cbUid_1; }; protoOf(CourseBlock).component2_7eebsb_k$ = function () { return this.cbType_1; }; protoOf(CourseBlock).component3_7eebsa_k$ = function () { return this.cbIndentLevel_1; }; protoOf(CourseBlock).component4_7eebs9_k$ = function () { return this.cbModuleParentBlockUid_1; }; protoOf(CourseBlock).component5_7eebs8_k$ = function () { return this.cbTitle_1; }; protoOf(CourseBlock).component6_7eebs7_k$ = function () { return this.cbDescription_1; }; protoOf(CourseBlock).component7_7eebs6_k$ = function () { return this.cbCompletionCriteria_1; }; protoOf(CourseBlock).component8_7eebs5_k$ = function () { return this.cbHideUntilDate_1; }; protoOf(CourseBlock).component9_7eebs4_k$ = function () { return this.cbDeadlineDate_1; }; protoOf(CourseBlock).component10_gazzfo_k$ = function () { return this.cbLateSubmissionPenalty_1; }; protoOf(CourseBlock).component11_gazzfn_k$ = function () { return this.cbGracePeriodDate_1; }; protoOf(CourseBlock).component12_gazzfm_k$ = function () { return this.cbMaxPoints_1; }; protoOf(CourseBlock).component13_gazzfl_k$ = function () { return this.cbMinPoints_1; }; protoOf(CourseBlock).component14_gazzfk_k$ = function () { return this.cbIndex_1; }; protoOf(CourseBlock).component15_gazzfj_k$ = function () { return this.cbClazzUid_1; }; protoOf(CourseBlock).component16_gazzfi_k$ = function () { return this.cbClazzSourcedId_1; }; protoOf(CourseBlock).component17_gazzfh_k$ = function () { return this.cbActive_1; }; protoOf(CourseBlock).component18_gazzfg_k$ = function () { return this.cbHidden_1; }; protoOf(CourseBlock).component19_gazzff_k$ = function () { return this.cbEntityUid_1; }; protoOf(CourseBlock).component20_gazzet_k$ = function () { return this.cbLct_1; }; protoOf(CourseBlock).component21_gazzes_k$ = function () { return this.cbSourcedId_1; }; protoOf(CourseBlock).component22_gazzer_k$ = function () { return this.cbMetadata_1; }; protoOf(CourseBlock).component23_gazzeq_k$ = function () { return this.cbCreatedByAppId_1; }; protoOf(CourseBlock).copy_ailcax_k$ = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) { return new CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId); }; protoOf(CourseBlock).copy$default_rhvmtp_k$ = function (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId, $super) { cbUid = cbUid === VOID ? this.cbUid_1 : cbUid; cbType = cbType === VOID ? this.cbType_1 : cbType; cbIndentLevel = cbIndentLevel === VOID ? this.cbIndentLevel_1 : cbIndentLevel; cbModuleParentBlockUid = cbModuleParentBlockUid === VOID ? this.cbModuleParentBlockUid_1 : cbModuleParentBlockUid; cbTitle = cbTitle === VOID ? this.cbTitle_1 : cbTitle; cbDescription = cbDescription === VOID ? this.cbDescription_1 : cbDescription; cbCompletionCriteria = cbCompletionCriteria === VOID ? this.cbCompletionCriteria_1 : cbCompletionCriteria; cbHideUntilDate = cbHideUntilDate === VOID ? this.cbHideUntilDate_1 : cbHideUntilDate; cbDeadlineDate = cbDeadlineDate === VOID ? this.cbDeadlineDate_1 : cbDeadlineDate; cbLateSubmissionPenalty = cbLateSubmissionPenalty === VOID ? this.cbLateSubmissionPenalty_1 : cbLateSubmissionPenalty; cbGracePeriodDate = cbGracePeriodDate === VOID ? this.cbGracePeriodDate_1 : cbGracePeriodDate; cbMaxPoints = cbMaxPoints === VOID ? this.cbMaxPoints_1 : cbMaxPoints; cbMinPoints = cbMinPoints === VOID ? this.cbMinPoints_1 : cbMinPoints; cbIndex = cbIndex === VOID ? this.cbIndex_1 : cbIndex; cbClazzUid = cbClazzUid === VOID ? this.cbClazzUid_1 : cbClazzUid; cbClazzSourcedId = cbClazzSourcedId === VOID ? this.cbClazzSourcedId_1 : cbClazzSourcedId; cbActive = cbActive === VOID ? this.cbActive_1 : cbActive; cbHidden = cbHidden === VOID ? this.cbHidden_1 : cbHidden; cbEntityUid = cbEntityUid === VOID ? this.cbEntityUid_1 : cbEntityUid; cbLct = cbLct === VOID ? this.cbLct_1 : cbLct; cbSourcedId = cbSourcedId === VOID ? this.cbSourcedId_1 : cbSourcedId; cbMetadata = cbMetadata === VOID ? this.cbMetadata_1 : cbMetadata; cbCreatedByAppId = cbCreatedByAppId === VOID ? this.cbCreatedByAppId_1 : cbCreatedByAppId; return $super === VOID ? this.copy_ailcax_k$(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId) : $super.copy_ailcax_k$.call(this, cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbClazzSourcedId, cbActive, cbHidden, cbEntityUid, cbLct, cbSourcedId, cbMetadata, cbCreatedByAppId); }; protoOf(CourseBlock).toString = function () { return 'CourseBlock(cbUid=' + this.cbUid_1.toString() + ', cbType=' + this.cbType_1 + ', cbIndentLevel=' + this.cbIndentLevel_1 + ', cbModuleParentBlockUid=' + this.cbModuleParentBlockUid_1.toString() + ', cbTitle=' + this.cbTitle_1 + ', cbDescription=' + this.cbDescription_1 + ', cbCompletionCriteria=' + this.cbCompletionCriteria_1 + ', cbHideUntilDate=' + this.cbHideUntilDate_1.toString() + ', cbDeadlineDate=' + this.cbDeadlineDate_1.toString() + ', cbLateSubmissionPenalty=' + this.cbLateSubmissionPenalty_1 + ', cbGracePeriodDate=' + this.cbGracePeriodDate_1.toString() + ', cbMaxPoints=' + this.cbMaxPoints_1 + ', cbMinPoints=' + this.cbMinPoints_1 + ', cbIndex=' + this.cbIndex_1 + ', cbClazzUid=' + this.cbClazzUid_1.toString() + ', cbClazzSourcedId=' + this.cbClazzSourcedId_1 + ', cbActive=' + this.cbActive_1 + ', cbHidden=' + this.cbHidden_1 + ', cbEntityUid=' + this.cbEntityUid_1.toString() + ', cbLct=' + this.cbLct_1.toString() + ', cbSourcedId=' + this.cbSourcedId_1 + ', cbMetadata=' + this.cbMetadata_1 + ', cbCreatedByAppId=' + this.cbCreatedByAppId_1 + ')'; }; protoOf(CourseBlock).hashCode = function () { var result = this.cbUid_1.hashCode(); result = imul(result, 31) + this.cbType_1 | 0; result = imul(result, 31) + this.cbIndentLevel_1 | 0; result = imul(result, 31) + this.cbModuleParentBlockUid_1.hashCode() | 0; result = imul(result, 31) + (this.cbTitle_1 == null ? 0 : getStringHashCode(this.cbTitle_1)) | 0; result = imul(result, 31) + (this.cbDescription_1 == null ? 0 : getStringHashCode(this.cbDescription_1)) | 0; result = imul(result, 31) + this.cbCompletionCriteria_1 | 0; result = imul(result, 31) + this.cbHideUntilDate_1.hashCode() | 0; result = imul(result, 31) + this.cbDeadlineDate_1.hashCode() | 0; result = imul(result, 31) + this.cbLateSubmissionPenalty_1 | 0; result = imul(result, 31) + this.cbGracePeriodDate_1.hashCode() | 0; result = imul(result, 31) + (this.cbMaxPoints_1 == null ? 0 : getNumberHashCode(this.cbMaxPoints_1)) | 0; result = imul(result, 31) + (this.cbMinPoints_1 == null ? 0 : getNumberHashCode(this.cbMinPoints_1)) | 0; result = imul(result, 31) + this.cbIndex_1 | 0; result = imul(result, 31) + this.cbClazzUid_1.hashCode() | 0; result = imul(result, 31) + (this.cbClazzSourcedId_1 == null ? 0 : getStringHashCode(this.cbClazzSourcedId_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.cbActive_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.cbHidden_1) | 0; result = imul(result, 31) + this.cbEntityUid_1.hashCode() | 0; result = imul(result, 31) + this.cbLct_1.hashCode() | 0; result = imul(result, 31) + (this.cbSourcedId_1 == null ? 0 : getStringHashCode(this.cbSourcedId_1)) | 0; result = imul(result, 31) + (this.cbMetadata_1 == null ? 0 : getStringHashCode(this.cbMetadata_1)) | 0; result = imul(result, 31) + (this.cbCreatedByAppId_1 == null ? 0 : getStringHashCode(this.cbCreatedByAppId_1)) | 0; return result; }; protoOf(CourseBlock).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlock)) return false; var tmp0_other_with_cast = other instanceof CourseBlock ? other : THROW_CCE(); if (!this.cbUid_1.equals(tmp0_other_with_cast.cbUid_1)) return false; if (!(this.cbType_1 === tmp0_other_with_cast.cbType_1)) return false; if (!(this.cbIndentLevel_1 === tmp0_other_with_cast.cbIndentLevel_1)) return false; if (!this.cbModuleParentBlockUid_1.equals(tmp0_other_with_cast.cbModuleParentBlockUid_1)) return false; if (!(this.cbTitle_1 == tmp0_other_with_cast.cbTitle_1)) return false; if (!(this.cbDescription_1 == tmp0_other_with_cast.cbDescription_1)) return false; if (!(this.cbCompletionCriteria_1 === tmp0_other_with_cast.cbCompletionCriteria_1)) return false; if (!this.cbHideUntilDate_1.equals(tmp0_other_with_cast.cbHideUntilDate_1)) return false; if (!this.cbDeadlineDate_1.equals(tmp0_other_with_cast.cbDeadlineDate_1)) return false; if (!(this.cbLateSubmissionPenalty_1 === tmp0_other_with_cast.cbLateSubmissionPenalty_1)) return false; if (!this.cbGracePeriodDate_1.equals(tmp0_other_with_cast.cbGracePeriodDate_1)) return false; if (!equals(this.cbMaxPoints_1, tmp0_other_with_cast.cbMaxPoints_1)) return false; if (!equals(this.cbMinPoints_1, tmp0_other_with_cast.cbMinPoints_1)) return false; if (!(this.cbIndex_1 === tmp0_other_with_cast.cbIndex_1)) return false; if (!this.cbClazzUid_1.equals(tmp0_other_with_cast.cbClazzUid_1)) return false; if (!(this.cbClazzSourcedId_1 == tmp0_other_with_cast.cbClazzSourcedId_1)) return false; if (!(this.cbActive_1 === tmp0_other_with_cast.cbActive_1)) return false; if (!(this.cbHidden_1 === tmp0_other_with_cast.cbHidden_1)) return false; if (!this.cbEntityUid_1.equals(tmp0_other_with_cast.cbEntityUid_1)) return false; if (!this.cbLct_1.equals(tmp0_other_with_cast.cbLct_1)) return false; if (!(this.cbSourcedId_1 == tmp0_other_with_cast.cbSourcedId_1)) return false; if (!(this.cbMetadata_1 == tmp0_other_with_cast.cbMetadata_1)) return false; if (!(this.cbCreatedByAppId_1 == tmp0_other_with_cast.cbCreatedByAppId_1)) return false; return true; }; function Companion_86() { Companion_instance_86 = this; this.TABLE_ID_1 = 6677; } protoOf(Companion_86).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_86).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_83(); }; var Companion_instance_86; function Companion_getInstance_90() { if (Companion_instance_86 == null) new Companion_86(); return Companion_instance_86; } function $serializer_83() { $serializer_instance_83 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseBlockPicture', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('cbpUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cbpLct', true); tmp0_serialDesc.addElement_5pzumi_k$('cbpPictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('cbpThumbnailUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_83).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_83).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_83).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseBlockPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_83).serialize_dryzec_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cbpUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cbpUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cbpLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cbpLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cbpPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.cbpPictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cbpThumbnailUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.cbpThumbnailUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_83).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_dryzec_k$(encoder, value instanceof CourseBlockPicture ? value : THROW_CCE()); }; var $serializer_instance_83; function $serializer_getInstance_83() { if ($serializer_instance_83 == null) new $serializer_83(); return $serializer_instance_83; } function CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_83().descriptor_1); } if (0 === (seen1 & 1)) $this.cbpUid_1 = new Long(0, 0); else $this.cbpUid_1 = cbpUid; if (0 === (seen1 & 2)) $this.cbpLct_1 = new Long(0, 0); else $this.cbpLct_1 = cbpLct; if (0 === (seen1 & 4)) $this.cbpPictureUri_1 = null; else $this.cbpPictureUri_1 = cbpPictureUri; if (0 === (seen1 & 8)) $this.cbpThumbnailUri_1 = null; else $this.cbpThumbnailUri_1 = cbpThumbnailUri; return $this; } function CourseBlockPicture_init_$Create$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker) { return CourseBlockPicture_init_$Init$(seen1, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, serializationConstructorMarker, objectCreate(protoOf(CourseBlockPicture))); } function CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) { Companion_getInstance_90(); cbpUid = cbpUid === VOID ? new Long(0, 0) : cbpUid; cbpLct = cbpLct === VOID ? new Long(0, 0) : cbpLct; cbpPictureUri = cbpPictureUri === VOID ? null : cbpPictureUri; cbpThumbnailUri = cbpThumbnailUri === VOID ? null : cbpThumbnailUri; this.cbpUid_1 = cbpUid; this.cbpLct_1 = cbpLct; this.cbpPictureUri_1 = cbpPictureUri; this.cbpThumbnailUri_1 = cbpThumbnailUri; } protoOf(CourseBlockPicture).set_cbpUid_m5d5ky_k$ = function (_set____db54di) { this.cbpUid_1 = _set____db54di; }; protoOf(CourseBlockPicture).get_cbpUid_bt1uw8_k$ = function () { return this.cbpUid_1; }; protoOf(CourseBlockPicture).set_cbpLct_uinxjp_k$ = function (_set____db54di) { this.cbpLct_1 = _set____db54di; }; protoOf(CourseBlockPicture).get_cbpLct_bt1o39_k$ = function () { return this.cbpLct_1; }; protoOf(CourseBlockPicture).set_cbpPictureUri_1ihaej_k$ = function (_set____db54di) { this.cbpPictureUri_1 = _set____db54di; }; protoOf(CourseBlockPicture).get_cbpPictureUri_stohti_k$ = function () { return this.cbpPictureUri_1; }; protoOf(CourseBlockPicture).set_cbpThumbnailUri_omc7nn_k$ = function (_set____db54di) { this.cbpThumbnailUri_1 = _set____db54di; }; protoOf(CourseBlockPicture).get_cbpThumbnailUri_5hy4js_k$ = function () { return this.cbpThumbnailUri_1; }; protoOf(CourseBlockPicture).component1_7eebsc_k$ = function () { return this.cbpUid_1; }; protoOf(CourseBlockPicture).component2_7eebsb_k$ = function () { return this.cbpLct_1; }; protoOf(CourseBlockPicture).component3_7eebsa_k$ = function () { return this.cbpPictureUri_1; }; protoOf(CourseBlockPicture).component4_7eebs9_k$ = function () { return this.cbpThumbnailUri_1; }; protoOf(CourseBlockPicture).copy_wdqa93_k$ = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) { return new CourseBlockPicture(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri); }; protoOf(CourseBlockPicture).copy$default_gigcpw_k$ = function (cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri, $super) { cbpUid = cbpUid === VOID ? this.cbpUid_1 : cbpUid; cbpLct = cbpLct === VOID ? this.cbpLct_1 : cbpLct; cbpPictureUri = cbpPictureUri === VOID ? this.cbpPictureUri_1 : cbpPictureUri; cbpThumbnailUri = cbpThumbnailUri === VOID ? this.cbpThumbnailUri_1 : cbpThumbnailUri; return $super === VOID ? this.copy_wdqa93_k$(cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri) : $super.copy_wdqa93_k$.call(this, cbpUid, cbpLct, cbpPictureUri, cbpThumbnailUri); }; protoOf(CourseBlockPicture).toString = function () { return 'CourseBlockPicture(cbpUid=' + this.cbpUid_1.toString() + ', cbpLct=' + this.cbpLct_1.toString() + ', cbpPictureUri=' + this.cbpPictureUri_1 + ', cbpThumbnailUri=' + this.cbpThumbnailUri_1 + ')'; }; protoOf(CourseBlockPicture).hashCode = function () { var result = this.cbpUid_1.hashCode(); result = imul(result, 31) + this.cbpLct_1.hashCode() | 0; result = imul(result, 31) + (this.cbpPictureUri_1 == null ? 0 : getStringHashCode(this.cbpPictureUri_1)) | 0; result = imul(result, 31) + (this.cbpThumbnailUri_1 == null ? 0 : getStringHashCode(this.cbpThumbnailUri_1)) | 0; return result; }; protoOf(CourseBlockPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseBlockPicture)) return false; var tmp0_other_with_cast = other instanceof CourseBlockPicture ? other : THROW_CCE(); if (!this.cbpUid_1.equals(tmp0_other_with_cast.cbpUid_1)) return false; if (!this.cbpLct_1.equals(tmp0_other_with_cast.cbpLct_1)) return false; if (!(this.cbpPictureUri_1 == tmp0_other_with_cast.cbpPictureUri_1)) return false; if (!(this.cbpThumbnailUri_1 == tmp0_other_with_cast.cbpThumbnailUri_1)) return false; return true; }; function Companion_87() { Companion_instance_87 = this; this.TABLE_ID_1 = 243; } protoOf(Companion_87).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_87).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_84(); }; var Companion_instance_87; function Companion_getInstance_91() { if (Companion_instance_87 == null) new Companion_87(); return Companion_instance_87; } function $serializer_84() { $serializer_instance_84 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMember', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('cgmUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cgmSetUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cgmGroupNumber', true); tmp0_serialDesc.addElement_5pzumi_k$('cgmPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cgmLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_84).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_84).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_84).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = 0; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseGroupMember_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_84).serialize_vu238w_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cgmUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cgmUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cgmSetUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cgmSetUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cgmGroupNumber_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.cgmGroupNumber_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.cgmPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.cgmPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cgmLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.cgmLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_84).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_vu238w_k$(encoder, value instanceof CourseGroupMember ? value : THROW_CCE()); }; var $serializer_instance_84; function $serializer_getInstance_84() { if ($serializer_instance_84 == null) new $serializer_84(); return $serializer_instance_84; } function CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_84().descriptor_1); } if (0 === (seen1 & 1)) $this.cgmUid_1 = new Long(0, 0); else $this.cgmUid_1 = cgmUid; if (0 === (seen1 & 2)) $this.cgmSetUid_1 = new Long(0, 0); else $this.cgmSetUid_1 = cgmSetUid; if (0 === (seen1 & 4)) $this.cgmGroupNumber_1 = 0; else $this.cgmGroupNumber_1 = cgmGroupNumber; if (0 === (seen1 & 8)) $this.cgmPersonUid_1 = new Long(0, 0); else $this.cgmPersonUid_1 = cgmPersonUid; if (0 === (seen1 & 16)) $this.cgmLct_1 = new Long(0, 0); else $this.cgmLct_1 = cgmLct; return $this; } function CourseGroupMember_init_$Create$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker) { return CourseGroupMember_init_$Init$(seen1, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMember))); } function CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) { Companion_getInstance_91(); cgmUid = cgmUid === VOID ? new Long(0, 0) : cgmUid; cgmSetUid = cgmSetUid === VOID ? new Long(0, 0) : cgmSetUid; cgmGroupNumber = cgmGroupNumber === VOID ? 0 : cgmGroupNumber; cgmPersonUid = cgmPersonUid === VOID ? new Long(0, 0) : cgmPersonUid; cgmLct = cgmLct === VOID ? new Long(0, 0) : cgmLct; this.cgmUid_1 = cgmUid; this.cgmSetUid_1 = cgmSetUid; this.cgmGroupNumber_1 = cgmGroupNumber; this.cgmPersonUid_1 = cgmPersonUid; this.cgmLct_1 = cgmLct; } protoOf(CourseGroupMember).set_cgmUid_ev2k12_k$ = function (_set____db54di) { this.cgmUid_1 = _set____db54di; }; protoOf(CourseGroupMember).get_cgmUid_bvqwwg_k$ = function () { return this.cgmUid_1; }; protoOf(CourseGroupMember).set_cgmSetUid_59g4u4_k$ = function (_set____db54di) { this.cgmSetUid_1 = _set____db54di; }; protoOf(CourseGroupMember).get_cgmSetUid_p0svym_k$ = function () { return this.cgmSetUid_1; }; protoOf(CourseGroupMember).set_cgmGroupNumber_dn01qs_k$ = function (_set____db54di) { this.cgmGroupNumber_1 = _set____db54di; }; protoOf(CourseGroupMember).get_cgmGroupNumber_t9dymw_k$ = function () { return this.cgmGroupNumber_1; }; protoOf(CourseGroupMember).set_cgmPersonUid_6dl15b_k$ = function (_set____db54di) { this.cgmPersonUid_1 = _set____db54di; }; protoOf(CourseGroupMember).get_cgmPersonUid_qqbtdx_k$ = function () { return this.cgmPersonUid_1; }; protoOf(CourseGroupMember).set_cgmLct_6hrs2b_k$ = function (_set____db54di) { this.cgmLct_1 = _set____db54di; }; protoOf(CourseGroupMember).get_cgmLct_bvqq3h_k$ = function () { return this.cgmLct_1; }; protoOf(CourseGroupMember).component1_7eebsc_k$ = function () { return this.cgmUid_1; }; protoOf(CourseGroupMember).component2_7eebsb_k$ = function () { return this.cgmSetUid_1; }; protoOf(CourseGroupMember).component3_7eebsa_k$ = function () { return this.cgmGroupNumber_1; }; protoOf(CourseGroupMember).component4_7eebs9_k$ = function () { return this.cgmPersonUid_1; }; protoOf(CourseGroupMember).component5_7eebs8_k$ = function () { return this.cgmLct_1; }; protoOf(CourseGroupMember).copy_qw00n1_k$ = function (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) { return new CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct); }; protoOf(CourseGroupMember).copy$default_syjnd5_k$ = function (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct, $super) { cgmUid = cgmUid === VOID ? this.cgmUid_1 : cgmUid; cgmSetUid = cgmSetUid === VOID ? this.cgmSetUid_1 : cgmSetUid; cgmGroupNumber = cgmGroupNumber === VOID ? this.cgmGroupNumber_1 : cgmGroupNumber; cgmPersonUid = cgmPersonUid === VOID ? this.cgmPersonUid_1 : cgmPersonUid; cgmLct = cgmLct === VOID ? this.cgmLct_1 : cgmLct; return $super === VOID ? this.copy_qw00n1_k$(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) : $super.copy_qw00n1_k$.call(this, cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct); }; protoOf(CourseGroupMember).toString = function () { return 'CourseGroupMember(cgmUid=' + this.cgmUid_1.toString() + ', cgmSetUid=' + this.cgmSetUid_1.toString() + ', cgmGroupNumber=' + this.cgmGroupNumber_1 + ', cgmPersonUid=' + this.cgmPersonUid_1.toString() + ', cgmLct=' + this.cgmLct_1.toString() + ')'; }; protoOf(CourseGroupMember).hashCode = function () { var result = this.cgmUid_1.hashCode(); result = imul(result, 31) + this.cgmSetUid_1.hashCode() | 0; result = imul(result, 31) + this.cgmGroupNumber_1 | 0; result = imul(result, 31) + this.cgmPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.cgmLct_1.hashCode() | 0; return result; }; protoOf(CourseGroupMember).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMember)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMember ? other : THROW_CCE(); if (!this.cgmUid_1.equals(tmp0_other_with_cast.cgmUid_1)) return false; if (!this.cgmSetUid_1.equals(tmp0_other_with_cast.cgmSetUid_1)) return false; if (!(this.cgmGroupNumber_1 === tmp0_other_with_cast.cgmGroupNumber_1)) return false; if (!this.cgmPersonUid_1.equals(tmp0_other_with_cast.cgmPersonUid_1)) return false; if (!this.cgmLct_1.equals(tmp0_other_with_cast.cgmLct_1)) return false; return true; }; function Companion_88() { Companion_instance_88 = this; } protoOf(Companion_88).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_85(); }; var Companion_instance_88; function Companion_getInstance_92() { if (Companion_instance_88 == null) new Companion_88(); return Companion_instance_88; } function $serializer_85() { $serializer_instance_85 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupMemberAndName', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('cgm', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('personUid', true); tmp0_serialDesc.addElement_5pzumi_k$('enrolmentIsActive', true); tmp0_serialDesc.addElement_5pzumi_k$('pictureUri', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_85).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_85).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_84()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_85).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = null; var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = false; var tmp8_local4 = null; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_84(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_84(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseGroupMemberAndName_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_85).serialize_4bl4r0_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.cgm_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_84(), value.cgm_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.personUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.personUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.enrolmentIsActive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.enrolmentIsActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.pictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.pictureUri_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_85).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_4bl4r0_k$(encoder, value instanceof CourseGroupMemberAndName ? value : THROW_CCE()); }; var $serializer_instance_85; function $serializer_getInstance_85() { if ($serializer_instance_85 == null) new $serializer_85(); return $serializer_instance_85; } function CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_85().descriptor_1); } if (0 === (seen1 & 1)) $this.cgm_1 = null; else $this.cgm_1 = cgm; if (0 === (seen1 & 2)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 4)) $this.personUid_1 = new Long(0, 0); else $this.personUid_1 = personUid; if (0 === (seen1 & 8)) $this.enrolmentIsActive_1 = false; else $this.enrolmentIsActive_1 = enrolmentIsActive; if (0 === (seen1 & 16)) $this.pictureUri_1 = null; else $this.pictureUri_1 = pictureUri; return $this; } function CourseGroupMemberAndName_init_$Create$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker) { return CourseGroupMemberAndName_init_$Init$(seen1, cgm, name, personUid, enrolmentIsActive, pictureUri, serializationConstructorMarker, objectCreate(protoOf(CourseGroupMemberAndName))); } function CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri) { Companion_getInstance_92(); cgm = cgm === VOID ? null : cgm; name = name === VOID ? null : name; personUid = personUid === VOID ? new Long(0, 0) : personUid; enrolmentIsActive = enrolmentIsActive === VOID ? false : enrolmentIsActive; pictureUri = pictureUri === VOID ? null : pictureUri; this.cgm_1 = cgm; this.name_1 = name; this.personUid_1 = personUid; this.enrolmentIsActive_1 = enrolmentIsActive; this.pictureUri_1 = pictureUri; } protoOf(CourseGroupMemberAndName).set_cgm_8hk7qi_k$ = function (_set____db54di) { this.cgm_1 = _set____db54di; }; protoOf(CourseGroupMemberAndName).get_cgm_18j84g_k$ = function () { return this.cgm_1; }; protoOf(CourseGroupMemberAndName).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(CourseGroupMemberAndName).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(CourseGroupMemberAndName).set_personUid_j3idds_k$ = function (_set____db54di) { this.personUid_1 = _set____db54di; }; protoOf(CourseGroupMemberAndName).get_personUid_mmhd76_k$ = function () { return this.personUid_1; }; protoOf(CourseGroupMemberAndName).set_enrolmentIsActive_qmxdoi_k$ = function (_set____db54di) { this.enrolmentIsActive_1 = _set____db54di; }; protoOf(CourseGroupMemberAndName).get_enrolmentIsActive_5hix1x_k$ = function () { return this.enrolmentIsActive_1; }; protoOf(CourseGroupMemberAndName).set_pictureUri_ldxxh0_k$ = function (_set____db54di) { this.pictureUri_1 = _set____db54di; }; protoOf(CourseGroupMemberAndName).get_pictureUri_oz22hj_k$ = function () { return this.pictureUri_1; }; protoOf(CourseGroupMemberAndName).component1_7eebsc_k$ = function () { return this.cgm_1; }; protoOf(CourseGroupMemberAndName).component2_7eebsb_k$ = function () { return this.name_1; }; protoOf(CourseGroupMemberAndName).component3_7eebsa_k$ = function () { return this.personUid_1; }; protoOf(CourseGroupMemberAndName).component4_7eebs9_k$ = function () { return this.enrolmentIsActive_1; }; protoOf(CourseGroupMemberAndName).component5_7eebs8_k$ = function () { return this.pictureUri_1; }; protoOf(CourseGroupMemberAndName).copy_fywj1k_k$ = function (cgm, name, personUid, enrolmentIsActive, pictureUri) { return new CourseGroupMemberAndName(cgm, name, personUid, enrolmentIsActive, pictureUri); }; protoOf(CourseGroupMemberAndName).copy$default_e6q3c8_k$ = function (cgm, name, personUid, enrolmentIsActive, pictureUri, $super) { cgm = cgm === VOID ? this.cgm_1 : cgm; name = name === VOID ? this.name_1 : name; personUid = personUid === VOID ? this.personUid_1 : personUid; enrolmentIsActive = enrolmentIsActive === VOID ? this.enrolmentIsActive_1 : enrolmentIsActive; pictureUri = pictureUri === VOID ? this.pictureUri_1 : pictureUri; return $super === VOID ? this.copy_fywj1k_k$(cgm, name, personUid, enrolmentIsActive, pictureUri) : $super.copy_fywj1k_k$.call(this, cgm, name, personUid, enrolmentIsActive, pictureUri); }; protoOf(CourseGroupMemberAndName).toString = function () { return 'CourseGroupMemberAndName(cgm=' + this.cgm_1 + ', name=' + this.name_1 + ', personUid=' + this.personUid_1.toString() + ', enrolmentIsActive=' + this.enrolmentIsActive_1 + ', pictureUri=' + this.pictureUri_1 + ')'; }; protoOf(CourseGroupMemberAndName).hashCode = function () { var result = this.cgm_1 == null ? 0 : this.cgm_1.hashCode(); result = imul(result, 31) + (this.name_1 == null ? 0 : getStringHashCode(this.name_1)) | 0; result = imul(result, 31) + this.personUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.enrolmentIsActive_1) | 0; result = imul(result, 31) + (this.pictureUri_1 == null ? 0 : getStringHashCode(this.pictureUri_1)) | 0; return result; }; protoOf(CourseGroupMemberAndName).equals = function (other) { if (this === other) return true; if (!(other instanceof CourseGroupMemberAndName)) return false; var tmp0_other_with_cast = other instanceof CourseGroupMemberAndName ? other : THROW_CCE(); if (!equals(this.cgm_1, tmp0_other_with_cast.cgm_1)) return false; if (!(this.name_1 == tmp0_other_with_cast.name_1)) return false; if (!this.personUid_1.equals(tmp0_other_with_cast.personUid_1)) return false; if (!(this.enrolmentIsActive_1 === tmp0_other_with_cast.enrolmentIsActive_1)) return false; if (!(this.pictureUri_1 == tmp0_other_with_cast.pictureUri_1)) return false; return true; }; function Companion_89() { Companion_instance_89 = this; this.TABLE_ID_1 = 242; } protoOf(Companion_89).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_89).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_86(); }; var Companion_instance_89; function Companion_getInstance_93() { if (Companion_instance_89 == null) new Companion_89(); return Companion_instance_89; } function $serializer_86() { $serializer_instance_86 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseGroupSet', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('cgsUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cgsName', true); tmp0_serialDesc.addElement_5pzumi_k$('cgsTotalGroups', true); tmp0_serialDesc.addElement_5pzumi_k$('cgsActive', true); tmp0_serialDesc.addElement_5pzumi_k$('cgsClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cgsLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_86).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_86).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_86).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseGroupSet_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_86).serialize_gyck2u_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cgsUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cgsUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.cgsName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.cgsName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.cgsTotalGroups_1 === 4)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.cgsTotalGroups_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cgsActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.cgsActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cgsClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.cgsClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cgsLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cgsLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_86).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_gyck2u_k$(encoder, value instanceof CourseGroupSet ? value : THROW_CCE()); }; var $serializer_instance_86; function $serializer_getInstance_86() { if ($serializer_instance_86 == null) new $serializer_86(); return $serializer_instance_86; } function CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_86().descriptor_1); } if (0 === (seen1 & 1)) $this.cgsUid_1 = new Long(0, 0); else $this.cgsUid_1 = cgsUid; if (0 === (seen1 & 2)) $this.cgsName_1 = null; else $this.cgsName_1 = cgsName; if (0 === (seen1 & 4)) $this.cgsTotalGroups_1 = 4; else $this.cgsTotalGroups_1 = cgsTotalGroups; if (0 === (seen1 & 8)) $this.cgsActive_1 = true; else $this.cgsActive_1 = cgsActive; if (0 === (seen1 & 16)) $this.cgsClazzUid_1 = new Long(0, 0); else $this.cgsClazzUid_1 = cgsClazzUid; if (0 === (seen1 & 32)) $this.cgsLct_1 = new Long(0, 0); else $this.cgsLct_1 = cgsLct; return $this; } function CourseGroupSet_init_$Create$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker) { return CourseGroupSet_init_$Init$(seen1, cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct, serializationConstructorMarker, objectCreate(protoOf(CourseGroupSet))); } function CourseGroupSet() { Companion_getInstance_93(); this.cgsUid_1 = new Long(0, 0); this.cgsName_1 = null; this.cgsTotalGroups_1 = 4; this.cgsActive_1 = true; this.cgsClazzUid_1 = new Long(0, 0); this.cgsLct_1 = new Long(0, 0); } protoOf(CourseGroupSet).set_cgsUid_diq868_k$ = function (_set____db54di) { this.cgsUid_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsUid_bvuqtm_k$ = function () { return this.cgsUid_1; }; protoOf(CourseGroupSet).set_cgsName_c89ibq_k$ = function (_set____db54di) { this.cgsName_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsName_d9s72p_k$ = function () { return this.cgsName_1; }; protoOf(CourseGroupSet).set_cgsTotalGroups_ytmo82_k$ = function (_set____db54di) { this.cgsTotalGroups_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsTotalGroups_qhxh6a_k$ = function () { return this.cgsTotalGroups_1; }; protoOf(CourseGroupSet).set_cgsActive_il46il_k$ = function (_set____db54di) { this.cgsActive_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsActive_xi666k_k$ = function () { return this.cgsActive_1; }; protoOf(CourseGroupSet).set_cgsClazzUid_5es9x0_k$ = function (_set____db54di) { this.cgsClazzUid_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsClazzUid_b08ici_k$ = function () { return this.cgsClazzUid_1; }; protoOf(CourseGroupSet).set_cgsLct_55fg7h_k$ = function (_set____db54di) { this.cgsLct_1 = _set____db54di; }; protoOf(CourseGroupSet).get_cgsLct_bvuk0n_k$ = function () { return this.cgsLct_1; }; function Companion_90() { Companion_instance_90 = this; this.TABLE_ID_1 = 10012; this.TEACHER_DEFAULT_PERMISSIONS_1 = new Long(8703, 0); this.STUDENT_DEFAULT_PERMISSIONS_1 = new Long(8193, 0); } protoOf(Companion_90).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_90).get_TEACHER_DEFAULT_PERMISSIONS_tozqow_k$ = function () { return this.TEACHER_DEFAULT_PERMISSIONS_1; }; protoOf(Companion_90).get_STUDENT_DEFAULT_PERMISSIONS_udg1tz_k$ = function () { return this.STUDENT_DEFAULT_PERMISSIONS_1; }; protoOf(Companion_90).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_87(); }; var Companion_instance_90; function Companion_getInstance_94() { if (Companion_instance_90 == null) new Companion_90(); return Companion_instance_90; } function $serializer_87() { $serializer_instance_87 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePermission', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('cpUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cpLastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('cpClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cpToEnrolmentRole', true); tmp0_serialDesc.addElement_5pzumi_k$('cpToPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cpToGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('cpPermissionsFlag', true); tmp0_serialDesc.addElement_5pzumi_k$('cpIsDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_87).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_87).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_87).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = false; var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return CoursePermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_87).serialize_94ckj2_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.cpUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.cpUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.cpLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.cpLastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.cpClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.cpClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.cpToEnrolmentRole_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.cpToEnrolmentRole_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.cpToPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.cpToPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.cpToGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.cpToGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.cpPermissionsFlag_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.cpPermissionsFlag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.cpIsDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.cpIsDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_87).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_94ckj2_k$(encoder, value instanceof CoursePermission ? value : THROW_CCE()); }; var $serializer_instance_87; function $serializer_getInstance_87() { if ($serializer_instance_87 == null) new $serializer_87(); return $serializer_instance_87; } function CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_87().descriptor_1); } if (0 === (seen1 & 1)) $this.cpUid_1 = new Long(0, 0); else $this.cpUid_1 = cpUid; if (0 === (seen1 & 2)) $this.cpLastModified_1 = new Long(0, 0); else $this.cpLastModified_1 = cpLastModified; if (0 === (seen1 & 4)) $this.cpClazzUid_1 = new Long(0, 0); else $this.cpClazzUid_1 = cpClazzUid; if (0 === (seen1 & 8)) $this.cpToEnrolmentRole_1 = 0; else $this.cpToEnrolmentRole_1 = cpToEnrolmentRole; if (0 === (seen1 & 16)) $this.cpToPersonUid_1 = new Long(0, 0); else $this.cpToPersonUid_1 = cpToPersonUid; if (0 === (seen1 & 32)) $this.cpToGroupUid_1 = new Long(0, 0); else $this.cpToGroupUid_1 = cpToGroupUid; if (0 === (seen1 & 64)) $this.cpPermissionsFlag_1 = new Long(0, 0); else $this.cpPermissionsFlag_1 = cpPermissionsFlag; if (0 === (seen1 & 128)) $this.cpIsDeleted_1 = false; else $this.cpIsDeleted_1 = cpIsDeleted; return $this; } function CoursePermission_init_$Create$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker) { return CoursePermission_init_$Init$(seen1, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, serializationConstructorMarker, objectCreate(protoOf(CoursePermission))); } function CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) { Companion_getInstance_94(); cpUid = cpUid === VOID ? new Long(0, 0) : cpUid; cpLastModified = cpLastModified === VOID ? new Long(0, 0) : cpLastModified; cpClazzUid = cpClazzUid === VOID ? new Long(0, 0) : cpClazzUid; cpToEnrolmentRole = cpToEnrolmentRole === VOID ? 0 : cpToEnrolmentRole; cpToPersonUid = cpToPersonUid === VOID ? new Long(0, 0) : cpToPersonUid; cpToGroupUid = cpToGroupUid === VOID ? new Long(0, 0) : cpToGroupUid; cpPermissionsFlag = cpPermissionsFlag === VOID ? new Long(0, 0) : cpPermissionsFlag; cpIsDeleted = cpIsDeleted === VOID ? false : cpIsDeleted; this.cpUid_1 = cpUid; this.cpLastModified_1 = cpLastModified; this.cpClazzUid_1 = cpClazzUid; this.cpToEnrolmentRole_1 = cpToEnrolmentRole; this.cpToPersonUid_1 = cpToPersonUid; this.cpToGroupUid_1 = cpToGroupUid; this.cpPermissionsFlag_1 = cpPermissionsFlag; this.cpIsDeleted_1 = cpIsDeleted; } protoOf(CoursePermission).set_cpUid_njvs88_k$ = function (_set____db54di) { this.cpUid_1 = _set____db54di; }; protoOf(CoursePermission).get_cpUid_ipuem2_k$ = function () { return this.cpUid_1; }; protoOf(CoursePermission).set_cpLastModified_21i6ut_k$ = function (_set____db54di) { this.cpLastModified_1 = _set____db54di; }; protoOf(CoursePermission).get_cpLastModified_o65ugb_k$ = function () { return this.cpLastModified_1; }; protoOf(CoursePermission).set_cpClazzUid_ofwwlg_k$ = function (_set____db54di) { this.cpClazzUid_1 = _set____db54di; }; protoOf(CoursePermission).get_cpClazzUid_gewage_k$ = function () { return this.cpClazzUid_1; }; protoOf(CoursePermission).set_cpToEnrolmentRole_ahoetp_k$ = function (_set____db54di) { this.cpToEnrolmentRole_1 = _set____db54di; }; protoOf(CoursePermission).get_cpToEnrolmentRole_8h904p_k$ = function () { return this.cpToEnrolmentRole_1; }; protoOf(CoursePermission).set_cpToPersonUid_ux78ig_k$ = function (_set____db54di) { this.cpToPersonUid_1 = _set____db54di; }; protoOf(CoursePermission).get_cpToPersonUid_1zvcmi_k$ = function () { return this.cpToPersonUid_1; }; protoOf(CoursePermission).set_cpToGroupUid_6p3obs_k$ = function (_set____db54di) { this.cpToGroupUid_1 = _set____db54di; }; protoOf(CoursePermission).get_cpToGroupUid_h7ylj2_k$ = function () { return this.cpToGroupUid_1; }; protoOf(CoursePermission).set_cpPermissionsFlag_uajiqg_k$ = function (_set____db54di) { this.cpPermissionsFlag_1 = _set____db54di; }; protoOf(CoursePermission).get_cpPermissionsFlag_9dskau_k$ = function () { return this.cpPermissionsFlag_1; }; protoOf(CoursePermission).set_cpIsDeleted_b36gj4_k$ = function (_set____db54di) { this.cpIsDeleted_1 = _set____db54di; }; protoOf(CoursePermission).get_cpIsDeleted_oej5tl_k$ = function () { return this.cpIsDeleted_1; }; protoOf(CoursePermission).component1_7eebsc_k$ = function () { return this.cpUid_1; }; protoOf(CoursePermission).component2_7eebsb_k$ = function () { return this.cpLastModified_1; }; protoOf(CoursePermission).component3_7eebsa_k$ = function () { return this.cpClazzUid_1; }; protoOf(CoursePermission).component4_7eebs9_k$ = function () { return this.cpToEnrolmentRole_1; }; protoOf(CoursePermission).component5_7eebs8_k$ = function () { return this.cpToPersonUid_1; }; protoOf(CoursePermission).component6_7eebs7_k$ = function () { return this.cpToGroupUid_1; }; protoOf(CoursePermission).component7_7eebs6_k$ = function () { return this.cpPermissionsFlag_1; }; protoOf(CoursePermission).component8_7eebs5_k$ = function () { return this.cpIsDeleted_1; }; protoOf(CoursePermission).copy_6fciay_k$ = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) { return new CoursePermission(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted); }; protoOf(CoursePermission).copy$default_ibykj_k$ = function (cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted, $super) { cpUid = cpUid === VOID ? this.cpUid_1 : cpUid; cpLastModified = cpLastModified === VOID ? this.cpLastModified_1 : cpLastModified; cpClazzUid = cpClazzUid === VOID ? this.cpClazzUid_1 : cpClazzUid; cpToEnrolmentRole = cpToEnrolmentRole === VOID ? this.cpToEnrolmentRole_1 : cpToEnrolmentRole; cpToPersonUid = cpToPersonUid === VOID ? this.cpToPersonUid_1 : cpToPersonUid; cpToGroupUid = cpToGroupUid === VOID ? this.cpToGroupUid_1 : cpToGroupUid; cpPermissionsFlag = cpPermissionsFlag === VOID ? this.cpPermissionsFlag_1 : cpPermissionsFlag; cpIsDeleted = cpIsDeleted === VOID ? this.cpIsDeleted_1 : cpIsDeleted; return $super === VOID ? this.copy_6fciay_k$(cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted) : $super.copy_6fciay_k$.call(this, cpUid, cpLastModified, cpClazzUid, cpToEnrolmentRole, cpToPersonUid, cpToGroupUid, cpPermissionsFlag, cpIsDeleted); }; protoOf(CoursePermission).toString = function () { return 'CoursePermission(cpUid=' + this.cpUid_1.toString() + ', cpLastModified=' + this.cpLastModified_1.toString() + ', cpClazzUid=' + this.cpClazzUid_1.toString() + ', cpToEnrolmentRole=' + this.cpToEnrolmentRole_1 + ', cpToPersonUid=' + this.cpToPersonUid_1.toString() + ', cpToGroupUid=' + this.cpToGroupUid_1.toString() + ', cpPermissionsFlag=' + this.cpPermissionsFlag_1.toString() + ', cpIsDeleted=' + this.cpIsDeleted_1 + ')'; }; protoOf(CoursePermission).hashCode = function () { var result = this.cpUid_1.hashCode(); result = imul(result, 31) + this.cpLastModified_1.hashCode() | 0; result = imul(result, 31) + this.cpClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.cpToEnrolmentRole_1 | 0; result = imul(result, 31) + this.cpToPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.cpToGroupUid_1.hashCode() | 0; result = imul(result, 31) + this.cpPermissionsFlag_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.cpIsDeleted_1) | 0; return result; }; protoOf(CoursePermission).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePermission)) return false; var tmp0_other_with_cast = other instanceof CoursePermission ? other : THROW_CCE(); if (!this.cpUid_1.equals(tmp0_other_with_cast.cpUid_1)) return false; if (!this.cpLastModified_1.equals(tmp0_other_with_cast.cpLastModified_1)) return false; if (!this.cpClazzUid_1.equals(tmp0_other_with_cast.cpClazzUid_1)) return false; if (!(this.cpToEnrolmentRole_1 === tmp0_other_with_cast.cpToEnrolmentRole_1)) return false; if (!this.cpToPersonUid_1.equals(tmp0_other_with_cast.cpToPersonUid_1)) return false; if (!this.cpToGroupUid_1.equals(tmp0_other_with_cast.cpToGroupUid_1)) return false; if (!this.cpPermissionsFlag_1.equals(tmp0_other_with_cast.cpPermissionsFlag_1)) return false; if (!(this.cpIsDeleted_1 === tmp0_other_with_cast.cpIsDeleted_1)) return false; return true; }; function Companion_91() { Companion_instance_91 = this; this.TABLE_ID_1 = 125; } protoOf(Companion_91).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_91).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_88(); }; var Companion_instance_91; function Companion_getInstance_95() { if (Companion_instance_91 == null) new Companion_91(); return Companion_instance_91; } function $serializer_88() { $serializer_instance_88 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CoursePicture', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('coursePictureUid', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePictureLct', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePictureThumbnailUri', true); tmp0_serialDesc.addElement_5pzumi_k$('coursePictureActive', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_88).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_88).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_88).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = false; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return CoursePicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_88).serialize_6avu17_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.coursePictureUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.coursePictureUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.coursePictureLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.coursePictureLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.coursePictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.coursePictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.coursePictureThumbnailUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.coursePictureThumbnailUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.coursePictureActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.coursePictureActive_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_88).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_6avu17_k$(encoder, value instanceof CoursePicture ? value : THROW_CCE()); }; var $serializer_instance_88; function $serializer_getInstance_88() { if ($serializer_instance_88 == null) new $serializer_88(); return $serializer_instance_88; } function CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_88().descriptor_1); } if (0 === (seen1 & 1)) $this.coursePictureUid_1 = new Long(0, 0); else $this.coursePictureUid_1 = coursePictureUid; if (0 === (seen1 & 2)) $this.coursePictureLct_1 = new Long(0, 0); else $this.coursePictureLct_1 = coursePictureLct; if (0 === (seen1 & 4)) $this.coursePictureUri_1 = null; else $this.coursePictureUri_1 = coursePictureUri; if (0 === (seen1 & 8)) $this.coursePictureThumbnailUri_1 = null; else $this.coursePictureThumbnailUri_1 = coursePictureThumbnailUri; if (0 === (seen1 & 16)) $this.coursePictureActive_1 = true; else $this.coursePictureActive_1 = coursePictureActive; return $this; } function CoursePicture_init_$Create$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker) { return CoursePicture_init_$Init$(seen1, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, serializationConstructorMarker, objectCreate(protoOf(CoursePicture))); } function CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) { Companion_getInstance_95(); coursePictureUid = coursePictureUid === VOID ? new Long(0, 0) : coursePictureUid; coursePictureLct = coursePictureLct === VOID ? new Long(0, 0) : coursePictureLct; coursePictureUri = coursePictureUri === VOID ? null : coursePictureUri; coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? null : coursePictureThumbnailUri; coursePictureActive = coursePictureActive === VOID ? true : coursePictureActive; this.coursePictureUid_1 = coursePictureUid; this.coursePictureLct_1 = coursePictureLct; this.coursePictureUri_1 = coursePictureUri; this.coursePictureThumbnailUri_1 = coursePictureThumbnailUri; this.coursePictureActive_1 = coursePictureActive; } protoOf(CoursePicture).set_coursePictureUid_cmj704_k$ = function (_set____db54di) { this.coursePictureUid_1 = _set____db54di; }; protoOf(CoursePicture).get_coursePictureUid_ji6jli_k$ = function () { return this.coursePictureUid_1; }; protoOf(CoursePicture).set_coursePictureLct_kztyyv_k$ = function (_set____db54di) { this.coursePictureLct_1 = _set____db54di; }; protoOf(CoursePicture).get_coursePictureLct_ji6csj_k$ = function () { return this.coursePictureLct_1; }; protoOf(CoursePicture).set_coursePictureUri_6vliwf_k$ = function (_set____db54di) { this.coursePictureUri_1 = _set____db54di; }; protoOf(CoursePicture).get_coursePictureUri_ji6jte_k$ = function () { return this.coursePictureUri_1; }; protoOf(CoursePicture).set_coursePictureThumbnailUri_kmahw1_k$ = function (_set____db54di) { this.coursePictureThumbnailUri_1 = _set____db54di; }; protoOf(CoursePicture).get_coursePictureThumbnailUri_wo1oli_k$ = function () { return this.coursePictureThumbnailUri_1; }; protoOf(CoursePicture).set_coursePictureActive_8jknmf_k$ = function (_set____db54di) { this.coursePictureActive_1 = _set____db54di; }; protoOf(CoursePicture).get_coursePictureActive_wkfnxc_k$ = function () { return this.coursePictureActive_1; }; protoOf(CoursePicture).component1_7eebsc_k$ = function () { return this.coursePictureUid_1; }; protoOf(CoursePicture).component2_7eebsb_k$ = function () { return this.coursePictureLct_1; }; protoOf(CoursePicture).component3_7eebsa_k$ = function () { return this.coursePictureUri_1; }; protoOf(CoursePicture).component4_7eebs9_k$ = function () { return this.coursePictureThumbnailUri_1; }; protoOf(CoursePicture).component5_7eebs8_k$ = function () { return this.coursePictureActive_1; }; protoOf(CoursePicture).copy_5tusri_k$ = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) { return new CoursePicture(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive); }; protoOf(CoursePicture).copy$default_wvzmdv_k$ = function (coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive, $super) { coursePictureUid = coursePictureUid === VOID ? this.coursePictureUid_1 : coursePictureUid; coursePictureLct = coursePictureLct === VOID ? this.coursePictureLct_1 : coursePictureLct; coursePictureUri = coursePictureUri === VOID ? this.coursePictureUri_1 : coursePictureUri; coursePictureThumbnailUri = coursePictureThumbnailUri === VOID ? this.coursePictureThumbnailUri_1 : coursePictureThumbnailUri; coursePictureActive = coursePictureActive === VOID ? this.coursePictureActive_1 : coursePictureActive; return $super === VOID ? this.copy_5tusri_k$(coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive) : $super.copy_5tusri_k$.call(this, coursePictureUid, coursePictureLct, coursePictureUri, coursePictureThumbnailUri, coursePictureActive); }; protoOf(CoursePicture).toString = function () { return 'CoursePicture(coursePictureUid=' + this.coursePictureUid_1.toString() + ', coursePictureLct=' + this.coursePictureLct_1.toString() + ', coursePictureUri=' + this.coursePictureUri_1 + ', coursePictureThumbnailUri=' + this.coursePictureThumbnailUri_1 + ', coursePictureActive=' + this.coursePictureActive_1 + ')'; }; protoOf(CoursePicture).hashCode = function () { var result = this.coursePictureUid_1.hashCode(); result = imul(result, 31) + this.coursePictureLct_1.hashCode() | 0; result = imul(result, 31) + (this.coursePictureUri_1 == null ? 0 : getStringHashCode(this.coursePictureUri_1)) | 0; result = imul(result, 31) + (this.coursePictureThumbnailUri_1 == null ? 0 : getStringHashCode(this.coursePictureThumbnailUri_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.coursePictureActive_1) | 0; return result; }; protoOf(CoursePicture).equals = function (other) { if (this === other) return true; if (!(other instanceof CoursePicture)) return false; var tmp0_other_with_cast = other instanceof CoursePicture ? other : THROW_CCE(); if (!this.coursePictureUid_1.equals(tmp0_other_with_cast.coursePictureUid_1)) return false; if (!this.coursePictureLct_1.equals(tmp0_other_with_cast.coursePictureLct_1)) return false; if (!(this.coursePictureUri_1 == tmp0_other_with_cast.coursePictureUri_1)) return false; if (!(this.coursePictureThumbnailUri_1 == tmp0_other_with_cast.coursePictureThumbnailUri_1)) return false; if (!(this.coursePictureActive_1 === tmp0_other_with_cast.coursePictureActive_1)) return false; return true; }; function Companion_92() { Companion_instance_92 = this; this.TABLE_ID_1 = 450; } protoOf(Companion_92).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_92).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_89(); }; var Companion_instance_92; function Companion_getInstance_96() { if (Companion_instance_92 == null) new Companion_92(); return Companion_instance_92; } function $serializer_89() { $serializer_instance_89 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.CourseTerminology', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('ctUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ctTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('ctTerminology', true); tmp0_serialDesc.addElement_5pzumi_k$('ctLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_89).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_89).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_89).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return CourseTerminology_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_89).serialize_j97som_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.ctUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.ctUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.ctTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.ctTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.ctTerminology_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.ctTerminology_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.ctLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.ctLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_89).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_j97som_k$(encoder, value instanceof CourseTerminology ? value : THROW_CCE()); }; var $serializer_instance_89; function $serializer_getInstance_89() { if ($serializer_instance_89 == null) new $serializer_89(); return $serializer_instance_89; } function CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_89().descriptor_1); } if (0 === (seen1 & 1)) $this.ctUid_1 = new Long(0, 0); else $this.ctUid_1 = ctUid; if (0 === (seen1 & 2)) $this.ctTitle_1 = null; else $this.ctTitle_1 = ctTitle; if (0 === (seen1 & 4)) $this.ctTerminology_1 = null; else $this.ctTerminology_1 = ctTerminology; if (0 === (seen1 & 8)) $this.ctLct_1 = new Long(0, 0); else $this.ctLct_1 = ctLct; return $this; } function CourseTerminology_init_$Create$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker) { return CourseTerminology_init_$Init$(seen1, ctUid, ctTitle, ctTerminology, ctLct, serializationConstructorMarker, objectCreate(protoOf(CourseTerminology))); } function CourseTerminology() { Companion_getInstance_96(); this.ctUid_1 = new Long(0, 0); this.ctTitle_1 = null; this.ctTerminology_1 = null; this.ctLct_1 = new Long(0, 0); } protoOf(CourseTerminology).set_ctUid_mnnkbo_k$ = function (_set____db54di) { this.ctUid_1 = _set____db54di; }; protoOf(CourseTerminology).get_ctUid_ipwyk6_k$ = function () { return this.ctUid_1; }; protoOf(CourseTerminology).set_ctTitle_71e5o3_k$ = function (_set____db54di) { this.ctTitle_1 = _set____db54di; }; protoOf(CourseTerminology).get_ctTitle_iytaim_k$ = function () { return this.ctTitle_1; }; protoOf(CourseTerminology).set_ctTerminology_932opa_k$ = function (_set____db54di) { this.ctTerminology_1 = _set____db54di; }; protoOf(CourseTerminology).get_ctTerminology_oszxd3_k$ = function () { return this.ctTerminology_1; }; protoOf(CourseTerminology).set_ctLct_eacscx_k$ = function (_set____db54di) { this.ctLct_1 = _set____db54di; }; protoOf(CourseTerminology).get_ctLct_ipwrr7_k$ = function () { return this.ctLct_1; }; function Companion_93() { Companion_instance_93 = this; this.TABLE_ID_1 = 999; this.STATUS_PENDING_1 = 1; this.STATUS_RESTORED_1 = 2; this.STATUS_DELETED_PERMANENTLY_1 = 3; } protoOf(Companion_93).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_93).get_STATUS_PENDING_ytco25_k$ = function () { return this.STATUS_PENDING_1; }; protoOf(Companion_93).get_STATUS_RESTORED_oky9pi_k$ = function () { return this.STATUS_RESTORED_1; }; protoOf(Companion_93).get_STATUS_DELETED_PERMANENTLY_1ncdf3_k$ = function () { return this.STATUS_DELETED_PERMANENTLY_1; }; protoOf(Companion_93).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_90(); }; var Companion_instance_93; function Companion_getInstance_97() { if (Companion_instance_93 == null) new Companion_93(); return Companion_instance_93; } function $serializer_90() { $serializer_instance_90 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DeletedItem', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('delItemUid', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemName', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemIconUri', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemLastModTime', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemTimeDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemEntityTable', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemDeletedByPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('delItemIsFolder', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_90).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_90).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_90).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = false; var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return DeletedItem_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_90).serialize_v5q4i_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.delItemUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.delItemUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.delItemName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.delItemName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.delItemIconUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.delItemIconUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.delItemLastModTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.delItemLastModTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.delItemTimeDeleted_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.delItemTimeDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.delItemEntityTable_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.delItemEntityTable_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.delItemEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.delItemEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.delItemDeletedByPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.delItemDeletedByPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.delItemStatus_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.delItemStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.delItemIsFolder_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.delItemIsFolder_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_90).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_v5q4i_k$(encoder, value instanceof DeletedItem ? value : THROW_CCE()); }; var $serializer_instance_90; function $serializer_getInstance_90() { if ($serializer_instance_90 == null) new $serializer_90(); return $serializer_instance_90; } function DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_90().descriptor_1); } if (0 === (seen1 & 1)) $this.delItemUid_1 = new Long(0, 0); else $this.delItemUid_1 = delItemUid; if (0 === (seen1 & 2)) $this.delItemName_1 = null; else $this.delItemName_1 = delItemName; if (0 === (seen1 & 4)) $this.delItemIconUri_1 = null; else $this.delItemIconUri_1 = delItemIconUri; if (0 === (seen1 & 8)) $this.delItemLastModTime_1 = new Long(0, 0); else $this.delItemLastModTime_1 = delItemLastModTime; if (0 === (seen1 & 16)) $this.delItemTimeDeleted_1 = new Long(0, 0); else $this.delItemTimeDeleted_1 = delItemTimeDeleted; if (0 === (seen1 & 32)) $this.delItemEntityTable_1 = 0; else $this.delItemEntityTable_1 = delItemEntityTable; if (0 === (seen1 & 64)) $this.delItemEntityUid_1 = new Long(0, 0); else $this.delItemEntityUid_1 = delItemEntityUid; if (0 === (seen1 & 128)) $this.delItemDeletedByPersonUid_1 = new Long(0, 0); else $this.delItemDeletedByPersonUid_1 = delItemDeletedByPersonUid; if (0 === (seen1 & 256)) $this.delItemStatus_1 = 1; else $this.delItemStatus_1 = delItemStatus; if (0 === (seen1 & 512)) $this.delItemIsFolder_1 = false; else $this.delItemIsFolder_1 = delItemIsFolder; return $this; } function DeletedItem_init_$Create$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker) { return DeletedItem_init_$Init$(seen1, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, serializationConstructorMarker, objectCreate(protoOf(DeletedItem))); } function DeletedItem(delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) { Companion_getInstance_97(); delItemUid = delItemUid === VOID ? new Long(0, 0) : delItemUid; delItemName = delItemName === VOID ? null : delItemName; delItemIconUri = delItemIconUri === VOID ? null : delItemIconUri; delItemLastModTime = delItemLastModTime === VOID ? new Long(0, 0) : delItemLastModTime; delItemTimeDeleted = delItemTimeDeleted === VOID ? new Long(0, 0) : delItemTimeDeleted; delItemEntityTable = delItemEntityTable === VOID ? 0 : delItemEntityTable; delItemEntityUid = delItemEntityUid === VOID ? new Long(0, 0) : delItemEntityUid; delItemDeletedByPersonUid = delItemDeletedByPersonUid === VOID ? new Long(0, 0) : delItemDeletedByPersonUid; delItemStatus = delItemStatus === VOID ? 1 : delItemStatus; delItemIsFolder = delItemIsFolder === VOID ? false : delItemIsFolder; this.delItemUid_1 = delItemUid; this.delItemName_1 = delItemName; this.delItemIconUri_1 = delItemIconUri; this.delItemLastModTime_1 = delItemLastModTime; this.delItemTimeDeleted_1 = delItemTimeDeleted; this.delItemEntityTable_1 = delItemEntityTable; this.delItemEntityUid_1 = delItemEntityUid; this.delItemDeletedByPersonUid_1 = delItemDeletedByPersonUid; this.delItemStatus_1 = delItemStatus; this.delItemIsFolder_1 = delItemIsFolder; } protoOf(DeletedItem).set_delItemUid_osnaz3_k$ = function (_set____db54di) { this.delItemUid_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemUid_o8c4l7_k$ = function () { return this.delItemUid_1; }; protoOf(DeletedItem).set_delItemName_kojwl1_k$ = function (_set____db54di) { this.delItemName_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemName_u5xa0w_k$ = function () { return this.delItemName_1; }; protoOf(DeletedItem).set_delItemIconUri_w3skvv_k$ = function (_set____db54di) { this.delItemIconUri_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemIconUri_lzdiea_k$ = function () { return this.delItemIconUri_1; }; protoOf(DeletedItem).set_delItemLastModTime_861diy_k$ = function (_set____db54di) { this.delItemLastModTime_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemLastModTime_s65jfg_k$ = function () { return this.delItemLastModTime_1; }; protoOf(DeletedItem).set_delItemTimeDeleted_beu0d_k$ = function (_set____db54di) { this.delItemTimeDeleted_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemTimeDeleted_sp3q0n_k$ = function () { return this.delItemTimeDeleted_1; }; protoOf(DeletedItem).set_delItemEntityTable_ky5s8u_k$ = function (_set____db54di) { this.delItemEntityTable_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemEntityTable_cfogie_k$ = function () { return this.delItemEntityTable_1; }; protoOf(DeletedItem).set_delItemEntityUid_6z98fi_k$ = function (_set____db54di) { this.delItemEntityUid_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemEntityUid_i8rt9k_k$ = function () { return this.delItemEntityUid_1; }; protoOf(DeletedItem).set_delItemDeletedByPersonUid_s127hq_k$ = function (_set____db54di) { this.delItemDeletedByPersonUid_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemDeletedByPersonUid_kptyww_k$ = function () { return this.delItemDeletedByPersonUid_1; }; protoOf(DeletedItem).set_delItemStatus_n3hm9h_k$ = function (_set____db54di) { this.delItemStatus_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemStatus_4vxae1_k$ = function () { return this.delItemStatus_1; }; protoOf(DeletedItem).set_delItemIsFolder_8arhks_k$ = function (_set____db54di) { this.delItemIsFolder_1 = _set____db54di; }; protoOf(DeletedItem).get_delItemIsFolder_v7lru5_k$ = function () { return this.delItemIsFolder_1; }; protoOf(DeletedItem).component1_7eebsc_k$ = function () { return this.delItemUid_1; }; protoOf(DeletedItem).component2_7eebsb_k$ = function () { return this.delItemName_1; }; protoOf(DeletedItem).component3_7eebsa_k$ = function () { return this.delItemIconUri_1; }; protoOf(DeletedItem).component4_7eebs9_k$ = function () { return this.delItemLastModTime_1; }; protoOf(DeletedItem).component5_7eebs8_k$ = function () { return this.delItemTimeDeleted_1; }; protoOf(DeletedItem).component6_7eebs7_k$ = function () { return this.delItemEntityTable_1; }; protoOf(DeletedItem).component7_7eebs6_k$ = function () { return this.delItemEntityUid_1; }; protoOf(DeletedItem).component8_7eebs5_k$ = function () { return this.delItemDeletedByPersonUid_1; }; protoOf(DeletedItem).component9_7eebs4_k$ = function () { return this.delItemStatus_1; }; protoOf(DeletedItem).component10_gazzfo_k$ = function () { return this.delItemIsFolder_1; }; protoOf(DeletedItem).copy_7t8tve_k$ = function (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) { return new DeletedItem(delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder); }; protoOf(DeletedItem).copy$default_hy8vzd_k$ = function (delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder, $super) { delItemUid = delItemUid === VOID ? this.delItemUid_1 : delItemUid; delItemName = delItemName === VOID ? this.delItemName_1 : delItemName; delItemIconUri = delItemIconUri === VOID ? this.delItemIconUri_1 : delItemIconUri; delItemLastModTime = delItemLastModTime === VOID ? this.delItemLastModTime_1 : delItemLastModTime; delItemTimeDeleted = delItemTimeDeleted === VOID ? this.delItemTimeDeleted_1 : delItemTimeDeleted; delItemEntityTable = delItemEntityTable === VOID ? this.delItemEntityTable_1 : delItemEntityTable; delItemEntityUid = delItemEntityUid === VOID ? this.delItemEntityUid_1 : delItemEntityUid; delItemDeletedByPersonUid = delItemDeletedByPersonUid === VOID ? this.delItemDeletedByPersonUid_1 : delItemDeletedByPersonUid; delItemStatus = delItemStatus === VOID ? this.delItemStatus_1 : delItemStatus; delItemIsFolder = delItemIsFolder === VOID ? this.delItemIsFolder_1 : delItemIsFolder; return $super === VOID ? this.copy_7t8tve_k$(delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder) : $super.copy_7t8tve_k$.call(this, delItemUid, delItemName, delItemIconUri, delItemLastModTime, delItemTimeDeleted, delItemEntityTable, delItemEntityUid, delItemDeletedByPersonUid, delItemStatus, delItemIsFolder); }; protoOf(DeletedItem).toString = function () { return 'DeletedItem(delItemUid=' + this.delItemUid_1.toString() + ', delItemName=' + this.delItemName_1 + ', delItemIconUri=' + this.delItemIconUri_1 + ', delItemLastModTime=' + this.delItemLastModTime_1.toString() + ', delItemTimeDeleted=' + this.delItemTimeDeleted_1.toString() + ', delItemEntityTable=' + this.delItemEntityTable_1 + ', delItemEntityUid=' + this.delItemEntityUid_1.toString() + ', delItemDeletedByPersonUid=' + this.delItemDeletedByPersonUid_1.toString() + ', delItemStatus=' + this.delItemStatus_1 + ', delItemIsFolder=' + this.delItemIsFolder_1 + ')'; }; protoOf(DeletedItem).hashCode = function () { var result = this.delItemUid_1.hashCode(); result = imul(result, 31) + (this.delItemName_1 == null ? 0 : getStringHashCode(this.delItemName_1)) | 0; result = imul(result, 31) + (this.delItemIconUri_1 == null ? 0 : getStringHashCode(this.delItemIconUri_1)) | 0; result = imul(result, 31) + this.delItemLastModTime_1.hashCode() | 0; result = imul(result, 31) + this.delItemTimeDeleted_1.hashCode() | 0; result = imul(result, 31) + this.delItemEntityTable_1 | 0; result = imul(result, 31) + this.delItemEntityUid_1.hashCode() | 0; result = imul(result, 31) + this.delItemDeletedByPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.delItemStatus_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.delItemIsFolder_1) | 0; return result; }; protoOf(DeletedItem).equals = function (other) { if (this === other) return true; if (!(other instanceof DeletedItem)) return false; var tmp0_other_with_cast = other instanceof DeletedItem ? other : THROW_CCE(); if (!this.delItemUid_1.equals(tmp0_other_with_cast.delItemUid_1)) return false; if (!(this.delItemName_1 == tmp0_other_with_cast.delItemName_1)) return false; if (!(this.delItemIconUri_1 == tmp0_other_with_cast.delItemIconUri_1)) return false; if (!this.delItemLastModTime_1.equals(tmp0_other_with_cast.delItemLastModTime_1)) return false; if (!this.delItemTimeDeleted_1.equals(tmp0_other_with_cast.delItemTimeDeleted_1)) return false; if (!(this.delItemEntityTable_1 === tmp0_other_with_cast.delItemEntityTable_1)) return false; if (!this.delItemEntityUid_1.equals(tmp0_other_with_cast.delItemEntityUid_1)) return false; if (!this.delItemDeletedByPersonUid_1.equals(tmp0_other_with_cast.delItemDeletedByPersonUid_1)) return false; if (!(this.delItemStatus_1 === tmp0_other_with_cast.delItemStatus_1)) return false; if (!(this.delItemIsFolder_1 === tmp0_other_with_cast.delItemIsFolder_1)) return false; return true; }; function Companion_94() { Companion_instance_94 = this; this.TABLE_ID_1 = 132; } protoOf(Companion_94).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_94).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_91(); }; var Companion_instance_94; function Companion_getInstance_98() { if (Companion_instance_94 == null) new Companion_94(); return Companion_instance_94; } function $serializer_91() { $serializer_instance_91 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPost', this, 12); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostReplyToPostUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostMessage', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostStartDate', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostCourseBlockUid', true); tmp0_serialDesc.addElement_5pzumi_k$('dpDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostStartedPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostLct', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostVisible', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostArchive', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_91).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_91).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_91).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_local11 = false; var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp16_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); return DiscussionPost_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_91).serialize_252e34_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.discussionPostUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.discussionPostUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.discussionPostReplyToPostUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.discussionPostReplyToPostUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.discussionPostTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.discussionPostTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.discussionPostMessage_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.discussionPostMessage_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.discussionPostStartDate_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.discussionPostStartDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.discussionPostCourseBlockUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.discussionPostCourseBlockUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.dpDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.dpDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.discussionPostStartedPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.discussionPostStartedPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.discussionPostClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.discussionPostClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.discussionPostLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.discussionPostLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.discussionPostVisible_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.discussionPostVisible_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.discussionPostArchive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.discussionPostArchive_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_91).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_252e34_k$(encoder, value instanceof DiscussionPost ? value : THROW_CCE()); }; var $serializer_instance_91; function $serializer_getInstance_91() { if ($serializer_instance_91 == null) new $serializer_91(); return $serializer_instance_91; } function DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_91().descriptor_1); } if (0 === (seen1 & 1)) $this.discussionPostUid_1 = new Long(0, 0); else $this.discussionPostUid_1 = discussionPostUid; if (0 === (seen1 & 2)) $this.discussionPostReplyToPostUid_1 = new Long(0, 0); else $this.discussionPostReplyToPostUid_1 = discussionPostReplyToPostUid; if (0 === (seen1 & 4)) $this.discussionPostTitle_1 = null; else $this.discussionPostTitle_1 = discussionPostTitle; if (0 === (seen1 & 8)) $this.discussionPostMessage_1 = null; else $this.discussionPostMessage_1 = discussionPostMessage; if (0 === (seen1 & 16)) $this.discussionPostStartDate_1 = new Long(0, 0); else $this.discussionPostStartDate_1 = discussionPostStartDate; if (0 === (seen1 & 32)) $this.discussionPostCourseBlockUid_1 = new Long(0, 0); else $this.discussionPostCourseBlockUid_1 = discussionPostCourseBlockUid; if (0 === (seen1 & 64)) $this.dpDeleted_1 = false; else $this.dpDeleted_1 = dpDeleted; if (0 === (seen1 & 128)) $this.discussionPostStartedPersonUid_1 = new Long(0, 0); else $this.discussionPostStartedPersonUid_1 = discussionPostStartedPersonUid; if (0 === (seen1 & 256)) $this.discussionPostClazzUid_1 = new Long(0, 0); else $this.discussionPostClazzUid_1 = discussionPostClazzUid; if (0 === (seen1 & 512)) $this.discussionPostLct_1 = new Long(0, 0); else $this.discussionPostLct_1 = discussionPostLct; if (0 === (seen1 & 1024)) $this.discussionPostVisible_1 = false; else $this.discussionPostVisible_1 = discussionPostVisible; if (0 === (seen1 & 2048)) $this.discussionPostArchive_1 = false; else $this.discussionPostArchive_1 = discussionPostArchive; return $this; } function DiscussionPost_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker) { return DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, objectCreate(protoOf(DiscussionPost))); } function DiscussionPost() { Companion_getInstance_98(); this.discussionPostUid_1 = new Long(0, 0); this.discussionPostReplyToPostUid_1 = new Long(0, 0); this.discussionPostTitle_1 = null; this.discussionPostMessage_1 = null; this.discussionPostStartDate_1 = new Long(0, 0); this.discussionPostCourseBlockUid_1 = new Long(0, 0); this.dpDeleted_1 = false; this.discussionPostStartedPersonUid_1 = new Long(0, 0); this.discussionPostClazzUid_1 = new Long(0, 0); this.discussionPostLct_1 = new Long(0, 0); this.discussionPostVisible_1 = false; this.discussionPostArchive_1 = false; } protoOf(DiscussionPost).set_discussionPostUid_ufsj71_k$ = function (_set____db54di) { this.discussionPostUid_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostUid_6yxxgf_k$ = function () { return this.discussionPostUid_1; }; protoOf(DiscussionPost).set_discussionPostReplyToPostUid_ev5bbi_k$ = function (_set____db54di) { this.discussionPostReplyToPostUid_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostReplyToPostUid_p5bbhg_k$ = function () { return this.discussionPostReplyToPostUid_1; }; protoOf(DiscussionPost).set_discussionPostTitle_m6nnc4_k$ = function (_set____db54di) { this.discussionPostTitle_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostTitle_luljhj_k$ = function () { return this.discussionPostTitle_1; }; protoOf(DiscussionPost).set_discussionPostMessage_7toqr9_k$ = function (_set____db54di) { this.discussionPostMessage_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostMessage_a2j8wm_k$ = function () { return this.discussionPostMessage_1; }; protoOf(DiscussionPost).set_discussionPostStartDate_vk83wt_k$ = function (_set____db54di) { this.discussionPostStartDate_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostStartDate_61t9a7_k$ = function () { return this.discussionPostStartDate_1; }; protoOf(DiscussionPost).set_discussionPostCourseBlockUid_9jjim3_k$ = function (_set____db54di) { this.discussionPostCourseBlockUid_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostCourseBlockUid_sf5e7_k$ = function () { return this.discussionPostCourseBlockUid_1; }; protoOf(DiscussionPost).set_dpDeleted_2r3zwb_k$ = function (_set____db54di) { this.dpDeleted_1 = _set____db54di; }; protoOf(DiscussionPost).get_dpDeleted_gj0ksk_k$ = function () { return this.dpDeleted_1; }; protoOf(DiscussionPost).set_discussionPostStartedPersonUid_buzem9_k$ = function (_set____db54di) { this.discussionPostStartedPersonUid_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostStartedPersonUid_hirvwr_k$ = function () { return this.discussionPostStartedPersonUid_1; }; protoOf(DiscussionPost).set_discussionPostClazzUid_2q88rl_k$ = function (_set____db54di) { this.discussionPostClazzUid_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostClazzUid_nrn8d3_k$ = function () { return this.discussionPostClazzUid_1; }; protoOf(DiscussionPost).set_discussionPostLct_m2hr8a_k$ = function (_set____db54di) { this.discussionPostLct_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostLct_6yxqng_k$ = function () { return this.discussionPostLct_1; }; protoOf(DiscussionPost).set_discussionPostVisible_8xxgpk_k$ = function (_set____db54di) { this.discussionPostVisible_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostVisible_1zvtj5_k$ = function () { return this.discussionPostVisible_1; }; protoOf(DiscussionPost).set_discussionPostArchive_wwn57s_k$ = function (_set____db54di) { this.discussionPostArchive_1 = _set____db54di; }; protoOf(DiscussionPost).get_discussionPostArchive_i3eir3_k$ = function () { return this.discussionPostArchive_1; }; function Companion_95() { Companion_instance_95 = this; } protoOf(Companion_95).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_92(); }; var Companion_instance_95; function Companion_getInstance_99() { if (Companion_instance_95 == null) new Companion_95(); return Companion_instance_95; } function $serializer_92() { $serializer_instance_92 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.DiscussionPostWithDetails', this, 18); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostReplyToPostUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostMessage', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostStartDate', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostCourseBlockUid', true); tmp0_serialDesc.addElement_5pzumi_k$('dpDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostStartedPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostLct', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostVisible', true); tmp0_serialDesc.addElement_5pzumi_k$('discussionPostArchive', true); tmp0_serialDesc.addElement_5pzumi_k$('authorPersonFirstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('authorPersonLastName', true); tmp0_serialDesc.addElement_5pzumi_k$('authorPictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('postLatestMessage', true); tmp0_serialDesc.addElement_5pzumi_k$('postRepliesCount', true); tmp0_serialDesc.addElement_5pzumi_k$('postLatestMessageTimestamp', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_92).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_92).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_92).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = false; var tmp15_local11 = false; var tmp16_local12 = null; var tmp17_local13 = null; var tmp18_local14 = null; var tmp19_local15 = null; var tmp20_local16 = 0; var tmp21_local17 = new Long(0, 0); var tmp22_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp22_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp22_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; } else while (tmp1_flag) { tmp2_index = tmp22_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp22_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, StringSerializer_getInstance(), tmp18_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp22_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, StringSerializer_getInstance(), tmp19_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp22_input.decodeIntElement_941u6a_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp22_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp22_input.endStructure_1xqz0n_k$(tmp0_desc); return DiscussionPostWithDetails_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, null); }; protoOf($serializer_92).serialize_oxjquk_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_discussionPostUid_6yxxgf_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_discussionPostUid_6yxxgf_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_discussionPostReplyToPostUid_p5bbhg_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_discussionPostReplyToPostUid_p5bbhg_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_discussionPostTitle_luljhj_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_discussionPostTitle_luljhj_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_discussionPostMessage_a2j8wm_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.get_discussionPostMessage_a2j8wm_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_discussionPostStartDate_61t9a7_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_discussionPostStartDate_61t9a7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_discussionPostCourseBlockUid_sf5e7_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_discussionPostCourseBlockUid_sf5e7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_dpDeleted_gj0ksk_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.get_dpDeleted_gj0ksk_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_discussionPostStartedPersonUid_hirvwr_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_discussionPostStartedPersonUid_hirvwr_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_discussionPostClazzUid_nrn8d3_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_discussionPostClazzUid_nrn8d3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.get_discussionPostLct_6yxqng_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.get_discussionPostLct_6yxqng_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.get_discussionPostVisible_1zvtj5_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.get_discussionPostVisible_1zvtj5_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.get_discussionPostArchive_i3eir3_k$() === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.get_discussionPostArchive_i3eir3_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.authorPersonFirstNames_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, StringSerializer_getInstance(), value.authorPersonFirstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.authorPersonLastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, StringSerializer_getInstance(), value.authorPersonLastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.authorPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, StringSerializer_getInstance(), value.authorPictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.postLatestMessage_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, StringSerializer_getInstance(), value.postLatestMessage_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.postRepliesCount_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 16, value.postRepliesCount_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.postLatestMessageTimestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.postLatestMessageTimestamp_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_92).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_oxjquk_k$(encoder, value instanceof DiscussionPostWithDetails ? value : THROW_CCE()); }; var $serializer_instance_92; function $serializer_getInstance_92() { if ($serializer_instance_92 == null) new $serializer_92(); return $serializer_instance_92; } function DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_92().descriptor_1); } DiscussionPost_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, serializationConstructorMarker, $this); if (0 === (seen1 & 4096)) $this.authorPersonFirstNames_1 = null; else $this.authorPersonFirstNames_1 = authorPersonFirstNames; if (0 === (seen1 & 8192)) $this.authorPersonLastName_1 = null; else $this.authorPersonLastName_1 = authorPersonLastName; if (0 === (seen1 & 16384)) $this.authorPictureUri_1 = null; else $this.authorPictureUri_1 = authorPictureUri; if (0 === (seen1 & 32768)) $this.postLatestMessage_1 = null; else $this.postLatestMessage_1 = postLatestMessage; if (0 === (seen1 & 65536)) $this.postRepliesCount_1 = 0; else $this.postRepliesCount_1 = postRepliesCount; if (0 === (seen1 & 131072)) $this.postLatestMessageTimestamp_1 = new Long(0, 0); else $this.postLatestMessageTimestamp_1 = postLatestMessageTimestamp; return $this; } function DiscussionPostWithDetails_init_$Create$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker) { return DiscussionPostWithDetails_init_$Init$(seen1, discussionPostUid, discussionPostReplyToPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostCourseBlockUid, dpDeleted, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct, discussionPostVisible, discussionPostArchive, authorPersonFirstNames, authorPersonLastName, authorPictureUri, postLatestMessage, postRepliesCount, postLatestMessageTimestamp, serializationConstructorMarker, objectCreate(protoOf(DiscussionPostWithDetails))); } function DiscussionPostWithDetails() { Companion_getInstance_99(); DiscussionPost.call(this); this.authorPersonFirstNames_1 = null; this.authorPersonLastName_1 = null; this.authorPictureUri_1 = null; this.postLatestMessage_1 = null; this.postRepliesCount_1 = 0; this.postLatestMessageTimestamp_1 = new Long(0, 0); } protoOf(DiscussionPostWithDetails).set_authorPersonFirstNames_ajacce_k$ = function (_set____db54di) { this.authorPersonFirstNames_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_authorPersonFirstNames_tehaox_k$ = function () { return this.authorPersonFirstNames_1; }; protoOf(DiscussionPostWithDetails).set_authorPersonLastName_3ehjll_k$ = function (_set____db54di) { this.authorPersonLastName_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_authorPersonLastName_1bjqlm_k$ = function () { return this.authorPersonLastName_1; }; protoOf(DiscussionPostWithDetails).set_authorPictureUri_j7q9un_k$ = function (_set____db54di) { this.authorPictureUri_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_authorPictureUri_9y237i_k$ = function () { return this.authorPictureUri_1; }; protoOf(DiscussionPostWithDetails).set_postLatestMessage_uyky44_k$ = function (_set____db54di) { this.postLatestMessage_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_postLatestMessage_i24hsn_k$ = function () { return this.postLatestMessage_1; }; protoOf(DiscussionPostWithDetails).set_postRepliesCount_67ot7g_k$ = function (_set____db54di) { this.postRepliesCount_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_postRepliesCount_txmv00_k$ = function () { return this.postRepliesCount_1; }; protoOf(DiscussionPostWithDetails).set_postLatestMessageTimestamp_d9ee2d_k$ = function (_set____db54di) { this.postLatestMessageTimestamp_1 = _set____db54di; }; protoOf(DiscussionPostWithDetails).get_postLatestMessageTimestamp_ba82pr_k$ = function () { return this.postLatestMessageTimestamp_1; }; function Companion_96() { Companion_instance_96 = this; this.STATUS_PENDING_1 = 1; this.STATUS_APPROVED_1 = 2; this.STATUS_REJECTED_1 = 3; this.STATUS_CANCELED_1 = 4; this.TABLE_ID_1 = 10070; } protoOf(Companion_96).get_STATUS_PENDING_ytco25_k$ = function () { return this.STATUS_PENDING_1; }; protoOf(Companion_96).get_STATUS_APPROVED_l4p6j_k$ = function () { return this.STATUS_APPROVED_1; }; protoOf(Companion_96).get_STATUS_REJECTED_t2teim_k$ = function () { return this.STATUS_REJECTED_1; }; protoOf(Companion_96).get_STATUS_CANCELED_l1v92b_k$ = function () { return this.STATUS_CANCELED_1; }; protoOf(Companion_96).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_96).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_93(); }; var Companion_instance_96; function Companion_getInstance_100() { if (Companion_instance_96 == null) new Companion_96(); return Companion_instance_96; } function $serializer_93() { $serializer_instance_93 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.EnrolmentRequest', this, 14); tmp0_serialDesc.addElement_5pzumi_k$('erUid', true); tmp0_serialDesc.addElement_5pzumi_k$('erClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('erClazzName', true); tmp0_serialDesc.addElement_5pzumi_k$('erPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('erPersonFullname', true); tmp0_serialDesc.addElement_5pzumi_k$('erPersonPictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('erPersonUsername', true); tmp0_serialDesc.addElement_5pzumi_k$('erRole', true); tmp0_serialDesc.addElement_5pzumi_k$('erRequestTime', true); tmp0_serialDesc.addElement_5pzumi_k$('erStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('erStatusSetByPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('erDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('erStatusSetAuth', true); tmp0_serialDesc.addElement_5pzumi_k$('erLastModified', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_93).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_93).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_93).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = false; var tmp16_local12 = null; var tmp17_local13 = new Long(0, 0); var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp18_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, StringSerializer_getInstance(), tmp16_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); return EnrolmentRequest_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, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_93).serialize_gp02vh_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.erUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.erUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.erClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.erClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.erClazzName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.erClazzName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.erPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.erPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.erPersonFullname_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.erPersonFullname_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.erPersonPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.erPersonPictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.erPersonUsername_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.erPersonUsername_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.erRole_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.erRole_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.erRequestTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.erRequestTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.erStatus_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.erStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.erStatusSetByPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.erStatusSetByPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.erDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 11, value.erDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.erStatusSetAuth_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, StringSerializer_getInstance(), value.erStatusSetAuth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.erLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.erLastModified_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_93).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_gp02vh_k$(encoder, value instanceof EnrolmentRequest ? value : THROW_CCE()); }; var $serializer_instance_93; function $serializer_getInstance_93() { if ($serializer_instance_93 == null) new $serializer_93(); return $serializer_instance_93; } function EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_93().descriptor_1); } if (0 === (seen1 & 1)) $this.erUid_1 = new Long(0, 0); else $this.erUid_1 = erUid; if (0 === (seen1 & 2)) $this.erClazzUid_1 = new Long(0, 0); else $this.erClazzUid_1 = erClazzUid; if (0 === (seen1 & 4)) $this.erClazzName_1 = null; else $this.erClazzName_1 = erClazzName; if (0 === (seen1 & 8)) $this.erPersonUid_1 = new Long(0, 0); else $this.erPersonUid_1 = erPersonUid; if (0 === (seen1 & 16)) $this.erPersonFullname_1 = null; else $this.erPersonFullname_1 = erPersonFullname; if (0 === (seen1 & 32)) $this.erPersonPictureUri_1 = null; else $this.erPersonPictureUri_1 = erPersonPictureUri; if (0 === (seen1 & 64)) $this.erPersonUsername_1 = null; else $this.erPersonUsername_1 = erPersonUsername; if (0 === (seen1 & 128)) $this.erRole_1 = 0; else $this.erRole_1 = erRole; if (0 === (seen1 & 256)) $this.erRequestTime_1 = new Long(0, 0); else $this.erRequestTime_1 = erRequestTime; if (0 === (seen1 & 512)) $this.erStatus_1 = 1; else $this.erStatus_1 = erStatus; if (0 === (seen1 & 1024)) $this.erStatusSetByPersonUid_1 = new Long(0, 0); else $this.erStatusSetByPersonUid_1 = erStatusSetByPersonUid; if (0 === (seen1 & 2048)) $this.erDeleted_1 = false; else $this.erDeleted_1 = erDeleted; if (0 === (seen1 & 4096)) $this.erStatusSetAuth_1 = null; else $this.erStatusSetAuth_1 = erStatusSetAuth; if (0 === (seen1 & 8192)) $this.erLastModified_1 = new Long(0, 0); else $this.erLastModified_1 = erLastModified; return $this; } function EnrolmentRequest_init_$Create$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker) { return EnrolmentRequest_init_$Init$(seen1, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, serializationConstructorMarker, objectCreate(protoOf(EnrolmentRequest))); } function EnrolmentRequest(erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) { Companion_getInstance_100(); erUid = erUid === VOID ? new Long(0, 0) : erUid; erClazzUid = erClazzUid === VOID ? new Long(0, 0) : erClazzUid; erClazzName = erClazzName === VOID ? null : erClazzName; erPersonUid = erPersonUid === VOID ? new Long(0, 0) : erPersonUid; erPersonFullname = erPersonFullname === VOID ? null : erPersonFullname; erPersonPictureUri = erPersonPictureUri === VOID ? null : erPersonPictureUri; erPersonUsername = erPersonUsername === VOID ? null : erPersonUsername; erRole = erRole === VOID ? 0 : erRole; erRequestTime = erRequestTime === VOID ? new Long(0, 0) : erRequestTime; erStatus = erStatus === VOID ? 1 : erStatus; erStatusSetByPersonUid = erStatusSetByPersonUid === VOID ? new Long(0, 0) : erStatusSetByPersonUid; erDeleted = erDeleted === VOID ? false : erDeleted; erStatusSetAuth = erStatusSetAuth === VOID ? null : erStatusSetAuth; erLastModified = erLastModified === VOID ? new Long(0, 0) : erLastModified; this.erUid_1 = erUid; this.erClazzUid_1 = erClazzUid; this.erClazzName_1 = erClazzName; this.erPersonUid_1 = erPersonUid; this.erPersonFullname_1 = erPersonFullname; this.erPersonPictureUri_1 = erPersonPictureUri; this.erPersonUsername_1 = erPersonUsername; this.erRole_1 = erRole; this.erRequestTime_1 = erRequestTime; this.erStatus_1 = erStatus; this.erStatusSetByPersonUid_1 = erStatusSetByPersonUid; this.erDeleted_1 = erDeleted; this.erStatusSetAuth_1 = erStatusSetAuth; this.erLastModified_1 = erLastModified; } protoOf(EnrolmentRequest).set_erUid_9889rc_k$ = function (_set____db54di) { this.erUid_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erUid_iqz9ru_k$ = function () { return this.erUid_1; }; protoOf(EnrolmentRequest).set_erClazzUid_ndof5o_k$ = function (_set____db54di) { this.erClazzUid_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erClazzUid_l5sd9q_k$ = function () { return this.erClazzUid_1; }; protoOf(EnrolmentRequest).set_erClazzName_d7hufy_k$ = function (_set____db54di) { this.erClazzName_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erClazzName_gpab1p_k$ = function () { return this.erClazzName_1; }; protoOf(EnrolmentRequest).set_erPersonUid_a4e5f7_k$ = function (_set____db54di) { this.erPersonUid_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erPersonUid_rjywbp_k$ = function () { return this.erPersonUid_1; }; protoOf(EnrolmentRequest).set_erPersonFullname_zbbeke_k$ = function (_set____db54di) { this.erPersonFullname_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erPersonFullname_ldr2sl_k$ = function () { return this.erPersonFullname_1; }; protoOf(EnrolmentRequest).set_erPersonPictureUri_2ybd56_k$ = function (_set____db54di) { this.erPersonPictureUri_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erPersonPictureUri_54nc2v_k$ = function () { return this.erPersonPictureUri_1; }; protoOf(EnrolmentRequest).set_erPersonUsername_bl1r2a_k$ = function (_set____db54di) { this.erPersonUsername_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erPersonUsername_51dasf_k$ = function () { return this.erPersonUsername_1; }; protoOf(EnrolmentRequest).set_erRole_tx88fs_k$ = function (_set____db54di) { this.erRole_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erRole_czf6x8_k$ = function () { return this.erRole_1; }; protoOf(EnrolmentRequest).set_erRequestTime_ldn8us_k$ = function (_set____db54di) { this.erRequestTime_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erRequestTime_brdcyu_k$ = function () { return this.erRequestTime_1; }; protoOf(EnrolmentRequest).set_erStatus_xszl58_k$ = function (_set____db54di) { this.erStatus_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erStatus_nbnwag_k$ = function () { return this.erStatus_1; }; protoOf(EnrolmentRequest).set_erStatusSetByPersonUid_ui1t5s_k$ = function (_set____db54di) { this.erStatusSetByPersonUid_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erStatusSetByPersonUid_tlumve_k$ = function () { return this.erStatusSetByPersonUid_1; }; protoOf(EnrolmentRequest).set_erDeleted_r0s50a_k$ = function (_set____db54di) { this.erDeleted_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erDeleted_qqyjul_k$ = function () { return this.erDeleted_1; }; protoOf(EnrolmentRequest).set_erStatusSetAuth_mgaltj_k$ = function (_set____db54di) { this.erStatusSetAuth_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erStatusSetAuth_ell6m6_k$ = function () { return this.erStatusSetAuth_1; }; protoOf(EnrolmentRequest).set_erLastModified_uzh985_k$ = function (_set____db54di) { this.erLastModified_1 = _set____db54di; }; protoOf(EnrolmentRequest).get_erLastModified_kfl61h_k$ = function () { return this.erLastModified_1; }; protoOf(EnrolmentRequest).component1_7eebsc_k$ = function () { return this.erUid_1; }; protoOf(EnrolmentRequest).component2_7eebsb_k$ = function () { return this.erClazzUid_1; }; protoOf(EnrolmentRequest).component3_7eebsa_k$ = function () { return this.erClazzName_1; }; protoOf(EnrolmentRequest).component4_7eebs9_k$ = function () { return this.erPersonUid_1; }; protoOf(EnrolmentRequest).component5_7eebs8_k$ = function () { return this.erPersonFullname_1; }; protoOf(EnrolmentRequest).component6_7eebs7_k$ = function () { return this.erPersonPictureUri_1; }; protoOf(EnrolmentRequest).component7_7eebs6_k$ = function () { return this.erPersonUsername_1; }; protoOf(EnrolmentRequest).component8_7eebs5_k$ = function () { return this.erRole_1; }; protoOf(EnrolmentRequest).component9_7eebs4_k$ = function () { return this.erRequestTime_1; }; protoOf(EnrolmentRequest).component10_gazzfo_k$ = function () { return this.erStatus_1; }; protoOf(EnrolmentRequest).component11_gazzfn_k$ = function () { return this.erStatusSetByPersonUid_1; }; protoOf(EnrolmentRequest).component12_gazzfm_k$ = function () { return this.erDeleted_1; }; protoOf(EnrolmentRequest).component13_gazzfl_k$ = function () { return this.erStatusSetAuth_1; }; protoOf(EnrolmentRequest).component14_gazzfk_k$ = function () { return this.erLastModified_1; }; protoOf(EnrolmentRequest).copy_eszzvd_k$ = function (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) { return new EnrolmentRequest(erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified); }; protoOf(EnrolmentRequest).copy$default_2u160j_k$ = function (erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified, $super) { erUid = erUid === VOID ? this.erUid_1 : erUid; erClazzUid = erClazzUid === VOID ? this.erClazzUid_1 : erClazzUid; erClazzName = erClazzName === VOID ? this.erClazzName_1 : erClazzName; erPersonUid = erPersonUid === VOID ? this.erPersonUid_1 : erPersonUid; erPersonFullname = erPersonFullname === VOID ? this.erPersonFullname_1 : erPersonFullname; erPersonPictureUri = erPersonPictureUri === VOID ? this.erPersonPictureUri_1 : erPersonPictureUri; erPersonUsername = erPersonUsername === VOID ? this.erPersonUsername_1 : erPersonUsername; erRole = erRole === VOID ? this.erRole_1 : erRole; erRequestTime = erRequestTime === VOID ? this.erRequestTime_1 : erRequestTime; erStatus = erStatus === VOID ? this.erStatus_1 : erStatus; erStatusSetByPersonUid = erStatusSetByPersonUid === VOID ? this.erStatusSetByPersonUid_1 : erStatusSetByPersonUid; erDeleted = erDeleted === VOID ? this.erDeleted_1 : erDeleted; erStatusSetAuth = erStatusSetAuth === VOID ? this.erStatusSetAuth_1 : erStatusSetAuth; erLastModified = erLastModified === VOID ? this.erLastModified_1 : erLastModified; return $super === VOID ? this.copy_eszzvd_k$(erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified) : $super.copy_eszzvd_k$.call(this, erUid, erClazzUid, erClazzName, erPersonUid, erPersonFullname, erPersonPictureUri, erPersonUsername, erRole, erRequestTime, erStatus, erStatusSetByPersonUid, erDeleted, erStatusSetAuth, erLastModified); }; protoOf(EnrolmentRequest).toString = function () { return 'EnrolmentRequest(erUid=' + this.erUid_1.toString() + ', erClazzUid=' + this.erClazzUid_1.toString() + ', erClazzName=' + this.erClazzName_1 + ', erPersonUid=' + this.erPersonUid_1.toString() + ', erPersonFullname=' + this.erPersonFullname_1 + ', erPersonPictureUri=' + this.erPersonPictureUri_1 + ', erPersonUsername=' + this.erPersonUsername_1 + ', erRole=' + this.erRole_1 + ', erRequestTime=' + this.erRequestTime_1.toString() + ', erStatus=' + this.erStatus_1 + ', erStatusSetByPersonUid=' + this.erStatusSetByPersonUid_1.toString() + ', erDeleted=' + this.erDeleted_1 + ', erStatusSetAuth=' + this.erStatusSetAuth_1 + ', erLastModified=' + this.erLastModified_1.toString() + ')'; }; protoOf(EnrolmentRequest).hashCode = function () { var result = this.erUid_1.hashCode(); result = imul(result, 31) + this.erClazzUid_1.hashCode() | 0; result = imul(result, 31) + (this.erClazzName_1 == null ? 0 : getStringHashCode(this.erClazzName_1)) | 0; result = imul(result, 31) + this.erPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.erPersonFullname_1 == null ? 0 : getStringHashCode(this.erPersonFullname_1)) | 0; result = imul(result, 31) + (this.erPersonPictureUri_1 == null ? 0 : getStringHashCode(this.erPersonPictureUri_1)) | 0; result = imul(result, 31) + (this.erPersonUsername_1 == null ? 0 : getStringHashCode(this.erPersonUsername_1)) | 0; result = imul(result, 31) + this.erRole_1 | 0; result = imul(result, 31) + this.erRequestTime_1.hashCode() | 0; result = imul(result, 31) + this.erStatus_1 | 0; result = imul(result, 31) + this.erStatusSetByPersonUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.erDeleted_1) | 0; result = imul(result, 31) + (this.erStatusSetAuth_1 == null ? 0 : getStringHashCode(this.erStatusSetAuth_1)) | 0; result = imul(result, 31) + this.erLastModified_1.hashCode() | 0; return result; }; protoOf(EnrolmentRequest).equals = function (other) { if (this === other) return true; if (!(other instanceof EnrolmentRequest)) return false; var tmp0_other_with_cast = other instanceof EnrolmentRequest ? other : THROW_CCE(); if (!this.erUid_1.equals(tmp0_other_with_cast.erUid_1)) return false; if (!this.erClazzUid_1.equals(tmp0_other_with_cast.erClazzUid_1)) return false; if (!(this.erClazzName_1 == tmp0_other_with_cast.erClazzName_1)) return false; if (!this.erPersonUid_1.equals(tmp0_other_with_cast.erPersonUid_1)) return false; if (!(this.erPersonFullname_1 == tmp0_other_with_cast.erPersonFullname_1)) return false; if (!(this.erPersonPictureUri_1 == tmp0_other_with_cast.erPersonPictureUri_1)) return false; if (!(this.erPersonUsername_1 == tmp0_other_with_cast.erPersonUsername_1)) return false; if (!(this.erRole_1 === tmp0_other_with_cast.erRole_1)) return false; if (!this.erRequestTime_1.equals(tmp0_other_with_cast.erRequestTime_1)) return false; if (!(this.erStatus_1 === tmp0_other_with_cast.erStatus_1)) return false; if (!this.erStatusSetByPersonUid_1.equals(tmp0_other_with_cast.erStatusSetByPersonUid_1)) return false; if (!(this.erDeleted_1 === tmp0_other_with_cast.erDeleted_1)) return false; if (!(this.erStatusSetAuth_1 == tmp0_other_with_cast.erStatusSetAuth_1)) return false; if (!this.erLastModified_1.equals(tmp0_other_with_cast.erLastModified_1)) return false; return true; }; function ErrorReport() { this.errUid_1 = new Long(0, 0); this.errPcsn_1 = new Long(0, 0); this.errLcsn_1 = new Long(0, 0); this.errLcb_1 = 0; this.errLct_1 = new Long(0, 0); this.severity_1 = 0; this.timestamp_1 = new Long(0, 0); this.presenterUri_1 = null; this.appVersion_1 = null; this.versionCode_1 = 0; this.errorCode_1 = 0; this.operatingSys_1 = null; this.osVersion_1 = null; this.stackTrace_1 = null; this.message_1 = null; } protoOf(ErrorReport).set_errUid_4heg3u_k$ = function (_set____db54di) { this.errUid_1 = _set____db54di; }; protoOf(ErrorReport).get_errUid_czz35g_k$ = function () { return this.errUid_1; }; protoOf(ErrorReport).set_errPcsn_us2yfs_k$ = function (_set____db54di) { this.errPcsn_1 = _set____db54di; }; protoOf(ErrorReport).get_errPcsn_n7jx3q_k$ = function () { return this.errPcsn_1; }; protoOf(ErrorReport).set_errLcsn_vob6cc_k$ = function (_set____db54di) { this.errLcsn_1 = _set____db54di; }; protoOf(ErrorReport).get_errLcsn_n7mh1u_k$ = function () { return this.errLcsn_1; }; protoOf(ErrorReport).set_errLcb_75u8aj_k$ = function (_set____db54di) { this.errLcb_1 = _set____db54di; }; protoOf(ErrorReport).get_errLcb_czywbz_k$ = function () { return this.errLcb_1; }; protoOf(ErrorReport).set_errLct_3vwbux_k$ = function (_set____db54di) { this.errLct_1 = _set____db54di; }; protoOf(ErrorReport).get_errLct_czywch_k$ = function () { return this.errLct_1; }; protoOf(ErrorReport).set_severity_sxrpqm_k$ = function (_set____db54di) { this.severity_1 = _set____db54di; }; protoOf(ErrorReport).get_severity_7csmre_k$ = function () { return this.severity_1; }; protoOf(ErrorReport).set_timestamp_eha0cb_k$ = function (_set____db54di) { this.timestamp_1 = _set____db54di; }; protoOf(ErrorReport).get_timestamp_9fccx9_k$ = function () { return this.timestamp_1; }; protoOf(ErrorReport).set_presenterUri_dwl37a_k$ = function (_set____db54di) { this.presenterUri_1 = _set____db54di; }; protoOf(ErrorReport).get_presenterUri_g4odt9_k$ = function () { return this.presenterUri_1; }; protoOf(ErrorReport).set_appVersion_uzlvkt_k$ = function (_set____db54di) { this.appVersion_1 = _set____db54di; }; protoOf(ErrorReport).get_appVersion_4dcm4g_k$ = function () { return this.appVersion_1; }; protoOf(ErrorReport).set_versionCode_tfhts0_k$ = function (_set____db54di) { this.versionCode_1 = _set____db54di; }; protoOf(ErrorReport).get_versionCode_pa65j0_k$ = function () { return this.versionCode_1; }; protoOf(ErrorReport).set_errorCode_eejymo_k$ = function (_set____db54di) { this.errorCode_1 = _set____db54di; }; protoOf(ErrorReport).get_errorCode_dyf6uk_k$ = function () { return this.errorCode_1; }; protoOf(ErrorReport).set_operatingSys_bf2mcy_k$ = function (_set____db54di) { this.operatingSys_1 = _set____db54di; }; protoOf(ErrorReport).get_operatingSys_bh7v_k$ = function () { return this.operatingSys_1; }; protoOf(ErrorReport).set_osVersion_dafw0w_k$ = function (_set____db54di) { this.osVersion_1 = _set____db54di; }; protoOf(ErrorReport).get_osVersion_wjrp79_k$ = function () { return this.osVersion_1; }; protoOf(ErrorReport).set_stackTrace_cs50sj_k$ = function (_set____db54di) { this.stackTrace_1 = _set____db54di; }; protoOf(ErrorReport).get_stackTrace_dc54x2_k$ = function () { return this.stackTrace_1; }; protoOf(ErrorReport).set_message_488t03_k$ = function (_set____db54di) { this.message_1 = _set____db54di; }; protoOf(ErrorReport).get_message_h23axq_k$ = function () { return this.message_1; }; function Companion_97() { Companion_instance_97 = this; } protoOf(Companion_97).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_94(); }; var Companion_instance_97; function Companion_getInstance_101() { if (Companion_instance_97 == null) new Companion_97(); return Companion_instance_97; } function $serializer_94() { $serializer_instance_94 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ExternalAppPermission', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('eapUid', true); tmp0_serialDesc.addElement_5pzumi_k$('eapPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('eapPackageId', true); tmp0_serialDesc.addElement_5pzumi_k$('eapStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('eapExpireTime', true); tmp0_serialDesc.addElement_5pzumi_k$('eapAuthToken', true); tmp0_serialDesc.addElement_5pzumi_k$('eapAndroidAccountName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_94).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_94).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_94).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ExternalAppPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_94).serialize_nb7rqh_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.eapUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.eapUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.eapPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.eapPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.eapPackageId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.eapPackageId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.eapStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.eapStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.eapExpireTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.eapExpireTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.eapAuthToken_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.eapAuthToken_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.eapAndroidAccountName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.eapAndroidAccountName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_94).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_nb7rqh_k$(encoder, value instanceof ExternalAppPermission ? value : THROW_CCE()); }; var $serializer_instance_94; function $serializer_getInstance_94() { if ($serializer_instance_94 == null) new $serializer_94(); return $serializer_instance_94; } function ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_94().descriptor_1); } if (0 === (seen1 & 1)) $this.eapUid_1 = 0; else $this.eapUid_1 = eapUid; if (0 === (seen1 & 2)) $this.eapPersonUid_1 = new Long(0, 0); else $this.eapPersonUid_1 = eapPersonUid; if (0 === (seen1 & 4)) $this.eapPackageId_1 = null; else $this.eapPackageId_1 = eapPackageId; if (0 === (seen1 & 8)) $this.eapStartTime_1 = new Long(0, 0); else $this.eapStartTime_1 = eapStartTime; if (0 === (seen1 & 16)) $this.eapExpireTime_1 = new Long(0, 0); else $this.eapExpireTime_1 = eapExpireTime; if (0 === (seen1 & 32)) $this.eapAuthToken_1 = null; else $this.eapAuthToken_1 = eapAuthToken; if (0 === (seen1 & 64)) $this.eapAndroidAccountName_1 = null; else $this.eapAndroidAccountName_1 = eapAndroidAccountName; return $this; } function ExternalAppPermission_init_$Create$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker) { return ExternalAppPermission_init_$Init$(seen1, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, serializationConstructorMarker, objectCreate(protoOf(ExternalAppPermission))); } function ExternalAppPermission(eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) { Companion_getInstance_101(); eapUid = eapUid === VOID ? 0 : eapUid; eapPersonUid = eapPersonUid === VOID ? new Long(0, 0) : eapPersonUid; eapPackageId = eapPackageId === VOID ? null : eapPackageId; eapStartTime = eapStartTime === VOID ? new Long(0, 0) : eapStartTime; eapExpireTime = eapExpireTime === VOID ? new Long(0, 0) : eapExpireTime; eapAuthToken = eapAuthToken === VOID ? null : eapAuthToken; eapAndroidAccountName = eapAndroidAccountName === VOID ? null : eapAndroidAccountName; this.eapUid_1 = eapUid; this.eapPersonUid_1 = eapPersonUid; this.eapPackageId_1 = eapPackageId; this.eapStartTime_1 = eapStartTime; this.eapExpireTime_1 = eapExpireTime; this.eapAuthToken_1 = eapAuthToken; this.eapAndroidAccountName_1 = eapAndroidAccountName; } protoOf(ExternalAppPermission).set_eapUid_jxz3ht_k$ = function (_set____db54di) { this.eapUid_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapUid_cqlb39_k$ = function () { return this.eapUid_1; }; protoOf(ExternalAppPermission).set_eapPersonUid_e2g9uu_k$ = function (_set____db54di) { this.eapPersonUid_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapPersonUid_41az9s_k$ = function () { return this.eapPersonUid_1; }; protoOf(ExternalAppPermission).set_eapPackageId_bi5lzh_k$ = function (_set____db54di) { this.eapPackageId_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapPackageId_jq8uae_k$ = function () { return this.eapPackageId_1; }; protoOf(ExternalAppPermission).set_eapStartTime_fba5fq_k$ = function (_set____db54di) { this.eapStartTime_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapStartTime_pqqaw4_k$ = function () { return this.eapStartTime_1; }; protoOf(ExternalAppPermission).set_eapExpireTime_ac6c11_k$ = function (_set____db54di) { this.eapExpireTime_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapExpireTime_t2adp3_k$ = function () { return this.eapExpireTime_1; }; protoOf(ExternalAppPermission).set_eapAuthToken_vwq5yb_k$ = function (_set____db54di) { this.eapAuthToken_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapAuthToken_dwzjpi_k$ = function () { return this.eapAuthToken_1; }; protoOf(ExternalAppPermission).set_eapAndroidAccountName_vcye09_k$ = function (_set____db54di) { this.eapAndroidAccountName_1 = _set____db54di; }; protoOf(ExternalAppPermission).get_eapAndroidAccountName_5ppwek_k$ = function () { return this.eapAndroidAccountName_1; }; protoOf(ExternalAppPermission).component1_7eebsc_k$ = function () { return this.eapUid_1; }; protoOf(ExternalAppPermission).component2_7eebsb_k$ = function () { return this.eapPersonUid_1; }; protoOf(ExternalAppPermission).component3_7eebsa_k$ = function () { return this.eapPackageId_1; }; protoOf(ExternalAppPermission).component4_7eebs9_k$ = function () { return this.eapStartTime_1; }; protoOf(ExternalAppPermission).component5_7eebs8_k$ = function () { return this.eapExpireTime_1; }; protoOf(ExternalAppPermission).component6_7eebs7_k$ = function () { return this.eapAuthToken_1; }; protoOf(ExternalAppPermission).component7_7eebs6_k$ = function () { return this.eapAndroidAccountName_1; }; protoOf(ExternalAppPermission).copy_6p2zt6_k$ = function (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) { return new ExternalAppPermission(eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName); }; protoOf(ExternalAppPermission).copy$default_xlmx27_k$ = function (eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName, $super) { eapUid = eapUid === VOID ? this.eapUid_1 : eapUid; eapPersonUid = eapPersonUid === VOID ? this.eapPersonUid_1 : eapPersonUid; eapPackageId = eapPackageId === VOID ? this.eapPackageId_1 : eapPackageId; eapStartTime = eapStartTime === VOID ? this.eapStartTime_1 : eapStartTime; eapExpireTime = eapExpireTime === VOID ? this.eapExpireTime_1 : eapExpireTime; eapAuthToken = eapAuthToken === VOID ? this.eapAuthToken_1 : eapAuthToken; eapAndroidAccountName = eapAndroidAccountName === VOID ? this.eapAndroidAccountName_1 : eapAndroidAccountName; return $super === VOID ? this.copy_6p2zt6_k$(eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName) : $super.copy_6p2zt6_k$.call(this, eapUid, eapPersonUid, eapPackageId, eapStartTime, eapExpireTime, eapAuthToken, eapAndroidAccountName); }; protoOf(ExternalAppPermission).toString = function () { return 'ExternalAppPermission(eapUid=' + this.eapUid_1 + ', eapPersonUid=' + this.eapPersonUid_1.toString() + ', eapPackageId=' + this.eapPackageId_1 + ', eapStartTime=' + this.eapStartTime_1.toString() + ', eapExpireTime=' + this.eapExpireTime_1.toString() + ', eapAuthToken=' + this.eapAuthToken_1 + ', eapAndroidAccountName=' + this.eapAndroidAccountName_1 + ')'; }; protoOf(ExternalAppPermission).hashCode = function () { var result = this.eapUid_1; result = imul(result, 31) + this.eapPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.eapPackageId_1 == null ? 0 : getStringHashCode(this.eapPackageId_1)) | 0; result = imul(result, 31) + this.eapStartTime_1.hashCode() | 0; result = imul(result, 31) + this.eapExpireTime_1.hashCode() | 0; result = imul(result, 31) + (this.eapAuthToken_1 == null ? 0 : getStringHashCode(this.eapAuthToken_1)) | 0; result = imul(result, 31) + (this.eapAndroidAccountName_1 == null ? 0 : getStringHashCode(this.eapAndroidAccountName_1)) | 0; return result; }; protoOf(ExternalAppPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof ExternalAppPermission)) return false; var tmp0_other_with_cast = other instanceof ExternalAppPermission ? other : THROW_CCE(); if (!(this.eapUid_1 === tmp0_other_with_cast.eapUid_1)) return false; if (!this.eapPersonUid_1.equals(tmp0_other_with_cast.eapPersonUid_1)) return false; if (!(this.eapPackageId_1 == tmp0_other_with_cast.eapPackageId_1)) return false; if (!this.eapStartTime_1.equals(tmp0_other_with_cast.eapStartTime_1)) return false; if (!this.eapExpireTime_1.equals(tmp0_other_with_cast.eapExpireTime_1)) return false; if (!(this.eapAuthToken_1 == tmp0_other_with_cast.eapAuthToken_1)) return false; if (!(this.eapAndroidAccountName_1 == tmp0_other_with_cast.eapAndroidAccountName_1)) return false; return true; }; function Companion_98() { Companion_instance_98 = this; this.TABLE_ID_1 = 99; } protoOf(Companion_98).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_98).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_95(); }; var Companion_instance_98; function Companion_getInstance_102() { if (Companion_instance_98 == null) new Companion_98(); return Companion_instance_98; } function $serializer_95() { $serializer_instance_95 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Holiday', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('holUid', true); tmp0_serialDesc.addElement_5pzumi_k$('holMasterCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('holLocalCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('holLastModBy', true); tmp0_serialDesc.addElement_5pzumi_k$('holLct', true); tmp0_serialDesc.addElement_5pzumi_k$('holActive', true); tmp0_serialDesc.addElement_5pzumi_k$('holHolidayCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('holStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('holEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('holName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_95).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_95).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_95).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return Holiday_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_95).serialize_arkidm_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.holUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.holUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.holMasterCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.holMasterCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.holLocalCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.holLocalCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.holLastModBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.holLastModBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.holLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.holLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.holActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.holActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.holHolidayCalendarUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.holHolidayCalendarUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.holStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.holStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.holEndTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.holEndTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.holName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, StringSerializer_getInstance(), value.holName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_95).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_arkidm_k$(encoder, value instanceof Holiday ? value : THROW_CCE()); }; var $serializer_instance_95; function $serializer_getInstance_95() { if ($serializer_instance_95 == null) new $serializer_95(); return $serializer_instance_95; } function Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_95().descriptor_1); } if (0 === (seen1 & 1)) $this.holUid_1 = new Long(0, 0); else $this.holUid_1 = holUid; if (0 === (seen1 & 2)) $this.holMasterCsn_1 = new Long(0, 0); else $this.holMasterCsn_1 = holMasterCsn; if (0 === (seen1 & 4)) $this.holLocalCsn_1 = new Long(0, 0); else $this.holLocalCsn_1 = holLocalCsn; if (0 === (seen1 & 8)) $this.holLastModBy_1 = 0; else $this.holLastModBy_1 = holLastModBy; if (0 === (seen1 & 16)) $this.holLct_1 = new Long(0, 0); else $this.holLct_1 = holLct; if (0 === (seen1 & 32)) $this.holActive_1 = true; else $this.holActive_1 = holActive; if (0 === (seen1 & 64)) $this.holHolidayCalendarUid_1 = new Long(0, 0); else $this.holHolidayCalendarUid_1 = holHolidayCalendarUid; if (0 === (seen1 & 128)) $this.holStartTime_1 = new Long(0, 0); else $this.holStartTime_1 = holStartTime; if (0 === (seen1 & 256)) $this.holEndTime_1 = new Long(0, 0); else $this.holEndTime_1 = holEndTime; if (0 === (seen1 & 512)) $this.holName_1 = null; else $this.holName_1 = holName; return $this; } function Holiday_init_$Create$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker) { return Holiday_init_$Init$(seen1, holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName, serializationConstructorMarker, objectCreate(protoOf(Holiday))); } function Holiday() { Companion_getInstance_102(); this.holUid_1 = new Long(0, 0); this.holMasterCsn_1 = new Long(0, 0); this.holLocalCsn_1 = new Long(0, 0); this.holLastModBy_1 = 0; this.holLct_1 = new Long(0, 0); this.holActive_1 = true; this.holHolidayCalendarUid_1 = new Long(0, 0); this.holStartTime_1 = new Long(0, 0); this.holEndTime_1 = new Long(0, 0); this.holName_1 = null; } protoOf(Holiday).set_holUid_koi4h6_k$ = function (_set____db54di) { this.holUid_1 = _set____db54di; }; protoOf(Holiday).get_holUid_edcqms_k$ = function () { return this.holUid_1; }; protoOf(Holiday).set_holMasterCsn_vcrmom_k$ = function (_set____db54di) { this.holMasterCsn_1 = _set____db54di; }; protoOf(Holiday).get_holMasterCsn_mycwxs_k$ = function () { return this.holMasterCsn_1; }; protoOf(Holiday).set_holLocalCsn_6mmnml_k$ = function (_set____db54di) { this.holLocalCsn_1 = _set____db54di; }; protoOf(Holiday).get_holLocalCsn_rieohd_k$ = function () { return this.holLocalCsn_1; }; protoOf(Holiday).set_holLastModBy_rro565_k$ = function (_set____db54di) { this.holLastModBy_1 = _set____db54di; }; protoOf(Holiday).get_holLastModBy_ijvg55_k$ = function () { return this.holLastModBy_1; }; protoOf(Holiday).set_holLct_cb7cif_k$ = function (_set____db54di) { this.holLct_1 = _set____db54di; }; protoOf(Holiday).get_holLct_edcjtt_k$ = function () { return this.holLct_1; }; protoOf(Holiday).set_holActive_uxyy6f_k$ = function (_set____db54di) { this.holActive_1 = _set____db54di; }; protoOf(Holiday).get_holActive_bvtv5u_k$ = function () { return this.holActive_1; }; protoOf(Holiday).set_holHolidayCalendarUid_clqie4_k$ = function (_set____db54di) { this.holHolidayCalendarUid_1 = _set____db54di; }; protoOf(Holiday).get_holHolidayCalendarUid_x3rlpy_k$ = function () { return this.holHolidayCalendarUid_1; }; protoOf(Holiday).set_holStartTime_lx70p5_k$ = function (_set____db54di) { this.holStartTime_1 = _set____db54di; }; protoOf(Holiday).get_holStartTime_fr652l_k$ = function () { return this.holStartTime_1; }; protoOf(Holiday).set_holEndTime_3okony_k$ = function (_set____db54di) { this.holEndTime_1 = _set____db54di; }; protoOf(Holiday).get_holEndTime_5vy3t8_k$ = function () { return this.holEndTime_1; }; protoOf(Holiday).set_holName_tr033w_k$ = function (_set____db54di) { this.holName_1 = _set____db54di; }; protoOf(Holiday).get_holName_jb5z7r_k$ = function () { return this.holName_1; }; protoOf(Holiday).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof Holiday)) THROW_CCE(); if (!this.holUid_1.equals(other.holUid_1)) return false; if (!this.holMasterCsn_1.equals(other.holMasterCsn_1)) return false; if (!this.holLocalCsn_1.equals(other.holLocalCsn_1)) return false; if (!(this.holLastModBy_1 === other.holLastModBy_1)) return false; if (!(this.holActive_1 === other.holActive_1)) return false; if (!this.holHolidayCalendarUid_1.equals(other.holHolidayCalendarUid_1)) return false; if (!this.holStartTime_1.equals(other.holStartTime_1)) return false; if (!this.holEndTime_1.equals(other.holEndTime_1)) return false; if (!(this.holName_1 == other.holName_1)) return false; return true; }; protoOf(Holiday).hashCode = function () { var result = this.holUid_1.hashCode(); result = imul(31, result) + this.holMasterCsn_1.hashCode() | 0; result = imul(31, result) + this.holLocalCsn_1.hashCode() | 0; result = imul(31, result) + this.holLastModBy_1 | 0; result = imul(31, result) + getBooleanHashCode(this.holActive_1) | 0; result = imul(31, result) + this.holHolidayCalendarUid_1.hashCode() | 0; result = imul(31, result) + this.holStartTime_1.hashCode() | 0; result = imul(31, result) + this.holEndTime_1.hashCode() | 0; var tmp = imul(31, result); var tmp0_safe_receiver = this.holName_1; var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver); result = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0; return result; }; function HolidayCalendar_init_$Init$(name, category, $this) { HolidayCalendar.call($this); $this.umCalendarName_1 = name; $this.umCalendarCategory_1 = category; $this.umCalendarActive_1 = true; return $this; } function HolidayCalendar_init_$Create$(name, category) { return HolidayCalendar_init_$Init$(name, category, objectCreate(protoOf(HolidayCalendar))); } function Companion_99() { Companion_instance_99 = this; this.TABLE_ID_1 = 28; this.CATEGORY_HOLIDAY_1 = 1; } protoOf(Companion_99).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_99).get_CATEGORY_HOLIDAY_v38ji8_k$ = function () { return this.CATEGORY_HOLIDAY_1; }; protoOf(Companion_99).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_96(); }; var Companion_instance_99; function Companion_getInstance_103() { if (Companion_instance_99 == null) new Companion_99(); return Companion_instance_99; } function $serializer_96() { $serializer_instance_96 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendar', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarName', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarCategory', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarActive', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_96).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_96).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_96).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return HolidayCalendar_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_96).serialize_s9u148_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.umCalendarUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.umCalendarUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.umCalendarName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.umCalendarName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.umCalendarCategory_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.umCalendarCategory_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.umCalendarActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.umCalendarActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.umCalendarMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.umCalendarMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.umCalendarLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.umCalendarLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.umCalendarLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.umCalendarLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.umCalendarLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.umCalendarLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_96).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_s9u148_k$(encoder, value instanceof HolidayCalendar ? value : THROW_CCE()); }; var $serializer_instance_96; function $serializer_getInstance_96() { if ($serializer_instance_96 == null) new $serializer_96(); return $serializer_instance_96; } function HolidayCalendar_init_$Init$_0(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_96().descriptor_1); } if (0 === (seen1 & 1)) $this.umCalendarUid_1 = new Long(0, 0); else $this.umCalendarUid_1 = umCalendarUid; if (0 === (seen1 & 2)) $this.umCalendarName_1 = null; else $this.umCalendarName_1 = umCalendarName; if (0 === (seen1 & 4)) $this.umCalendarCategory_1 = 1; else $this.umCalendarCategory_1 = umCalendarCategory; if (0 === (seen1 & 8)) $this.umCalendarActive_1 = true; else $this.umCalendarActive_1 = umCalendarActive; if (0 === (seen1 & 16)) $this.umCalendarMasterChangeSeqNum_1 = new Long(0, 0); else $this.umCalendarMasterChangeSeqNum_1 = umCalendarMasterChangeSeqNum; if (0 === (seen1 & 32)) $this.umCalendarLocalChangeSeqNum_1 = new Long(0, 0); else $this.umCalendarLocalChangeSeqNum_1 = umCalendarLocalChangeSeqNum; if (0 === (seen1 & 64)) $this.umCalendarLastChangedBy_1 = 0; else $this.umCalendarLastChangedBy_1 = umCalendarLastChangedBy; if (0 === (seen1 & 128)) $this.umCalendarLct_1 = new Long(0, 0); else $this.umCalendarLct_1 = umCalendarLct; return $this; } function HolidayCalendar_init_$Create$_0(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker) { return HolidayCalendar_init_$Init$_0(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendar))); } function HolidayCalendar() { Companion_getInstance_103(); this.umCalendarUid_1 = new Long(0, 0); this.umCalendarName_1 = null; this.umCalendarCategory_1 = 1; this.umCalendarActive_1 = true; this.umCalendarMasterChangeSeqNum_1 = new Long(0, 0); this.umCalendarLocalChangeSeqNum_1 = new Long(0, 0); this.umCalendarLastChangedBy_1 = 0; this.umCalendarLct_1 = new Long(0, 0); } protoOf(HolidayCalendar).set_umCalendarUid_gauo2p_k$ = function (_set____db54di) { this.umCalendarUid_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarUid_hurqun_k$ = function () { return this.umCalendarUid_1; }; protoOf(HolidayCalendar).set_umCalendarName_o86x1j_k$ = function (_set____db54di) { this.umCalendarName_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarName_eqvove_k$ = function () { return this.umCalendarName_1; }; protoOf(HolidayCalendar).set_umCalendarCategory_3kgfc9_k$ = function (_set____db54di) { this.umCalendarCategory_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarCategory_7svgd9_k$ = function () { return this.umCalendarCategory_1; }; protoOf(HolidayCalendar).set_umCalendarActive_chv2ec_k$ = function (_set____db54di) { this.umCalendarActive_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarActive_ua75np_k$ = function () { return this.umCalendarActive_1; }; protoOf(HolidayCalendar).set_umCalendarMasterChangeSeqNum_boblwu_k$ = function (_set____db54di) { this.umCalendarMasterChangeSeqNum_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarMasterChangeSeqNum_w1refs_k$ = function () { return this.umCalendarMasterChangeSeqNum_1; }; protoOf(HolidayCalendar).set_umCalendarLocalChangeSeqNum_92nnwx_k$ = function (_set____db54di) { this.umCalendarLocalChangeSeqNum_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarLocalChangeSeqNum_jxerpf_k$ = function () { return this.umCalendarLocalChangeSeqNum_1; }; protoOf(HolidayCalendar).set_umCalendarLastChangedBy_73d7sq_k$ = function (_set____db54di) { this.umCalendarLastChangedBy_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarLastChangedBy_k46ara_k$ = function () { return this.umCalendarLastChangedBy_1; }; protoOf(HolidayCalendar).set_umCalendarLct_oo5g1g_k$ = function (_set____db54di) { this.umCalendarLct_1 = _set____db54di; }; protoOf(HolidayCalendar).get_umCalendarLct_hurxnm_k$ = function () { return this.umCalendarLct_1; }; function Companion_100() { Companion_instance_100 = this; } protoOf(Companion_100).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_97(); }; var Companion_instance_100; function Companion_getInstance_104() { if (Companion_instance_100 == null) new Companion_100(); return Companion_instance_100; } function $serializer_97() { $serializer_instance_97 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.HolidayCalendarWithNumEntries', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarName', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarCategory', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarActive', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarLct', true); tmp0_serialDesc.addElement_5pzumi_k$('numEntries', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_97).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_97).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_97).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return HolidayCalendarWithNumEntries_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_97).serialize_is0l0c_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_umCalendarUid_hurqun_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_umCalendarUid_hurqun_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_umCalendarName_eqvove_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_umCalendarName_eqvove_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_umCalendarCategory_7svgd9_k$() === Companion_getInstance_103().get_CATEGORY_HOLIDAY_v38ji8_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.get_umCalendarCategory_7svgd9_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_umCalendarActive_ua75np_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.get_umCalendarActive_ua75np_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_umCalendarMasterChangeSeqNum_w1refs_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_umCalendarMasterChangeSeqNum_w1refs_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.get_umCalendarLocalChangeSeqNum_jxerpf_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.get_umCalendarLocalChangeSeqNum_jxerpf_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.get_umCalendarLastChangedBy_k46ara_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.get_umCalendarLastChangedBy_k46ara_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_umCalendarLct_hurxnm_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_umCalendarLct_hurxnm_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.numEntries_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.numEntries_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_97).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_is0l0c_k$(encoder, value instanceof HolidayCalendarWithNumEntries ? value : THROW_CCE()); }; var $serializer_instance_97; function $serializer_getInstance_97() { if ($serializer_instance_97 == null) new $serializer_97(); return $serializer_instance_97; } function HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_97().descriptor_1); } HolidayCalendar_init_$Init$_0(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, serializationConstructorMarker, $this); if (0 === (seen1 & 256)) $this.numEntries_1 = 0; else $this.numEntries_1 = numEntries; return $this; } function HolidayCalendarWithNumEntries_init_$Create$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker) { return HolidayCalendarWithNumEntries_init_$Init$(seen1, umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct, numEntries, serializationConstructorMarker, objectCreate(protoOf(HolidayCalendarWithNumEntries))); } function HolidayCalendarWithNumEntries() { Companion_getInstance_104(); HolidayCalendar.call(this); this.numEntries_1 = 0; } protoOf(HolidayCalendarWithNumEntries).set_numEntries_p9458f_k$ = function (_set____db54di) { this.numEntries_1 = _set____db54di; }; protoOf(HolidayCalendarWithNumEntries).get_numEntries_ltjdql_k$ = function () { return this.numEntries_1; }; function Companion_101() { Companion_instance_101 = this; this.TABLE_ID_1 = 13; this.ENGLISH_LANG_UID_1 = new Long(10000, 0); this.ARABIC_LANG_UID_1 = new Long(10001, 0); this.BENGALI_LANG_UID_1 = new Long(10002, 0); this.BURMESE_LANG_UID_1 = new Long(10003, 0); this.KINYARWANDA_LANG_UID_1 = new Long(10004, 0); this.NEPALI_LANG_UID_1 = new Long(10005, 0); this.PASHTO_LANG_UID_1 = new Long(10006, 0); this.PERSIAN_LANG_UID_1 = new Long(10007, 0); this.RUSSIAN_LANG_UID_1 = new Long(10008, 0); this.TAJIK_LANG_UID_1 = new Long(10009, 0); var tmp = this; // Inline function 'kotlin.apply' call var this_0 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_0.name_1 = 'English'; this_0.langUid_1 = new Long(10000, 0); this_0.iso_639_1_standard_1 = 'en'; this_0.iso_639_2_standard_1 = 'eng'; this_0.iso_639_3_standard_1 = 'eng'; var tmp_0 = this_0; // Inline function 'kotlin.apply' call var this_1 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_1.name_1 = '\u0627\u0644\u0639\u0631\u0628\u064A\u0629'; this_1.langUid_1 = new Long(10001, 0); this_1.iso_639_1_standard_1 = 'ar'; this_1.iso_639_2_standard_1 = 'ara'; this_1.iso_639_3_standard_1 = 'ara'; var tmp_1 = this_1; // Inline function 'kotlin.apply' call var this_2 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_2.name_1 = '\u09AC\u09BE\u0982\u09B2\u09BE'; this_2.langUid_1 = new Long(10002, 0); this_2.iso_639_1_standard_1 = 'bn'; this_2.iso_639_2_standard_1 = 'ben'; this_2.iso_639_3_standard_1 = 'ben'; var tmp_2 = this_2; // Inline function 'kotlin.apply' call var this_3 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_3.name_1 = '\u1019\u103C\u1014\u103A\u1019\u102C'; this_3.langUid_1 = new Long(10003, 0); this_3.iso_639_1_standard_1 = 'my'; this_3.iso_639_2_standard_1 = 'bur'; this_3.iso_639_3_standard_1 = 'mya'; var tmp_3 = this_3; // Inline function 'kotlin.apply' call var this_4 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_4.name_1 = 'Ikinyarwanda'; this_4.langUid_1 = new Long(10004, 0); this_4.iso_639_1_standard_1 = 'rw'; this_4.iso_639_2_standard_1 = 'kin'; this_4.iso_639_3_standard_1 = 'kin'; var tmp_4 = this_4; // Inline function 'kotlin.apply' call var this_5 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_5.name_1 = '\u0928\u0947\u092A\u093E\u0932\u0940'; this_5.langUid_1 = new Long(10005, 0); this_5.iso_639_1_standard_1 = 'ne'; this_5.iso_639_2_standard_1 = 'nep'; this_5.iso_639_3_standard_1 = 'nep'; var tmp_5 = this_5; // Inline function 'kotlin.apply' call var this_6 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_6.name_1 = '\u067E\u069A\u062A\u0648'; this_6.langUid_1 = new Long(10006, 0); this_6.iso_639_1_standard_1 = 'ps'; this_6.iso_639_2_standard_1 = 'pus'; this_6.iso_639_3_standard_1 = 'pus'; var tmp_6 = this_6; // Inline function 'kotlin.apply' call var this_7 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_7.name_1 = '\u0641\u0627\u0631\u0633\u06CC'; this_7.langUid_1 = new Long(10007, 0); this_7.iso_639_1_standard_1 = 'fa'; this_7.iso_639_2_standard_1 = 'per'; this_7.iso_639_3_standard_1 = 'fas'; var tmp_7 = this_7; // Inline function 'kotlin.apply' call var this_8 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_8.name_1 = '\u0440\u0443\u0441\u0441\u043A\u0438\u0439'; this_8.langUid_1 = new Long(10008, 0); this_8.iso_639_1_standard_1 = 'ru'; this_8.iso_639_2_standard_1 = 'rus'; this_8.iso_639_3_standard_1 = 'rus'; var tmp_8 = this_8; // Inline function 'kotlin.apply' call var this_9 = new Language(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Companion.FIXED_LANGUAGES.' call this_9.name_1 = '\u0422\u043E\u04B7\u0438\u043A\u04E3'; this_9.langUid_1 = new Long(10009, 0); this_9.iso_639_1_standard_1 = 'tg'; this_9.iso_639_2_standard_1 = 'tgk'; this_9.iso_639_3_standard_1 = 'tgk'; tmp.FIXED_LANGUAGES_1 = listOf_0([tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, this_9]); } protoOf(Companion_101).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_101).get_ENGLISH_LANG_UID_23x8zt_k$ = function () { return this.ENGLISH_LANG_UID_1; }; protoOf(Companion_101).get_ARABIC_LANG_UID_yi3ag9_k$ = function () { return this.ARABIC_LANG_UID_1; }; protoOf(Companion_101).get_BENGALI_LANG_UID_naoop1_k$ = function () { return this.BENGALI_LANG_UID_1; }; protoOf(Companion_101).get_BURMESE_LANG_UID_v3okwu_k$ = function () { return this.BURMESE_LANG_UID_1; }; protoOf(Companion_101).get_KINYARWANDA_LANG_UID_9vdm2o_k$ = function () { return this.KINYARWANDA_LANG_UID_1; }; protoOf(Companion_101).get_NEPALI_LANG_UID_dujg0_k$ = function () { return this.NEPALI_LANG_UID_1; }; protoOf(Companion_101).get_PASHTO_LANG_UID_vvgx70_k$ = function () { return this.PASHTO_LANG_UID_1; }; protoOf(Companion_101).get_PERSIAN_LANG_UID_wwant_k$ = function () { return this.PERSIAN_LANG_UID_1; }; protoOf(Companion_101).get_RUSSIAN_LANG_UID_hljl9w_k$ = function () { return this.RUSSIAN_LANG_UID_1; }; protoOf(Companion_101).get_TAJIK_LANG_UID_fls2mg_k$ = function () { return this.TAJIK_LANG_UID_1; }; protoOf(Companion_101).get_FIXED_LANGUAGES_dvs2e1_k$ = function () { return this.FIXED_LANGUAGES_1; }; protoOf(Companion_101).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_98(); }; var Companion_instance_101; function Companion_getInstance_105() { if (Companion_instance_101 == null) new Companion_101(); return Companion_instance_101; } function $serializer_98() { $serializer_instance_98 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Language', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('langUid', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('iso_639_1_standard', true); tmp0_serialDesc.addElement_5pzumi_k$('iso_639_2_standard', true); tmp0_serialDesc.addElement_5pzumi_k$('iso_639_3_standard', true); tmp0_serialDesc.addElement_5pzumi_k$('Language_Type', true); tmp0_serialDesc.addElement_5pzumi_k$('languageActive', true); tmp0_serialDesc.addElement_5pzumi_k$('langLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('langMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('langLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('langLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_98).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_98).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_98).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return Language_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_98).serialize_s2buao_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.langUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.langUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.iso_639_1_standard_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.iso_639_1_standard_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.iso_639_2_standard_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.iso_639_2_standard_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.iso_639_3_standard_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.iso_639_3_standard_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.Language_Type_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.Language_Type_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.languageActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.languageActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.langLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.langLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.langMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.langMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.langLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.langLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.langLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.langLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_98).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_s2buao_k$(encoder, value instanceof Language ? value : THROW_CCE()); }; var $serializer_instance_98; function $serializer_getInstance_98() { if ($serializer_instance_98 == null) new $serializer_98(); return $serializer_instance_98; } function Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_98().descriptor_1); } if (0 === (seen1 & 1)) $this.langUid_1 = new Long(0, 0); else $this.langUid_1 = langUid; if (0 === (seen1 & 2)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 4)) $this.iso_639_1_standard_1 = null; else $this.iso_639_1_standard_1 = iso_639_1_standard; if (0 === (seen1 & 8)) $this.iso_639_2_standard_1 = null; else $this.iso_639_2_standard_1 = iso_639_2_standard; if (0 === (seen1 & 16)) $this.iso_639_3_standard_1 = null; else $this.iso_639_3_standard_1 = iso_639_3_standard; if (0 === (seen1 & 32)) $this.Language_Type_1 = null; else $this.Language_Type_1 = Language_Type; if (0 === (seen1 & 64)) $this.languageActive_1 = true; else $this.languageActive_1 = languageActive; if (0 === (seen1 & 128)) $this.langLocalChangeSeqNum_1 = new Long(0, 0); else $this.langLocalChangeSeqNum_1 = langLocalChangeSeqNum; if (0 === (seen1 & 256)) $this.langMasterChangeSeqNum_1 = new Long(0, 0); else $this.langMasterChangeSeqNum_1 = langMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.langLastChangedBy_1 = 0; else $this.langLastChangedBy_1 = langLastChangedBy; if (0 === (seen1 & 1024)) $this.langLct_1 = new Long(0, 0); else $this.langLct_1 = langLct; return $this; } function Language_init_$Create$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker) { return Language_init_$Init$(seen1, langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct, serializationConstructorMarker, objectCreate(protoOf(Language))); } function Language() { Companion_getInstance_105(); this.langUid_1 = new Long(0, 0); this.name_1 = null; this.iso_639_1_standard_1 = null; this.iso_639_2_standard_1 = null; this.iso_639_3_standard_1 = null; this.Language_Type_1 = null; this.languageActive_1 = true; this.langLocalChangeSeqNum_1 = new Long(0, 0); this.langMasterChangeSeqNum_1 = new Long(0, 0); this.langLastChangedBy_1 = 0; this.langLct_1 = new Long(0, 0); } protoOf(Language).set_langUid_ci1fyx_k$ = function (_set____db54di) { this.langUid_1 = _set____db54di; }; protoOf(Language).get_langUid_ejnh5_k$ = function () { return this.langUid_1; }; protoOf(Language).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(Language).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(Language).set_iso_639_1_standard_i0x87m_k$ = function (_set____db54di) { this.iso_639_1_standard_1 = _set____db54di; }; protoOf(Language).get_iso_639_1_standard_spkz1r_k$ = function () { return this.iso_639_1_standard_1; }; protoOf(Language).set_iso_639_2_standard_vevcqb_k$ = function (_set____db54di) { this.iso_639_2_standard_1 = _set____db54di; }; protoOf(Language).get_iso_639_2_standard_vykxu8_k$ = function () { return this.iso_639_2_standard_1; }; protoOf(Language).set_iso_639_3_standard_q8akq4_k$ = function (_set____db54di) { this.iso_639_3_standard_1 = _set____db54di; }; protoOf(Language).get_iso_639_3_standard_z7kwmp_k$ = function () { return this.iso_639_3_standard_1; }; protoOf(Language).set_Language_Type_jxss6r_k$ = function (_set____db54di) { this.Language_Type_1 = _set____db54di; }; protoOf(Language).get_Language_Type_55wja0_k$ = function () { return this.Language_Type_1; }; protoOf(Language).set_languageActive_33gxtm_k$ = function (_set____db54di) { this.languageActive_1 = _set____db54di; }; protoOf(Language).get_languageActive_km5lzb_k$ = function () { return this.languageActive_1; }; protoOf(Language).set_langLocalChangeSeqNum_km6xw9_k$ = function (_set____db54di) { this.langLocalChangeSeqNum_1 = _set____db54di; }; protoOf(Language).get_langLocalChangeSeqNum_t6xedn_k$ = function () { return this.langLocalChangeSeqNum_1; }; protoOf(Language).set_langMasterChangeSeqNum_eccxgm_k$ = function (_set____db54di) { this.langMasterChangeSeqNum_1 = _set____db54di; }; protoOf(Language).get_langMasterChangeSeqNum_z4cpe8_k$ = function () { return this.langMasterChangeSeqNum_1; }; protoOf(Language).set_langLastChangedBy_1lwzr6_k$ = function (_set____db54di) { this.langLastChangedBy_1 = _set____db54di; }; protoOf(Language).get_langLastChangedBy_mb75qa_k$ = function () { return this.langLastChangedBy_1; }; protoOf(Language).set_langLct_kvc7xo_k$ = function (_set____db54di) { this.langLct_1 = _set____db54di; }; protoOf(Language).get_langLct_ejgo6_k$ = function () { return this.langLct_1; }; protoOf(Language).toString = function () { return toString_0(this.name_1); }; protoOf(Language).equals = function (other) { if (this === other) return true; var language = (other == null ? true : other instanceof Language) ? other : THROW_CCE(); if (!this.langUid_1.equals(ensureNotNull(language).langUid_1)) return false; if (!(this.name_1 == null) ? !(this.name_1 == language.name_1) : !(language.name_1 == null)) return false; if (!(this.iso_639_1_standard_1 == null) ? !(this.iso_639_1_standard_1 == language.iso_639_1_standard_1) : !(language.iso_639_1_standard_1 == null)) return false; if (!(this.iso_639_2_standard_1 == null) ? !(this.iso_639_2_standard_1 == language.iso_639_2_standard_1) : !(language.iso_639_2_standard_1 == null)) return false; return !(this.iso_639_3_standard_1 == null) ? this.iso_639_3_standard_1 == language.iso_639_3_standard_1 : language.iso_639_3_standard_1 == null; }; protoOf(Language).hashCode = function () { var result = this.langUid_1.xor_qzz94j_k$(this.langUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + (!(this.name_1 == null) ? getStringHashCode(ensureNotNull(this.name_1)) : 0) | 0; result = imul(31, result) + (!(this.iso_639_1_standard_1 == null) ? getStringHashCode(ensureNotNull(this.iso_639_1_standard_1)) : 0) | 0; result = imul(31, result) + (!(this.iso_639_2_standard_1 == null) ? getStringHashCode(ensureNotNull(this.iso_639_2_standard_1)) : 0) | 0; result = imul(31, result) + (!(this.iso_639_3_standard_1 == null) ? getStringHashCode(ensureNotNull(this.iso_639_3_standard_1)) : 0) | 0; return result; }; function Companion_102() { Companion_instance_102 = this; this.TABLE_ID_1 = 10; } protoOf(Companion_102).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_102).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_99(); }; var Companion_instance_102; function Companion_getInstance_106() { if (Companion_instance_102 == null) new Companion_102(); return Companion_instance_102; } function $serializer_99() { $serializer_instance_99 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LanguageVariant', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('langVariantUid', true); tmp0_serialDesc.addElement_5pzumi_k$('langUid', true); tmp0_serialDesc.addElement_5pzumi_k$('countryCode', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); tmp0_serialDesc.addElement_5pzumi_k$('langVariantLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('langVariantMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('langVariantLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('langVariantLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_99).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_99).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_99).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return LanguageVariant_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_99).serialize_xbievz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.langVariantUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.langVariantUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.langUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.langUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.countryCode_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.countryCode_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.name_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.langVariantLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.langVariantLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.langVariantMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.langVariantMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.langVariantLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.langVariantLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.langVariantLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.langVariantLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_99).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_xbievz_k$(encoder, value instanceof LanguageVariant ? value : THROW_CCE()); }; var $serializer_instance_99; function $serializer_getInstance_99() { if ($serializer_instance_99 == null) new $serializer_99(); return $serializer_instance_99; } function LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_99().descriptor_1); } if (0 === (seen1 & 1)) $this.langVariantUid_1 = new Long(0, 0); else $this.langVariantUid_1 = langVariantUid; if (0 === (seen1 & 2)) $this.langUid_1 = new Long(0, 0); else $this.langUid_1 = langUid; if (0 === (seen1 & 4)) $this.countryCode_1 = null; else $this.countryCode_1 = countryCode; if (0 === (seen1 & 8)) $this.name_1 = null; else $this.name_1 = name; if (0 === (seen1 & 16)) $this.langVariantLocalChangeSeqNum_1 = new Long(0, 0); else $this.langVariantLocalChangeSeqNum_1 = langVariantLocalChangeSeqNum; if (0 === (seen1 & 32)) $this.langVariantMasterChangeSeqNum_1 = new Long(0, 0); else $this.langVariantMasterChangeSeqNum_1 = langVariantMasterChangeSeqNum; if (0 === (seen1 & 64)) $this.langVariantLastChangedBy_1 = 0; else $this.langVariantLastChangedBy_1 = langVariantLastChangedBy; if (0 === (seen1 & 128)) $this.langVariantLct_1 = new Long(0, 0); else $this.langVariantLct_1 = langVariantLct; return $this; } function LanguageVariant_init_$Create$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker) { return LanguageVariant_init_$Init$(seen1, langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct, serializationConstructorMarker, objectCreate(protoOf(LanguageVariant))); } function LanguageVariant() { Companion_getInstance_106(); this.langVariantUid_1 = new Long(0, 0); this.langUid_1 = new Long(0, 0); this.countryCode_1 = null; this.name_1 = null; this.langVariantLocalChangeSeqNum_1 = new Long(0, 0); this.langVariantMasterChangeSeqNum_1 = new Long(0, 0); this.langVariantLastChangedBy_1 = 0; this.langVariantLct_1 = new Long(0, 0); } protoOf(LanguageVariant).set_langVariantUid_az9iuw_k$ = function (_set____db54di) { this.langVariantUid_1 = _set____db54di; }; protoOf(LanguageVariant).get_langVariantUid_f89r8i_k$ = function () { return this.langVariantUid_1; }; protoOf(LanguageVariant).set_langUid_ci1fyx_k$ = function (_set____db54di) { this.langUid_1 = _set____db54di; }; protoOf(LanguageVariant).get_langUid_ejnh5_k$ = function () { return this.langUid_1; }; protoOf(LanguageVariant).set_countryCode_nspx4f_k$ = function (_set____db54di) { this.countryCode_1 = _set____db54di; }; protoOf(LanguageVariant).get_countryCode_aj7feu_k$ = function () { return this.countryCode_1; }; protoOf(LanguageVariant).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(LanguageVariant).get_name_woqyms_k$ = function () { return this.name_1; }; protoOf(LanguageVariant).set_langVariantLocalChangeSeqNum_36e11y_k$ = function (_set____db54di) { this.langVariantLocalChangeSeqNum_1 = _set____db54di; }; protoOf(LanguageVariant).get_langVariantLocalChangeSeqNum_i784ks_k$ = function () { return this.langVariantLocalChangeSeqNum_1; }; protoOf(LanguageVariant).set_langVariantMasterChangeSeqNum_cykm8b_k$ = function (_set____db54di) { this.langVariantMasterChangeSeqNum_1 = _set____db54di; }; protoOf(LanguageVariant).get_langVariantMasterChangeSeqNum_dg5iqh_k$ = function () { return this.langVariantMasterChangeSeqNum_1; }; protoOf(LanguageVariant).set_langVariantLastChangedBy_w7xkx9_k$ = function (_set____db54di) { this.langVariantLastChangedBy_1 = _set____db54di; }; protoOf(LanguageVariant).get_langVariantLastChangedBy_t591fd_k$ = function () { return this.langVariantLastChangedBy_1; }; protoOf(LanguageVariant).set_langVariantLct_2lyqw5_k$ = function (_set____db54di) { this.langVariantLct_1 = _set____db54di; }; protoOf(LanguageVariant).get_langVariantLct_f89kfj_k$ = function () { return this.langVariantLct_1; }; protoOf(LanguageVariant).equals = function (other) { if (this === other) return true; var that = (other == null ? true : other instanceof LanguageVariant) ? other : THROW_CCE(); if (!this.langVariantUid_1.equals(ensureNotNull(that).langVariantUid_1)) return false; if (!this.langUid_1.equals(that.langUid_1)) return false; if (!(this.countryCode_1 == null) ? !(this.countryCode_1 == that.countryCode_1) : !(that.countryCode_1 == null)) return false; return !(this.name_1 == null) ? this.name_1 == that.name_1 : that.name_1 == null; }; protoOf(LanguageVariant).hashCode = function () { var result = this.langVariantUid_1.xor_qzz94j_k$(this.langVariantUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$(); result = imul(31, result) + this.langUid_1.xor_qzz94j_k$(this.langUid_1.ushr_z7nmq8_k$(32)).toInt_1tsl84_k$() | 0; result = imul(31, result) + (!(this.countryCode_1 == null) ? getStringHashCode(ensureNotNull(this.countryCode_1)) : 0) | 0; result = imul(31, result) + (!(this.name_1 == null) ? getStringHashCode(ensureNotNull(this.name_1)) : 0) | 0; return result; }; function LeavingReason_init_$Init$(uid, title, $this) { LeavingReason.call($this); $this.leavingReasonUid_1 = uid; $this.leavingReasonTitle_1 = title; return $this; } function LeavingReason_init_$Create$(uid, title) { return LeavingReason_init_$Init$(uid, title, objectCreate(protoOf(LeavingReason))); } function Companion_103() { Companion_instance_103 = this; this.TABLE_ID_1 = 410; this.MOVED_TITLE_1 = 'Moved'; this.MOVED_UID_1 = new Long(10000, 0); this.MEDICAL_TITLE_1 = 'Medical'; this.MEDICAL_UID_1 = new Long(10001, 0); this.TRANSPORT_PROBLEM_TITLE_1 = 'Transportation problem'; this.TRANSPORT_PROBLEM_UID_1 = new Long(10002, 0); this.FAMILY_PROBLEM_TITLE_1 = 'Family economic problem'; this.FAMILY_PROBLEM_UID_1 = new Long(10003, 0); this.FAILED_TITLE_1 = 'Failed test'; this.FAILED_UID_1 = new Long(10004, 0); this.PASSED_TITLE_1 = 'Passed test'; this.PASSED_UID_1 = new Long(10005, 0); this.FIXED_UIDS_1 = mapOf([to('Moved', new Long(10000, 0)), to('Medical', new Long(10001, 0)), to('Transportation problem', new Long(10002, 0)), to('Family economic problem', new Long(10003, 0)), to('Failed test', new Long(10004, 0)), to('Passed test', new Long(10005, 0))]); } protoOf(Companion_103).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_103).get_MOVED_TITLE_8tas4d_k$ = function () { return this.MOVED_TITLE_1; }; protoOf(Companion_103).get_MOVED_UID_1bkdzv_k$ = function () { return this.MOVED_UID_1; }; protoOf(Companion_103).get_MEDICAL_TITLE_whmnnj_k$ = function () { return this.MEDICAL_TITLE_1; }; protoOf(Companion_103).get_MEDICAL_UID_8rfg1l_k$ = function () { return this.MEDICAL_UID_1; }; protoOf(Companion_103).get_TRANSPORT_PROBLEM_TITLE_xsyt3t_k$ = function () { return this.TRANSPORT_PROBLEM_TITLE_1; }; protoOf(Companion_103).get_TRANSPORT_PROBLEM_UID_5kyktr_k$ = function () { return this.TRANSPORT_PROBLEM_UID_1; }; protoOf(Companion_103).get_FAMILY_PROBLEM_TITLE_z10a1m_k$ = function () { return this.FAMILY_PROBLEM_TITLE_1; }; protoOf(Companion_103).get_FAMILY_PROBLEM_UID_scgvxa_k$ = function () { return this.FAMILY_PROBLEM_UID_1; }; protoOf(Companion_103).get_FAILED_TITLE_oywvlr_k$ = function () { return this.FAILED_TITLE_1; }; protoOf(Companion_103).get_FAILED_UID_2s6edl_k$ = function () { return this.FAILED_UID_1; }; protoOf(Companion_103).get_PASSED_TITLE_ho04qa_k$ = function () { return this.PASSED_TITLE_1; }; protoOf(Companion_103).get_PASSED_UID_jae0a_k$ = function () { return this.PASSED_UID_1; }; protoOf(Companion_103).get_FIXED_UIDS_gl0ofr_k$ = function () { return this.FIXED_UIDS_1; }; protoOf(Companion_103).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_100(); }; var Companion_instance_103; function Companion_getInstance_107() { if (Companion_instance_103 == null) new Companion_103(); return Companion_instance_103; } function $serializer_100() { $serializer_instance_100 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.LeavingReason', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonMCSN', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonCSN', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonLCB', true); tmp0_serialDesc.addElement_5pzumi_k$('leavingReasonLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_100).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_100).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_100).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return LeavingReason_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_100).serialize_hkgg7e_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.leavingReasonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.leavingReasonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.leavingReasonTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.leavingReasonTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.leavingReasonMCSN_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.leavingReasonMCSN_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.leavingReasonCSN_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.leavingReasonCSN_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.leavingReasonLCB_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.leavingReasonLCB_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.leavingReasonLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.leavingReasonLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_100).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_hkgg7e_k$(encoder, value instanceof LeavingReason ? value : THROW_CCE()); }; var $serializer_instance_100; function $serializer_getInstance_100() { if ($serializer_instance_100 == null) new $serializer_100(); return $serializer_instance_100; } function LeavingReason_init_$Init$_0(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_100().descriptor_1); } if (0 === (seen1 & 1)) $this.leavingReasonUid_1 = new Long(0, 0); else $this.leavingReasonUid_1 = leavingReasonUid; if (0 === (seen1 & 2)) $this.leavingReasonTitle_1 = null; else $this.leavingReasonTitle_1 = leavingReasonTitle; if (0 === (seen1 & 4)) $this.leavingReasonMCSN_1 = new Long(0, 0); else $this.leavingReasonMCSN_1 = leavingReasonMCSN; if (0 === (seen1 & 8)) $this.leavingReasonCSN_1 = new Long(0, 0); else $this.leavingReasonCSN_1 = leavingReasonCSN; if (0 === (seen1 & 16)) $this.leavingReasonLCB_1 = 0; else $this.leavingReasonLCB_1 = leavingReasonLCB; if (0 === (seen1 & 32)) $this.leavingReasonLct_1 = new Long(0, 0); else $this.leavingReasonLct_1 = leavingReasonLct; return $this; } function LeavingReason_init_$Create$_0(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker) { return LeavingReason_init_$Init$_0(seen1, leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct, serializationConstructorMarker, objectCreate(protoOf(LeavingReason))); } function LeavingReason() { Companion_getInstance_107(); this.leavingReasonUid_1 = new Long(0, 0); this.leavingReasonTitle_1 = null; this.leavingReasonMCSN_1 = new Long(0, 0); this.leavingReasonCSN_1 = new Long(0, 0); this.leavingReasonLCB_1 = 0; this.leavingReasonLct_1 = new Long(0, 0); } protoOf(LeavingReason).set_leavingReasonUid_9yufs9_k$ = function (_set____db54di) { this.leavingReasonUid_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonUid_err3kx_k$ = function () { return this.leavingReasonUid_1; }; protoOf(LeavingReason).set_leavingReasonTitle_qlt7ba_k$ = function (_set____db54di) { this.leavingReasonTitle_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonTitle_bcnrrr_k$ = function () { return this.leavingReasonTitle_1; }; protoOf(LeavingReason).set_leavingReasonMCSN_bj3iha_k$ = function (_set____db54di) { this.leavingReasonMCSN_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonMCSN_vphuqo_k$ = function () { return this.leavingReasonMCSN_1; }; protoOf(LeavingReason).set_leavingReasonCSN_fn65j9_k$ = function (_set____db54di) { this.leavingReasonCSN_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonCSN_erqpov_k$ = function () { return this.leavingReasonCSN_1; }; protoOf(LeavingReason).set_leavingReasonLCB_7smdl4_k$ = function (_set____db54di) { this.leavingReasonLCB_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonLCB_erqvz0_k$ = function () { return this.leavingReasonLCB_1; }; protoOf(LeavingReason).set_leavingReasonLct_ic57r0_k$ = function (_set____db54di) { this.leavingReasonLct_1 = _set____db54di; }; protoOf(LeavingReason).get_leavingReasonLct_erqwry_k$ = function () { return this.leavingReasonLct_1; }; function Companion_104() { Companion_instance_104 = this; this.TABLE_ID_1 = 126; } protoOf(Companion_104).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_104).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_101(); }; var Companion_instance_104; function Companion_getInstance_108() { if (Companion_instance_104 == null) new Companion_104(); return Companion_instance_104; } function $serializer_101() { $serializer_instance_101 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Message', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('messageUid', true); tmp0_serialDesc.addElement_5pzumi_k$('messageSenderPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('messageToPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('messageText', true); tmp0_serialDesc.addElement_5pzumi_k$('messageTimestamp', true); tmp0_serialDesc.addElement_5pzumi_k$('messageLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_101).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_101).childSerializers_5ghqw5_k$ = 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(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_101).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return Message_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_101).serialize_d885jt_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.messageUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.messageUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.messageSenderPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.messageSenderPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.messageToPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.messageToPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.messageText_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.messageText_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.messageTimestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.messageTimestamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.messageLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.messageLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_101).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_d885jt_k$(encoder, value instanceof Message ? value : THROW_CCE()); }; var $serializer_instance_101; function $serializer_getInstance_101() { if ($serializer_instance_101 == null) new $serializer_101(); return $serializer_instance_101; } function Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_101().descriptor_1); } if (0 === (seen1 & 1)) $this.messageUid_1 = new Long(0, 0); else $this.messageUid_1 = messageUid; if (0 === (seen1 & 2)) $this.messageSenderPersonUid_1 = new Long(0, 0); else $this.messageSenderPersonUid_1 = messageSenderPersonUid; if (0 === (seen1 & 4)) $this.messageToPersonUid_1 = new Long(0, 0); else $this.messageToPersonUid_1 = messageToPersonUid; if (0 === (seen1 & 8)) $this.messageText_1 = null; else $this.messageText_1 = messageText; if (0 === (seen1 & 16)) $this.messageTimestamp_1 = new Long(0, 0); else $this.messageTimestamp_1 = messageTimestamp; if (0 === (seen1 & 32)) $this.messageLct_1 = new Long(0, 0); else $this.messageLct_1 = messageLct; return $this; } function Message_init_$Create$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker) { return Message_init_$Init$(seen1, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, serializationConstructorMarker, objectCreate(protoOf(Message))); } function Message(messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) { Companion_getInstance_108(); messageUid = messageUid === VOID ? new Long(0, 0) : messageUid; messageSenderPersonUid = messageSenderPersonUid === VOID ? new Long(0, 0) : messageSenderPersonUid; messageToPersonUid = messageToPersonUid === VOID ? new Long(0, 0) : messageToPersonUid; messageText = messageText === VOID ? null : messageText; messageTimestamp = messageTimestamp === VOID ? new Long(0, 0) : messageTimestamp; messageLct = messageLct === VOID ? new Long(0, 0) : messageLct; this.messageUid_1 = messageUid; this.messageSenderPersonUid_1 = messageSenderPersonUid; this.messageToPersonUid_1 = messageToPersonUid; this.messageText_1 = messageText; this.messageTimestamp_1 = messageTimestamp; this.messageLct_1 = messageLct; } protoOf(Message).set_messageUid_udozrs_k$ = function (_set____db54di) { this.messageUid_1 = _set____db54di; }; protoOf(Message).get_messageUid_mw8qc2_k$ = function () { return this.messageUid_1; }; protoOf(Message).set_messageSenderPersonUid_jv3602_k$ = function (_set____db54di) { this.messageSenderPersonUid_1 = _set____db54di; }; protoOf(Message).get_messageSenderPersonUid_bw7aq0_k$ = function () { return this.messageSenderPersonUid_1; }; protoOf(Message).set_messageToPersonUid_70xwq0_k$ = function (_set____db54di) { this.messageToPersonUid_1 = _set____db54di; }; protoOf(Message).get_messageToPersonUid_rh9mda_k$ = function () { return this.messageToPersonUid_1; }; protoOf(Message).set_messageText_6t1480_k$ = function (_set____db54di) { this.messageText_1 = _set____db54di; }; protoOf(Message).get_messageText_jmkr9_k$ = function () { return this.messageText_1; }; protoOf(Message).set_messageTimestamp_tv7rma_k$ = function (_set____db54di) { this.messageTimestamp_1 = _set____db54di; }; protoOf(Message).get_messageTimestamp_8sd2mw_k$ = function () { return this.messageTimestamp_1; }; protoOf(Message).set_messageLct_wa4a8l_k$ = function (_set____db54di) { this.messageLct_1 = _set____db54di; }; protoOf(Message).get_messageLct_mw8jj3_k$ = function () { return this.messageLct_1; }; protoOf(Message).component1_7eebsc_k$ = function () { return this.messageUid_1; }; protoOf(Message).component2_7eebsb_k$ = function () { return this.messageSenderPersonUid_1; }; protoOf(Message).component3_7eebsa_k$ = function () { return this.messageToPersonUid_1; }; protoOf(Message).component4_7eebs9_k$ = function () { return this.messageText_1; }; protoOf(Message).component5_7eebs8_k$ = function () { return this.messageTimestamp_1; }; protoOf(Message).component6_7eebs7_k$ = function () { return this.messageLct_1; }; protoOf(Message).copy_43d9ny_k$ = function (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) { return new Message(messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct); }; protoOf(Message).copy$default_rzjk7a_k$ = function (messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct, $super) { messageUid = messageUid === VOID ? this.messageUid_1 : messageUid; messageSenderPersonUid = messageSenderPersonUid === VOID ? this.messageSenderPersonUid_1 : messageSenderPersonUid; messageToPersonUid = messageToPersonUid === VOID ? this.messageToPersonUid_1 : messageToPersonUid; messageText = messageText === VOID ? this.messageText_1 : messageText; messageTimestamp = messageTimestamp === VOID ? this.messageTimestamp_1 : messageTimestamp; messageLct = messageLct === VOID ? this.messageLct_1 : messageLct; return $super === VOID ? this.copy_43d9ny_k$(messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct) : $super.copy_43d9ny_k$.call(this, messageUid, messageSenderPersonUid, messageToPersonUid, messageText, messageTimestamp, messageLct); }; protoOf(Message).toString = function () { return 'Message(messageUid=' + this.messageUid_1.toString() + ', messageSenderPersonUid=' + this.messageSenderPersonUid_1.toString() + ', messageToPersonUid=' + this.messageToPersonUid_1.toString() + ', messageText=' + this.messageText_1 + ', messageTimestamp=' + this.messageTimestamp_1.toString() + ', messageLct=' + this.messageLct_1.toString() + ')'; }; protoOf(Message).hashCode = function () { var result = this.messageUid_1.hashCode(); result = imul(result, 31) + this.messageSenderPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.messageToPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.messageText_1 == null ? 0 : getStringHashCode(this.messageText_1)) | 0; result = imul(result, 31) + this.messageTimestamp_1.hashCode() | 0; result = imul(result, 31) + this.messageLct_1.hashCode() | 0; return result; }; protoOf(Message).equals = function (other) { if (this === other) return true; if (!(other instanceof Message)) return false; var tmp0_other_with_cast = other instanceof Message ? other : THROW_CCE(); if (!this.messageUid_1.equals(tmp0_other_with_cast.messageUid_1)) return false; if (!this.messageSenderPersonUid_1.equals(tmp0_other_with_cast.messageSenderPersonUid_1)) return false; if (!this.messageToPersonUid_1.equals(tmp0_other_with_cast.messageToPersonUid_1)) return false; if (!(this.messageText_1 == tmp0_other_with_cast.messageText_1)) return false; if (!this.messageTimestamp_1.equals(tmp0_other_with_cast.messageTimestamp_1)) return false; if (!this.messageLct_1.equals(tmp0_other_with_cast.messageLct_1)) return false; return true; }; function Companion_105() { Companion_instance_105 = this; this.TABLE_ID_1 = 971; } protoOf(Companion_105).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_105).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_102(); }; var Companion_instance_105; function Companion_getInstance_109() { if (Companion_instance_105 == null) new Companion_105(); return Companion_instance_105; } function $serializer_102() { $serializer_instance_102 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.OfflineItem', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('oiUid', true); tmp0_serialDesc.addElement_5pzumi_k$('oiNodeId', true); tmp0_serialDesc.addElement_5pzumi_k$('oiClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('oiCourseBlockUid', true); tmp0_serialDesc.addElement_5pzumi_k$('oiContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('oiActive', true); tmp0_serialDesc.addElement_5pzumi_k$('oiLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_102).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_102).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_102).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return OfflineItem_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_102).serialize_m5bmo8_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.oiUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.oiUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.oiNodeId_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.oiNodeId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.oiClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.oiClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.oiCourseBlockUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.oiCourseBlockUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.oiContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.oiContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.oiActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.oiActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.oiLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.oiLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_102).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_m5bmo8_k$(encoder, value instanceof OfflineItem ? value : THROW_CCE()); }; var $serializer_instance_102; function $serializer_getInstance_102() { if ($serializer_instance_102 == null) new $serializer_102(); return $serializer_instance_102; } function OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_102().descriptor_1); } if (0 === (seen1 & 1)) $this.oiUid_1 = new Long(0, 0); else $this.oiUid_1 = oiUid; if (0 === (seen1 & 2)) $this.oiNodeId_1 = new Long(0, 0); else $this.oiNodeId_1 = oiNodeId; if (0 === (seen1 & 4)) $this.oiClazzUid_1 = new Long(0, 0); else $this.oiClazzUid_1 = oiClazzUid; if (0 === (seen1 & 8)) $this.oiCourseBlockUid_1 = new Long(0, 0); else $this.oiCourseBlockUid_1 = oiCourseBlockUid; if (0 === (seen1 & 16)) $this.oiContentEntryUid_1 = new Long(0, 0); else $this.oiContentEntryUid_1 = oiContentEntryUid; if (0 === (seen1 & 32)) $this.oiActive_1 = true; else $this.oiActive_1 = oiActive; if (0 === (seen1 & 64)) $this.oiLct_1 = new Long(0, 0); else $this.oiLct_1 = oiLct; return $this; } function OfflineItem_init_$Create$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker) { return OfflineItem_init_$Init$(seen1, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, serializationConstructorMarker, objectCreate(protoOf(OfflineItem))); } function OfflineItem(oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) { Companion_getInstance_109(); oiUid = oiUid === VOID ? new Long(0, 0) : oiUid; oiNodeId = oiNodeId === VOID ? new Long(0, 0) : oiNodeId; oiClazzUid = oiClazzUid === VOID ? new Long(0, 0) : oiClazzUid; oiCourseBlockUid = oiCourseBlockUid === VOID ? new Long(0, 0) : oiCourseBlockUid; oiContentEntryUid = oiContentEntryUid === VOID ? new Long(0, 0) : oiContentEntryUid; oiActive = oiActive === VOID ? true : oiActive; oiLct = oiLct === VOID ? new Long(0, 0) : oiLct; this.oiUid_1 = oiUid; this.oiNodeId_1 = oiNodeId; this.oiClazzUid_1 = oiClazzUid; this.oiCourseBlockUid_1 = oiCourseBlockUid; this.oiContentEntryUid_1 = oiContentEntryUid; this.oiActive_1 = oiActive; this.oiLct_1 = oiLct; } protoOf(OfflineItem).set_oiUid_cw5sxn_k$ = function (_set____db54di) { this.oiUid_1 = _set____db54di; }; protoOf(OfflineItem).get_oiUid_iwbgtp_k$ = function () { return this.oiUid_1; }; protoOf(OfflineItem).set_oiNodeId_zi5r1m_k$ = function (_set____db54di) { this.oiNodeId_1 = _set____db54di; }; protoOf(OfflineItem).get_oiNodeId_bp5bsw_k$ = function () { return this.oiNodeId_1; }; protoOf(OfflineItem).set_oiClazzUid_gbyzan_k$ = function (_set____db54di) { this.oiClazzUid_1 = _set____db54di; }; protoOf(OfflineItem).get_oiClazzUid_qfnbfp_k$ = function () { return this.oiClazzUid_1; }; protoOf(OfflineItem).set_oiCourseBlockUid_bxhaa1_k$ = function (_set____db54di) { this.oiCourseBlockUid_1 = _set____db54di; }; protoOf(OfflineItem).get_oiCourseBlockUid_vv2sjl_k$ = function () { return this.oiCourseBlockUid_1; }; protoOf(OfflineItem).set_oiContentEntryUid_7p7gv6_k$ = function (_set____db54di) { this.oiContentEntryUid_1 = _set____db54di; }; protoOf(OfflineItem).get_oiContentEntryUid_4v8s7g_k$ = function () { return this.oiContentEntryUid_1; }; protoOf(OfflineItem).set_oiActive_b6lfi0_k$ = function (_set____db54di) { this.oiActive_1 = _set____db54di; }; protoOf(OfflineItem).get_oiActive_i11m7r_k$ = function () { return this.oiActive_1; }; protoOf(OfflineItem).set_oiLct_4iv0yw_k$ = function (_set____db54di) { this.oiLct_1 = _set____db54di; }; protoOf(OfflineItem).get_oiLct_iwba0q_k$ = function () { return this.oiLct_1; }; protoOf(OfflineItem).component1_7eebsc_k$ = function () { return this.oiUid_1; }; protoOf(OfflineItem).component2_7eebsb_k$ = function () { return this.oiNodeId_1; }; protoOf(OfflineItem).component3_7eebsa_k$ = function () { return this.oiClazzUid_1; }; protoOf(OfflineItem).component4_7eebs9_k$ = function () { return this.oiCourseBlockUid_1; }; protoOf(OfflineItem).component5_7eebs8_k$ = function () { return this.oiContentEntryUid_1; }; protoOf(OfflineItem).component6_7eebs7_k$ = function () { return this.oiActive_1; }; protoOf(OfflineItem).component7_7eebs6_k$ = function () { return this.oiLct_1; }; protoOf(OfflineItem).copy_4gyy4e_k$ = function (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) { return new OfflineItem(oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct); }; protoOf(OfflineItem).copy$default_dg13j0_k$ = function (oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct, $super) { oiUid = oiUid === VOID ? this.oiUid_1 : oiUid; oiNodeId = oiNodeId === VOID ? this.oiNodeId_1 : oiNodeId; oiClazzUid = oiClazzUid === VOID ? this.oiClazzUid_1 : oiClazzUid; oiCourseBlockUid = oiCourseBlockUid === VOID ? this.oiCourseBlockUid_1 : oiCourseBlockUid; oiContentEntryUid = oiContentEntryUid === VOID ? this.oiContentEntryUid_1 : oiContentEntryUid; oiActive = oiActive === VOID ? this.oiActive_1 : oiActive; oiLct = oiLct === VOID ? this.oiLct_1 : oiLct; return $super === VOID ? this.copy_4gyy4e_k$(oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct) : $super.copy_4gyy4e_k$.call(this, oiUid, oiNodeId, oiClazzUid, oiCourseBlockUid, oiContentEntryUid, oiActive, oiLct); }; protoOf(OfflineItem).toString = function () { return 'OfflineItem(oiUid=' + this.oiUid_1.toString() + ', oiNodeId=' + this.oiNodeId_1.toString() + ', oiClazzUid=' + this.oiClazzUid_1.toString() + ', oiCourseBlockUid=' + this.oiCourseBlockUid_1.toString() + ', oiContentEntryUid=' + this.oiContentEntryUid_1.toString() + ', oiActive=' + this.oiActive_1 + ', oiLct=' + this.oiLct_1.toString() + ')'; }; protoOf(OfflineItem).hashCode = function () { var result = this.oiUid_1.hashCode(); result = imul(result, 31) + this.oiNodeId_1.hashCode() | 0; result = imul(result, 31) + this.oiClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.oiCourseBlockUid_1.hashCode() | 0; result = imul(result, 31) + this.oiContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.oiActive_1) | 0; result = imul(result, 31) + this.oiLct_1.hashCode() | 0; return result; }; protoOf(OfflineItem).equals = function (other) { if (this === other) return true; if (!(other instanceof OfflineItem)) return false; var tmp0_other_with_cast = other instanceof OfflineItem ? other : THROW_CCE(); if (!this.oiUid_1.equals(tmp0_other_with_cast.oiUid_1)) return false; if (!this.oiNodeId_1.equals(tmp0_other_with_cast.oiNodeId_1)) return false; if (!this.oiClazzUid_1.equals(tmp0_other_with_cast.oiClazzUid_1)) return false; if (!this.oiCourseBlockUid_1.equals(tmp0_other_with_cast.oiCourseBlockUid_1)) return false; if (!this.oiContentEntryUid_1.equals(tmp0_other_with_cast.oiContentEntryUid_1)) return false; if (!(this.oiActive_1 === tmp0_other_with_cast.oiActive_1)) return false; if (!this.oiLct_1.equals(tmp0_other_with_cast.oiLct_1)) return false; return true; }; function ParentEnrolmentRequired(parentPersonUid, clazzUid) { parentPersonUid = parentPersonUid === VOID ? new Long(0, 0) : parentPersonUid; clazzUid = clazzUid === VOID ? new Long(0, 0) : clazzUid; this.parentPersonUid_1 = parentPersonUid; this.clazzUid_1 = clazzUid; } protoOf(ParentEnrolmentRequired).set_parentPersonUid_ewbia2_k$ = function (_set____db54di) { this.parentPersonUid_1 = _set____db54di; }; protoOf(ParentEnrolmentRequired).get_parentPersonUid_2n3d54_k$ = function () { return this.parentPersonUid_1; }; protoOf(ParentEnrolmentRequired).set_clazzUid_tlygrb_k$ = function (_set____db54di) { this.clazzUid_1 = _set____db54di; }; protoOf(ParentEnrolmentRequired).get_clazzUid_k8pnbz_k$ = function () { return this.clazzUid_1; }; protoOf(ParentEnrolmentRequired).component1_7eebsc_k$ = function () { return this.parentPersonUid_1; }; protoOf(ParentEnrolmentRequired).component2_7eebsb_k$ = function () { return this.clazzUid_1; }; protoOf(ParentEnrolmentRequired).copy_cwfd3f_k$ = function (parentPersonUid, clazzUid) { return new ParentEnrolmentRequired(parentPersonUid, clazzUid); }; protoOf(ParentEnrolmentRequired).copy$default_frkqtz_k$ = function (parentPersonUid, clazzUid, $super) { parentPersonUid = parentPersonUid === VOID ? this.parentPersonUid_1 : parentPersonUid; clazzUid = clazzUid === VOID ? this.clazzUid_1 : clazzUid; return $super === VOID ? this.copy_cwfd3f_k$(parentPersonUid, clazzUid) : $super.copy_cwfd3f_k$.call(this, parentPersonUid, clazzUid); }; protoOf(ParentEnrolmentRequired).toString = function () { return 'ParentEnrolmentRequired(parentPersonUid=' + this.parentPersonUid_1.toString() + ', clazzUid=' + this.clazzUid_1.toString() + ')'; }; protoOf(ParentEnrolmentRequired).hashCode = function () { var result = this.parentPersonUid_1.hashCode(); result = imul(result, 31) + this.clazzUid_1.hashCode() | 0; return result; }; protoOf(ParentEnrolmentRequired).equals = function (other) { if (this === other) return true; if (!(other instanceof ParentEnrolmentRequired)) return false; var tmp0_other_with_cast = other instanceof ParentEnrolmentRequired ? other : THROW_CCE(); if (!this.parentPersonUid_1.equals(tmp0_other_with_cast.parentPersonUid_1)) return false; if (!this.clazzUid_1.equals(tmp0_other_with_cast.clazzUid_1)) return false; return true; }; function Companion_106() { Companion_instance_106 = this; this.TABLE_ID_1 = 140; } protoOf(Companion_106).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_106).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_103(); }; var Companion_instance_106; function Companion_getInstance_110() { if (Companion_instance_106 == null) new Companion_106(); return Companion_instance_106; } function $serializer_103() { $serializer_instance_103 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PeerReviewerAllocation', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('praUid', true); tmp0_serialDesc.addElement_5pzumi_k$('praMarkerSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('praToMarkerSubmitterUid', true); tmp0_serialDesc.addElement_5pzumi_k$('praAssignmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('praActive', true); tmp0_serialDesc.addElement_5pzumi_k$('praLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_103).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_103).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_103).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return PeerReviewerAllocation_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_103).serialize_tzguxd_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.praUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.praUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.praMarkerSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.praMarkerSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.praToMarkerSubmitterUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.praToMarkerSubmitterUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.praAssignmentUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.praAssignmentUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.praActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.praActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.praLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.praLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_103).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_tzguxd_k$(encoder, value instanceof PeerReviewerAllocation ? value : THROW_CCE()); }; var $serializer_instance_103; function $serializer_getInstance_103() { if ($serializer_instance_103 == null) new $serializer_103(); return $serializer_instance_103; } function PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_103().descriptor_1); } if (0 === (seen1 & 1)) $this.praUid_1 = new Long(0, 0); else $this.praUid_1 = praUid; if (0 === (seen1 & 2)) $this.praMarkerSubmitterUid_1 = new Long(0, 0); else $this.praMarkerSubmitterUid_1 = praMarkerSubmitterUid; if (0 === (seen1 & 4)) $this.praToMarkerSubmitterUid_1 = new Long(0, 0); else $this.praToMarkerSubmitterUid_1 = praToMarkerSubmitterUid; if (0 === (seen1 & 8)) $this.praAssignmentUid_1 = new Long(0, 0); else $this.praAssignmentUid_1 = praAssignmentUid; if (0 === (seen1 & 16)) $this.praActive_1 = true; else $this.praActive_1 = praActive; if (0 === (seen1 & 32)) $this.praLct_1 = new Long(0, 0); else $this.praLct_1 = praLct; return $this; } function PeerReviewerAllocation_init_$Create$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker) { return PeerReviewerAllocation_init_$Init$(seen1, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, serializationConstructorMarker, objectCreate(protoOf(PeerReviewerAllocation))); } function PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) { Companion_getInstance_110(); praUid = praUid === VOID ? new Long(0, 0) : praUid; praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? new Long(0, 0) : praMarkerSubmitterUid; praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? new Long(0, 0) : praToMarkerSubmitterUid; praAssignmentUid = praAssignmentUid === VOID ? new Long(0, 0) : praAssignmentUid; praActive = praActive === VOID ? true : praActive; praLct = praLct === VOID ? new Long(0, 0) : praLct; this.praUid_1 = praUid; this.praMarkerSubmitterUid_1 = praMarkerSubmitterUid; this.praToMarkerSubmitterUid_1 = praToMarkerSubmitterUid; this.praAssignmentUid_1 = praAssignmentUid; this.praActive_1 = praActive; this.praLct_1 = praLct; } protoOf(PeerReviewerAllocation).set_praUid_dkb29c_k$ = function (_set____db54di) { this.praUid_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praUid_i762pm_k$ = function () { return this.praUid_1; }; protoOf(PeerReviewerAllocation).set_praMarkerSubmitterUid_plw6dh_k$ = function (_set____db54di) { this.praMarkerSubmitterUid_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praMarkerSubmitterUid_mj8ypj_k$ = function () { return this.praMarkerSubmitterUid_1; }; protoOf(PeerReviewerAllocation).set_praToMarkerSubmitterUid_n8lf7k_k$ = function (_set____db54di) { this.praToMarkerSubmitterUid_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praToMarkerSubmitterUid_7d07wy_k$ = function () { return this.praToMarkerSubmitterUid_1; }; protoOf(PeerReviewerAllocation).set_praAssignmentUid_60pp0j_k$ = function (_set____db54di) { this.praAssignmentUid_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praAssignmentUid_gmaw8d_k$ = function () { return this.praAssignmentUid_1; }; protoOf(PeerReviewerAllocation).set_praActive_a5t77_k$ = function (_set____db54di) { this.praActive_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praActive_i43sis_k$ = function () { return this.praActive_1; }; protoOf(PeerReviewerAllocation).set_praLct_lxlu83_k$ = function (_set____db54di) { this.praLct_1 = _set____db54di; }; protoOf(PeerReviewerAllocation).get_praLct_i75vwn_k$ = function () { return this.praLct_1; }; protoOf(PeerReviewerAllocation).component1_7eebsc_k$ = function () { return this.praUid_1; }; protoOf(PeerReviewerAllocation).component2_7eebsb_k$ = function () { return this.praMarkerSubmitterUid_1; }; protoOf(PeerReviewerAllocation).component3_7eebsa_k$ = function () { return this.praToMarkerSubmitterUid_1; }; protoOf(PeerReviewerAllocation).component4_7eebs9_k$ = function () { return this.praAssignmentUid_1; }; protoOf(PeerReviewerAllocation).component5_7eebs8_k$ = function () { return this.praActive_1; }; protoOf(PeerReviewerAllocation).component6_7eebs7_k$ = function () { return this.praLct_1; }; protoOf(PeerReviewerAllocation).copy_gxpg66_k$ = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) { return new PeerReviewerAllocation(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct); }; protoOf(PeerReviewerAllocation).copy$default_3df7bi_k$ = function (praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct, $super) { praUid = praUid === VOID ? this.praUid_1 : praUid; praMarkerSubmitterUid = praMarkerSubmitterUid === VOID ? this.praMarkerSubmitterUid_1 : praMarkerSubmitterUid; praToMarkerSubmitterUid = praToMarkerSubmitterUid === VOID ? this.praToMarkerSubmitterUid_1 : praToMarkerSubmitterUid; praAssignmentUid = praAssignmentUid === VOID ? this.praAssignmentUid_1 : praAssignmentUid; praActive = praActive === VOID ? this.praActive_1 : praActive; praLct = praLct === VOID ? this.praLct_1 : praLct; return $super === VOID ? this.copy_gxpg66_k$(praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct) : $super.copy_gxpg66_k$.call(this, praUid, praMarkerSubmitterUid, praToMarkerSubmitterUid, praAssignmentUid, praActive, praLct); }; protoOf(PeerReviewerAllocation).toString = function () { return 'PeerReviewerAllocation(praUid=' + this.praUid_1.toString() + ', praMarkerSubmitterUid=' + this.praMarkerSubmitterUid_1.toString() + ', praToMarkerSubmitterUid=' + this.praToMarkerSubmitterUid_1.toString() + ', praAssignmentUid=' + this.praAssignmentUid_1.toString() + ', praActive=' + this.praActive_1 + ', praLct=' + this.praLct_1.toString() + ')'; }; protoOf(PeerReviewerAllocation).hashCode = function () { var result = this.praUid_1.hashCode(); result = imul(result, 31) + this.praMarkerSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + this.praToMarkerSubmitterUid_1.hashCode() | 0; result = imul(result, 31) + this.praAssignmentUid_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.praActive_1) | 0; result = imul(result, 31) + this.praLct_1.hashCode() | 0; return result; }; protoOf(PeerReviewerAllocation).equals = function (other) { if (this === other) return true; if (!(other instanceof PeerReviewerAllocation)) return false; var tmp0_other_with_cast = other instanceof PeerReviewerAllocation ? other : THROW_CCE(); if (!this.praUid_1.equals(tmp0_other_with_cast.praUid_1)) return false; if (!this.praMarkerSubmitterUid_1.equals(tmp0_other_with_cast.praMarkerSubmitterUid_1)) return false; if (!this.praToMarkerSubmitterUid_1.equals(tmp0_other_with_cast.praToMarkerSubmitterUid_1)) return false; if (!this.praAssignmentUid_1.equals(tmp0_other_with_cast.praAssignmentUid_1)) return false; if (!(this.praActive_1 === tmp0_other_with_cast.praActive_1)) return false; if (!this.praLct_1.equals(tmp0_other_with_cast.praLct_1)) return false; return true; }; function Companion_107() { Companion_instance_107 = this; this.TABLE_ID_1 = 9; this.GENDER_UNSET_1 = 0; this.GENDER_FEMALE_1 = 1; this.GENDER_MALE_1 = 2; this.GENDER_OTHER_1 = 4; this.TYPE_NORMAL_PERSON_1 = 0; this.TYPE_SYSTEM_1 = 1; this.TYPE_GUEST_1 = 2; this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT1__1 = '\n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions &'; this.FROM_PERSON_TO_SCOPEDGRANT_JOIN_ON_CLAUSE_1 = '\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n \n ) \n '; this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT2__1 = '\n ) > 0\n JOIN Person \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n \n ) \n \n '; } protoOf(Companion_107).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_107).get_GENDER_UNSET_ij51gs_k$ = function () { return this.GENDER_UNSET_1; }; protoOf(Companion_107).get_GENDER_FEMALE_dh67xb_k$ = function () { return this.GENDER_FEMALE_1; }; protoOf(Companion_107).get_GENDER_MALE_56n82m_k$ = function () { return this.GENDER_MALE_1; }; protoOf(Companion_107).get_GENDER_OTHER_imc79h_k$ = function () { return this.GENDER_OTHER_1; }; protoOf(Companion_107).get_TYPE_NORMAL_PERSON_mzt6gh_k$ = function () { return this.TYPE_NORMAL_PERSON_1; }; protoOf(Companion_107).get_TYPE_SYSTEM_yg3d05_k$ = function () { return this.TYPE_SYSTEM_1; }; protoOf(Companion_107).get_TYPE_GUEST_f1ls78_k$ = function () { return this.TYPE_GUEST_1; }; protoOf(Companion_107).get_JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT1_6lcs4f_k$ = function () { return this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT1__1; }; protoOf(Companion_107).get_FROM_PERSON_TO_SCOPEDGRANT_JOIN_ON_CLAUSE_gpai8j_k$ = function () { return this.FROM_PERSON_TO_SCOPEDGRANT_JOIN_ON_CLAUSE_1; }; protoOf(Companion_107).get_JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT2_6lcs4g_k$ = function () { return this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT2__1; }; protoOf(Companion_107).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_104(); }; var Companion_instance_107; function Companion_getInstance_111() { if (Companion_instance_107 == null) new Companion_107(); return Companion_instance_107; } function $serializer_104() { $serializer_instance_104 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Person', this, 24); tmp0_serialDesc.addElement_5pzumi_k$('personUid', true); tmp0_serialDesc.addElement_5pzumi_k$('username', true); tmp0_serialDesc.addElement_5pzumi_k$('firstNames', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); tmp0_serialDesc.addElement_5pzumi_k$('emailAddr', true); tmp0_serialDesc.addElement_5pzumi_k$('phoneNum', true); tmp0_serialDesc.addElement_5pzumi_k$('gender', true); tmp0_serialDesc.addElement_5pzumi_k$('active', true); tmp0_serialDesc.addElement_5pzumi_k$('dateOfBirth', true); tmp0_serialDesc.addElement_5pzumi_k$('personAddress', true); tmp0_serialDesc.addElement_5pzumi_k$('personOrgId', true); tmp0_serialDesc.addElement_5pzumi_k$('personGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('personLct', true); tmp0_serialDesc.addElement_5pzumi_k$('personCountry', true); tmp0_serialDesc.addElement_5pzumi_k$('personType', true); tmp0_serialDesc.addElement_5pzumi_k$('personMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('personLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('personLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('admin', true); tmp0_serialDesc.addElement_5pzumi_k$('personNotes', true); tmp0_serialDesc.addElement_5pzumi_k$('fatherName', true); tmp0_serialDesc.addElement_5pzumi_k$('fatherNumber', true); tmp0_serialDesc.addElement_5pzumi_k$('motherName', true); tmp0_serialDesc.addElement_5pzumi_k$('motherNum', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_104).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_104).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_104).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = 0; var tmp11_local7 = false; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_local10 = null; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_local14 = 0; var tmp19_local15 = new Long(0, 0); var tmp20_local16 = new Long(0, 0); var tmp21_local17 = 0; var tmp22_local18 = false; var tmp23_local19 = null; var tmp24_local20 = null; var tmp25_local21 = null; var tmp26_local22 = null; var tmp27_local23 = null; var tmp28_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp28_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp25_local21 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp26_local22 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp27_local23 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; } else while (tmp1_flag) { tmp2_index = tmp28_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp28_input.decodeLongElement_994anb_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp28_input.decodeIntElement_941u6a_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp28_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 20, StringSerializer_getInstance(), tmp24_local20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp25_local21 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 21, StringSerializer_getInstance(), tmp25_local21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp26_local22 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 22, StringSerializer_getInstance(), tmp26_local22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp27_local23 = tmp28_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp27_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp28_input.endStructure_1xqz0n_k$(tmp0_desc); return Person_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, tmp25_local21, tmp26_local22, tmp27_local23, null); }; protoOf($serializer_104).serialize_qw8zsz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.personUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.personUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.username_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.username_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.firstNames_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.firstNames_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.lastName_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.lastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.emailAddr_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.emailAddr_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.phoneNum_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.phoneNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.gender_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.gender_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.active_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.active_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.dateOfBirth_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.dateOfBirth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.personAddress_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, StringSerializer_getInstance(), value.personAddress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.personOrgId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, StringSerializer_getInstance(), value.personOrgId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.personGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.personGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.personLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.personLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.personCountry_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, StringSerializer_getInstance(), value.personCountry_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.personType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.personType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.personMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.personMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.personLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 16, value.personLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.personLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 17, value.personLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.admin_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 18, value.admin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.personNotes_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, StringSerializer_getInstance(), value.personNotes_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.fatherName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 20, StringSerializer_getInstance(), value.fatherName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !(value.fatherNumber_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 21, StringSerializer_getInstance(), value.fatherNumber_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !(value.motherName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 22, StringSerializer_getInstance(), value.motherName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.motherNum_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.motherNum_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_104).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_qw8zsz_k$(encoder, value instanceof Person ? value : THROW_CCE()); }; var $serializer_instance_104; function $serializer_getInstance_104() { if ($serializer_instance_104 == null) new $serializer_104(); return $serializer_instance_104; } function Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_104().descriptor_1); } if (0 === (seen1 & 1)) $this.personUid_1 = new Long(0, 0); else $this.personUid_1 = personUid; if (0 === (seen1 & 2)) $this.username_1 = null; else $this.username_1 = username; if (0 === (seen1 & 4)) $this.firstNames_1 = ''; else $this.firstNames_1 = firstNames; if (0 === (seen1 & 8)) $this.lastName_1 = ''; else $this.lastName_1 = lastName; if (0 === (seen1 & 16)) $this.emailAddr_1 = null; else $this.emailAddr_1 = emailAddr; if (0 === (seen1 & 32)) $this.phoneNum_1 = null; else $this.phoneNum_1 = phoneNum; if (0 === (seen1 & 64)) $this.gender_1 = 0; else $this.gender_1 = gender; if (0 === (seen1 & 128)) $this.active_1 = true; else $this.active_1 = active; if (0 === (seen1 & 256)) $this.dateOfBirth_1 = new Long(0, 0); else $this.dateOfBirth_1 = dateOfBirth; if (0 === (seen1 & 512)) $this.personAddress_1 = null; else $this.personAddress_1 = personAddress; if (0 === (seen1 & 1024)) $this.personOrgId_1 = null; else $this.personOrgId_1 = personOrgId; if (0 === (seen1 & 2048)) $this.personGroupUid_1 = new Long(0, 0); else $this.personGroupUid_1 = personGroupUid; if (0 === (seen1 & 4096)) $this.personLct_1 = new Long(0, 0); else $this.personLct_1 = personLct; if (0 === (seen1 & 8192)) $this.personCountry_1 = null; else $this.personCountry_1 = personCountry; if (0 === (seen1 & 16384)) $this.personType_1 = 0; else $this.personType_1 = personType; if (0 === (seen1 & 32768)) $this.personMasterChangeSeqNum_1 = new Long(0, 0); else $this.personMasterChangeSeqNum_1 = personMasterChangeSeqNum; if (0 === (seen1 & 65536)) $this.personLocalChangeSeqNum_1 = new Long(0, 0); else $this.personLocalChangeSeqNum_1 = personLocalChangeSeqNum; if (0 === (seen1 & 131072)) $this.personLastChangedBy_1 = 0; else $this.personLastChangedBy_1 = personLastChangedBy; if (0 === (seen1 & 262144)) $this.admin_1 = false; else $this.admin_1 = admin; if (0 === (seen1 & 524288)) $this.personNotes_1 = null; else $this.personNotes_1 = personNotes; if (0 === (seen1 & 1048576)) $this.fatherName_1 = null; else $this.fatherName_1 = fatherName; if (0 === (seen1 & 2097152)) $this.fatherNumber_1 = null; else $this.fatherNumber_1 = fatherNumber; if (0 === (seen1 & 4194304)) $this.motherName_1 = null; else $this.motherName_1 = motherName; if (0 === (seen1 & 8388608)) $this.motherNum_1 = null; else $this.motherNum_1 = motherNum; return $this; } function Person_init_$Create$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker) { return Person_init_$Init$(seen1, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, serializationConstructorMarker, objectCreate(protoOf(Person))); } function Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) { Companion_getInstance_111(); personUid = personUid === VOID ? new Long(0, 0) : personUid; username = username === VOID ? null : username; firstNames = firstNames === VOID ? '' : firstNames; lastName = lastName === VOID ? '' : lastName; emailAddr = emailAddr === VOID ? null : emailAddr; phoneNum = phoneNum === VOID ? null : phoneNum; gender = gender === VOID ? 0 : gender; active = active === VOID ? true : active; dateOfBirth = dateOfBirth === VOID ? new Long(0, 0) : dateOfBirth; personAddress = personAddress === VOID ? null : personAddress; personOrgId = personOrgId === VOID ? null : personOrgId; personGroupUid = personGroupUid === VOID ? new Long(0, 0) : personGroupUid; personLct = personLct === VOID ? new Long(0, 0) : personLct; personCountry = personCountry === VOID ? null : personCountry; personType = personType === VOID ? 0 : personType; personMasterChangeSeqNum = personMasterChangeSeqNum === VOID ? new Long(0, 0) : personMasterChangeSeqNum; personLocalChangeSeqNum = personLocalChangeSeqNum === VOID ? new Long(0, 0) : personLocalChangeSeqNum; personLastChangedBy = personLastChangedBy === VOID ? 0 : personLastChangedBy; admin = admin === VOID ? false : admin; personNotes = personNotes === VOID ? null : personNotes; fatherName = fatherName === VOID ? null : fatherName; fatherNumber = fatherNumber === VOID ? null : fatherNumber; motherName = motherName === VOID ? null : motherName; motherNum = motherNum === VOID ? null : motherNum; this.personUid_1 = personUid; this.username_1 = username; this.firstNames_1 = firstNames; this.lastName_1 = lastName; this.emailAddr_1 = emailAddr; this.phoneNum_1 = phoneNum; this.gender_1 = gender; this.active_1 = active; this.dateOfBirth_1 = dateOfBirth; this.personAddress_1 = personAddress; this.personOrgId_1 = personOrgId; this.personGroupUid_1 = personGroupUid; this.personLct_1 = personLct; this.personCountry_1 = personCountry; this.personType_1 = personType; this.personMasterChangeSeqNum_1 = personMasterChangeSeqNum; this.personLocalChangeSeqNum_1 = personLocalChangeSeqNum; this.personLastChangedBy_1 = personLastChangedBy; this.admin_1 = admin; this.personNotes_1 = personNotes; this.fatherName_1 = fatherName; this.fatherNumber_1 = fatherNumber; this.motherName_1 = motherName; this.motherNum_1 = motherNum; } protoOf(Person).set_personUid_j3idds_k$ = function (_set____db54di) { this.personUid_1 = _set____db54di; }; protoOf(Person).get_personUid_mmhd76_k$ = function () { return this.personUid_1; }; protoOf(Person).set_username_tgnlmk_k$ = function (_set____db54di) { this.username_1 = _set____db54di; }; protoOf(Person).get_username_ytz5i7_k$ = function () { return this.username_1; }; protoOf(Person).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(Person).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(Person).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(Person).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(Person).set_emailAddr_n0lw07_k$ = function (_set____db54di) { this.emailAddr_1 = _set____db54di; }; protoOf(Person).get_emailAddr_rghqf0_k$ = function () { return this.emailAddr_1; }; protoOf(Person).set_phoneNum_jo9xeq_k$ = function (_set____db54di) { this.phoneNum_1 = _set____db54di; }; protoOf(Person).get_phoneNum_i20sg1_k$ = function () { return this.phoneNum_1; }; protoOf(Person).set_gender_5r7pfa_k$ = function (_set____db54di) { this.gender_1 = _set____db54di; }; protoOf(Person).get_gender_dqurbe_k$ = function () { return this.gender_1; }; protoOf(Person).set_active_nmha5u_k$ = function (_set____db54di) { this.active_1 = _set____db54di; }; protoOf(Person).get_active_avldsf_k$ = function () { return this.active_1; }; protoOf(Person).set_dateOfBirth_1iysn5_k$ = function (_set____db54di) { this.dateOfBirth_1 = _set____db54di; }; protoOf(Person).get_dateOfBirth_7hv8kx_k$ = function () { return this.dateOfBirth_1; }; protoOf(Person).set_personAddress_v4k1w5_k$ = function (_set____db54di) { this.personAddress_1 = _set____db54di; }; protoOf(Person).get_personAddress_w7qqwm_k$ = function () { return this.personAddress_1; }; protoOf(Person).set_personOrgId_8oeidy_k$ = function (_set____db54di) { this.personOrgId_1 = _set____db54di; }; protoOf(Person).get_personOrgId_6lzn8h_k$ = function () { return this.personOrgId_1; }; protoOf(Person).set_personGroupUid_eex3gl_k$ = function (_set____db54di) { this.personGroupUid_1 = _set____db54di; }; protoOf(Person).get_personGroupUid_wriklr_k$ = function () { return this.personGroupUid_1; }; protoOf(Person).set_personLct_aq7lf1_k$ = function (_set____db54di) { this.personLct_1 = _set____db54di; }; protoOf(Person).get_personLct_mmh6e7_k$ = function () { return this.personLct_1; }; protoOf(Person).set_personCountry_2dq7zn_k$ = function (_set____db54di) { this.personCountry_1 = _set____db54di; }; protoOf(Person).get_personCountry_3zsn1k_k$ = function () { return this.personCountry_1; }; protoOf(Person).set_personType_przf38_k$ = function (_set____db54di) { this.personType_1 = _set____db54di; }; protoOf(Person).get_personType_8y6hc8_k$ = function () { return this.personType_1; }; protoOf(Person).set_personMasterChangeSeqNum_5x91v_k$ = function (_set____db54di) { this.personMasterChangeSeqNum_1 = _set____db54di; }; protoOf(Person).get_personMasterChangeSeqNum_prsruf_k$ = function () { return this.personMasterChangeSeqNum_1; }; protoOf(Person).set_personLocalChangeSeqNum_isxxla_k$ = function (_set____db54di) { this.personLocalChangeSeqNum_1 = _set____db54di; }; protoOf(Person).get_personLocalChangeSeqNum_gxofuk_k$ = function () { return this.personLocalChangeSeqNum_1; }; protoOf(Person).set_personLastChangedBy_ghtfvp_k$ = function (_set____db54di) { this.personLastChangedBy_1 = _set____db54di; }; protoOf(Person).get_personLastChangedBy_z0j913_k$ = function () { return this.personLastChangedBy_1; }; protoOf(Person).set_admin_llzh0j_k$ = function (_set____db54di) { this.admin_1 = _set____db54di; }; protoOf(Person).get_admin_iojndy_k$ = function () { return this.admin_1; }; protoOf(Person).set_personNotes_4l39dk_k$ = function (_set____db54di) { this.personNotes_1 = _set____db54di; }; protoOf(Person).get_personNotes_6le803_k$ = function () { return this.personNotes_1; }; protoOf(Person).set_fatherName_jpjuzx_k$ = function (_set____db54di) { this.fatherName_1 = _set____db54di; }; protoOf(Person).get_fatherName_ymrq1c_k$ = function () { return this.fatherName_1; }; protoOf(Person).set_fatherNumber_pch0b9_k$ = function (_set____db54di) { this.fatherNumber_1 = _set____db54di; }; protoOf(Person).get_fatherNumber_vcrsoi_k$ = function () { return this.fatherNumber_1; }; protoOf(Person).set_motherName_y7zjzg_k$ = function (_set____db54di) { this.motherName_1 = _set____db54di; }; protoOf(Person).get_motherName_jkvzav_k$ = function () { return this.motherName_1; }; protoOf(Person).set_motherNum_mxb55b_k$ = function (_set____db54di) { this.motherNum_1 = _set____db54di; }; protoOf(Person).get_motherNum_1nqyg6_k$ = function () { return this.motherNum_1; }; protoOf(Person).fullName_m0cs6y_k$ = function () { // 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.lib.db.entities.Person.fullName.' call var tmp0_safe_receiver = this.firstNames_1; if (tmp0_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName..' call this_0.append_22ad7x_k$(tmp0_safe_receiver); } if (!(this.firstNames_1 == null) ? !(this.lastName_1 == null) : false) { this_0.append_22ad7x_k$(' '); } var tmp1_safe_receiver = this.lastName_1; if (tmp1_safe_receiver == null) null; else { // Inline function 'kotlin.also' call // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.Person.fullName..' call this_0.append_22ad7x_k$(tmp1_safe_receiver); } return this_0.toString(); }; protoOf(Person).component1_7eebsc_k$ = function () { return this.personUid_1; }; protoOf(Person).component2_7eebsb_k$ = function () { return this.username_1; }; protoOf(Person).component3_7eebsa_k$ = function () { return this.firstNames_1; }; protoOf(Person).component4_7eebs9_k$ = function () { return this.lastName_1; }; protoOf(Person).component5_7eebs8_k$ = function () { return this.emailAddr_1; }; protoOf(Person).component6_7eebs7_k$ = function () { return this.phoneNum_1; }; protoOf(Person).component7_7eebs6_k$ = function () { return this.gender_1; }; protoOf(Person).component8_7eebs5_k$ = function () { return this.active_1; }; protoOf(Person).component9_7eebs4_k$ = function () { return this.dateOfBirth_1; }; protoOf(Person).component10_gazzfo_k$ = function () { return this.personAddress_1; }; protoOf(Person).component11_gazzfn_k$ = function () { return this.personOrgId_1; }; protoOf(Person).component12_gazzfm_k$ = function () { return this.personGroupUid_1; }; protoOf(Person).component13_gazzfl_k$ = function () { return this.personLct_1; }; protoOf(Person).component14_gazzfk_k$ = function () { return this.personCountry_1; }; protoOf(Person).component15_gazzfj_k$ = function () { return this.personType_1; }; protoOf(Person).component16_gazzfi_k$ = function () { return this.personMasterChangeSeqNum_1; }; protoOf(Person).component17_gazzfh_k$ = function () { return this.personLocalChangeSeqNum_1; }; protoOf(Person).component18_gazzfg_k$ = function () { return this.personLastChangedBy_1; }; protoOf(Person).component19_gazzff_k$ = function () { return this.admin_1; }; protoOf(Person).component20_gazzet_k$ = function () { return this.personNotes_1; }; protoOf(Person).component21_gazzes_k$ = function () { return this.fatherName_1; }; protoOf(Person).component22_gazzer_k$ = function () { return this.fatherNumber_1; }; protoOf(Person).component23_gazzeq_k$ = function () { return this.motherName_1; }; protoOf(Person).component24_gazzep_k$ = function () { return this.motherNum_1; }; protoOf(Person).copy_b18xro_k$ = function (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) { return new Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum); }; protoOf(Person).copy$default_fmywh8_k$ = function (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, $super) { personUid = personUid === VOID ? this.personUid_1 : personUid; username = username === VOID ? this.username_1 : username; firstNames = firstNames === VOID ? this.firstNames_1 : firstNames; lastName = lastName === VOID ? this.lastName_1 : lastName; emailAddr = emailAddr === VOID ? this.emailAddr_1 : emailAddr; phoneNum = phoneNum === VOID ? this.phoneNum_1 : phoneNum; gender = gender === VOID ? this.gender_1 : gender; active = active === VOID ? this.active_1 : active; dateOfBirth = dateOfBirth === VOID ? this.dateOfBirth_1 : dateOfBirth; personAddress = personAddress === VOID ? this.personAddress_1 : personAddress; personOrgId = personOrgId === VOID ? this.personOrgId_1 : personOrgId; personGroupUid = personGroupUid === VOID ? this.personGroupUid_1 : personGroupUid; personLct = personLct === VOID ? this.personLct_1 : personLct; personCountry = personCountry === VOID ? this.personCountry_1 : personCountry; personType = personType === VOID ? this.personType_1 : personType; personMasterChangeSeqNum = personMasterChangeSeqNum === VOID ? this.personMasterChangeSeqNum_1 : personMasterChangeSeqNum; personLocalChangeSeqNum = personLocalChangeSeqNum === VOID ? this.personLocalChangeSeqNum_1 : personLocalChangeSeqNum; personLastChangedBy = personLastChangedBy === VOID ? this.personLastChangedBy_1 : personLastChangedBy; admin = admin === VOID ? this.admin_1 : admin; personNotes = personNotes === VOID ? this.personNotes_1 : personNotes; fatherName = fatherName === VOID ? this.fatherName_1 : fatherName; fatherNumber = fatherNumber === VOID ? this.fatherNumber_1 : fatherNumber; motherName = motherName === VOID ? this.motherName_1 : motherName; motherNum = motherNum === VOID ? this.motherNum_1 : motherNum; return $super === VOID ? this.copy_b18xro_k$(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum) : $super.copy_b18xro_k$.call(this, personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, dateOfBirth, personAddress, personOrgId, personGroupUid, personLct, personCountry, personType, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, admin, personNotes, fatherName, fatherNumber, motherName, motherNum); }; protoOf(Person).toString = function () { return 'Person(personUid=' + this.personUid_1.toString() + ', username=' + this.username_1 + ', firstNames=' + this.firstNames_1 + ', lastName=' + this.lastName_1 + ', emailAddr=' + this.emailAddr_1 + ', phoneNum=' + this.phoneNum_1 + ', gender=' + this.gender_1 + ', active=' + this.active_1 + ', dateOfBirth=' + this.dateOfBirth_1.toString() + ', personAddress=' + this.personAddress_1 + ', personOrgId=' + this.personOrgId_1 + ', personGroupUid=' + this.personGroupUid_1.toString() + ', personLct=' + this.personLct_1.toString() + ', personCountry=' + this.personCountry_1 + ', personType=' + this.personType_1 + ', personMasterChangeSeqNum=' + this.personMasterChangeSeqNum_1.toString() + ', personLocalChangeSeqNum=' + this.personLocalChangeSeqNum_1.toString() + ', personLastChangedBy=' + this.personLastChangedBy_1 + ', admin=' + this.admin_1 + ', personNotes=' + this.personNotes_1 + ', fatherName=' + this.fatherName_1 + ', fatherNumber=' + this.fatherNumber_1 + ', motherName=' + this.motherName_1 + ', motherNum=' + this.motherNum_1 + ')'; }; protoOf(Person).hashCode = function () { var result = this.personUid_1.hashCode(); result = imul(result, 31) + (this.username_1 == null ? 0 : getStringHashCode(this.username_1)) | 0; result = imul(result, 31) + (this.firstNames_1 == null ? 0 : getStringHashCode(this.firstNames_1)) | 0; result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; result = imul(result, 31) + (this.emailAddr_1 == null ? 0 : getStringHashCode(this.emailAddr_1)) | 0; result = imul(result, 31) + (this.phoneNum_1 == null ? 0 : getStringHashCode(this.phoneNum_1)) | 0; result = imul(result, 31) + this.gender_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.active_1) | 0; result = imul(result, 31) + this.dateOfBirth_1.hashCode() | 0; result = imul(result, 31) + (this.personAddress_1 == null ? 0 : getStringHashCode(this.personAddress_1)) | 0; result = imul(result, 31) + (this.personOrgId_1 == null ? 0 : getStringHashCode(this.personOrgId_1)) | 0; result = imul(result, 31) + this.personGroupUid_1.hashCode() | 0; result = imul(result, 31) + this.personLct_1.hashCode() | 0; result = imul(result, 31) + (this.personCountry_1 == null ? 0 : getStringHashCode(this.personCountry_1)) | 0; result = imul(result, 31) + this.personType_1 | 0; result = imul(result, 31) + this.personMasterChangeSeqNum_1.hashCode() | 0; result = imul(result, 31) + this.personLocalChangeSeqNum_1.hashCode() | 0; result = imul(result, 31) + this.personLastChangedBy_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.admin_1) | 0; result = imul(result, 31) + (this.personNotes_1 == null ? 0 : getStringHashCode(this.personNotes_1)) | 0; result = imul(result, 31) + (this.fatherName_1 == null ? 0 : getStringHashCode(this.fatherName_1)) | 0; result = imul(result, 31) + (this.fatherNumber_1 == null ? 0 : getStringHashCode(this.fatherNumber_1)) | 0; result = imul(result, 31) + (this.motherName_1 == null ? 0 : getStringHashCode(this.motherName_1)) | 0; result = imul(result, 31) + (this.motherNum_1 == null ? 0 : getStringHashCode(this.motherNum_1)) | 0; return result; }; protoOf(Person).equals = function (other) { if (this === other) return true; if (!(other instanceof Person)) return false; var tmp0_other_with_cast = other instanceof Person ? other : THROW_CCE(); if (!this.personUid_1.equals(tmp0_other_with_cast.personUid_1)) return false; if (!(this.username_1 == tmp0_other_with_cast.username_1)) return false; if (!(this.firstNames_1 == tmp0_other_with_cast.firstNames_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; if (!(this.emailAddr_1 == tmp0_other_with_cast.emailAddr_1)) return false; if (!(this.phoneNum_1 == tmp0_other_with_cast.phoneNum_1)) return false; if (!(this.gender_1 === tmp0_other_with_cast.gender_1)) return false; if (!(this.active_1 === tmp0_other_with_cast.active_1)) return false; if (!this.dateOfBirth_1.equals(tmp0_other_with_cast.dateOfBirth_1)) return false; if (!(this.personAddress_1 == tmp0_other_with_cast.personAddress_1)) return false; if (!(this.personOrgId_1 == tmp0_other_with_cast.personOrgId_1)) return false; if (!this.personGroupUid_1.equals(tmp0_other_with_cast.personGroupUid_1)) return false; if (!this.personLct_1.equals(tmp0_other_with_cast.personLct_1)) return false; if (!(this.personCountry_1 == tmp0_other_with_cast.personCountry_1)) return false; if (!(this.personType_1 === tmp0_other_with_cast.personType_1)) return false; if (!this.personMasterChangeSeqNum_1.equals(tmp0_other_with_cast.personMasterChangeSeqNum_1)) return false; if (!this.personLocalChangeSeqNum_1.equals(tmp0_other_with_cast.personLocalChangeSeqNum_1)) return false; if (!(this.personLastChangedBy_1 === tmp0_other_with_cast.personLastChangedBy_1)) return false; if (!(this.admin_1 === tmp0_other_with_cast.admin_1)) return false; if (!(this.personNotes_1 == tmp0_other_with_cast.personNotes_1)) return false; if (!(this.fatherName_1 == tmp0_other_with_cast.fatherName_1)) return false; if (!(this.fatherNumber_1 == tmp0_other_with_cast.fatherNumber_1)) return false; if (!(this.motherName_1 == tmp0_other_with_cast.motherName_1)) return false; if (!(this.motherNum_1 == tmp0_other_with_cast.motherNum_1)) return false; return true; }; function Companion_108() { Companion_instance_108 = this; } protoOf(Companion_108).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_105(); }; var Companion_instance_108; function Companion_getInstance_112() { if (Companion_instance_108 == null) new Companion_108(); return Companion_instance_108; } function $serializer_105() { $serializer_instance_105 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAndDisplayDetail', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('person', true); tmp0_serialDesc.addElement_5pzumi_k$('parentJoin', true); tmp0_serialDesc.addElement_5pzumi_k$('personPicture', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureTransferJobItem', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_105).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_105).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_104()), get_nullable($serializer_getInstance_109()), get_nullable($serializer_getInstance_111()), get_nullable($serializer_getInstance_126())]; }; protoOf($serializer_105).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_109(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_126(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_104(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_109(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, $serializer_getInstance_111(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, $serializer_getInstance_126(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAndDisplayDetail_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_105).serialize_qlz98n_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_104(), value.person_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.parentJoin_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_109(), value.parentJoin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.personPicture_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, $serializer_getInstance_111(), value.personPicture_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.personPictureTransferJobItem_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, $serializer_getInstance_126(), value.personPictureTransferJobItem_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_105).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_qlz98n_k$(encoder, value instanceof PersonAndDisplayDetail ? value : THROW_CCE()); }; var $serializer_instance_105; function $serializer_getInstance_105() { if ($serializer_instance_105 == null) new $serializer_105(); return $serializer_instance_105; } function PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_105().descriptor_1); } if (0 === (seen1 & 1)) $this.person_1 = null; else $this.person_1 = person; if (0 === (seen1 & 2)) $this.parentJoin_1 = null; else $this.parentJoin_1 = parentJoin; if (0 === (seen1 & 4)) $this.personPicture_1 = null; else $this.personPicture_1 = personPicture; if (0 === (seen1 & 8)) $this.personPictureTransferJobItem_1 = null; else $this.personPictureTransferJobItem_1 = personPictureTransferJobItem; return $this; } function PersonAndDisplayDetail_init_$Create$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker) { return PersonAndDisplayDetail_init_$Init$(seen1, person, parentJoin, personPicture, personPictureTransferJobItem, serializationConstructorMarker, objectCreate(protoOf(PersonAndDisplayDetail))); } function PersonAndDisplayDetail(person, parentJoin, personPicture, personPictureTransferJobItem) { Companion_getInstance_112(); person = person === VOID ? null : person; parentJoin = parentJoin === VOID ? null : parentJoin; personPicture = personPicture === VOID ? null : personPicture; personPictureTransferJobItem = personPictureTransferJobItem === VOID ? null : personPictureTransferJobItem; this.person_1 = person; this.parentJoin_1 = parentJoin; this.personPicture_1 = personPicture; this.personPictureTransferJobItem_1 = personPictureTransferJobItem; } protoOf(PersonAndDisplayDetail).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(PersonAndDisplayDetail).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(PersonAndDisplayDetail).set_parentJoin_j4ptis_k$ = function (_set____db54di) { this.parentJoin_1 = _set____db54di; }; protoOf(PersonAndDisplayDetail).get_parentJoin_o83rlv_k$ = function () { return this.parentJoin_1; }; protoOf(PersonAndDisplayDetail).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(PersonAndDisplayDetail).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndDisplayDetail).set_personPictureTransferJobItem_8ho57u_k$ = function (_set____db54di) { this.personPictureTransferJobItem_1 = _set____db54di; }; protoOf(PersonAndDisplayDetail).get_personPictureTransferJobItem_zbb3dn_k$ = function () { return this.personPictureTransferJobItem_1; }; protoOf(PersonAndDisplayDetail).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(PersonAndDisplayDetail).component2_7eebsb_k$ = function () { return this.parentJoin_1; }; protoOf(PersonAndDisplayDetail).component3_7eebsa_k$ = function () { return this.personPicture_1; }; protoOf(PersonAndDisplayDetail).component4_7eebs9_k$ = function () { return this.personPictureTransferJobItem_1; }; protoOf(PersonAndDisplayDetail).copy_9f13ch_k$ = function (person, parentJoin, personPicture, personPictureTransferJobItem) { return new PersonAndDisplayDetail(person, parentJoin, personPicture, personPictureTransferJobItem); }; protoOf(PersonAndDisplayDetail).copy$default_6j1l7l_k$ = function (person, parentJoin, personPicture, personPictureTransferJobItem, $super) { person = person === VOID ? this.person_1 : person; parentJoin = parentJoin === VOID ? this.parentJoin_1 : parentJoin; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; personPictureTransferJobItem = personPictureTransferJobItem === VOID ? this.personPictureTransferJobItem_1 : personPictureTransferJobItem; return $super === VOID ? this.copy_9f13ch_k$(person, parentJoin, personPicture, personPictureTransferJobItem) : $super.copy_9f13ch_k$.call(this, person, parentJoin, personPicture, personPictureTransferJobItem); }; protoOf(PersonAndDisplayDetail).toString = function () { return 'PersonAndDisplayDetail(person=' + this.person_1 + ', parentJoin=' + this.parentJoin_1 + ', personPicture=' + this.personPicture_1 + ', personPictureTransferJobItem=' + this.personPictureTransferJobItem_1 + ')'; }; protoOf(PersonAndDisplayDetail).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.parentJoin_1 == null ? 0 : this.parentJoin_1.hashCode()) | 0; result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.personPictureTransferJobItem_1 == null ? 0 : this.personPictureTransferJobItem_1.hashCode()) | 0; return result; }; protoOf(PersonAndDisplayDetail).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonAndDisplayDetail)) return false; var tmp0_other_with_cast = other instanceof PersonAndDisplayDetail ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.parentJoin_1, tmp0_other_with_cast.parentJoin_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; if (!equals(this.personPictureTransferJobItem_1, tmp0_other_with_cast.personPictureTransferJobItem_1)) return false; return true; }; function PersonAuth_init_$Init$(personAuthUid, passwordHash, $this) { PersonAuth.call($this); $this.personAuthUid_1 = personAuthUid; $this.passwordHash_1 = passwordHash; return $this; } function PersonAuth_init_$Create$(personAuthUid, passwordHash) { return PersonAuth_init_$Init$(personAuthUid, passwordHash, objectCreate(protoOf(PersonAuth))); } function Companion_109() { Companion_instance_109 = this; this.STATUS_SENT_1 = 1; this.STATUS_NOT_SENT_1 = 0; } protoOf(Companion_109).get_STATUS_SENT_z8zvx8_k$ = function () { return this.STATUS_SENT_1; }; protoOf(Companion_109).get_STATUS_NOT_SENT_7jobqg_k$ = function () { return this.STATUS_NOT_SENT_1; }; protoOf(Companion_109).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_106(); }; var Companion_instance_109; function Companion_getInstance_113() { if (Companion_instance_109 == null) new Companion_109(); return Companion_instance_109; } function $serializer_106() { $serializer_instance_106 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonAuth', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('personAuthUid', true); tmp0_serialDesc.addElement_5pzumi_k$('passwordHash', true); tmp0_serialDesc.addElement_5pzumi_k$('personAuthStatus', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_106).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_106).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_106).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = 0; var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonAuth_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_106).serialize_63eqgr_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.personAuthUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.personAuthUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.passwordHash_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.passwordHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.personAuthStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.personAuthStatus_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_106).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_63eqgr_k$(encoder, value instanceof PersonAuth ? value : THROW_CCE()); }; var $serializer_instance_106; function $serializer_getInstance_106() { if ($serializer_instance_106 == null) new $serializer_106(); return $serializer_instance_106; } function PersonAuth_init_$Init$_0(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_106().descriptor_1); } if (0 === (seen1 & 1)) $this.personAuthUid_1 = new Long(0, 0); else $this.personAuthUid_1 = personAuthUid; if (0 === (seen1 & 2)) $this.passwordHash_1 = null; else $this.passwordHash_1 = passwordHash; if (0 === (seen1 & 4)) $this.personAuthStatus_1 = 0; else $this.personAuthStatus_1 = personAuthStatus; return $this; } function PersonAuth_init_$Create$_0(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker) { return PersonAuth_init_$Init$_0(seen1, personAuthUid, passwordHash, personAuthStatus, serializationConstructorMarker, objectCreate(protoOf(PersonAuth))); } function PersonAuth() { Companion_getInstance_113(); this.personAuthUid_1 = new Long(0, 0); this.passwordHash_1 = null; this.personAuthStatus_1 = 0; } protoOf(PersonAuth).set_personAuthUid_bcewzc_k$ = function (_set____db54di) { this.personAuthUid_1 = _set____db54di; }; protoOf(PersonAuth).get_personAuthUid_uizquu_k$ = function () { return this.personAuthUid_1; }; protoOf(PersonAuth).set_passwordHash_weksrz_k$ = function (_set____db54di) { this.passwordHash_1 = _set____db54di; }; protoOf(PersonAuth).get_passwordHash_dwynpu_k$ = function () { return this.passwordHash_1; }; protoOf(PersonAuth).set_personAuthStatus_vsqeqs_k$ = function (_set____db54di) { this.personAuthStatus_1 = _set____db54di; }; protoOf(PersonAuth).get_personAuthStatus_vrc43c_k$ = function () { return this.personAuthStatus_1; }; function Companion_110() { Companion_instance_110 = this; this.AUTH_MECH_PBKDF2_DOUBLE_1 = 'PBKDF2x2'; this.TABLE_ID_1 = 678; } protoOf(Companion_110).get_AUTH_MECH_PBKDF2_DOUBLE_iqjeed_k$ = function () { return this.AUTH_MECH_PBKDF2_DOUBLE_1; }; protoOf(Companion_110).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; var Companion_instance_110; function Companion_getInstance_114() { if (Companion_instance_110 == null) new Companion_110(); return Companion_instance_110; } function PersonAuth2() { Companion_getInstance_114(); this.pauthUid_1 = new Long(0, 0); this.pauthMechanism_1 = null; this.pauthAuth_1 = null; this.pauthLcsn_1 = new Long(0, 0); this.pauthPcsn_1 = new Long(0, 0); this.pauthLcb_1 = new Long(0, 0); this.pauthLct_1 = new Long(0, 0); } protoOf(PersonAuth2).set_pauthUid_pp9js9_k$ = function (_set____db54di) { this.pauthUid_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthUid_aq0lcv_k$ = function () { return this.pauthUid_1; }; protoOf(PersonAuth2).set_pauthMechanism_kcxz95_k$ = function (_set____db54di) { this.pauthMechanism_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthMechanism_psmndi_k$ = function () { return this.pauthMechanism_1; }; protoOf(PersonAuth2).set_pauthAuth_nuofak_k$ = function (_set____db54di) { this.pauthAuth_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthAuth_mqpdfb_k$ = function () { return this.pauthAuth_1; }; protoOf(PersonAuth2).set_pauthLcsn_jc3ze7_k$ = function (_set____db54di) { this.pauthLcsn_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthLcsn_mqw0wx_k$ = function () { return this.pauthLcsn_1; }; protoOf(PersonAuth2).set_pauthPcsn_ifvrhn_k$ = function (_set____db54di) { this.pauthPcsn_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthPcsn_mqykv1_k$ = function () { return this.pauthPcsn_1; }; protoOf(PersonAuth2).set_pauthLcb_qye01e_k$ = function (_set____db54di) { this.pauthLcb_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthLcb_aq0s6c_k$ = function () { return this.pauthLcb_1; }; protoOf(PersonAuth2).set_pauthLct_y2kbr0_k$ = function (_set____db54di) { this.pauthLct_1 = _set____db54di; }; protoOf(PersonAuth2).get_pauthLct_aq0s5u_k$ = function () { return this.pauthLct_1; }; function PersonGroup_init_$Init$(name, $this) { PersonGroup.call($this); $this.groupName_1 = name; return $this; } function PersonGroup_init_$Create$(name) { return PersonGroup_init_$Init$(name, objectCreate(protoOf(PersonGroup))); } function Companion_111() { Companion_instance_111 = this; this.TABLE_ID_1 = 43; this.PERSONGROUP_FLAG_DEFAULT_1 = 0; this.PERSONGROUP_FLAG_PERSONGROUP_1 = 1; this.PERSONGROUP_FLAG_PARENT_GROUP_1 = 2; this.PERSONGROUP_FLAG_STUDENTGROUP_1 = 4; this.PERSONGROUP_FLAG_TEACHERGROUP_1 = 8; this.PERSONGROUP_FLAG_GUESTPERSON_1 = 16; } protoOf(Companion_111).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_DEFAULT_83gz5g_k$ = function () { return this.PERSONGROUP_FLAG_DEFAULT_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_PERSONGROUP_elfg4r_k$ = function () { return this.PERSONGROUP_FLAG_PERSONGROUP_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_PARENT_GROUP_dab533_k$ = function () { return this.PERSONGROUP_FLAG_PARENT_GROUP_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_STUDENTGROUP_p4gzqf_k$ = function () { return this.PERSONGROUP_FLAG_STUDENTGROUP_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_TEACHERGROUP_q485ke_k$ = function () { return this.PERSONGROUP_FLAG_TEACHERGROUP_1; }; protoOf(Companion_111).get_PERSONGROUP_FLAG_GUESTPERSON_ohq648_k$ = function () { return this.PERSONGROUP_FLAG_GUESTPERSON_1; }; protoOf(Companion_111).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_107(); }; var Companion_instance_111; function Companion_getInstance_115() { if (Companion_instance_111 == null) new Companion_111(); return Companion_instance_111; } function $serializer_107() { $serializer_instance_107 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroup', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('groupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMasterCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('groupLocalCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('groupLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('groupLct', true); tmp0_serialDesc.addElement_5pzumi_k$('groupName', true); tmp0_serialDesc.addElement_5pzumi_k$('groupActive', true); tmp0_serialDesc.addElement_5pzumi_k$('personGroupFlag', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_107).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_107).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_107).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = 0; var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonGroup_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_107).serialize_x2fdyc_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.groupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.groupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.groupMasterCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.groupMasterCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.groupLocalCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.groupLocalCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.groupLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.groupLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.groupLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.groupLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.groupName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.groupName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.groupActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.groupActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.personGroupFlag_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.personGroupFlag_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_107).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_x2fdyc_k$(encoder, value instanceof PersonGroup ? value : THROW_CCE()); }; var $serializer_instance_107; function $serializer_getInstance_107() { if ($serializer_instance_107 == null) new $serializer_107(); return $serializer_instance_107; } function PersonGroup_init_$Init$_0(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_107().descriptor_1); } if (0 === (seen1 & 1)) $this.groupUid_1 = new Long(0, 0); else $this.groupUid_1 = groupUid; if (0 === (seen1 & 2)) $this.groupMasterCsn_1 = new Long(0, 0); else $this.groupMasterCsn_1 = groupMasterCsn; if (0 === (seen1 & 4)) $this.groupLocalCsn_1 = new Long(0, 0); else $this.groupLocalCsn_1 = groupLocalCsn; if (0 === (seen1 & 8)) $this.groupLastChangedBy_1 = 0; else $this.groupLastChangedBy_1 = groupLastChangedBy; if (0 === (seen1 & 16)) $this.groupLct_1 = new Long(0, 0); else $this.groupLct_1 = groupLct; if (0 === (seen1 & 32)) $this.groupName_1 = null; else $this.groupName_1 = groupName; if (0 === (seen1 & 64)) $this.groupActive_1 = true; else $this.groupActive_1 = groupActive; if (0 === (seen1 & 128)) $this.personGroupFlag_1 = 0; else $this.personGroupFlag_1 = personGroupFlag; return $this; } function PersonGroup_init_$Create$_0(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker) { return PersonGroup_init_$Init$_0(seen1, groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag, serializationConstructorMarker, objectCreate(protoOf(PersonGroup))); } function PersonGroup() { Companion_getInstance_115(); this.groupUid_1 = new Long(0, 0); this.groupMasterCsn_1 = new Long(0, 0); this.groupLocalCsn_1 = new Long(0, 0); this.groupLastChangedBy_1 = 0; this.groupLct_1 = new Long(0, 0); this.groupName_1 = null; this.groupActive_1 = true; this.personGroupFlag_1 = 0; } protoOf(PersonGroup).set_groupUid_bnt4k0_k$ = function (_set____db54di) { this.groupUid_1 = _set____db54di; }; protoOf(PersonGroup).get_groupUid_nfguzq_k$ = function () { return this.groupUid_1; }; protoOf(PersonGroup).set_groupMasterCsn_a4rsys_k$ = function (_set____db54di) { this.groupMasterCsn_1 = _set____db54di; }; protoOf(PersonGroup).get_groupMasterCsn_nqdk06_k$ = function () { return this.groupMasterCsn_1; }; protoOf(PersonGroup).set_groupLocalCsn_z2sdhz_k$ = function (_set____db54di) { this.groupLocalCsn_1 = _set____db54di; }; protoOf(PersonGroup).get_groupLocalCsn_6v46wn_k$ = function () { return this.groupLocalCsn_1; }; protoOf(PersonGroup).set_groupLastChangedBy_fma81h_k$ = function (_set____db54di) { this.groupLastChangedBy_1 = _set____db54di; }; protoOf(PersonGroup).get_groupLastChangedBy_croccf_k$ = function () { return this.groupLastChangedBy_1; }; protoOf(PersonGroup).set_groupLct_k13wir_k$ = function (_set____db54di) { this.groupLct_1 = _set____db54di; }; protoOf(PersonGroup).get_groupLct_nfh1sp_k$ = function () { return this.groupLct_1; }; protoOf(PersonGroup).set_groupName_pormeu_k$ = function (_set____db54di) { this.groupName_1 = _set____db54di; }; protoOf(PersonGroup).get_groupName_g0irjz_k$ = function () { return this.groupName_1; }; protoOf(PersonGroup).set_groupActive_3rfdbn_k$ = function (_set____db54di) { this.groupActive_1 = _set____db54di; }; protoOf(PersonGroup).get_groupActive_ho5hbw_k$ = function () { return this.groupActive_1; }; protoOf(PersonGroup).set_personGroupFlag_csix73_k$ = function (_set____db54di) { this.personGroupFlag_1 = _set____db54di; }; protoOf(PersonGroup).get_personGroupFlag_l95gi5_k$ = function () { return this.personGroupFlag_1; }; function PersonGroupMember_init_$Init$(personUid, groupUid, $this) { PersonGroupMember.call($this); $this.groupMemberPersonUid_1 = personUid; $this.groupMemberGroupUid_1 = groupUid; return $this; } function PersonGroupMember_init_$Create$(personUid, groupUid) { return PersonGroupMember_init_$Init$(personUid, groupUid, objectCreate(protoOf(PersonGroupMember))); } function Companion_112() { Companion_instance_112 = this; this.TABLE_ID_1 = 44; } protoOf(Companion_112).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_112).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_108(); }; var Companion_instance_112; function Companion_getInstance_116() { if (Companion_instance_112 == null) new Companion_112(); return Companion_instance_112; } function $serializer_108() { $serializer_instance_108 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonGroupMember', this, 8); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberUid', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberActive', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberMasterCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberLocalCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('groupMemberLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_108).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_108).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_108).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = false; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = 0; var tmp11_local7 = new Long(0, 0); var tmp12_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp12_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; } else while (tmp1_flag) { tmp2_index = tmp12_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp12_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp12_input.decodeIntElement_941u6a_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp12_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp12_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonGroupMember_init_$Create$_0(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null); }; protoOf($serializer_108).serialize_vatowm_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.groupMemberUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.groupMemberUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.groupMemberActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 1, value.groupMemberActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.groupMemberPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.groupMemberPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.groupMemberGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.groupMemberGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.groupMemberMasterCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.groupMemberMasterCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.groupMemberLocalCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.groupMemberLocalCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.groupMemberLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 6, value.groupMemberLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.groupMemberLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.groupMemberLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_108).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_vatowm_k$(encoder, value instanceof PersonGroupMember ? value : THROW_CCE()); }; var $serializer_instance_108; function $serializer_getInstance_108() { if ($serializer_instance_108 == null) new $serializer_108(); return $serializer_instance_108; } function PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_108().descriptor_1); } if (0 === (seen1 & 1)) $this.groupMemberUid_1 = new Long(0, 0); else $this.groupMemberUid_1 = groupMemberUid; if (0 === (seen1 & 2)) $this.groupMemberActive_1 = true; else $this.groupMemberActive_1 = groupMemberActive; if (0 === (seen1 & 4)) $this.groupMemberPersonUid_1 = new Long(0, 0); else $this.groupMemberPersonUid_1 = groupMemberPersonUid; if (0 === (seen1 & 8)) $this.groupMemberGroupUid_1 = new Long(0, 0); else $this.groupMemberGroupUid_1 = groupMemberGroupUid; if (0 === (seen1 & 16)) $this.groupMemberMasterCsn_1 = new Long(0, 0); else $this.groupMemberMasterCsn_1 = groupMemberMasterCsn; if (0 === (seen1 & 32)) $this.groupMemberLocalCsn_1 = new Long(0, 0); else $this.groupMemberLocalCsn_1 = groupMemberLocalCsn; if (0 === (seen1 & 64)) $this.groupMemberLastChangedBy_1 = 0; else $this.groupMemberLastChangedBy_1 = groupMemberLastChangedBy; if (0 === (seen1 & 128)) $this.groupMemberLct_1 = new Long(0, 0); else $this.groupMemberLct_1 = groupMemberLct; return $this; } function PersonGroupMember_init_$Create$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker) { return PersonGroupMember_init_$Init$_0(seen1, groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct, serializationConstructorMarker, objectCreate(protoOf(PersonGroupMember))); } function PersonGroupMember() { Companion_getInstance_116(); this.groupMemberUid_1 = new Long(0, 0); this.groupMemberActive_1 = true; this.groupMemberPersonUid_1 = new Long(0, 0); this.groupMemberGroupUid_1 = new Long(0, 0); this.groupMemberMasterCsn_1 = new Long(0, 0); this.groupMemberLocalCsn_1 = new Long(0, 0); this.groupMemberLastChangedBy_1 = 0; this.groupMemberLct_1 = new Long(0, 0); } protoOf(PersonGroupMember).set_groupMemberUid_wo6tfa_k$ = function (_set____db54di) { this.groupMemberUid_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberUid_slf528_k$ = function () { return this.groupMemberUid_1; }; protoOf(PersonGroupMember).set_groupMemberActive_vmw819_k$ = function (_set____db54di) { this.groupMemberActive_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberActive_a0aeyy_k$ = function () { return this.groupMemberActive_1; }; protoOf(PersonGroupMember).set_groupMemberPersonUid_nlli7z_k$ = function (_set____db54di) { this.groupMemberPersonUid_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberPersonUid_lzer5h_k$ = function () { return this.groupMemberPersonUid_1; }; protoOf(PersonGroupMember).set_groupMemberGroupUid_8gf1yp_k$ = function (_set____db54di) { this.groupMemberGroupUid_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberGroupUid_77jxmp_k$ = function () { return this.groupMemberGroupUid_1; }; protoOf(PersonGroupMember).set_groupMemberMasterCsn_rhcqg2_k$ = function (_set____db54di) { this.groupMemberMasterCsn_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberMasterCsn_wlkfhw_k$ = function () { return this.groupMemberMasterCsn_1; }; protoOf(PersonGroupMember).set_groupMemberLocalCsn_dbw6n_k$ = function (_set____db54di) { this.groupMemberLocalCsn_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberLocalCsn_u9r4n7_k$ = function () { return this.groupMemberLocalCsn_1; }; protoOf(PersonGroupMember).set_groupMemberLastChangedBy_mpfyi7_k$ = function (_set____db54di) { this.groupMemberLastChangedBy_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberLastChangedBy_zcjmgr_k$ = function () { return this.groupMemberLastChangedBy_1; }; protoOf(PersonGroupMember).set_groupMemberLct_oaw1gj_k$ = function (_set____db54di) { this.groupMemberLct_1 = _set____db54di; }; protoOf(PersonGroupMember).get_groupMemberLct_slfbv7_k$ = function () { return this.groupMemberLct_1; }; function Companion_113() { Companion_instance_113 = this; this.TABLE_ID_1 = 512; this.STATUS_UNSET_1 = 0; this.STATUS_APPROVED_1 = 1; this.STATUS_REJECTED_1 = 2; this.RELATIONSHIP_MOTHER_1 = 1; this.RELATIONSHIP_FATHER_1 = 2; this.RELATIONSHIP_OTHER_LEGAL_GUARDIAN_1 = 4; this.RELATIONSHIP_OTHER_1 = 8; } protoOf(Companion_113).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_113).get_STATUS_UNSET_rbh3gl_k$ = function () { return this.STATUS_UNSET_1; }; protoOf(Companion_113).get_STATUS_APPROVED_l4p6j_k$ = function () { return this.STATUS_APPROVED_1; }; protoOf(Companion_113).get_STATUS_REJECTED_t2teim_k$ = function () { return this.STATUS_REJECTED_1; }; protoOf(Companion_113).get_RELATIONSHIP_MOTHER_rti5a9_k$ = function () { return this.RELATIONSHIP_MOTHER_1; }; protoOf(Companion_113).get_RELATIONSHIP_FATHER_oaho7u_k$ = function () { return this.RELATIONSHIP_FATHER_1; }; protoOf(Companion_113).get_RELATIONSHIP_OTHER_LEGAL_GUARDIAN_ga2d7g_k$ = function () { return this.RELATIONSHIP_OTHER_LEGAL_GUARDIAN_1; }; protoOf(Companion_113).get_RELATIONSHIP_OTHER_uptpyq_k$ = function () { return this.RELATIONSHIP_OTHER_1; }; protoOf(Companion_113).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_109(); }; var Companion_instance_113; function Companion_getInstance_117() { if (Companion_instance_113 == null) new Companion_113(); return Companion_instance_113; } function $serializer_109() { $serializer_instance_109 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoin', this, 14); tmp0_serialDesc.addElement_5pzumi_k$('ppjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjPcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjLcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjLcb', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjLct', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjParentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjMinorPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjRelationship', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjEmail', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjPhone', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjInactive', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjApprovalTiemstamp', true); tmp0_serialDesc.addElement_5pzumi_k$('ppjApprovalIpAddr', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_109).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_109).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_109).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = null; var tmp14_local10 = false; var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp18_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, StringSerializer_getInstance(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonParentJoin_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, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_109).serialize_tlnagf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.ppjUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.ppjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.ppjPcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.ppjPcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.ppjLcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.ppjLcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.ppjLcb_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.ppjLcb_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.ppjLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.ppjLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.ppjParentPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.ppjParentPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.ppjMinorPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.ppjMinorPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.ppjRelationship_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.ppjRelationship_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.ppjEmail_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.ppjEmail_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.ppjPhone_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, StringSerializer_getInstance(), value.ppjPhone_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.ppjInactive_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 10, value.ppjInactive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.ppjStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.ppjStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.ppjApprovalTiemstamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.ppjApprovalTiemstamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.ppjApprovalIpAddr_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, StringSerializer_getInstance(), value.ppjApprovalIpAddr_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_109).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_tlnagf_k$(encoder, value instanceof PersonParentJoin ? value : THROW_CCE()); }; var $serializer_instance_109; function $serializer_getInstance_109() { if ($serializer_instance_109 == null) new $serializer_109(); return $serializer_instance_109; } function PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_109().descriptor_1); } if (0 === (seen1 & 1)) $this.ppjUid_1 = new Long(0, 0); else $this.ppjUid_1 = ppjUid; if (0 === (seen1 & 2)) $this.ppjPcsn_1 = new Long(0, 0); else $this.ppjPcsn_1 = ppjPcsn; if (0 === (seen1 & 4)) $this.ppjLcsn_1 = new Long(0, 0); else $this.ppjLcsn_1 = ppjLcsn; if (0 === (seen1 & 8)) $this.ppjLcb_1 = 0; else $this.ppjLcb_1 = ppjLcb; if (0 === (seen1 & 16)) $this.ppjLct_1 = new Long(0, 0); else $this.ppjLct_1 = ppjLct; if (0 === (seen1 & 32)) $this.ppjParentPersonUid_1 = new Long(0, 0); else $this.ppjParentPersonUid_1 = ppjParentPersonUid; if (0 === (seen1 & 64)) $this.ppjMinorPersonUid_1 = new Long(0, 0); else $this.ppjMinorPersonUid_1 = ppjMinorPersonUid; if (0 === (seen1 & 128)) $this.ppjRelationship_1 = 0; else $this.ppjRelationship_1 = ppjRelationship; if (0 === (seen1 & 256)) $this.ppjEmail_1 = null; else $this.ppjEmail_1 = ppjEmail; if (0 === (seen1 & 512)) $this.ppjPhone_1 = null; else $this.ppjPhone_1 = ppjPhone; if (0 === (seen1 & 1024)) $this.ppjInactive_1 = false; else $this.ppjInactive_1 = ppjInactive; if (0 === (seen1 & 2048)) $this.ppjStatus_1 = 0; else $this.ppjStatus_1 = ppjStatus; if (0 === (seen1 & 4096)) $this.ppjApprovalTiemstamp_1 = new Long(0, 0); else $this.ppjApprovalTiemstamp_1 = ppjApprovalTiemstamp; if (0 === (seen1 & 8192)) $this.ppjApprovalIpAddr_1 = null; else $this.ppjApprovalIpAddr_1 = ppjApprovalIpAddr; return $this; } function PersonParentJoin_init_$Create$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker) { return PersonParentJoin_init_$Init$(seen1, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoin))); } function PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) { Companion_getInstance_117(); ppjUid = ppjUid === VOID ? new Long(0, 0) : ppjUid; ppjPcsn = ppjPcsn === VOID ? new Long(0, 0) : ppjPcsn; ppjLcsn = ppjLcsn === VOID ? new Long(0, 0) : ppjLcsn; ppjLcb = ppjLcb === VOID ? 0 : ppjLcb; ppjLct = ppjLct === VOID ? new Long(0, 0) : ppjLct; ppjParentPersonUid = ppjParentPersonUid === VOID ? new Long(0, 0) : ppjParentPersonUid; ppjMinorPersonUid = ppjMinorPersonUid === VOID ? new Long(0, 0) : ppjMinorPersonUid; ppjRelationship = ppjRelationship === VOID ? 0 : ppjRelationship; ppjEmail = ppjEmail === VOID ? null : ppjEmail; ppjPhone = ppjPhone === VOID ? null : ppjPhone; ppjInactive = ppjInactive === VOID ? false : ppjInactive; ppjStatus = ppjStatus === VOID ? 0 : ppjStatus; ppjApprovalTiemstamp = ppjApprovalTiemstamp === VOID ? new Long(0, 0) : ppjApprovalTiemstamp; ppjApprovalIpAddr = ppjApprovalIpAddr === VOID ? null : ppjApprovalIpAddr; this.ppjUid_1 = ppjUid; this.ppjPcsn_1 = ppjPcsn; this.ppjLcsn_1 = ppjLcsn; this.ppjLcb_1 = ppjLcb; this.ppjLct_1 = ppjLct; this.ppjParentPersonUid_1 = ppjParentPersonUid; this.ppjMinorPersonUid_1 = ppjMinorPersonUid; this.ppjRelationship_1 = ppjRelationship; this.ppjEmail_1 = ppjEmail; this.ppjPhone_1 = ppjPhone; this.ppjInactive_1 = ppjInactive; this.ppjStatus_1 = ppjStatus; this.ppjApprovalTiemstamp_1 = ppjApprovalTiemstamp; this.ppjApprovalIpAddr_1 = ppjApprovalIpAddr; } protoOf(PersonParentJoin).set_ppjUid_1pa5iz_k$ = function (_set____db54di) { this.ppjUid_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjUid_i688en_k$ = function () { return this.ppjUid_1; }; protoOf(PersonParentJoin).set_ppjPcsn_iwvk8z_k$ = function (_set____db54di) { this.ppjPcsn_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjPcsn_4vwi4x_k$ = function () { return this.ppjPcsn_1; }; protoOf(PersonParentJoin).set_ppjLcsn_i0nccf_k$ = function (_set____db54di) { this.ppjLcsn_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjLcsn_4vz231_k$ = function () { return this.ppjLcsn_1; }; protoOf(PersonParentJoin).set_ppjLcb_e12jee_k$ = function (_set____db54di) { this.ppjLcb_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjLcb_i681l6_k$ = function () { return this.ppjLcb_1; }; protoOf(PersonParentJoin).set_ppjLct_a2kxhq_k$ = function (_set____db54di) { this.ppjLct_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjLct_i681lo_k$ = function () { return this.ppjLct_1; }; protoOf(PersonParentJoin).set_ppjParentPersonUid_h015fq_k$ = function (_set____db54di) { this.ppjParentPersonUid_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjParentPersonUid_lygmb4_k$ = function () { return this.ppjParentPersonUid_1; }; protoOf(PersonParentJoin).set_ppjMinorPersonUid_aovzpn_k$ = function (_set____db54di) { this.ppjMinorPersonUid_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjMinorPersonUid_acwyl5_k$ = function () { return this.ppjMinorPersonUid_1; }; protoOf(PersonParentJoin).set_ppjRelationship_re4gsd_k$ = function (_set____db54di) { this.ppjRelationship_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjRelationship_u5inyx_k$ = function () { return this.ppjRelationship_1; }; protoOf(PersonParentJoin).set_ppjEmail_egsoco_k$ = function (_set____db54di) { this.ppjEmail_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjEmail_9kn8bp_k$ = function () { return this.ppjEmail_1; }; protoOf(PersonParentJoin).set_ppjPhone_iq44ne_k$ = function (_set____db54di) { this.ppjPhone_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjPhone_9eoe8j_k$ = function () { return this.ppjPhone_1; }; protoOf(PersonParentJoin).set_ppjInactive_y9dner_k$ = function (_set____db54di) { this.ppjInactive_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjInactive_qnp304_k$ = function () { return this.ppjInactive_1; }; protoOf(PersonParentJoin).set_ppjStatus_hiah55_k$ = function (_set____db54di) { this.ppjStatus_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjStatus_5x2g19_k$ = function () { return this.ppjStatus_1; }; protoOf(PersonParentJoin).set_ppjApprovalTiemstamp_wbkei0_k$ = function (_set____db54di) { this.ppjApprovalTiemstamp_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjApprovalTiemstamp_rc7j7m_k$ = function () { return this.ppjApprovalTiemstamp_1; }; protoOf(PersonParentJoin).set_ppjApprovalIpAddr_lc766n_k$ = function (_set____db54di) { this.ppjApprovalIpAddr_1 = _set____db54di; }; protoOf(PersonParentJoin).get_ppjApprovalIpAddr_soqjlw_k$ = function () { return this.ppjApprovalIpAddr_1; }; protoOf(PersonParentJoin).component1_7eebsc_k$ = function () { return this.ppjUid_1; }; protoOf(PersonParentJoin).component2_7eebsb_k$ = function () { return this.ppjPcsn_1; }; protoOf(PersonParentJoin).component3_7eebsa_k$ = function () { return this.ppjLcsn_1; }; protoOf(PersonParentJoin).component4_7eebs9_k$ = function () { return this.ppjLcb_1; }; protoOf(PersonParentJoin).component5_7eebs8_k$ = function () { return this.ppjLct_1; }; protoOf(PersonParentJoin).component6_7eebs7_k$ = function () { return this.ppjParentPersonUid_1; }; protoOf(PersonParentJoin).component7_7eebs6_k$ = function () { return this.ppjMinorPersonUid_1; }; protoOf(PersonParentJoin).component8_7eebs5_k$ = function () { return this.ppjRelationship_1; }; protoOf(PersonParentJoin).component9_7eebs4_k$ = function () { return this.ppjEmail_1; }; protoOf(PersonParentJoin).component10_gazzfo_k$ = function () { return this.ppjPhone_1; }; protoOf(PersonParentJoin).component11_gazzfn_k$ = function () { return this.ppjInactive_1; }; protoOf(PersonParentJoin).component12_gazzfm_k$ = function () { return this.ppjStatus_1; }; protoOf(PersonParentJoin).component13_gazzfl_k$ = function () { return this.ppjApprovalTiemstamp_1; }; protoOf(PersonParentJoin).component14_gazzfk_k$ = function () { return this.ppjApprovalIpAddr_1; }; protoOf(PersonParentJoin).copy_tcgwx3_k$ = function (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) { return new PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr); }; protoOf(PersonParentJoin).copy$default_4237s7_k$ = function (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr, $super) { ppjUid = ppjUid === VOID ? this.ppjUid_1 : ppjUid; ppjPcsn = ppjPcsn === VOID ? this.ppjPcsn_1 : ppjPcsn; ppjLcsn = ppjLcsn === VOID ? this.ppjLcsn_1 : ppjLcsn; ppjLcb = ppjLcb === VOID ? this.ppjLcb_1 : ppjLcb; ppjLct = ppjLct === VOID ? this.ppjLct_1 : ppjLct; ppjParentPersonUid = ppjParentPersonUid === VOID ? this.ppjParentPersonUid_1 : ppjParentPersonUid; ppjMinorPersonUid = ppjMinorPersonUid === VOID ? this.ppjMinorPersonUid_1 : ppjMinorPersonUid; ppjRelationship = ppjRelationship === VOID ? this.ppjRelationship_1 : ppjRelationship; ppjEmail = ppjEmail === VOID ? this.ppjEmail_1 : ppjEmail; ppjPhone = ppjPhone === VOID ? this.ppjPhone_1 : ppjPhone; ppjInactive = ppjInactive === VOID ? this.ppjInactive_1 : ppjInactive; ppjStatus = ppjStatus === VOID ? this.ppjStatus_1 : ppjStatus; ppjApprovalTiemstamp = ppjApprovalTiemstamp === VOID ? this.ppjApprovalTiemstamp_1 : ppjApprovalTiemstamp; ppjApprovalIpAddr = ppjApprovalIpAddr === VOID ? this.ppjApprovalIpAddr_1 : ppjApprovalIpAddr; return $super === VOID ? this.copy_tcgwx3_k$(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) : $super.copy_tcgwx3_k$.call(this, ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr); }; protoOf(PersonParentJoin).toString = function () { return 'PersonParentJoin(ppjUid=' + this.ppjUid_1.toString() + ', ppjPcsn=' + this.ppjPcsn_1.toString() + ', ppjLcsn=' + this.ppjLcsn_1.toString() + ', ppjLcb=' + this.ppjLcb_1 + ', ppjLct=' + this.ppjLct_1.toString() + ', ppjParentPersonUid=' + this.ppjParentPersonUid_1.toString() + ', ppjMinorPersonUid=' + this.ppjMinorPersonUid_1.toString() + ', ppjRelationship=' + this.ppjRelationship_1 + ', ppjEmail=' + this.ppjEmail_1 + ', ppjPhone=' + this.ppjPhone_1 + ', ppjInactive=' + this.ppjInactive_1 + ', ppjStatus=' + this.ppjStatus_1 + ', ppjApprovalTiemstamp=' + this.ppjApprovalTiemstamp_1.toString() + ', ppjApprovalIpAddr=' + this.ppjApprovalIpAddr_1 + ')'; }; protoOf(PersonParentJoin).hashCode = function () { var result = this.ppjUid_1.hashCode(); result = imul(result, 31) + this.ppjPcsn_1.hashCode() | 0; result = imul(result, 31) + this.ppjLcsn_1.hashCode() | 0; result = imul(result, 31) + this.ppjLcb_1 | 0; result = imul(result, 31) + this.ppjLct_1.hashCode() | 0; result = imul(result, 31) + this.ppjParentPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.ppjMinorPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.ppjRelationship_1 | 0; result = imul(result, 31) + (this.ppjEmail_1 == null ? 0 : getStringHashCode(this.ppjEmail_1)) | 0; result = imul(result, 31) + (this.ppjPhone_1 == null ? 0 : getStringHashCode(this.ppjPhone_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.ppjInactive_1) | 0; result = imul(result, 31) + this.ppjStatus_1 | 0; result = imul(result, 31) + this.ppjApprovalTiemstamp_1.hashCode() | 0; result = imul(result, 31) + (this.ppjApprovalIpAddr_1 == null ? 0 : getStringHashCode(this.ppjApprovalIpAddr_1)) | 0; return result; }; protoOf(PersonParentJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonParentJoin)) return false; var tmp0_other_with_cast = other instanceof PersonParentJoin ? other : THROW_CCE(); if (!this.ppjUid_1.equals(tmp0_other_with_cast.ppjUid_1)) return false; if (!this.ppjPcsn_1.equals(tmp0_other_with_cast.ppjPcsn_1)) return false; if (!this.ppjLcsn_1.equals(tmp0_other_with_cast.ppjLcsn_1)) return false; if (!(this.ppjLcb_1 === tmp0_other_with_cast.ppjLcb_1)) return false; if (!this.ppjLct_1.equals(tmp0_other_with_cast.ppjLct_1)) return false; if (!this.ppjParentPersonUid_1.equals(tmp0_other_with_cast.ppjParentPersonUid_1)) return false; if (!this.ppjMinorPersonUid_1.equals(tmp0_other_with_cast.ppjMinorPersonUid_1)) return false; if (!(this.ppjRelationship_1 === tmp0_other_with_cast.ppjRelationship_1)) return false; if (!(this.ppjEmail_1 == tmp0_other_with_cast.ppjEmail_1)) return false; if (!(this.ppjPhone_1 == tmp0_other_with_cast.ppjPhone_1)) return false; if (!(this.ppjInactive_1 === tmp0_other_with_cast.ppjInactive_1)) return false; if (!(this.ppjStatus_1 === tmp0_other_with_cast.ppjStatus_1)) return false; if (!this.ppjApprovalTiemstamp_1.equals(tmp0_other_with_cast.ppjApprovalTiemstamp_1)) return false; if (!(this.ppjApprovalIpAddr_1 == tmp0_other_with_cast.ppjApprovalIpAddr_1)) return false; return true; }; function Companion_114() { Companion_instance_114 = this; } protoOf(Companion_114).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_110(); }; var Companion_instance_114; function Companion_getInstance_118() { if (Companion_instance_114 == null) new Companion_114(); return Companion_instance_114; } function $serializer_110() { $serializer_instance_110 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonParentJoinAndMinorPerson', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('personParentJoin', true); tmp0_serialDesc.addElement_5pzumi_k$('minorPerson', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_110).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_110).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_109()), get_nullable($serializer_getInstance_104())]; }; protoOf($serializer_110).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_109(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_109(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonParentJoinAndMinorPerson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_110).serialize_t8brfg_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.personParentJoin_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_109(), value.personParentJoin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.minorPerson_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_104(), value.minorPerson_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_110).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_t8brfg_k$(encoder, value instanceof PersonParentJoinAndMinorPerson ? value : THROW_CCE()); }; var $serializer_instance_110; function $serializer_getInstance_110() { if ($serializer_instance_110 == null) new $serializer_110(); return $serializer_instance_110; } function PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_110().descriptor_1); } if (0 === (seen1 & 1)) $this.personParentJoin_1 = null; else $this.personParentJoin_1 = personParentJoin; if (0 === (seen1 & 2)) $this.minorPerson_1 = null; else $this.minorPerson_1 = minorPerson; return $this; } function PersonParentJoinAndMinorPerson_init_$Create$(seen1, personParentJoin, minorPerson, serializationConstructorMarker) { return PersonParentJoinAndMinorPerson_init_$Init$(seen1, personParentJoin, minorPerson, serializationConstructorMarker, objectCreate(protoOf(PersonParentJoinAndMinorPerson))); } function PersonParentJoinAndMinorPerson(personParentJoin, minorPerson) { Companion_getInstance_118(); personParentJoin = personParentJoin === VOID ? null : personParentJoin; minorPerson = minorPerson === VOID ? null : minorPerson; this.personParentJoin_1 = personParentJoin; this.minorPerson_1 = minorPerson; } protoOf(PersonParentJoinAndMinorPerson).set_personParentJoin_vxoy8v_k$ = function (_set____db54di) { this.personParentJoin_1 = _set____db54di; }; protoOf(PersonParentJoinAndMinorPerson).get_personParentJoin_59u4ni_k$ = function () { return this.personParentJoin_1; }; protoOf(PersonParentJoinAndMinorPerson).set_minorPerson_hw3284_k$ = function (_set____db54di) { this.minorPerson_1 = _set____db54di; }; protoOf(PersonParentJoinAndMinorPerson).get_minorPerson_ourhmn_k$ = function () { return this.minorPerson_1; }; protoOf(PersonParentJoinAndMinorPerson).component1_7eebsc_k$ = function () { return this.personParentJoin_1; }; protoOf(PersonParentJoinAndMinorPerson).component2_7eebsb_k$ = function () { return this.minorPerson_1; }; protoOf(PersonParentJoinAndMinorPerson).copy_2isltr_k$ = function (personParentJoin, minorPerson) { return new PersonParentJoinAndMinorPerson(personParentJoin, minorPerson); }; protoOf(PersonParentJoinAndMinorPerson).copy$default_12m7bi_k$ = function (personParentJoin, minorPerson, $super) { personParentJoin = personParentJoin === VOID ? this.personParentJoin_1 : personParentJoin; minorPerson = minorPerson === VOID ? this.minorPerson_1 : minorPerson; return $super === VOID ? this.copy_2isltr_k$(personParentJoin, minorPerson) : $super.copy_2isltr_k$.call(this, personParentJoin, minorPerson); }; protoOf(PersonParentJoinAndMinorPerson).toString = function () { return 'PersonParentJoinAndMinorPerson(personParentJoin=' + this.personParentJoin_1 + ', minorPerson=' + this.minorPerson_1 + ')'; }; protoOf(PersonParentJoinAndMinorPerson).hashCode = function () { var result = this.personParentJoin_1 == null ? 0 : this.personParentJoin_1.hashCode(); result = imul(result, 31) + (this.minorPerson_1 == null ? 0 : this.minorPerson_1.hashCode()) | 0; return result; }; protoOf(PersonParentJoinAndMinorPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonParentJoinAndMinorPerson)) return false; var tmp0_other_with_cast = other instanceof PersonParentJoinAndMinorPerson ? other : THROW_CCE(); if (!equals(this.personParentJoin_1, tmp0_other_with_cast.personParentJoin_1)) return false; if (!equals(this.minorPerson_1, tmp0_other_with_cast.minorPerson_1)) return false; return true; }; function Companion_115() { Companion_instance_115 = this; this.TABLE_ID_1 = 50; } protoOf(Companion_115).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_115).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_111(); }; var Companion_instance_115; function Companion_getInstance_119() { if (Companion_instance_115 == null) new Companion_115(); return Companion_instance_115; } function $serializer_111() { $serializer_instance_111 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.PersonPicture', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('personPictureUid', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureLct', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureUri', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureThumbnailUri', true); tmp0_serialDesc.addElement_5pzumi_k$('fileSize', true); tmp0_serialDesc.addElement_5pzumi_k$('personPictureActive', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_111).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_111).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_111).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = false; var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return PersonPicture_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_111).serialize_s60ps5_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.personPictureUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.personPictureUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.personPictureLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.personPictureLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.personPictureUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.personPictureUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.personPictureThumbnailUri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.personPictureThumbnailUri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.fileSize_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.fileSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.personPictureActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.personPictureActive_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_111).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_s60ps5_k$(encoder, value instanceof PersonPicture ? value : THROW_CCE()); }; var $serializer_instance_111; function $serializer_getInstance_111() { if ($serializer_instance_111 == null) new $serializer_111(); return $serializer_instance_111; } function PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_111().descriptor_1); } if (0 === (seen1 & 1)) $this.personPictureUid_1 = new Long(0, 0); else $this.personPictureUid_1 = personPictureUid; if (0 === (seen1 & 2)) $this.personPictureLct_1 = new Long(0, 0); else $this.personPictureLct_1 = personPictureLct; if (0 === (seen1 & 4)) $this.personPictureUri_1 = null; else $this.personPictureUri_1 = personPictureUri; if (0 === (seen1 & 8)) $this.personPictureThumbnailUri_1 = null; else $this.personPictureThumbnailUri_1 = personPictureThumbnailUri; if (0 === (seen1 & 16)) $this.fileSize_1 = 0; else $this.fileSize_1 = fileSize; if (0 === (seen1 & 32)) $this.personPictureActive_1 = true; else $this.personPictureActive_1 = personPictureActive; return $this; } function PersonPicture_init_$Create$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker) { return PersonPicture_init_$Init$(seen1, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, serializationConstructorMarker, objectCreate(protoOf(PersonPicture))); } function PersonPicture(personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) { Companion_getInstance_119(); personPictureUid = personPictureUid === VOID ? new Long(0, 0) : personPictureUid; personPictureLct = personPictureLct === VOID ? new Long(0, 0) : personPictureLct; personPictureUri = personPictureUri === VOID ? null : personPictureUri; personPictureThumbnailUri = personPictureThumbnailUri === VOID ? null : personPictureThumbnailUri; fileSize = fileSize === VOID ? 0 : fileSize; personPictureActive = personPictureActive === VOID ? true : personPictureActive; this.personPictureUid_1 = personPictureUid; this.personPictureLct_1 = personPictureLct; this.personPictureUri_1 = personPictureUri; this.personPictureThumbnailUri_1 = personPictureThumbnailUri; this.fileSize_1 = fileSize; this.personPictureActive_1 = personPictureActive; } protoOf(PersonPicture).set_personPictureUid_dypqo6_k$ = function (_set____db54di) { this.personPictureUid_1 = _set____db54di; }; protoOf(PersonPicture).get_personPictureUid_r3scr4_k$ = function () { return this.personPictureUid_1; }; protoOf(PersonPicture).set_personPictureLct_5leypf_k$ = function (_set____db54di) { this.personPictureLct_1 = _set____db54di; }; protoOf(PersonPicture).get_personPictureLct_r3sjk3_k$ = function () { return this.personPictureLct_1; }; protoOf(PersonPicture).set_personPictureUri_20k97t_k$ = function (_set____db54di) { this.personPictureUri_1 = _set____db54di; }; protoOf(PersonPicture).get_personPictureUri_r3scj8_k$ = function () { return this.personPictureUri_1; }; protoOf(PersonPicture).set_personPictureThumbnailUri_yqm2dn_k$ = function (_set____db54di) { this.personPictureThumbnailUri_1 = _set____db54di; }; protoOf(PersonPicture).get_personPictureThumbnailUri_sx3gg_k$ = function () { return this.personPictureThumbnailUri_1; }; protoOf(PersonPicture).set_fileSize_q7ooeq_k$ = function (_set____db54di) { this.fileSize_1 = _set____db54di; }; protoOf(PersonPicture).get_fileSize_r28lt2_k$ = function () { return this.fileSize_1; }; protoOf(PersonPicture).set_personPictureActive_7ld0rn_k$ = function (_set____db54di) { this.personPictureActive_1 = _set____db54di; }; protoOf(PersonPicture).get_personPictureActive_lkcisa_k$ = function () { return this.personPictureActive_1; }; protoOf(PersonPicture).component1_7eebsc_k$ = function () { return this.personPictureUid_1; }; protoOf(PersonPicture).component2_7eebsb_k$ = function () { return this.personPictureLct_1; }; protoOf(PersonPicture).component3_7eebsa_k$ = function () { return this.personPictureUri_1; }; protoOf(PersonPicture).component4_7eebs9_k$ = function () { return this.personPictureThumbnailUri_1; }; protoOf(PersonPicture).component5_7eebs8_k$ = function () { return this.fileSize_1; }; protoOf(PersonPicture).component6_7eebs7_k$ = function () { return this.personPictureActive_1; }; protoOf(PersonPicture).copy_a63q6k_k$ = function (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) { return new PersonPicture(personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive); }; protoOf(PersonPicture).copy$default_l6c2ca_k$ = function (personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive, $super) { personPictureUid = personPictureUid === VOID ? this.personPictureUid_1 : personPictureUid; personPictureLct = personPictureLct === VOID ? this.personPictureLct_1 : personPictureLct; personPictureUri = personPictureUri === VOID ? this.personPictureUri_1 : personPictureUri; personPictureThumbnailUri = personPictureThumbnailUri === VOID ? this.personPictureThumbnailUri_1 : personPictureThumbnailUri; fileSize = fileSize === VOID ? this.fileSize_1 : fileSize; personPictureActive = personPictureActive === VOID ? this.personPictureActive_1 : personPictureActive; return $super === VOID ? this.copy_a63q6k_k$(personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive) : $super.copy_a63q6k_k$.call(this, personPictureUid, personPictureLct, personPictureUri, personPictureThumbnailUri, fileSize, personPictureActive); }; protoOf(PersonPicture).toString = function () { return 'PersonPicture(personPictureUid=' + this.personPictureUid_1.toString() + ', personPictureLct=' + this.personPictureLct_1.toString() + ', personPictureUri=' + this.personPictureUri_1 + ', personPictureThumbnailUri=' + this.personPictureThumbnailUri_1 + ', fileSize=' + this.fileSize_1 + ', personPictureActive=' + this.personPictureActive_1 + ')'; }; protoOf(PersonPicture).hashCode = function () { var result = this.personPictureUid_1.hashCode(); result = imul(result, 31) + this.personPictureLct_1.hashCode() | 0; result = imul(result, 31) + (this.personPictureUri_1 == null ? 0 : getStringHashCode(this.personPictureUri_1)) | 0; result = imul(result, 31) + (this.personPictureThumbnailUri_1 == null ? 0 : getStringHashCode(this.personPictureThumbnailUri_1)) | 0; result = imul(result, 31) + this.fileSize_1 | 0; result = imul(result, 31) + getBooleanHashCode(this.personPictureActive_1) | 0; return result; }; protoOf(PersonPicture).equals = function (other) { if (this === other) return true; if (!(other instanceof PersonPicture)) return false; var tmp0_other_with_cast = other instanceof PersonPicture ? other : THROW_CCE(); if (!this.personPictureUid_1.equals(tmp0_other_with_cast.personPictureUid_1)) return false; if (!this.personPictureLct_1.equals(tmp0_other_with_cast.personPictureLct_1)) return false; if (!(this.personPictureUri_1 == tmp0_other_with_cast.personPictureUri_1)) return false; if (!(this.personPictureThumbnailUri_1 == tmp0_other_with_cast.personPictureThumbnailUri_1)) return false; if (!(this.fileSize_1 === tmp0_other_with_cast.fileSize_1)) return false; if (!(this.personPictureActive_1 === tmp0_other_with_cast.personPictureActive_1)) return false; return true; }; function PersonUidAndPasswordHash() { this.passwordHash_1 = null; this.personUid_1 = new Long(0, 0); this.firstNames_1 = null; this.lastName_1 = null; } protoOf(PersonUidAndPasswordHash).set_passwordHash_weksrz_k$ = function (_set____db54di) { this.passwordHash_1 = _set____db54di; }; protoOf(PersonUidAndPasswordHash).get_passwordHash_dwynpu_k$ = function () { return this.passwordHash_1; }; protoOf(PersonUidAndPasswordHash).set_personUid_j3idds_k$ = function (_set____db54di) { this.personUid_1 = _set____db54di; }; protoOf(PersonUidAndPasswordHash).get_personUid_mmhd76_k$ = function () { return this.personUid_1; }; protoOf(PersonUidAndPasswordHash).set_firstNames_audc9u_k$ = function (_set____db54di) { this.firstNames_1 = _set____db54di; }; protoOf(PersonUidAndPasswordHash).get_firstNames_n3o3y7_k$ = function () { return this.firstNames_1; }; protoOf(PersonUidAndPasswordHash).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(PersonUidAndPasswordHash).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; function Companion_116() { Companion_instance_116 = this; this.TABLE_ID_1 = 101; } protoOf(Companion_116).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_116).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_112(); }; var Companion_instance_116; function Companion_getInstance_120() { if (Companion_instance_116 == null) new Companion_116(); return Companion_instance_116; } function $serializer_112() { $serializer_instance_112 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Report', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('reportUid', true); tmp0_serialDesc.addElement_5pzumi_k$('reportTitle', true); tmp0_serialDesc.addElement_5pzumi_k$('reportOptions', true); tmp0_serialDesc.addElement_5pzumi_k$('reportIsTemplate', true); tmp0_serialDesc.addElement_5pzumi_k$('reportLastModTime', true); tmp0_serialDesc.addElement_5pzumi_k$('reportOwnerPersonUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_112).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_112).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_112).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = false; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return Report_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_112).serialize_mggzyc_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.reportUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.reportUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.reportTitle_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.reportTitle_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.reportOptions_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.reportOptions_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.reportIsTemplate_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 3, value.reportIsTemplate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.reportLastModTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.reportLastModTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.reportOwnerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.reportOwnerPersonUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_112).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_mggzyc_k$(encoder, value instanceof Report ? value : THROW_CCE()); }; var $serializer_instance_112; function $serializer_getInstance_112() { if ($serializer_instance_112 == null) new $serializer_112(); return $serializer_instance_112; } function Report_init_$Init$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_112().descriptor_1); } if (0 === (seen1 & 1)) $this.reportUid_1 = new Long(0, 0); else $this.reportUid_1 = reportUid; if (0 === (seen1 & 2)) $this.reportTitle_1 = null; else $this.reportTitle_1 = reportTitle; if (0 === (seen1 & 4)) $this.reportOptions_1 = null; else $this.reportOptions_1 = reportOptions; if (0 === (seen1 & 8)) $this.reportIsTemplate_1 = false; else $this.reportIsTemplate_1 = reportIsTemplate; if (0 === (seen1 & 16)) $this.reportLastModTime_1 = new Long(0, 0); else $this.reportLastModTime_1 = reportLastModTime; if (0 === (seen1 & 32)) $this.reportOwnerPersonUid_1 = new Long(0, 0); else $this.reportOwnerPersonUid_1 = reportOwnerPersonUid; return $this; } function Report_init_$Create$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker) { return Report_init_$Init$(seen1, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, serializationConstructorMarker, objectCreate(protoOf(Report))); } function Report(reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) { Companion_getInstance_120(); reportUid = reportUid === VOID ? new Long(0, 0) : reportUid; reportTitle = reportTitle === VOID ? null : reportTitle; reportOptions = reportOptions === VOID ? null : reportOptions; reportIsTemplate = reportIsTemplate === VOID ? false : reportIsTemplate; reportLastModTime = reportLastModTime === VOID ? new Long(0, 0) : reportLastModTime; reportOwnerPersonUid = reportOwnerPersonUid === VOID ? new Long(0, 0) : reportOwnerPersonUid; this.reportUid_1 = reportUid; this.reportTitle_1 = reportTitle; this.reportOptions_1 = reportOptions; this.reportIsTemplate_1 = reportIsTemplate; this.reportLastModTime_1 = reportLastModTime; this.reportOwnerPersonUid_1 = reportOwnerPersonUid; } protoOf(Report).set_reportUid_v40hcx_k$ = function (_set____db54di) { this.reportUid_1 = _set____db54di; }; protoOf(Report).get_reportUid_2o5j9v_k$ = function () { return this.reportUid_1; }; protoOf(Report).set_reportTitle_gldsuo_k$ = function (_set____db54di) { this.reportTitle_1 = _set____db54di; }; protoOf(Report).get_reportTitle_9n6523_k$ = function () { return this.reportTitle_1; }; protoOf(Report).set_reportOptions_umen1m_k$ = function (_set____db54di) { this.reportOptions_1 = _set____db54di; }; protoOf(Report).get_reportOptions_ygo8m9_k$ = function () { return this.reportOptions_1; }; protoOf(Report).set_reportIsTemplate_5va6lc_k$ = function (_set____db54di) { this.reportIsTemplate_1 = _set____db54di; }; protoOf(Report).get_reportIsTemplate_o8gstd_k$ = function () { return this.reportIsTemplate_1; }; protoOf(Report).set_reportLastModTime_r9pbl6_k$ = function (_set____db54di) { this.reportLastModTime_1 = _set____db54di; }; protoOf(Report).get_reportLastModTime_uv9hqc_k$ = function () { return this.reportLastModTime_1; }; protoOf(Report).set_reportOwnerPersonUid_p5wycl_k$ = function (_set____db54di) { this.reportOwnerPersonUid_1 = _set____db54di; }; protoOf(Report).get_reportOwnerPersonUid_ejakgr_k$ = function () { return this.reportOwnerPersonUid_1; }; protoOf(Report).component1_7eebsc_k$ = function () { return this.reportUid_1; }; protoOf(Report).component2_7eebsb_k$ = function () { return this.reportTitle_1; }; protoOf(Report).component3_7eebsa_k$ = function () { return this.reportOptions_1; }; protoOf(Report).component4_7eebs9_k$ = function () { return this.reportIsTemplate_1; }; protoOf(Report).component5_7eebs8_k$ = function () { return this.reportLastModTime_1; }; protoOf(Report).component6_7eebs7_k$ = function () { return this.reportOwnerPersonUid_1; }; protoOf(Report).copy_155woq_k$ = function (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) { return new Report(reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid); }; protoOf(Report).copy$default_drnjb3_k$ = function (reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid, $super) { reportUid = reportUid === VOID ? this.reportUid_1 : reportUid; reportTitle = reportTitle === VOID ? this.reportTitle_1 : reportTitle; reportOptions = reportOptions === VOID ? this.reportOptions_1 : reportOptions; reportIsTemplate = reportIsTemplate === VOID ? this.reportIsTemplate_1 : reportIsTemplate; reportLastModTime = reportLastModTime === VOID ? this.reportLastModTime_1 : reportLastModTime; reportOwnerPersonUid = reportOwnerPersonUid === VOID ? this.reportOwnerPersonUid_1 : reportOwnerPersonUid; return $super === VOID ? this.copy_155woq_k$(reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid) : $super.copy_155woq_k$.call(this, reportUid, reportTitle, reportOptions, reportIsTemplate, reportLastModTime, reportOwnerPersonUid); }; protoOf(Report).toString = function () { return 'Report(reportUid=' + this.reportUid_1.toString() + ', reportTitle=' + this.reportTitle_1 + ', reportOptions=' + this.reportOptions_1 + ', reportIsTemplate=' + this.reportIsTemplate_1 + ', reportLastModTime=' + this.reportLastModTime_1.toString() + ', reportOwnerPersonUid=' + this.reportOwnerPersonUid_1.toString() + ')'; }; protoOf(Report).hashCode = function () { var result = this.reportUid_1.hashCode(); result = imul(result, 31) + (this.reportTitle_1 == null ? 0 : getStringHashCode(this.reportTitle_1)) | 0; result = imul(result, 31) + (this.reportOptions_1 == null ? 0 : getStringHashCode(this.reportOptions_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.reportIsTemplate_1) | 0; result = imul(result, 31) + this.reportLastModTime_1.hashCode() | 0; result = imul(result, 31) + this.reportOwnerPersonUid_1.hashCode() | 0; return result; }; protoOf(Report).equals = function (other) { if (this === other) return true; if (!(other instanceof Report)) return false; var tmp0_other_with_cast = other instanceof Report ? other : THROW_CCE(); if (!this.reportUid_1.equals(tmp0_other_with_cast.reportUid_1)) return false; if (!(this.reportTitle_1 == tmp0_other_with_cast.reportTitle_1)) return false; if (!(this.reportOptions_1 == tmp0_other_with_cast.reportOptions_1)) return false; if (!(this.reportIsTemplate_1 === tmp0_other_with_cast.reportIsTemplate_1)) return false; if (!this.reportLastModTime_1.equals(tmp0_other_with_cast.reportLastModTime_1)) return false; if (!this.reportOwnerPersonUid_1.equals(tmp0_other_with_cast.reportOwnerPersonUid_1)) return false; return true; }; function Companion_117() { Companion_instance_117 = this; } protoOf(Companion_117).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_113(); }; var Companion_instance_117; function Companion_getInstance_121() { if (Companion_instance_117 == null) new Companion_117(); return Companion_instance_117; } function $serializer_113() { $serializer_instance_113 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ReportQueryResult', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('rqrUid', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrReportUid', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrLastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrLastValidated', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrReportSeriesUid', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrXAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrYAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrSubgroup', true); tmp0_serialDesc.addElement_5pzumi_k$('rqrTimeZone', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_113).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_113).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), DoubleSerializer_getInstance(), StringSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_113).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = 0.0; var tmp11_local7 = null; var tmp12_local8 = null; var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeDoubleElement_isei84_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeDoubleElement_isei84_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return ReportQueryResult_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_113).serialize_776pp_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.rqrUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.rqrUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.rqrReportUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.rqrReportUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.rqrLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.rqrLastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.rqrLastValidated_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.rqrLastValidated_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.rqrReportSeriesUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.rqrReportSeriesUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.rqrXAxis_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 5, value.rqrXAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !equals(value.rqrYAxis_1, 0.0)) { tmp1_output.encodeDoubleElement_a6rqhe_k$(tmp0_desc, 6, value.rqrYAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.rqrSubgroup_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.rqrSubgroup_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.rqrTimeZone_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.rqrTimeZone_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_113).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_776pp_k$(encoder, value instanceof ReportQueryResult ? value : THROW_CCE()); }; var $serializer_instance_113; function $serializer_getInstance_113() { if ($serializer_instance_113 == null) new $serializer_113(); return $serializer_instance_113; } function ReportQueryResult_init_$Init$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_113().descriptor_1); } if (0 === (seen1 & 1)) $this.rqrUid_1 = new Long(0, 0); else $this.rqrUid_1 = rqrUid; if (0 === (seen1 & 2)) $this.rqrReportUid_1 = new Long(0, 0); else $this.rqrReportUid_1 = rqrReportUid; if (0 === (seen1 & 4)) $this.rqrLastModified_1 = new Long(0, 0); else $this.rqrLastModified_1 = rqrLastModified; if (0 === (seen1 & 8)) $this.rqrLastValidated_1 = new Long(0, 0); else $this.rqrLastValidated_1 = rqrLastValidated; if (0 === (seen1 & 16)) $this.rqrReportSeriesUid_1 = 0; else $this.rqrReportSeriesUid_1 = rqrReportSeriesUid; if (0 === (seen1 & 32)) $this.rqrXAxis_1 = ''; else $this.rqrXAxis_1 = rqrXAxis; if (0 === (seen1 & 64)) $this.rqrYAxis_1 = 0.0; else $this.rqrYAxis_1 = rqrYAxis; if (0 === (seen1 & 128)) $this.rqrSubgroup_1 = ''; else $this.rqrSubgroup_1 = rqrSubgroup; if (0 === (seen1 & 256)) $this.rqrTimeZone_1 = ''; else $this.rqrTimeZone_1 = rqrTimeZone; return $this; } function ReportQueryResult_init_$Create$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker) { return ReportQueryResult_init_$Init$(seen1, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, serializationConstructorMarker, objectCreate(protoOf(ReportQueryResult))); } function ReportQueryResult(rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) { Companion_getInstance_121(); rqrUid = rqrUid === VOID ? new Long(0, 0) : rqrUid; rqrReportUid = rqrReportUid === VOID ? new Long(0, 0) : rqrReportUid; rqrLastModified = rqrLastModified === VOID ? new Long(0, 0) : rqrLastModified; rqrLastValidated = rqrLastValidated === VOID ? new Long(0, 0) : rqrLastValidated; rqrReportSeriesUid = rqrReportSeriesUid === VOID ? 0 : rqrReportSeriesUid; rqrXAxis = rqrXAxis === VOID ? '' : rqrXAxis; rqrYAxis = rqrYAxis === VOID ? 0.0 : rqrYAxis; rqrSubgroup = rqrSubgroup === VOID ? '' : rqrSubgroup; rqrTimeZone = rqrTimeZone === VOID ? '' : rqrTimeZone; this.rqrUid_1 = rqrUid; this.rqrReportUid_1 = rqrReportUid; this.rqrLastModified_1 = rqrLastModified; this.rqrLastValidated_1 = rqrLastValidated; this.rqrReportSeriesUid_1 = rqrReportSeriesUid; this.rqrXAxis_1 = rqrXAxis; this.rqrYAxis_1 = rqrYAxis; this.rqrSubgroup_1 = rqrSubgroup; this.rqrTimeZone_1 = rqrTimeZone; } protoOf(ReportQueryResult).set_rqrUid_eejgro_k$ = function (_set____db54di) { this.rqrUid_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrUid_j50dom_k$ = function () { return this.rqrUid_1; }; protoOf(ReportQueryResult).set_rqrReportUid_fk1gug_k$ = function (_set____db54di) { this.rqrReportUid_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrReportUid_r2444y_k$ = function () { return this.rqrReportUid_1; }; protoOf(ReportQueryResult).set_rqrLastModified_9x880n_k$ = function (_set____db54di) { this.rqrLastModified_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrLastModified_1gpnzr_k$ = function () { return this.rqrLastModified_1; }; protoOf(ReportQueryResult).set_rqrLastValidated_aizkis_k$ = function (_set____db54di) { this.rqrLastValidated_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrLastValidated_wb060i_k$ = function () { return this.rqrLastValidated_1; }; protoOf(ReportQueryResult).set_rqrReportSeriesUid_oqnc5j_k$ = function (_set____db54di) { this.rqrReportSeriesUid_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrReportSeriesUid_920ih1_k$ = function () { return this.rqrReportSeriesUid_1; }; protoOf(ReportQueryResult).set_rqrXAxis_7zf3a1_k$ = function (_set____db54di) { this.rqrXAxis_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrXAxis_482lw1_k$ = function () { return this.rqrXAxis_1; }; protoOf(ReportQueryResult).set_rqrYAxis_g128wi_k$ = function (_set____db54di) { this.rqrYAxis_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrYAxis_47itao_k$ = function () { return this.rqrYAxis_1; }; protoOf(ReportQueryResult).set_rqrSubgroup_99uet1_k$ = function (_set____db54di) { this.rqrSubgroup_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrSubgroup_806prr_k$ = function () { return this.rqrSubgroup_1; }; protoOf(ReportQueryResult).set_rqrTimeZone_302uzf_k$ = function (_set____db54di) { this.rqrTimeZone_1 = _set____db54di; }; protoOf(ReportQueryResult).get_rqrTimeZone_834m59_k$ = function () { return this.rqrTimeZone_1; }; protoOf(ReportQueryResult).component1_7eebsc_k$ = function () { return this.rqrUid_1; }; protoOf(ReportQueryResult).component2_7eebsb_k$ = function () { return this.rqrReportUid_1; }; protoOf(ReportQueryResult).component3_7eebsa_k$ = function () { return this.rqrLastModified_1; }; protoOf(ReportQueryResult).component4_7eebs9_k$ = function () { return this.rqrLastValidated_1; }; protoOf(ReportQueryResult).component5_7eebs8_k$ = function () { return this.rqrReportSeriesUid_1; }; protoOf(ReportQueryResult).component6_7eebs7_k$ = function () { return this.rqrXAxis_1; }; protoOf(ReportQueryResult).component7_7eebs6_k$ = function () { return this.rqrYAxis_1; }; protoOf(ReportQueryResult).component8_7eebs5_k$ = function () { return this.rqrSubgroup_1; }; protoOf(ReportQueryResult).component9_7eebs4_k$ = function () { return this.rqrTimeZone_1; }; protoOf(ReportQueryResult).copy_cikxdd_k$ = function (rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) { return new ReportQueryResult(rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone); }; protoOf(ReportQueryResult).copy$default_igzjji_k$ = function (rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone, $super) { rqrUid = rqrUid === VOID ? this.rqrUid_1 : rqrUid; rqrReportUid = rqrReportUid === VOID ? this.rqrReportUid_1 : rqrReportUid; rqrLastModified = rqrLastModified === VOID ? this.rqrLastModified_1 : rqrLastModified; rqrLastValidated = rqrLastValidated === VOID ? this.rqrLastValidated_1 : rqrLastValidated; rqrReportSeriesUid = rqrReportSeriesUid === VOID ? this.rqrReportSeriesUid_1 : rqrReportSeriesUid; rqrXAxis = rqrXAxis === VOID ? this.rqrXAxis_1 : rqrXAxis; rqrYAxis = rqrYAxis === VOID ? this.rqrYAxis_1 : rqrYAxis; rqrSubgroup = rqrSubgroup === VOID ? this.rqrSubgroup_1 : rqrSubgroup; rqrTimeZone = rqrTimeZone === VOID ? this.rqrTimeZone_1 : rqrTimeZone; return $super === VOID ? this.copy_cikxdd_k$(rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone) : $super.copy_cikxdd_k$.call(this, rqrUid, rqrReportUid, rqrLastModified, rqrLastValidated, rqrReportSeriesUid, rqrXAxis, rqrYAxis, rqrSubgroup, rqrTimeZone); }; protoOf(ReportQueryResult).toString = function () { return 'ReportQueryResult(rqrUid=' + this.rqrUid_1.toString() + ', rqrReportUid=' + this.rqrReportUid_1.toString() + ', rqrLastModified=' + this.rqrLastModified_1.toString() + ', rqrLastValidated=' + this.rqrLastValidated_1.toString() + ', rqrReportSeriesUid=' + this.rqrReportSeriesUid_1 + ', rqrXAxis=' + this.rqrXAxis_1 + ', rqrYAxis=' + this.rqrYAxis_1 + ', rqrSubgroup=' + this.rqrSubgroup_1 + ', rqrTimeZone=' + this.rqrTimeZone_1 + ')'; }; protoOf(ReportQueryResult).hashCode = function () { var result = this.rqrUid_1.hashCode(); result = imul(result, 31) + this.rqrReportUid_1.hashCode() | 0; result = imul(result, 31) + this.rqrLastModified_1.hashCode() | 0; result = imul(result, 31) + this.rqrLastValidated_1.hashCode() | 0; result = imul(result, 31) + this.rqrReportSeriesUid_1 | 0; result = imul(result, 31) + getStringHashCode(this.rqrXAxis_1) | 0; result = imul(result, 31) + getNumberHashCode(this.rqrYAxis_1) | 0; result = imul(result, 31) + getStringHashCode(this.rqrSubgroup_1) | 0; result = imul(result, 31) + getStringHashCode(this.rqrTimeZone_1) | 0; return result; }; protoOf(ReportQueryResult).equals = function (other) { if (this === other) return true; if (!(other instanceof ReportQueryResult)) return false; var tmp0_other_with_cast = other instanceof ReportQueryResult ? other : THROW_CCE(); if (!this.rqrUid_1.equals(tmp0_other_with_cast.rqrUid_1)) return false; if (!this.rqrReportUid_1.equals(tmp0_other_with_cast.rqrReportUid_1)) return false; if (!this.rqrLastModified_1.equals(tmp0_other_with_cast.rqrLastModified_1)) return false; if (!this.rqrLastValidated_1.equals(tmp0_other_with_cast.rqrLastValidated_1)) return false; if (!(this.rqrReportSeriesUid_1 === tmp0_other_with_cast.rqrReportSeriesUid_1)) return false; if (!(this.rqrXAxis_1 === tmp0_other_with_cast.rqrXAxis_1)) return false; if (!equals(this.rqrYAxis_1, tmp0_other_with_cast.rqrYAxis_1)) return false; if (!(this.rqrSubgroup_1 === tmp0_other_with_cast.rqrSubgroup_1)) return false; if (!(this.rqrTimeZone_1 === tmp0_other_with_cast.rqrTimeZone_1)) return false; return true; }; function Companion_118() { Companion_instance_118 = this; this.TABLE_ID_1 = 21; this.SCHEDULE_FREQUENCY_DAILY_1 = 1; this.SCHEDULE_FREQUENCY_WEEKLY_1 = 2; this.SCHEDULE_FREQUENCY_ONCE_1 = 3; this.SCHEDULE_FREQUENCY_MONTHLY_1 = 4; this.SCHEDULE_FREQUENCY_YEARLY_1 = 5; this.DAY_MONDAY_1 = 1; this.DAY_TUESDAY_1 = 2; this.DAY_WEDNESDAY_1 = 3; this.DAY_THURSDAY_1 = 4; this.DAY_FRIDAY_1 = 5; this.DAY_SATURDAY_1 = 6; this.DAY_SUNDAY_1 = 7; this.MONTH_JANUARY_1 = 1; this.MONTH_FEBUARY_1 = 2; this.MONTH_MARCH_1 = 3; this.MONTH_APRIL_1 = 4; this.MONTH_MAY_1 = 5; this.MONTH_JUNE_1 = 6; this.MONTH_JULY_1 = 7; this.MONTH_AUGUST_1 = 8; this.MONTH_SEPTEMBER_1 = 9; this.MONTH_OCTOBER_1 = 10; this.MONTH_NOVEMBER_1 = 11; this.MONTH_DECEMBER_1 = 12; } protoOf(Companion_118).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_118).get_SCHEDULE_FREQUENCY_DAILY_m0a8x5_k$ = function () { return this.SCHEDULE_FREQUENCY_DAILY_1; }; protoOf(Companion_118).get_SCHEDULE_FREQUENCY_WEEKLY_xwtrtp_k$ = function () { return this.SCHEDULE_FREQUENCY_WEEKLY_1; }; protoOf(Companion_118).get_SCHEDULE_FREQUENCY_ONCE_2zuc2l_k$ = function () { return this.SCHEDULE_FREQUENCY_ONCE_1; }; protoOf(Companion_118).get_SCHEDULE_FREQUENCY_MONTHLY_ecv5qj_k$ = function () { return this.SCHEDULE_FREQUENCY_MONTHLY_1; }; protoOf(Companion_118).get_SCHEDULE_FREQUENCY_YEARLY_wysxsk_k$ = function () { return this.SCHEDULE_FREQUENCY_YEARLY_1; }; protoOf(Companion_118).get_DAY_MONDAY_xmsl6s_k$ = function () { return this.DAY_MONDAY_1; }; protoOf(Companion_118).get_DAY_TUESDAY_drsc1r_k$ = function () { return this.DAY_TUESDAY_1; }; protoOf(Companion_118).get_DAY_WEDNESDAY_mmm4mu_k$ = function () { return this.DAY_WEDNESDAY_1; }; protoOf(Companion_118).get_DAY_THURSDAY_t3w7ly_k$ = function () { return this.DAY_THURSDAY_1; }; protoOf(Companion_118).get_DAY_FRIDAY_y4kavf_k$ = function () { return this.DAY_FRIDAY_1; }; protoOf(Companion_118).get_DAY_SATURDAY_vut2mz_k$ = function () { return this.DAY_SATURDAY_1; }; protoOf(Companion_118).get_DAY_SUNDAY_up839g_k$ = function () { return this.DAY_SUNDAY_1; }; protoOf(Companion_118).get_MONTH_JANUARY_rnbb26_k$ = function () { return this.MONTH_JANUARY_1; }; protoOf(Companion_118).get_MONTH_FEBUARY_dm7fiq_k$ = function () { return this.MONTH_FEBUARY_1; }; protoOf(Companion_118).get_MONTH_MARCH_ayfdi3_k$ = function () { return this.MONTH_MARCH_1; }; protoOf(Companion_118).get_MONTH_APRIL_as3fby_k$ = function () { return this.MONTH_APRIL_1; }; protoOf(Companion_118).get_MONTH_MAY_x4hkcd_k$ = function () { return this.MONTH_MAY_1; }; protoOf(Companion_118).get_MONTH_JUNE_wfi8ne_k$ = function () { return this.MONTH_JUNE_1; }; protoOf(Companion_118).get_MONTH_JULY_wfi8m8_k$ = function () { return this.MONTH_JULY_1; }; protoOf(Companion_118).get_MONTH_AUGUST_kw1vcl_k$ = function () { return this.MONTH_AUGUST_1; }; protoOf(Companion_118).get_MONTH_SEPTEMBER_dgul61_k$ = function () { return this.MONTH_SEPTEMBER_1; }; protoOf(Companion_118).get_MONTH_OCTOBER_o95r2g_k$ = function () { return this.MONTH_OCTOBER_1; }; protoOf(Companion_118).get_MONTH_NOVEMBER_zhzdiy_k$ = function () { return this.MONTH_NOVEMBER_1; }; protoOf(Companion_118).get_MONTH_DECEMBER_holb1p_k$ = function () { return this.MONTH_DECEMBER_1; }; protoOf(Companion_118).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_114(); }; var Companion_instance_118; function Companion_getInstance_122() { if (Companion_instance_118 == null) new Companion_118(); return Companion_instance_118; } function $serializer_114() { $serializer_instance_114 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Schedule', this, 13); tmp0_serialDesc.addElement_5pzumi_k$('scheduleUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sceduleStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleDay', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleMonth', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleFrequency', true); tmp0_serialDesc.addElement_5pzumi_k$('umCalendarUid', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleMasterChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleLocalChangeSeqNum', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleLastChangedTime', true); tmp0_serialDesc.addElement_5pzumi_k$('scheduleActive', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_114).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_114).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_114).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = 0; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = 0; var tmp15_local11 = new Long(0, 0); var tmp16_local12 = false; var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp17_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; } else while (tmp1_flag) { tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp17_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); return Schedule_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, tmp16_local12, null); }; protoOf($serializer_114).serialize_a4e935_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.scheduleUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.scheduleUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.sceduleStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.sceduleStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.scheduleEndTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.scheduleEndTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.scheduleDay_1 === Companion_getInstance_122().DAY_MONDAY_1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.scheduleDay_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.scheduleMonth_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.scheduleMonth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.scheduleFrequency_1 === Companion_getInstance_122().SCHEDULE_FREQUENCY_WEEKLY_1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.scheduleFrequency_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.umCalendarUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.umCalendarUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.scheduleClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.scheduleClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.scheduleMasterChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.scheduleMasterChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.scheduleLocalChangeSeqNum_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.scheduleLocalChangeSeqNum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.scheduleLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.scheduleLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.scheduleLastChangedTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.scheduleLastChangedTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.scheduleActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.scheduleActive_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_114).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_a4e935_k$(encoder, value instanceof Schedule ? value : THROW_CCE()); }; var $serializer_instance_114; function $serializer_getInstance_114() { if ($serializer_instance_114 == null) new $serializer_114(); return $serializer_instance_114; } function Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_114().descriptor_1); } if (0 === (seen1 & 1)) $this.scheduleUid_1 = new Long(0, 0); else $this.scheduleUid_1 = scheduleUid; if (0 === (seen1 & 2)) $this.sceduleStartTime_1 = new Long(0, 0); else $this.sceduleStartTime_1 = sceduleStartTime; if (0 === (seen1 & 4)) $this.scheduleEndTime_1 = new Long(0, 0); else $this.scheduleEndTime_1 = scheduleEndTime; if (0 === (seen1 & 8)) $this.scheduleDay_1 = Companion_getInstance_122().DAY_MONDAY_1; else $this.scheduleDay_1 = scheduleDay; if (0 === (seen1 & 16)) $this.scheduleMonth_1 = 0; else $this.scheduleMonth_1 = scheduleMonth; if (0 === (seen1 & 32)) $this.scheduleFrequency_1 = Companion_getInstance_122().SCHEDULE_FREQUENCY_WEEKLY_1; else $this.scheduleFrequency_1 = scheduleFrequency; if (0 === (seen1 & 64)) $this.umCalendarUid_1 = new Long(0, 0); else $this.umCalendarUid_1 = umCalendarUid; if (0 === (seen1 & 128)) $this.scheduleClazzUid_1 = new Long(0, 0); else $this.scheduleClazzUid_1 = scheduleClazzUid; if (0 === (seen1 & 256)) $this.scheduleMasterChangeSeqNum_1 = new Long(0, 0); else $this.scheduleMasterChangeSeqNum_1 = scheduleMasterChangeSeqNum; if (0 === (seen1 & 512)) $this.scheduleLocalChangeSeqNum_1 = new Long(0, 0); else $this.scheduleLocalChangeSeqNum_1 = scheduleLocalChangeSeqNum; if (0 === (seen1 & 1024)) $this.scheduleLastChangedBy_1 = 0; else $this.scheduleLastChangedBy_1 = scheduleLastChangedBy; if (0 === (seen1 & 2048)) $this.scheduleLastChangedTime_1 = new Long(0, 0); else $this.scheduleLastChangedTime_1 = scheduleLastChangedTime; if (0 === (seen1 & 4096)) $this.scheduleActive_1 = true; else $this.scheduleActive_1 = scheduleActive; return $this; } function Schedule_init_$Create$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker) { return Schedule_init_$Init$(seen1, scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive, serializationConstructorMarker, objectCreate(protoOf(Schedule))); } function Schedule() { Companion_getInstance_122(); this.scheduleUid_1 = new Long(0, 0); this.sceduleStartTime_1 = new Long(0, 0); this.scheduleEndTime_1 = new Long(0, 0); this.scheduleDay_1 = Companion_getInstance_122().DAY_MONDAY_1; this.scheduleMonth_1 = 0; this.scheduleFrequency_1 = Companion_getInstance_122().SCHEDULE_FREQUENCY_WEEKLY_1; this.umCalendarUid_1 = new Long(0, 0); this.scheduleClazzUid_1 = new Long(0, 0); this.scheduleMasterChangeSeqNum_1 = new Long(0, 0); this.scheduleLocalChangeSeqNum_1 = new Long(0, 0); this.scheduleLastChangedBy_1 = 0; this.scheduleLastChangedTime_1 = new Long(0, 0); this.scheduleActive_1 = true; } protoOf(Schedule).set_scheduleUid_35xeta_k$ = function (_set____db54di) { this.scheduleUid_1 = _set____db54di; }; protoOf(Schedule).get_scheduleUid_gt0c7k_k$ = function () { return this.scheduleUid_1; }; protoOf(Schedule).set_sceduleStartTime_81jqoh_k$ = function (_set____db54di) { this.sceduleStartTime_1 = _set____db54di; }; protoOf(Schedule).get_sceduleStartTime_r41do9_k$ = function () { return this.sceduleStartTime_1; }; protoOf(Schedule).set_scheduleEndTime_fh9x3e_k$ = function (_set____db54di) { this.scheduleEndTime_1 = _set____db54di; }; protoOf(Schedule).get_scheduleEndTime_vdt9o8_k$ = function () { return this.scheduleEndTime_1; }; protoOf(Schedule).set_scheduleDay_nsvexs_k$ = function (_set____db54di) { this.scheduleDay_1 = _set____db54di; }; protoOf(Schedule).get_scheduleDay_gszzfg_k$ = function () { return this.scheduleDay_1; }; protoOf(Schedule).set_scheduleMonth_p5ta0s_k$ = function (_set____db54di) { this.scheduleMonth_1 = _set____db54di; }; protoOf(Schedule).get_scheduleMonth_q978qo_k$ = function () { return this.scheduleMonth_1; }; protoOf(Schedule).set_scheduleFrequency_w5icgw_k$ = function (_set____db54di) { this.scheduleFrequency_1 = _set____db54di; }; protoOf(Schedule).get_scheduleFrequency_bvvfg_k$ = function () { return this.scheduleFrequency_1; }; protoOf(Schedule).set_umCalendarUid_gauo2p_k$ = function (_set____db54di) { this.umCalendarUid_1 = _set____db54di; }; protoOf(Schedule).get_umCalendarUid_hurqun_k$ = function () { return this.umCalendarUid_1; }; protoOf(Schedule).set_scheduleClazzUid_t953qm_k$ = function (_set____db54di) { this.scheduleClazzUid_1 = _set____db54di; }; protoOf(Schedule).get_scheduleClazzUid_4qhnq0_k$ = function () { return this.scheduleClazzUid_1; }; protoOf(Schedule).set_scheduleMasterChangeSeqNum_rg3igf_k$ = function (_set____db54di) { this.scheduleMasterChangeSeqNum_1 = _set____db54di; }; protoOf(Schedule).get_scheduleMasterChangeSeqNum_eayz5z_k$ = function () { return this.scheduleMasterChangeSeqNum_1; }; protoOf(Schedule).set_scheduleLocalChangeSeqNum_bvgkds_k$ = function (_set____db54di) { this.scheduleLocalChangeSeqNum_1 = _set____db54di; }; protoOf(Schedule).get_scheduleLocalChangeSeqNum_bk48hu_k$ = function () { return this.scheduleLocalChangeSeqNum_1; }; protoOf(Schedule).set_scheduleLastChangedBy_31adzt_k$ = function (_set____db54di) { this.scheduleLastChangedBy_1 = _set____db54di; }; protoOf(Schedule).get_scheduleLastChangedBy_fgje7p_k$ = function () { return this.scheduleLastChangedBy_1; }; protoOf(Schedule).set_scheduleLastChangedTime_2uryvb_k$ = function (_set____db54di) { this.scheduleLastChangedTime_1 = _set____db54di; }; protoOf(Schedule).get_scheduleLastChangedTime_b1i757_k$ = function () { return this.scheduleLastChangedTime_1; }; protoOf(Schedule).set_scheduleActive_twdrtn_k$ = function (_set____db54di) { this.scheduleActive_1 = _set____db54di; }; protoOf(Schedule).get_scheduleActive_qpyjk6_k$ = function () { return this.scheduleActive_1; }; protoOf(Schedule).equals = function (other) { if (this === other) return true; if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other))) return false; if (!(other instanceof Schedule)) THROW_CCE(); if (!this.scheduleUid_1.equals(other.scheduleUid_1)) return false; if (!this.sceduleStartTime_1.equals(other.sceduleStartTime_1)) return false; if (!this.scheduleEndTime_1.equals(other.scheduleEndTime_1)) return false; if (!(this.scheduleDay_1 === other.scheduleDay_1)) return false; if (!(this.scheduleMonth_1 === other.scheduleMonth_1)) return false; if (!(this.scheduleFrequency_1 === other.scheduleFrequency_1)) return false; if (!this.umCalendarUid_1.equals(other.umCalendarUid_1)) return false; if (!this.scheduleClazzUid_1.equals(other.scheduleClazzUid_1)) return false; if (!this.scheduleMasterChangeSeqNum_1.equals(other.scheduleMasterChangeSeqNum_1)) return false; if (!this.scheduleLocalChangeSeqNum_1.equals(other.scheduleLocalChangeSeqNum_1)) return false; if (!(this.scheduleLastChangedBy_1 === other.scheduleLastChangedBy_1)) return false; if (!(this.scheduleActive_1 === other.scheduleActive_1)) return false; return true; }; protoOf(Schedule).hashCode = function () { var result = this.scheduleUid_1.hashCode(); result = imul(31, result) + this.sceduleStartTime_1.hashCode() | 0; result = imul(31, result) + this.scheduleEndTime_1.hashCode() | 0; result = imul(31, result) + this.scheduleDay_1 | 0; result = imul(31, result) + this.scheduleMonth_1 | 0; result = imul(31, result) + this.scheduleFrequency_1 | 0; result = imul(31, result) + this.umCalendarUid_1.hashCode() | 0; result = imul(31, result) + this.scheduleClazzUid_1.hashCode() | 0; result = imul(31, result) + this.scheduleMasterChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.scheduleLocalChangeSeqNum_1.hashCode() | 0; result = imul(31, result) + this.scheduleLastChangedBy_1 | 0; result = imul(31, result) + getBooleanHashCode(this.scheduleActive_1) | 0; return result; }; function Companion_119() { Companion_instance_119 = this; this.TABLE_ID_1 = 48; this.ALL_TABLES_1 = -2; this.ALL_ENTITIES_1 = new Long(-2, -1); } protoOf(Companion_119).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_119).get_ALL_TABLES_dzlswk_k$ = function () { return this.ALL_TABLES_1; }; protoOf(Companion_119).get_ALL_ENTITIES_wfxtl4_k$ = function () { return this.ALL_ENTITIES_1; }; protoOf(Companion_119).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_115(); }; var Companion_instance_119; function Companion_getInstance_123() { if (Companion_instance_119 == null) new Companion_119(); return Companion_instance_119; } function $serializer_115() { $serializer_instance_115 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ScopedGrant', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('sgUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgPcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLcb', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLct', true); tmp0_serialDesc.addElement_5pzumi_k$('sgTableId', true); tmp0_serialDesc.addElement_5pzumi_k$('sgEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgPermissions', true); tmp0_serialDesc.addElement_5pzumi_k$('sgGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgIndex', true); tmp0_serialDesc.addElement_5pzumi_k$('sgFlags', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_115).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_115).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_115).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return ScopedGrant_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_115).serialize_cmq3mq_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sgUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.sgUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.sgPcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.sgPcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.sgLcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.sgLcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sgLcb_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.sgLcb_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.sgLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.sgLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sgTableId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.sgTableId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.sgEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.sgEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.sgPermissions_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.sgPermissions_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.sgGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.sgGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.sgIndex_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.sgIndex_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.sgFlags_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.sgFlags_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_115).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_cmq3mq_k$(encoder, value instanceof ScopedGrant ? value : THROW_CCE()); }; var $serializer_instance_115; function $serializer_getInstance_115() { if ($serializer_instance_115 == null) new $serializer_115(); return $serializer_instance_115; } function ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_115().descriptor_1); } if (0 === (seen1 & 1)) $this.sgUid_1 = new Long(0, 0); else $this.sgUid_1 = sgUid; if (0 === (seen1 & 2)) $this.sgPcsn_1 = new Long(0, 0); else $this.sgPcsn_1 = sgPcsn; if (0 === (seen1 & 4)) $this.sgLcsn_1 = new Long(0, 0); else $this.sgLcsn_1 = sgLcsn; if (0 === (seen1 & 8)) $this.sgLcb_1 = 0; else $this.sgLcb_1 = sgLcb; if (0 === (seen1 & 16)) $this.sgLct_1 = new Long(0, 0); else $this.sgLct_1 = sgLct; if (0 === (seen1 & 32)) $this.sgTableId_1 = 0; else $this.sgTableId_1 = sgTableId; if (0 === (seen1 & 64)) $this.sgEntityUid_1 = new Long(0, 0); else $this.sgEntityUid_1 = sgEntityUid; if (0 === (seen1 & 128)) $this.sgPermissions_1 = new Long(0, 0); else $this.sgPermissions_1 = sgPermissions; if (0 === (seen1 & 256)) $this.sgGroupUid_1 = new Long(0, 0); else $this.sgGroupUid_1 = sgGroupUid; if (0 === (seen1 & 512)) $this.sgIndex_1 = 0; else $this.sgIndex_1 = sgIndex; if (0 === (seen1 & 1024)) $this.sgFlags_1 = 0; else $this.sgFlags_1 = sgFlags; return $this; } function ScopedGrant_init_$Create$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker) { return ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, objectCreate(protoOf(ScopedGrant))); } function ScopedGrant() { Companion_getInstance_123(); this.sgUid_1 = new Long(0, 0); this.sgPcsn_1 = new Long(0, 0); this.sgLcsn_1 = new Long(0, 0); this.sgLcb_1 = 0; this.sgLct_1 = new Long(0, 0); this.sgTableId_1 = 0; this.sgEntityUid_1 = new Long(0, 0); this.sgPermissions_1 = new Long(0, 0); this.sgGroupUid_1 = new Long(0, 0); this.sgIndex_1 = 0; this.sgFlags_1 = 0; } protoOf(ScopedGrant).set_sgUid_eesw5b_k$ = function (_set____db54di) { this.sgUid_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgUid_iyhd83_k$ = function () { return this.sgUid_1; }; protoOf(ScopedGrant).set_sgPcsn_danudd_k$ = function (_set____db54di) { this.sgPcsn_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgPcsn_jfyn7v_k$ = function () { return this.sgPcsn_1; }; protoOf(ScopedGrant).set_sgLcsn_e6w29x_k$ = function (_set____db54di) { this.sgLcsn_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgLcsn_jfw39r_k$ = function () { return this.sgLcsn_1; }; protoOf(ScopedGrant).set_sgLcb_aourg2_k$ = function (_set____db54di) { this.sgLcb_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgLcb_iyh6em_k$ = function () { return this.sgLcb_1; }; protoOf(ScopedGrant).set_sgLct_ms3o42_k$ = function (_set____db54di) { this.sgLct_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgLct_iyh6f4_k$ = function () { return this.sgLct_1; }; protoOf(ScopedGrant).set_sgTableId_nfzhww_k$ = function (_set____db54di) { this.sgTableId_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgTableId_w9tfkk_k$ = function () { return this.sgTableId_1; }; protoOf(ScopedGrant).set_sgEntityUid_wqr9fm_k$ = function (_set____db54di) { this.sgEntityUid_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgEntityUid_nydhww_k$ = function () { return this.sgEntityUid_1; }; protoOf(ScopedGrant).set_sgPermissions_b70f05_k$ = function (_set____db54di) { this.sgPermissions_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgPermissions_8w887t_k$ = function () { return this.sgPermissions_1; }; protoOf(ScopedGrant).set_sgGroupUid_4hdzmk_k$ = function (_set____db54di) { this.sgGroupUid_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgGroupUid_h5tnbi_k$ = function () { return this.sgGroupUid_1; }; protoOf(ScopedGrant).set_sgIndex_d60r6h_k$ = function (_set____db54di) { this.sgIndex_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgIndex_ye9pf9_k$ = function () { return this.sgIndex_1; }; protoOf(ScopedGrant).set_sgFlags_nx8xle_k$ = function (_set____db54di) { this.sgFlags_1 = _set____db54di; }; protoOf(ScopedGrant).get_sgFlags_yckzhm_k$ = function () { return this.sgFlags_1; }; function Companion_120() { Companion_instance_120 = this; } protoOf(Companion_120).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_116(); }; var Companion_instance_120; function Companion_getInstance_124() { if (Companion_instance_120 == null) new Companion_120(); return Companion_instance_120; } function $serializer_116() { $serializer_instance_116 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.ScopedGrantWithName', this, 12); tmp0_serialDesc.addElement_5pzumi_k$('sgUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgPcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLcb', true); tmp0_serialDesc.addElement_5pzumi_k$('sgLct', true); tmp0_serialDesc.addElement_5pzumi_k$('sgTableId', true); tmp0_serialDesc.addElement_5pzumi_k$('sgEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgPermissions', true); tmp0_serialDesc.addElement_5pzumi_k$('sgGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sgIndex', true); tmp0_serialDesc.addElement_5pzumi_k$('sgFlags', true); tmp0_serialDesc.addElement_5pzumi_k$('name', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_116).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_116).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_116).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = null; var tmp16_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp16_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; } else while (tmp1_flag) { tmp2_index = tmp16_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp16_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp16_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp16_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp16_input.endStructure_1xqz0n_k$(tmp0_desc); return ScopedGrantWithName_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_116).serialize_kelmi9_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_sgUid_iyhd83_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_sgUid_iyhd83_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.get_sgPcsn_jfyn7v_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.get_sgPcsn_jfyn7v_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.get_sgLcsn_jfw39r_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.get_sgLcsn_jfw39r_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.get_sgLcb_iyh6em_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.get_sgLcb_iyh6em_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.get_sgLct_iyh6f4_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.get_sgLct_iyh6f4_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_sgTableId_w9tfkk_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.get_sgTableId_w9tfkk_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.get_sgEntityUid_nydhww_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.get_sgEntityUid_nydhww_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_sgPermissions_8w887t_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_sgPermissions_8w887t_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_sgGroupUid_h5tnbi_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_sgGroupUid_h5tnbi_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.get_sgIndex_ye9pf9_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.get_sgIndex_ye9pf9_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.get_sgFlags_yckzhm_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.get_sgFlags_yckzhm_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.name_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, StringSerializer_getInstance(), value.name_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_116).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_kelmi9_k$(encoder, value instanceof ScopedGrantWithName ? value : THROW_CCE()); }; var $serializer_instance_116; function $serializer_getInstance_116() { if ($serializer_instance_116 == null) new $serializer_116(); return $serializer_instance_116; } function ScopedGrantWithName_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, name, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_116().descriptor_1); } ScopedGrant_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, serializationConstructorMarker, $this); if (0 === (seen1 & 2048)) $this.name_1 = null; else $this.name_1 = name; return $this; } function ScopedGrantWithName_init_$Create$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, name, serializationConstructorMarker) { return ScopedGrantWithName_init_$Init$(seen1, sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags, name, serializationConstructorMarker, objectCreate(protoOf(ScopedGrantWithName))); } function ScopedGrantWithName() { Companion_getInstance_124(); ScopedGrant.call(this); this.name_1 = null; } protoOf(ScopedGrantWithName).set_name_wkmnld_k$ = function (_set____db54di) { this.name_1 = _set____db54di; }; protoOf(ScopedGrantWithName).get_name_woqyms_k$ = function () { return this.name_1; }; function Companion_121() { Companion_instance_121 = this; this.TABLE_ID_1 = 189; } protoOf(Companion_121).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_121).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_117(); }; var Companion_instance_121; function Companion_getInstance_125() { if (Companion_instance_121 == null) new Companion_121(); return Companion_instance_121; } function $serializer_117() { $serializer_instance_117 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.Site', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('siteUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sitePcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('siteLcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('siteLcb', true); tmp0_serialDesc.addElement_5pzumi_k$('siteLct', true); tmp0_serialDesc.addElement_5pzumi_k$('siteName', true); tmp0_serialDesc.addElement_5pzumi_k$('guestLogin', true); tmp0_serialDesc.addElement_5pzumi_k$('registrationAllowed', true); tmp0_serialDesc.addElement_5pzumi_k$('authSalt', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_117).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_117).childSerializers_5ghqw5_k$ = 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(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_117).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = 0; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_local7 = false; var tmp12_local8 = null; var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return Site_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_117).serialize_nttjkh_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.siteUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.siteUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.sitePcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.sitePcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.siteLcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.siteLcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.siteLcb_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 3, value.siteLcb_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.siteLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.siteLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.siteName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.siteName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.guestLogin_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.guestLogin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.registrationAllowed_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 7, value.registrationAllowed_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.authSalt_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.authSalt_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_117).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_nttjkh_k$(encoder, value instanceof Site ? value : THROW_CCE()); }; var $serializer_instance_117; function $serializer_getInstance_117() { if ($serializer_instance_117 == null) new $serializer_117(); return $serializer_instance_117; } function Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_117().descriptor_1); } if (0 === (seen1 & 1)) $this.siteUid_1 = new Long(0, 0); else $this.siteUid_1 = siteUid; if (0 === (seen1 & 2)) $this.sitePcsn_1 = new Long(0, 0); else $this.sitePcsn_1 = sitePcsn; if (0 === (seen1 & 4)) $this.siteLcsn_1 = new Long(0, 0); else $this.siteLcsn_1 = siteLcsn; if (0 === (seen1 & 8)) $this.siteLcb_1 = 0; else $this.siteLcb_1 = siteLcb; if (0 === (seen1 & 16)) $this.siteLct_1 = new Long(0, 0); else $this.siteLct_1 = siteLct; if (0 === (seen1 & 32)) $this.siteName_1 = null; else $this.siteName_1 = siteName; if (0 === (seen1 & 64)) $this.guestLogin_1 = true; else $this.guestLogin_1 = guestLogin; if (0 === (seen1 & 128)) $this.registrationAllowed_1 = true; else $this.registrationAllowed_1 = registrationAllowed; if (0 === (seen1 & 256)) $this.authSalt_1 = null; else $this.authSalt_1 = authSalt; return $this; } function Site_init_$Create$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker) { return Site_init_$Init$(seen1, siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt, serializationConstructorMarker, objectCreate(protoOf(Site))); } function Site() { Companion_getInstance_125(); this.siteUid_1 = new Long(0, 0); this.sitePcsn_1 = new Long(0, 0); this.siteLcsn_1 = new Long(0, 0); this.siteLcb_1 = 0; this.siteLct_1 = new Long(0, 0); this.siteName_1 = null; this.guestLogin_1 = true; this.registrationAllowed_1 = true; this.authSalt_1 = null; } protoOf(Site).set_siteUid_3fwycy_k$ = function (_set____db54di) { this.siteUid_1 = _set____db54di; }; protoOf(Site).get_siteUid_z1a068_k$ = function () { return this.siteUid_1; }; protoOf(Site).set_sitePcsn_1tec30_k$ = function (_set____db54di) { this.sitePcsn_1 = _set____db54di; }; protoOf(Site).get_sitePcsn_kn0mo2_k$ = function () { return this.sitePcsn_1; }; protoOf(Site).set_siteLcsn_x646g_k$ = function (_set____db54di) { this.siteLcsn_1 = _set____db54di; }; protoOf(Site).get_siteLcsn_kn36m6_k$ = function () { return this.siteLcsn_1; }; protoOf(Site).set_siteLcb_8xejr3_k$ = function (_set____db54di) { this.siteLcb_1 = _set____db54di; }; protoOf(Site).get_siteLcb_z1a6zp_k$ = function () { return this.siteLcb_1; }; protoOf(Site).set_siteLct_bt7qbp_k$ = function (_set____db54di) { this.siteLct_1 = _set____db54di; }; protoOf(Site).get_siteLct_z1a6z7_k$ = function () { return this.siteLct_1; }; protoOf(Site).set_siteName_c1yqeg_k$ = function (_set____db54di) { this.siteName_1 = _set____db54di; }; protoOf(Site).get_siteName_kn1y9x_k$ = function () { return this.siteName_1; }; protoOf(Site).set_guestLogin_v9uplz_k$ = function (_set____db54di) { this.guestLogin_1 = _set____db54di; }; protoOf(Site).get_guestLogin_lk9bzu_k$ = function () { return this.guestLogin_1; }; protoOf(Site).set_registrationAllowed_4rnnzx_k$ = function (_set____db54di) { this.registrationAllowed_1 = _set____db54di; }; protoOf(Site).get_registrationAllowed_lhz77q_k$ = function () { return this.registrationAllowed_1; }; protoOf(Site).set_authSalt_nuc2o4_k$ = function (_set____db54di) { this.authSalt_1 = _set____db54di; }; protoOf(Site).get_authSalt_848849_k$ = function () { return this.authSalt_1; }; function Companion_122() { Companion_instance_122 = this; this.TABLE_ID_1 = 272; } protoOf(Companion_122).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_122).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_118(); }; var Companion_instance_122; function Companion_getInstance_126() { if (Companion_instance_122 == null) new Companion_122(); return Companion_instance_122; } function $serializer_118() { $serializer_instance_118 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTerms', this, 9); tmp0_serialDesc.addElement_5pzumi_k$('sTermsUid', true); tmp0_serialDesc.addElement_5pzumi_k$('termsHtml', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLang', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLangUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsActive', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsPrimaryCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLocalCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_118).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_118).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_118).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp13_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; } else while (tmp1_flag) { tmp2_index = tmp13_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp13_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp13_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp13_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp13_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp13_input.endStructure_1xqz0n_k$(tmp0_desc); return SiteTerms_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_118).serialize_fsto1e_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sTermsUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.sTermsUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.termsHtml_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.termsHtml_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.sTermsLang_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.sTermsLang_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.sTermsLangUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.sTermsLangUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.sTermsActive_1 === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.sTermsActive_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sTermsLastChangedBy_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.sTermsLastChangedBy_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.sTermsPrimaryCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.sTermsPrimaryCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.sTermsLocalCsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.sTermsLocalCsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.sTermsLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.sTermsLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_118).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_fsto1e_k$(encoder, value instanceof SiteTerms ? value : THROW_CCE()); }; var $serializer_instance_118; function $serializer_getInstance_118() { if ($serializer_instance_118 == null) new $serializer_118(); return $serializer_instance_118; } function SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_118().descriptor_1); } if (0 === (seen1 & 1)) $this.sTermsUid_1 = new Long(0, 0); else $this.sTermsUid_1 = sTermsUid; if (0 === (seen1 & 2)) $this.termsHtml_1 = null; else $this.termsHtml_1 = termsHtml; if (0 === (seen1 & 4)) $this.sTermsLang_1 = null; else $this.sTermsLang_1 = sTermsLang; if (0 === (seen1 & 8)) $this.sTermsLangUid_1 = new Long(0, 0); else $this.sTermsLangUid_1 = sTermsLangUid; if (0 === (seen1 & 16)) $this.sTermsActive_1 = true; else $this.sTermsActive_1 = sTermsActive; if (0 === (seen1 & 32)) $this.sTermsLastChangedBy_1 = 0; else $this.sTermsLastChangedBy_1 = sTermsLastChangedBy; if (0 === (seen1 & 64)) $this.sTermsPrimaryCsn_1 = new Long(0, 0); else $this.sTermsPrimaryCsn_1 = sTermsPrimaryCsn; if (0 === (seen1 & 128)) $this.sTermsLocalCsn_1 = new Long(0, 0); else $this.sTermsLocalCsn_1 = sTermsLocalCsn; if (0 === (seen1 & 256)) $this.sTermsLct_1 = new Long(0, 0); else $this.sTermsLct_1 = sTermsLct; return $this; } function SiteTerms_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker) { return SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, objectCreate(protoOf(SiteTerms))); } function SiteTerms() { Companion_getInstance_126(); this.sTermsUid_1 = new Long(0, 0); this.termsHtml_1 = null; this.sTermsLang_1 = null; this.sTermsLangUid_1 = new Long(0, 0); this.sTermsActive_1 = true; this.sTermsLastChangedBy_1 = 0; this.sTermsPrimaryCsn_1 = new Long(0, 0); this.sTermsLocalCsn_1 = new Long(0, 0); this.sTermsLct_1 = new Long(0, 0); } protoOf(SiteTerms).set_sTermsUid_7kqczl_k$ = function (_set____db54di) { this.sTermsUid_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsUid_wzk4z7_k$ = function () { return this.sTermsUid_1; }; protoOf(SiteTerms).set_termsHtml_lak0ny_k$ = function (_set____db54di) { this.termsHtml_1 = _set____db54di; }; protoOf(SiteTerms).get_termsHtml_spkudz_k$ = function () { return this.termsHtml_1; }; protoOf(SiteTerms).set_sTermsLang_voj3eg_k$ = function (_set____db54di) { this.sTermsLang_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsLang_s6lm5n_k$ = function () { return this.sTermsLang_1; }; protoOf(SiteTerms).set_sTermsLangUid_wo29bn_k$ = function (_set____db54di) { this.sTermsLangUid_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsLangUid_oq3ht1_k$ = function () { return this.sTermsLangUid_1; }; protoOf(SiteTerms).set_sTermsActive_bqq1vi_k$ = function (_set____db54di) { this.sTermsActive_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsActive_g8t937_k$ = function () { return this.sTermsActive_1; }; protoOf(SiteTerms).set_sTermsLastChangedBy_2hhzfo_k$ = function (_set____db54di) { this.sTermsLastChangedBy_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsLastChangedBy_tpixew_k$ = function () { return this.sTermsLastChangedBy_1; }; protoOf(SiteTerms).set_sTermsPrimaryCsn_c4cdn3_k$ = function (_set____db54di) { this.sTermsPrimaryCsn_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsPrimaryCsn_dkyr3b_k$ = function () { return this.sTermsPrimaryCsn_1; }; protoOf(SiteTerms).set_sTermsLocalCsn_nxsa6y_k$ = function (_set____db54di) { this.sTermsLocalCsn_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsLocalCsn_rrf5gw_k$ = function () { return this.sTermsLocalCsn_1; }; protoOf(SiteTerms).set_sTermsLct_skez6_k$ = function (_set____db54di) { this.sTermsLct_1 = _set____db54di; }; protoOf(SiteTerms).get_sTermsLct_wzjy68_k$ = function () { return this.sTermsLct_1; }; function Companion_123() { Companion_instance_123 = this; } protoOf(Companion_123).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_119(); }; var Companion_instance_123; function Companion_getInstance_127() { if (Companion_instance_123 == null) new Companion_123(); return Companion_instance_123; } function $serializer_119() { $serializer_instance_119 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SiteTermsWithLanguage', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('sTermsUid', true); tmp0_serialDesc.addElement_5pzumi_k$('termsHtml', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLang', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLangUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsActive', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLastChangedBy', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsPrimaryCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLocalCsn', true); tmp0_serialDesc.addElement_5pzumi_k$('sTermsLct', true); tmp0_serialDesc.addElement_5pzumi_k$('stLanguage', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_119).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_119).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable($serializer_getInstance_98())]; }; protoOf($serializer_119).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = new Long(0, 0); var tmp8_local4 = false; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = null; var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_98(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 9, $serializer_getInstance_98(), tmp13_local9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return SiteTermsWithLanguage_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_119).serialize_q6u6fu_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.get_sTermsUid_wzk4z7_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.get_sTermsUid_wzk4z7_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.get_termsHtml_spkudz_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.get_termsHtml_spkudz_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.get_sTermsLang_s6lm5n_k$() == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.get_sTermsLang_s6lm5n_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.get_sTermsLangUid_oq3ht1_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.get_sTermsLangUid_oq3ht1_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.get_sTermsActive_g8t937_k$() === true)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.get_sTermsActive_g8t937_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.get_sTermsLastChangedBy_tpixew_k$() === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.get_sTermsLastChangedBy_tpixew_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.get_sTermsPrimaryCsn_dkyr3b_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.get_sTermsPrimaryCsn_dkyr3b_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.get_sTermsLocalCsn_rrf5gw_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.get_sTermsLocalCsn_rrf5gw_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.get_sTermsLct_wzjy68_k$().equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.get_sTermsLct_wzjy68_k$()); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.stLanguage_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 9, $serializer_getInstance_98(), value.stLanguage_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_119).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_q6u6fu_k$(encoder, value instanceof SiteTermsWithLanguage ? value : THROW_CCE()); }; var $serializer_instance_119; function $serializer_getInstance_119() { if ($serializer_instance_119 == null) new $serializer_119(); return $serializer_instance_119; } function SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_119().descriptor_1); } SiteTerms_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, serializationConstructorMarker, $this); if (0 === (seen1 & 512)) $this.stLanguage_1 = null; else $this.stLanguage_1 = stLanguage; return $this; } function SiteTermsWithLanguage_init_$Create$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker) { return SiteTermsWithLanguage_init_$Init$(seen1, sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct, stLanguage, serializationConstructorMarker, objectCreate(protoOf(SiteTermsWithLanguage))); } function SiteTermsWithLanguage() { Companion_getInstance_127(); SiteTerms.call(this); this.stLanguage_1 = null; } protoOf(SiteTermsWithLanguage).set_stLanguage_1uw2n6_k$ = function (_set____db54di) { this.stLanguage_1 = _set____db54di; }; protoOf(SiteTermsWithLanguage).get_stLanguage_jovzhe_k$ = function () { return this.stLanguage_1; }; function Companion_124() { Companion_instance_124 = this; } protoOf(Companion_124).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_120(); }; var Companion_instance_124; function Companion_getInstance_128() { if (Companion_instance_124 == null) new Companion_124(); return Companion_instance_124; } function $serializer_120() { $serializer_instance_120 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StatementEntityAndDisplayDetails', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('statement', true); tmp0_serialDesc.addElement_5pzumi_k$('person', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_120).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_120).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [get_nullable($serializer_getInstance_137()), get_nullable($serializer_getInstance_104())]; }; protoOf($serializer_120).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 0, $serializer_getInstance_137(), tmp4_local0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, $serializer_getInstance_104(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementEntityAndDisplayDetails_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_120).serialize_p1ll77_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.statement_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 0, $serializer_getInstance_137(), value.statement_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.person_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, $serializer_getInstance_104(), value.person_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_120).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_p1ll77_k$(encoder, value instanceof StatementEntityAndDisplayDetails ? value : THROW_CCE()); }; var $serializer_instance_120; function $serializer_getInstance_120() { if ($serializer_instance_120 == null) new $serializer_120(); return $serializer_instance_120; } function StatementEntityAndDisplayDetails_init_$Init$(seen1, statement, person, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_120().descriptor_1); } if (0 === (seen1 & 1)) $this.statement_1 = null; else $this.statement_1 = statement; if (0 === (seen1 & 2)) $this.person_1 = null; else $this.person_1 = person; return $this; } function StatementEntityAndDisplayDetails_init_$Create$(seen1, statement, person, serializationConstructorMarker) { return StatementEntityAndDisplayDetails_init_$Init$(seen1, statement, person, serializationConstructorMarker, objectCreate(protoOf(StatementEntityAndDisplayDetails))); } function StatementEntityAndDisplayDetails(statement, person) { Companion_getInstance_128(); statement = statement === VOID ? null : statement; person = person === VOID ? null : person; this.statement_1 = statement; this.person_1 = person; } protoOf(StatementEntityAndDisplayDetails).set_statement_bzd1hr_k$ = function (_set____db54di) { this.statement_1 = _set____db54di; }; protoOf(StatementEntityAndDisplayDetails).get_statement_pyx5iy_k$ = function () { return this.statement_1; }; protoOf(StatementEntityAndDisplayDetails).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(StatementEntityAndDisplayDetails).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(StatementEntityAndDisplayDetails).component1_7eebsc_k$ = function () { return this.statement_1; }; protoOf(StatementEntityAndDisplayDetails).component2_7eebsb_k$ = function () { return this.person_1; }; protoOf(StatementEntityAndDisplayDetails).copy_gukf8l_k$ = function (statement, person) { return new StatementEntityAndDisplayDetails(statement, person); }; protoOf(StatementEntityAndDisplayDetails).copy$default_43w2r1_k$ = function (statement, person, $super) { statement = statement === VOID ? this.statement_1 : statement; person = person === VOID ? this.person_1 : person; return $super === VOID ? this.copy_gukf8l_k$(statement, person) : $super.copy_gukf8l_k$.call(this, statement, person); }; protoOf(StatementEntityAndDisplayDetails).toString = function () { return 'StatementEntityAndDisplayDetails(statement=' + this.statement_1 + ', person=' + this.person_1 + ')'; }; protoOf(StatementEntityAndDisplayDetails).hashCode = function () { var result = this.statement_1 == null ? 0 : this.statement_1.hashCode(); result = imul(result, 31) + (this.person_1 == null ? 0 : this.person_1.hashCode()) | 0; return result; }; protoOf(StatementEntityAndDisplayDetails).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntityAndDisplayDetails)) return false; var tmp0_other_with_cast = other instanceof StatementEntityAndDisplayDetails ? other : THROW_CCE(); if (!equals(this.statement_1, tmp0_other_with_cast.statement_1)) return false; if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; return true; }; function Companion_125() { Companion_instance_125 = this; } protoOf(Companion_125).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_121(); }; var Companion_instance_125; function Companion_getInstance_129() { if (Companion_instance_125 == null) new Companion_125(); return Companion_instance_125; } function $serializer_121() { $serializer_instance_121 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StatementReportData', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('yAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('xAxis', true); tmp0_serialDesc.addElement_5pzumi_k$('subgroup', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_121).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_121).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [FloatSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_121).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0.0; var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementReportData_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_121).serialize_efh3oh_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !equals(value.yAxis_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 0, value.yAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.xAxis_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.xAxis_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.subgroup_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.subgroup_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_121).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_efh3oh_k$(encoder, value instanceof StatementReportData ? value : THROW_CCE()); }; var $serializer_instance_121; function $serializer_getInstance_121() { if ($serializer_instance_121 == null) new $serializer_121(); return $serializer_instance_121; } function StatementReportData_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_121().descriptor_1); } if (0 === (seen1 & 1)) $this.yAxis_1 = 0.0; else $this.yAxis_1 = yAxis; if (0 === (seen1 & 2)) $this.xAxis_1 = ''; else $this.xAxis_1 = xAxis; if (0 === (seen1 & 4)) $this.subgroup_1 = ''; else $this.subgroup_1 = subgroup; return $this; } function StatementReportData_init_$Create$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker) { return StatementReportData_init_$Init$(seen1, yAxis, xAxis, subgroup, serializationConstructorMarker, objectCreate(protoOf(StatementReportData))); } function StatementReportData(yAxis, xAxis, subgroup) { Companion_getInstance_129(); yAxis = yAxis === VOID ? 0.0 : yAxis; xAxis = xAxis === VOID ? '' : xAxis; subgroup = subgroup === VOID ? '' : subgroup; this.yAxis_1 = yAxis; this.xAxis_1 = xAxis; this.subgroup_1 = subgroup; } protoOf(StatementReportData).set_yAxis_r9ssut_k$ = function (_set____db54di) { this.yAxis_1 = _set____db54di; }; protoOf(StatementReportData).get_yAxis_j14l8x_k$ = function () { return this.yAxis_1; }; protoOf(StatementReportData).set_xAxis_4spznp_k$ = function (_set____db54di) { this.xAxis_1 = _set____db54di; }; protoOf(StatementReportData).get_xAxis_j0ksnk_k$ = function () { return this.xAxis_1; }; protoOf(StatementReportData).set_subgroup_2r7fmj_k$ = function (_set____db54di) { this.subgroup_1 = _set____db54di; }; protoOf(StatementReportData).get_subgroup_4yf0nc_k$ = function () { return this.subgroup_1; }; protoOf(StatementReportData).component1_7eebsc_k$ = function () { return this.yAxis_1; }; protoOf(StatementReportData).component2_7eebsb_k$ = function () { return this.xAxis_1; }; protoOf(StatementReportData).component3_7eebsa_k$ = function () { return this.subgroup_1; }; protoOf(StatementReportData).copy_pziad_k$ = function (yAxis, xAxis, subgroup) { return new StatementReportData(yAxis, xAxis, subgroup); }; protoOf(StatementReportData).copy$default_ulneta_k$ = function (yAxis, xAxis, subgroup, $super) { yAxis = yAxis === VOID ? this.yAxis_1 : yAxis; xAxis = xAxis === VOID ? this.xAxis_1 : xAxis; subgroup = subgroup === VOID ? this.subgroup_1 : subgroup; return $super === VOID ? this.copy_pziad_k$(yAxis, xAxis, subgroup) : $super.copy_pziad_k$.call(this, yAxis, xAxis, subgroup); }; protoOf(StatementReportData).toString = function () { return 'StatementReportData(yAxis=' + this.yAxis_1 + ', xAxis=' + this.xAxis_1 + ', subgroup=' + this.subgroup_1 + ')'; }; protoOf(StatementReportData).hashCode = function () { var result = getNumberHashCode(this.yAxis_1); result = imul(result, 31) + (this.xAxis_1 == null ? 0 : getStringHashCode(this.xAxis_1)) | 0; result = imul(result, 31) + (this.subgroup_1 == null ? 0 : getStringHashCode(this.subgroup_1)) | 0; return result; }; protoOf(StatementReportData).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementReportData)) return false; var tmp0_other_with_cast = other instanceof StatementReportData ? other : THROW_CCE(); if (!equals(this.yAxis_1, tmp0_other_with_cast.yAxis_1)) return false; if (!(this.xAxis_1 == tmp0_other_with_cast.xAxis_1)) return false; if (!(this.subgroup_1 == tmp0_other_with_cast.subgroup_1)) return false; return true; }; function Companion_126() { Companion_instance_126 = this; this.TABLE_ID_1 = 471; } protoOf(Companion_126).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_126).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_122(); }; var Companion_instance_126; function Companion_getInstance_130() { if (Companion_instance_126 == null) new Companion_126(); return Companion_instance_126; } function $serializer_122() { $serializer_instance_122 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.StudentResult', this, 21); tmp0_serialDesc.addElement_5pzumi_k$('srUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srSourcedId', true); tmp0_serialDesc.addElement_5pzumi_k$('srCourseBlockUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srLineItemSourcedId', true); tmp0_serialDesc.addElement_5pzumi_k$('srLineItemHref', true); tmp0_serialDesc.addElement_5pzumi_k$('srClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srAssignmentUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('srMetaData', true); tmp0_serialDesc.addElement_5pzumi_k$('srStudentPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srStudentPersonSourcedId', true); tmp0_serialDesc.addElement_5pzumi_k$('srStudentGroupId', true); tmp0_serialDesc.addElement_5pzumi_k$('srMarkerPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('srMarkerGroupId', true); tmp0_serialDesc.addElement_5pzumi_k$('srScoreStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('srScore', true); tmp0_serialDesc.addElement_5pzumi_k$('srScoreDate', true); tmp0_serialDesc.addElement_5pzumi_k$('srLastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('srComment', true); tmp0_serialDesc.addElement_5pzumi_k$('srAppId', true); tmp0_serialDesc.addElement_5pzumi_k$('srDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_122).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_122).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), FloatSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_122).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = new Long(0, 0); var tmp14_local10 = null; var tmp15_local11 = 0; var tmp16_local12 = new Long(0, 0); var tmp17_local13 = 0; var tmp18_local14 = 0; var tmp19_local15 = 0.0; var tmp20_local16 = new Long(0, 0); var tmp21_local17 = new Long(0, 0); var tmp22_local18 = null; var tmp23_local19 = null; var tmp24_local20 = false; var tmp25_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp25_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp25_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp23_local19 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp24_local20 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; } else while (tmp1_flag) { tmp2_index = tmp25_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 8, StringSerializer_getInstance(), tmp12_local8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, StringSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp25_input.decodeIntElement_941u6a_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp25_input.decodeFloatElement_p2q55h_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp25_input.decodeLongElement_994anb_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 18, StringSerializer_getInstance(), tmp22_local18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp23_local19 = tmp25_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 19, StringSerializer_getInstance(), tmp23_local19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp24_local20 = tmp25_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp25_input.endStructure_1xqz0n_k$(tmp0_desc); return StudentResult_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, tmp23_local19, tmp24_local20, null); }; protoOf($serializer_122).serialize_41034m_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.srUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.srUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.srSourcedId_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.srSourcedId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.srCourseBlockUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.srCourseBlockUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.srLineItemSourcedId_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.srLineItemSourcedId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.srLineItemHref_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.srLineItemHref_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.srClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.srClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.srAssignmentUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.srAssignmentUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.srStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.srStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.srMetaData_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 8, StringSerializer_getInstance(), value.srMetaData_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.srStudentPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.srStudentPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.srStudentPersonSourcedId_1 === '')) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, StringSerializer_getInstance(), value.srStudentPersonSourcedId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.srStudentGroupId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 11, value.srStudentGroupId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.srMarkerPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.srMarkerPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.srMarkerGroupId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 13, value.srMarkerGroupId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.srScoreStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 14, value.srScoreStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !equals(value.srScore_1, 0.0)) { tmp1_output.encodeFloatElement_oe8hn_k$(tmp0_desc, 15, value.srScore_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !value.srScoreDate_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 16, value.srScoreDate_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !value.srLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 17, value.srLastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.srComment_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 18, StringSerializer_getInstance(), value.srComment_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !(value.srAppId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 19, StringSerializer_getInstance(), value.srAppId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !(value.srDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 20, value.srDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_122).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_41034m_k$(encoder, value instanceof StudentResult ? value : THROW_CCE()); }; var $serializer_instance_122; function $serializer_getInstance_122() { if ($serializer_instance_122 == null) new $serializer_122(); return $serializer_instance_122; } function StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_122().descriptor_1); } if (0 === (seen1 & 1)) $this.srUid_1 = new Long(0, 0); else $this.srUid_1 = srUid; if (0 === (seen1 & 2)) $this.srSourcedId_1 = ''; else $this.srSourcedId_1 = srSourcedId; if (0 === (seen1 & 4)) $this.srCourseBlockUid_1 = new Long(0, 0); else $this.srCourseBlockUid_1 = srCourseBlockUid; if (0 === (seen1 & 8)) $this.srLineItemSourcedId_1 = ''; else $this.srLineItemSourcedId_1 = srLineItemSourcedId; if (0 === (seen1 & 16)) $this.srLineItemHref_1 = ''; else $this.srLineItemHref_1 = srLineItemHref; if (0 === (seen1 & 32)) $this.srClazzUid_1 = new Long(0, 0); else $this.srClazzUid_1 = srClazzUid; if (0 === (seen1 & 64)) $this.srAssignmentUid_1 = new Long(0, 0); else $this.srAssignmentUid_1 = srAssignmentUid; if (0 === (seen1 & 128)) $this.srStatus_1 = 0; else $this.srStatus_1 = srStatus; if (0 === (seen1 & 256)) $this.srMetaData_1 = null; else $this.srMetaData_1 = srMetaData; if (0 === (seen1 & 512)) $this.srStudentPersonUid_1 = new Long(0, 0); else $this.srStudentPersonUid_1 = srStudentPersonUid; if (0 === (seen1 & 1024)) $this.srStudentPersonSourcedId_1 = ''; else $this.srStudentPersonSourcedId_1 = srStudentPersonSourcedId; if (0 === (seen1 & 2048)) $this.srStudentGroupId_1 = 0; else $this.srStudentGroupId_1 = srStudentGroupId; if (0 === (seen1 & 4096)) $this.srMarkerPersonUid_1 = new Long(0, 0); else $this.srMarkerPersonUid_1 = srMarkerPersonUid; if (0 === (seen1 & 8192)) $this.srMarkerGroupId_1 = 0; else $this.srMarkerGroupId_1 = srMarkerGroupId; if (0 === (seen1 & 16384)) $this.srScoreStatus_1 = 0; else $this.srScoreStatus_1 = srScoreStatus; if (0 === (seen1 & 32768)) $this.srScore_1 = 0.0; else $this.srScore_1 = srScore; if (0 === (seen1 & 65536)) $this.srScoreDate_1 = new Long(0, 0); else $this.srScoreDate_1 = srScoreDate; if (0 === (seen1 & 131072)) $this.srLastModified_1 = new Long(0, 0); else $this.srLastModified_1 = srLastModified; if (0 === (seen1 & 262144)) $this.srComment_1 = null; else $this.srComment_1 = srComment; if (0 === (seen1 & 524288)) $this.srAppId_1 = null; else $this.srAppId_1 = srAppId; if (0 === (seen1 & 1048576)) $this.srDeleted_1 = false; else $this.srDeleted_1 = srDeleted; return $this; } function StudentResult_init_$Create$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker) { return StudentResult_init_$Init$(seen1, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, serializationConstructorMarker, objectCreate(protoOf(StudentResult))); } function StudentResult(srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) { Companion_getInstance_130(); srUid = srUid === VOID ? new Long(0, 0) : srUid; srSourcedId = srSourcedId === VOID ? '' : srSourcedId; srCourseBlockUid = srCourseBlockUid === VOID ? new Long(0, 0) : srCourseBlockUid; srLineItemSourcedId = srLineItemSourcedId === VOID ? '' : srLineItemSourcedId; srLineItemHref = srLineItemHref === VOID ? '' : srLineItemHref; srClazzUid = srClazzUid === VOID ? new Long(0, 0) : srClazzUid; srAssignmentUid = srAssignmentUid === VOID ? new Long(0, 0) : srAssignmentUid; srStatus = srStatus === VOID ? 0 : srStatus; srMetaData = srMetaData === VOID ? null : srMetaData; srStudentPersonUid = srStudentPersonUid === VOID ? new Long(0, 0) : srStudentPersonUid; srStudentPersonSourcedId = srStudentPersonSourcedId === VOID ? '' : srStudentPersonSourcedId; srStudentGroupId = srStudentGroupId === VOID ? 0 : srStudentGroupId; srMarkerPersonUid = srMarkerPersonUid === VOID ? new Long(0, 0) : srMarkerPersonUid; srMarkerGroupId = srMarkerGroupId === VOID ? 0 : srMarkerGroupId; srScoreStatus = srScoreStatus === VOID ? 0 : srScoreStatus; srScore = srScore === VOID ? 0.0 : srScore; srScoreDate = srScoreDate === VOID ? new Long(0, 0) : srScoreDate; srLastModified = srLastModified === VOID ? new Long(0, 0) : srLastModified; srComment = srComment === VOID ? null : srComment; srAppId = srAppId === VOID ? null : srAppId; srDeleted = srDeleted === VOID ? false : srDeleted; this.srUid_1 = srUid; this.srSourcedId_1 = srSourcedId; this.srCourseBlockUid_1 = srCourseBlockUid; this.srLineItemSourcedId_1 = srLineItemSourcedId; this.srLineItemHref_1 = srLineItemHref; this.srClazzUid_1 = srClazzUid; this.srAssignmentUid_1 = srAssignmentUid; this.srStatus_1 = srStatus; this.srMetaData_1 = srMetaData; this.srStudentPersonUid_1 = srStudentPersonUid; this.srStudentPersonSourcedId_1 = srStudentPersonSourcedId; this.srStudentGroupId_1 = srStudentGroupId; this.srMarkerPersonUid_1 = srMarkerPersonUid; this.srMarkerGroupId_1 = srMarkerGroupId; this.srScoreStatus_1 = srScoreStatus; this.srScore_1 = srScore; this.srScoreDate_1 = srScoreDate; this.srLastModified_1 = srLastModified; this.srComment_1 = srComment; this.srAppId_1 = srAppId; this.srDeleted_1 = srDeleted; } protoOf(StudentResult).set_srUid_gvfhvu_k$ = function (_set____db54di) { this.srUid_1 = _set____db54di; }; protoOf(StudentResult).get_srUid_iyoe2w_k$ = function () { return this.srUid_1; }; protoOf(StudentResult).set_srSourcedId_fmpvan_k$ = function (_set____db54di) { this.srSourcedId_1 = _set____db54di; }; protoOf(StudentResult).get_srSourcedId_4iiqg4_k$ = function () { return this.srSourcedId_1; }; protoOf(StudentResult).set_srCourseBlockUid_iyfk10_k$ = function (_set____db54di) { this.srCourseBlockUid_1 = _set____db54di; }; protoOf(StudentResult).get_srCourseBlockUid_9dx5mu_k$ = function () { return this.srCourseBlockUid_1; }; protoOf(StudentResult).set_srLineItemSourcedId_6065cm_k$ = function (_set____db54di) { this.srLineItemSourcedId_1 = _set____db54di; }; protoOf(StudentResult).get_srLineItemSourcedId_1zv2np_k$ = function () { return this.srLineItemSourcedId_1; }; protoOf(StudentResult).set_srLineItemHref_75p1bd_k$ = function (_set____db54di) { this.srLineItemHref_1 = _set____db54di; }; protoOf(StudentResult).get_srLineItemHref_huj4sa_k$ = function () { return this.srLineItemHref_1; }; protoOf(StudentResult).set_srClazzUid_yoy6a2_k$ = function (_set____db54di) { this.srClazzUid_1 = _set____db54di; }; protoOf(StudentResult).get_srClazzUid_oc75sw_k$ = function () { return this.srClazzUid_1; }; protoOf(StudentResult).set_srAssignmentUid_5eowg9_k$ = function (_set____db54di) { this.srAssignmentUid_1 = _set____db54di; }; protoOf(StudentResult).get_srAssignmentUid_85o1mj_k$ = function () { return this.srAssignmentUid_1; }; protoOf(StudentResult).set_srStatus_9ew9ly_k$ = function (_set____db54di) { this.srStatus_1 = _set____db54di; }; protoOf(StudentResult).get_srStatus_p1igoq_k$ = function () { return this.srStatus_1; }; protoOf(StudentResult).set_srMetaData_8q330s_k$ = function (_set____db54di) { this.srMetaData_1 = _set____db54di; }; protoOf(StudentResult).get_srMetaData_ro77tj_k$ = function () { return this.srMetaData_1; }; protoOf(StudentResult).set_srStudentPersonUid_h6tq3m_k$ = function (_set____db54di) { this.srStudentPersonUid_1 = _set____db54di; }; protoOf(StudentResult).get_srStudentPersonUid_fa7t1k_k$ = function () { return this.srStudentPersonUid_1; }; protoOf(StudentResult).set_srStudentPersonSourcedId_2ewhc7_k$ = function (_set____db54di) { this.srStudentPersonSourcedId_1 = _set____db54di; }; protoOf(StudentResult).get_srStudentPersonSourcedId_3ecsgs_k$ = function () { return this.srStudentPersonSourcedId_1; }; protoOf(StudentResult).set_srStudentGroupId_p65k6l_k$ = function (_set____db54di) { this.srStudentGroupId_1 = _set____db54di; }; protoOf(StudentResult).get_srStudentGroupId_k5jp6v_k$ = function () { return this.srStudentGroupId_1; }; protoOf(StudentResult).set_srMarkerPersonUid_sf4dlz_k$ = function (_set____db54di) { this.srMarkerPersonUid_1 = _set____db54di; }; protoOf(StudentResult).get_srMarkerPersonUid_yzzhpj_k$ = function () { return this.srMarkerPersonUid_1; }; protoOf(StudentResult).set_srMarkerGroupId_r0xgf0_k$ = function (_set____db54di) { this.srMarkerGroupId_1 = _set____db54di; }; protoOf(StudentResult).get_srMarkerGroupId_fljmaw_k$ = function () { return this.srMarkerGroupId_1; }; protoOf(StudentResult).set_srScoreStatus_x2x1uo_k$ = function (_set____db54di) { this.srScoreStatus_1 = _set____db54di; }; protoOf(StudentResult).get_srScoreStatus_kuapzw_k$ = function () { return this.srScoreStatus_1; }; protoOf(StudentResult).set_srScore_bwp57y_k$ = function (_set____db54di) { this.srScore_1 = _set____db54di; }; protoOf(StudentResult).get_srScore_va1com_k$ = function () { return this.srScore_1; }; protoOf(StudentResult).set_srScoreDate_jc2ptm_k$ = function (_set____db54di) { this.srScoreDate_1 = _set____db54di; }; protoOf(StudentResult).get_srScoreDate_c97b8o_k$ = function () { return this.srScoreDate_1; }; protoOf(StudentResult).set_srLastModified_y57rsz_k$ = function (_set____db54di) { this.srLastModified_1 = _set____db54di; }; protoOf(StudentResult).get_srLastModified_pl91fd_k$ = function () { return this.srLastModified_1; }; protoOf(StudentResult).set_srComment_kh9apg_k$ = function (_set____db54di) { this.srComment_1 = _set____db54di; }; protoOf(StudentResult).get_srComment_sz3zqh_k$ = function () { return this.srComment_1; }; protoOf(StudentResult).set_srAppId_xuecp5_k$ = function (_set____db54di) { this.srAppId_1 = _set____db54di; }; protoOf(StudentResult).get_srAppId_vjpcrw_k$ = function () { return this.srAppId_1; }; protoOf(StudentResult).set_srDeleted_4npnq0_k$ = function (_set____db54di) { this.srDeleted_1 = _set____db54di; }; protoOf(StudentResult).get_srDeleted_j1uj1r_k$ = function () { return this.srDeleted_1; }; protoOf(StudentResult).component1_7eebsc_k$ = function () { return this.srUid_1; }; protoOf(StudentResult).component2_7eebsb_k$ = function () { return this.srSourcedId_1; }; protoOf(StudentResult).component3_7eebsa_k$ = function () { return this.srCourseBlockUid_1; }; protoOf(StudentResult).component4_7eebs9_k$ = function () { return this.srLineItemSourcedId_1; }; protoOf(StudentResult).component5_7eebs8_k$ = function () { return this.srLineItemHref_1; }; protoOf(StudentResult).component6_7eebs7_k$ = function () { return this.srClazzUid_1; }; protoOf(StudentResult).component7_7eebs6_k$ = function () { return this.srAssignmentUid_1; }; protoOf(StudentResult).component8_7eebs5_k$ = function () { return this.srStatus_1; }; protoOf(StudentResult).component9_7eebs4_k$ = function () { return this.srMetaData_1; }; protoOf(StudentResult).component10_gazzfo_k$ = function () { return this.srStudentPersonUid_1; }; protoOf(StudentResult).component11_gazzfn_k$ = function () { return this.srStudentPersonSourcedId_1; }; protoOf(StudentResult).component12_gazzfm_k$ = function () { return this.srStudentGroupId_1; }; protoOf(StudentResult).component13_gazzfl_k$ = function () { return this.srMarkerPersonUid_1; }; protoOf(StudentResult).component14_gazzfk_k$ = function () { return this.srMarkerGroupId_1; }; protoOf(StudentResult).component15_gazzfj_k$ = function () { return this.srScoreStatus_1; }; protoOf(StudentResult).component16_gazzfi_k$ = function () { return this.srScore_1; }; protoOf(StudentResult).component17_gazzfh_k$ = function () { return this.srScoreDate_1; }; protoOf(StudentResult).component18_gazzfg_k$ = function () { return this.srLastModified_1; }; protoOf(StudentResult).component19_gazzff_k$ = function () { return this.srComment_1; }; protoOf(StudentResult).component20_gazzet_k$ = function () { return this.srAppId_1; }; protoOf(StudentResult).component21_gazzes_k$ = function () { return this.srDeleted_1; }; protoOf(StudentResult).copy_t8fxnv_k$ = function (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) { return new StudentResult(srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted); }; protoOf(StudentResult).copy$default_pmdfnt_k$ = function (srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted, $super) { srUid = srUid === VOID ? this.srUid_1 : srUid; srSourcedId = srSourcedId === VOID ? this.srSourcedId_1 : srSourcedId; srCourseBlockUid = srCourseBlockUid === VOID ? this.srCourseBlockUid_1 : srCourseBlockUid; srLineItemSourcedId = srLineItemSourcedId === VOID ? this.srLineItemSourcedId_1 : srLineItemSourcedId; srLineItemHref = srLineItemHref === VOID ? this.srLineItemHref_1 : srLineItemHref; srClazzUid = srClazzUid === VOID ? this.srClazzUid_1 : srClazzUid; srAssignmentUid = srAssignmentUid === VOID ? this.srAssignmentUid_1 : srAssignmentUid; srStatus = srStatus === VOID ? this.srStatus_1 : srStatus; srMetaData = srMetaData === VOID ? this.srMetaData_1 : srMetaData; srStudentPersonUid = srStudentPersonUid === VOID ? this.srStudentPersonUid_1 : srStudentPersonUid; srStudentPersonSourcedId = srStudentPersonSourcedId === VOID ? this.srStudentPersonSourcedId_1 : srStudentPersonSourcedId; srStudentGroupId = srStudentGroupId === VOID ? this.srStudentGroupId_1 : srStudentGroupId; srMarkerPersonUid = srMarkerPersonUid === VOID ? this.srMarkerPersonUid_1 : srMarkerPersonUid; srMarkerGroupId = srMarkerGroupId === VOID ? this.srMarkerGroupId_1 : srMarkerGroupId; srScoreStatus = srScoreStatus === VOID ? this.srScoreStatus_1 : srScoreStatus; srScore = srScore === VOID ? this.srScore_1 : srScore; srScoreDate = srScoreDate === VOID ? this.srScoreDate_1 : srScoreDate; srLastModified = srLastModified === VOID ? this.srLastModified_1 : srLastModified; srComment = srComment === VOID ? this.srComment_1 : srComment; srAppId = srAppId === VOID ? this.srAppId_1 : srAppId; srDeleted = srDeleted === VOID ? this.srDeleted_1 : srDeleted; return $super === VOID ? this.copy_t8fxnv_k$(srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted) : $super.copy_t8fxnv_k$.call(this, srUid, srSourcedId, srCourseBlockUid, srLineItemSourcedId, srLineItemHref, srClazzUid, srAssignmentUid, srStatus, srMetaData, srStudentPersonUid, srStudentPersonSourcedId, srStudentGroupId, srMarkerPersonUid, srMarkerGroupId, srScoreStatus, srScore, srScoreDate, srLastModified, srComment, srAppId, srDeleted); }; protoOf(StudentResult).toString = function () { return 'StudentResult(srUid=' + this.srUid_1.toString() + ', srSourcedId=' + this.srSourcedId_1 + ', srCourseBlockUid=' + this.srCourseBlockUid_1.toString() + ', srLineItemSourcedId=' + this.srLineItemSourcedId_1 + ', srLineItemHref=' + this.srLineItemHref_1 + ', srClazzUid=' + this.srClazzUid_1.toString() + ', srAssignmentUid=' + this.srAssignmentUid_1.toString() + ', srStatus=' + this.srStatus_1 + ', srMetaData=' + this.srMetaData_1 + ', srStudentPersonUid=' + this.srStudentPersonUid_1.toString() + ', srStudentPersonSourcedId=' + this.srStudentPersonSourcedId_1 + ', srStudentGroupId=' + this.srStudentGroupId_1 + ', srMarkerPersonUid=' + this.srMarkerPersonUid_1.toString() + ', srMarkerGroupId=' + this.srMarkerGroupId_1 + ', srScoreStatus=' + this.srScoreStatus_1 + ', srScore=' + this.srScore_1 + ', srScoreDate=' + this.srScoreDate_1.toString() + ', srLastModified=' + this.srLastModified_1.toString() + ', srComment=' + this.srComment_1 + ', srAppId=' + this.srAppId_1 + ', srDeleted=' + this.srDeleted_1 + ')'; }; protoOf(StudentResult).hashCode = function () { var result = this.srUid_1.hashCode(); result = imul(result, 31) + (this.srSourcedId_1 == null ? 0 : getStringHashCode(this.srSourcedId_1)) | 0; result = imul(result, 31) + this.srCourseBlockUid_1.hashCode() | 0; result = imul(result, 31) + (this.srLineItemSourcedId_1 == null ? 0 : getStringHashCode(this.srLineItemSourcedId_1)) | 0; result = imul(result, 31) + (this.srLineItemHref_1 == null ? 0 : getStringHashCode(this.srLineItemHref_1)) | 0; result = imul(result, 31) + this.srClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.srAssignmentUid_1.hashCode() | 0; result = imul(result, 31) + this.srStatus_1 | 0; result = imul(result, 31) + (this.srMetaData_1 == null ? 0 : getStringHashCode(this.srMetaData_1)) | 0; result = imul(result, 31) + this.srStudentPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.srStudentPersonSourcedId_1 == null ? 0 : getStringHashCode(this.srStudentPersonSourcedId_1)) | 0; result = imul(result, 31) + this.srStudentGroupId_1 | 0; result = imul(result, 31) + this.srMarkerPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.srMarkerGroupId_1 | 0; result = imul(result, 31) + this.srScoreStatus_1 | 0; result = imul(result, 31) + getNumberHashCode(this.srScore_1) | 0; result = imul(result, 31) + this.srScoreDate_1.hashCode() | 0; result = imul(result, 31) + this.srLastModified_1.hashCode() | 0; result = imul(result, 31) + (this.srComment_1 == null ? 0 : getStringHashCode(this.srComment_1)) | 0; result = imul(result, 31) + (this.srAppId_1 == null ? 0 : getStringHashCode(this.srAppId_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.srDeleted_1) | 0; return result; }; protoOf(StudentResult).equals = function (other) { if (this === other) return true; if (!(other instanceof StudentResult)) return false; var tmp0_other_with_cast = other instanceof StudentResult ? other : THROW_CCE(); if (!this.srUid_1.equals(tmp0_other_with_cast.srUid_1)) return false; if (!(this.srSourcedId_1 == tmp0_other_with_cast.srSourcedId_1)) return false; if (!this.srCourseBlockUid_1.equals(tmp0_other_with_cast.srCourseBlockUid_1)) return false; if (!(this.srLineItemSourcedId_1 == tmp0_other_with_cast.srLineItemSourcedId_1)) return false; if (!(this.srLineItemHref_1 == tmp0_other_with_cast.srLineItemHref_1)) return false; if (!this.srClazzUid_1.equals(tmp0_other_with_cast.srClazzUid_1)) return false; if (!this.srAssignmentUid_1.equals(tmp0_other_with_cast.srAssignmentUid_1)) return false; if (!(this.srStatus_1 === tmp0_other_with_cast.srStatus_1)) return false; if (!(this.srMetaData_1 == tmp0_other_with_cast.srMetaData_1)) return false; if (!this.srStudentPersonUid_1.equals(tmp0_other_with_cast.srStudentPersonUid_1)) return false; if (!(this.srStudentPersonSourcedId_1 == tmp0_other_with_cast.srStudentPersonSourcedId_1)) return false; if (!(this.srStudentGroupId_1 === tmp0_other_with_cast.srStudentGroupId_1)) return false; if (!this.srMarkerPersonUid_1.equals(tmp0_other_with_cast.srMarkerPersonUid_1)) return false; if (!(this.srMarkerGroupId_1 === tmp0_other_with_cast.srMarkerGroupId_1)) return false; if (!(this.srScoreStatus_1 === tmp0_other_with_cast.srScoreStatus_1)) return false; if (!equals(this.srScore_1, tmp0_other_with_cast.srScore_1)) return false; if (!this.srScoreDate_1.equals(tmp0_other_with_cast.srScoreDate_1)) return false; if (!this.srLastModified_1.equals(tmp0_other_with_cast.srLastModified_1)) return false; if (!(this.srComment_1 == tmp0_other_with_cast.srComment_1)) return false; if (!(this.srAppId_1 == tmp0_other_with_cast.srAppId_1)) return false; if (!(this.srDeleted_1 === tmp0_other_with_cast.srDeleted_1)) return false; return true; }; function Companion_127() { Companion_instance_127 = this; this.PERSON_DEFAULT_PERMISSIONS_1 = new Long(0, 0); this.TABLE_ID_1 = 10011; } protoOf(Companion_127).get_PERSON_DEFAULT_PERMISSIONS_2jt5wb_k$ = function () { return this.PERSON_DEFAULT_PERMISSIONS_1; }; protoOf(Companion_127).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_127).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_123(); }; var Companion_instance_127; function Companion_getInstance_131() { if (Companion_instance_127 == null) new Companion_127(); return Companion_instance_127; } function $serializer_123() { $serializer_instance_123 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.SystemPermission', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('spUid', true); tmp0_serialDesc.addElement_5pzumi_k$('spToPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('spToGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('spPermissionsFlag', true); tmp0_serialDesc.addElement_5pzumi_k$('spLastModified', true); tmp0_serialDesc.addElement_5pzumi_k$('spIsDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_123).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_123).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_123).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return SystemPermission_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_123).serialize_qr6c0q_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.spUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.spUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.spToPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.spToPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.spToGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.spToGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.spPermissionsFlag_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.spPermissionsFlag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.spLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.spLastModified_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.spIsDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.spIsDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_123).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_qr6c0q_k$(encoder, value instanceof SystemPermission ? value : THROW_CCE()); }; var $serializer_instance_123; function $serializer_getInstance_123() { if ($serializer_instance_123 == null) new $serializer_123(); return $serializer_instance_123; } function SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_123().descriptor_1); } if (0 === (seen1 & 1)) $this.spUid_1 = new Long(0, 0); else $this.spUid_1 = spUid; if (0 === (seen1 & 2)) $this.spToPersonUid_1 = new Long(0, 0); else $this.spToPersonUid_1 = spToPersonUid; if (0 === (seen1 & 4)) $this.spToGroupUid_1 = new Long(0, 0); else $this.spToGroupUid_1 = spToGroupUid; if (0 === (seen1 & 8)) $this.spPermissionsFlag_1 = new Long(0, 0); else $this.spPermissionsFlag_1 = spPermissionsFlag; if (0 === (seen1 & 16)) $this.spLastModified_1 = new Long(0, 0); else $this.spLastModified_1 = spLastModified; if (0 === (seen1 & 32)) $this.spIsDeleted_1 = false; else $this.spIsDeleted_1 = spIsDeleted; return $this; } function SystemPermission_init_$Create$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker) { return SystemPermission_init_$Init$(seen1, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, serializationConstructorMarker, objectCreate(protoOf(SystemPermission))); } function SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) { Companion_getInstance_131(); spUid = spUid === VOID ? new Long(0, 0) : spUid; spToPersonUid = spToPersonUid === VOID ? new Long(0, 0) : spToPersonUid; spToGroupUid = spToGroupUid === VOID ? new Long(0, 0) : spToGroupUid; spPermissionsFlag = spPermissionsFlag === VOID ? new Long(0, 0) : spPermissionsFlag; spLastModified = spLastModified === VOID ? new Long(0, 0) : spLastModified; spIsDeleted = spIsDeleted === VOID ? false : spIsDeleted; this.spUid_1 = spUid; this.spToPersonUid_1 = spToPersonUid; this.spToGroupUid_1 = spToGroupUid; this.spPermissionsFlag_1 = spPermissionsFlag; this.spLastModified_1 = spLastModified; this.spIsDeleted_1 = spIsDeleted; } protoOf(SystemPermission).set_spUid_gfbdxk_k$ = function (_set____db54di) { this.spUid_1 = _set____db54di; }; protoOf(SystemPermission).get_spUid_iyn43u_k$ = function () { return this.spUid_1; }; protoOf(SystemPermission).set_spToPersonUid_5xfgfc_k$ = function (_set____db54di) { this.spToPersonUid_1 = _set____db54di; }; protoOf(SystemPermission).get_spToPersonUid_4lywqu_k$ = function () { return this.spToPersonUid_1; }; protoOf(SystemPermission).set_spToGroupUid_t5o8aw_k$ = function (_set____db54di) { this.spToGroupUid_1 = _set____db54di; }; protoOf(SystemPermission).get_spToGroupUid_gxogaa_k$ = function () { return this.spToGroupUid_1; }; protoOf(SystemPermission).set_spPermissionsFlag_5hgv3s_k$ = function (_set____db54di) { this.spPermissionsFlag_1 = _set____db54di; }; protoOf(SystemPermission).get_spPermissionsFlag_6fqv1y_k$ = function () { return this.spPermissionsFlag_1; }; protoOf(SystemPermission).set_spLastModified_4ht86z_k$ = function (_set____db54di) { this.spLastModified_1 = _set____db54di; }; protoOf(SystemPermission).get_spLastModified_fvvr0b_k$ = function () { return this.spLastModified_1; }; protoOf(SystemPermission).set_spIsDeleted_kdad5s_k$ = function (_set____db54di) { this.spIsDeleted_1 = _set____db54di; }; protoOf(SystemPermission).get_spIsDeleted_owiz07_k$ = function () { return this.spIsDeleted_1; }; protoOf(SystemPermission).component1_7eebsc_k$ = function () { return this.spUid_1; }; protoOf(SystemPermission).component2_7eebsb_k$ = function () { return this.spToPersonUid_1; }; protoOf(SystemPermission).component3_7eebsa_k$ = function () { return this.spToGroupUid_1; }; protoOf(SystemPermission).component4_7eebs9_k$ = function () { return this.spPermissionsFlag_1; }; protoOf(SystemPermission).component5_7eebs8_k$ = function () { return this.spLastModified_1; }; protoOf(SystemPermission).component6_7eebs7_k$ = function () { return this.spIsDeleted_1; }; protoOf(SystemPermission).copy_l1jrfw_k$ = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) { return new SystemPermission(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted); }; protoOf(SystemPermission).copy$default_6nx3nb_k$ = function (spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted, $super) { spUid = spUid === VOID ? this.spUid_1 : spUid; spToPersonUid = spToPersonUid === VOID ? this.spToPersonUid_1 : spToPersonUid; spToGroupUid = spToGroupUid === VOID ? this.spToGroupUid_1 : spToGroupUid; spPermissionsFlag = spPermissionsFlag === VOID ? this.spPermissionsFlag_1 : spPermissionsFlag; spLastModified = spLastModified === VOID ? this.spLastModified_1 : spLastModified; spIsDeleted = spIsDeleted === VOID ? this.spIsDeleted_1 : spIsDeleted; return $super === VOID ? this.copy_l1jrfw_k$(spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted) : $super.copy_l1jrfw_k$.call(this, spUid, spToPersonUid, spToGroupUid, spPermissionsFlag, spLastModified, spIsDeleted); }; protoOf(SystemPermission).toString = function () { return 'SystemPermission(spUid=' + this.spUid_1.toString() + ', spToPersonUid=' + this.spToPersonUid_1.toString() + ', spToGroupUid=' + this.spToGroupUid_1.toString() + ', spPermissionsFlag=' + this.spPermissionsFlag_1.toString() + ', spLastModified=' + this.spLastModified_1.toString() + ', spIsDeleted=' + this.spIsDeleted_1 + ')'; }; protoOf(SystemPermission).hashCode = function () { var result = this.spUid_1.hashCode(); result = imul(result, 31) + this.spToPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.spToGroupUid_1.hashCode() | 0; result = imul(result, 31) + this.spPermissionsFlag_1.hashCode() | 0; result = imul(result, 31) + this.spLastModified_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.spIsDeleted_1) | 0; return result; }; protoOf(SystemPermission).equals = function (other) { if (this === other) return true; if (!(other instanceof SystemPermission)) return false; var tmp0_other_with_cast = other instanceof SystemPermission ? other : THROW_CCE(); if (!this.spUid_1.equals(tmp0_other_with_cast.spUid_1)) return false; if (!this.spToPersonUid_1.equals(tmp0_other_with_cast.spToPersonUid_1)) return false; if (!this.spToGroupUid_1.equals(tmp0_other_with_cast.spToGroupUid_1)) return false; if (!this.spPermissionsFlag_1.equals(tmp0_other_with_cast.spPermissionsFlag_1)) return false; if (!this.spLastModified_1.equals(tmp0_other_with_cast.spLastModified_1)) return false; if (!(this.spIsDeleted_1 === tmp0_other_with_cast.spIsDeleted_1)) return false; return true; }; function Companion_128() { Companion_instance_128 = this; this.TABLE_ID_1 = 1081; this.TYPE_BLOB_UPLOAD_1 = 1; this.TYPE_DOWNLOAD_1 = 2; this.CREATION_TYPE_USER_1 = 1; this.CREATION_TYPE_UPDATE_1 = 2; } protoOf(Companion_128).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_128).get_TYPE_BLOB_UPLOAD_1cnl5l_k$ = function () { return this.TYPE_BLOB_UPLOAD_1; }; protoOf(Companion_128).get_TYPE_DOWNLOAD_c9nsjg_k$ = function () { return this.TYPE_DOWNLOAD_1; }; protoOf(Companion_128).get_CREATION_TYPE_USER_usdnhj_k$ = function () { return this.CREATION_TYPE_USER_1; }; protoOf(Companion_128).get_CREATION_TYPE_UPDATE_w9ulhz_k$ = function () { return this.CREATION_TYPE_UPDATE_1; }; protoOf(Companion_128).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_124(); }; var Companion_instance_128; function Companion_getInstance_132() { if (Companion_instance_128 == null) new Companion_128(); return Companion_instance_128; } function $serializer_124() { $serializer_instance_124 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJob', this, 10); tmp0_serialDesc.addElement_5pzumi_k$('tjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjType', true); tmp0_serialDesc.addElement_5pzumi_k$('tjStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('tjName', true); tmp0_serialDesc.addElement_5pzumi_k$('tjUuid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjTableId', true); tmp0_serialDesc.addElement_5pzumi_k$('tjEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjTimeCreated', true); tmp0_serialDesc.addElement_5pzumi_k$('tjCreationType', true); tmp0_serialDesc.addElement_5pzumi_k$('tjOiUid', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_124).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_124).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_124).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = 0; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = 0; var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = 0; var tmp13_local9 = new Long(0, 0); var tmp14_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp14_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; } else while (tmp1_flag) { tmp2_index = tmp14_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp14_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp14_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp14_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp14_input.endStructure_1xqz0n_k$(tmp0_desc); return TransferJob_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_124).serialize_72h18_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tjUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.tjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tjType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.tjType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.tjStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.tjStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.tjName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.tjName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tjUuid_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.tjUuid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.tjTableId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 5, value.tjTableId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.tjEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.tjEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.tjTimeCreated_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.tjTimeCreated_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.tjCreationType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.tjCreationType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.tjOiUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.tjOiUid_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_124).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_72h18_k$(encoder, value instanceof TransferJob ? value : THROW_CCE()); }; var $serializer_instance_124; function $serializer_getInstance_124() { if ($serializer_instance_124 == null) new $serializer_124(); return $serializer_instance_124; } function TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_124().descriptor_1); } if (0 === (seen1 & 1)) $this.tjUid_1 = 0; else $this.tjUid_1 = tjUid; if (0 === (seen1 & 2)) $this.tjType_1 = 0; else $this.tjType_1 = tjType; if (0 === (seen1 & 4)) $this.tjStatus_1 = 0; else $this.tjStatus_1 = tjStatus; if (0 === (seen1 & 8)) $this.tjName_1 = null; else $this.tjName_1 = tjName; if (0 === (seen1 & 16)) $this.tjUuid_1 = null; else $this.tjUuid_1 = tjUuid; if (0 === (seen1 & 32)) $this.tjTableId_1 = 0; else $this.tjTableId_1 = tjTableId; if (0 === (seen1 & 64)) $this.tjEntityUid_1 = new Long(0, 0); else $this.tjEntityUid_1 = tjEntityUid; if (0 === (seen1 & 128)) $this.tjTimeCreated_1 = new Long(0, 0); else $this.tjTimeCreated_1 = tjTimeCreated; if (0 === (seen1 & 256)) $this.tjCreationType_1 = 0; else $this.tjCreationType_1 = tjCreationType; if (0 === (seen1 & 512)) $this.tjOiUid_1 = new Long(0, 0); else $this.tjOiUid_1 = tjOiUid; return $this; } function TransferJob_init_$Create$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker) { return TransferJob_init_$Init$(seen1, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, serializationConstructorMarker, objectCreate(protoOf(TransferJob))); } function TransferJob(tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) { Companion_getInstance_132(); tjUid = tjUid === VOID ? 0 : tjUid; tjType = tjType === VOID ? 0 : tjType; tjStatus = tjStatus === VOID ? 0 : tjStatus; tjName = tjName === VOID ? null : tjName; tjUuid = tjUuid === VOID ? null : tjUuid; tjTableId = tjTableId === VOID ? 0 : tjTableId; tjEntityUid = tjEntityUid === VOID ? new Long(0, 0) : tjEntityUid; tjTimeCreated = tjTimeCreated === VOID ? new Long(0, 0) : tjTimeCreated; tjCreationType = tjCreationType === VOID ? 0 : tjCreationType; tjOiUid = tjOiUid === VOID ? new Long(0, 0) : tjOiUid; this.tjUid_1 = tjUid; this.tjType_1 = tjType; this.tjStatus_1 = tjStatus; this.tjName_1 = tjName; this.tjUuid_1 = tjUuid; this.tjTableId_1 = tjTableId; this.tjEntityUid_1 = tjEntityUid; this.tjTimeCreated_1 = tjTimeCreated; this.tjCreationType_1 = tjCreationType; this.tjOiUid_1 = tjOiUid; } protoOf(TransferJob).set_tjUid_n5ffgr_k$ = function (_set____db54di) { this.tjUid_1 = _set____db54di; }; protoOf(TransferJob).get_tjUid_iz32s1_k$ = function () { return this.tjUid_1; }; protoOf(TransferJob).set_tjType_7mlacb_k$ = function (_set____db54di) { this.tjType_1 = _set____db54di; }; protoOf(TransferJob).get_tjType_jyqnkp_k$ = function () { return this.tjType_1; }; protoOf(TransferJob).set_tjStatus_83krdv_k$ = function (_set____db54di) { this.tjStatus_1 = _set____db54di; }; protoOf(TransferJob).get_tjStatus_7h2pxt_k$ = function () { return this.tjStatus_1; }; protoOf(TransferJob).set_tjName_x53ltz_k$ = function (_set____db54di) { this.tjName_1 = _set____db54di; }; protoOf(TransferJob).get_tjName_jymbsa_k$ = function () { return this.tjName_1; }; protoOf(TransferJob).set_tjUuid_13if7t_k$ = function (_set____db54di) { this.tjUuid_1 = _set____db54di; }; protoOf(TransferJob).get_tjUuid_jyr7fe_k$ = function () { return this.tjUuid_1; }; protoOf(TransferJob).set_tjTableId_qxjmxa_k$ = function (_set____db54di) { this.tjTableId_1 = _set____db54di; }; protoOf(TransferJob).get_tjTableId_oaxytm_k$ = function () { return this.tjTableId_1; }; protoOf(TransferJob).set_tjEntityUid_kykjj0_k$ = function (_set____db54di) { this.tjEntityUid_1 = _set____db54di; }; protoOf(TransferJob).get_tjEntityUid_7lvr5a_k$ = function () { return this.tjEntityUid_1; }; protoOf(TransferJob).set_tjTimeCreated_pcsbey_k$ = function (_set____db54di) { this.tjTimeCreated_1 = _set____db54di; }; protoOf(TransferJob).get_tjTimeCreated_2k23fg_k$ = function () { return this.tjTimeCreated_1; }; protoOf(TransferJob).set_tjCreationType_weqt38_k$ = function (_set____db54di) { this.tjCreationType_1 = _set____db54di; }; protoOf(TransferJob).get_tjCreationType_1atu3s_k$ = function () { return this.tjCreationType_1; }; protoOf(TransferJob).set_tjOiUid_oaj4ez_k$ = function (_set____db54di) { this.tjOiUid_1 = _set____db54di; }; protoOf(TransferJob).get_tjOiUid_kg3xk9_k$ = function () { return this.tjOiUid_1; }; protoOf(TransferJob).component1_7eebsc_k$ = function () { return this.tjUid_1; }; protoOf(TransferJob).component2_7eebsb_k$ = function () { return this.tjType_1; }; protoOf(TransferJob).component3_7eebsa_k$ = function () { return this.tjStatus_1; }; protoOf(TransferJob).component4_7eebs9_k$ = function () { return this.tjName_1; }; protoOf(TransferJob).component5_7eebs8_k$ = function () { return this.tjUuid_1; }; protoOf(TransferJob).component6_7eebs7_k$ = function () { return this.tjTableId_1; }; protoOf(TransferJob).component7_7eebs6_k$ = function () { return this.tjEntityUid_1; }; protoOf(TransferJob).component8_7eebs5_k$ = function () { return this.tjTimeCreated_1; }; protoOf(TransferJob).component9_7eebs4_k$ = function () { return this.tjCreationType_1; }; protoOf(TransferJob).component10_gazzfo_k$ = function () { return this.tjOiUid_1; }; protoOf(TransferJob).copy_c6i0x3_k$ = function (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) { return new TransferJob(tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid); }; protoOf(TransferJob).copy$default_rt3x2u_k$ = function (tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid, $super) { tjUid = tjUid === VOID ? this.tjUid_1 : tjUid; tjType = tjType === VOID ? this.tjType_1 : tjType; tjStatus = tjStatus === VOID ? this.tjStatus_1 : tjStatus; tjName = tjName === VOID ? this.tjName_1 : tjName; tjUuid = tjUuid === VOID ? this.tjUuid_1 : tjUuid; tjTableId = tjTableId === VOID ? this.tjTableId_1 : tjTableId; tjEntityUid = tjEntityUid === VOID ? this.tjEntityUid_1 : tjEntityUid; tjTimeCreated = tjTimeCreated === VOID ? this.tjTimeCreated_1 : tjTimeCreated; tjCreationType = tjCreationType === VOID ? this.tjCreationType_1 : tjCreationType; tjOiUid = tjOiUid === VOID ? this.tjOiUid_1 : tjOiUid; return $super === VOID ? this.copy_c6i0x3_k$(tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid) : $super.copy_c6i0x3_k$.call(this, tjUid, tjType, tjStatus, tjName, tjUuid, tjTableId, tjEntityUid, tjTimeCreated, tjCreationType, tjOiUid); }; protoOf(TransferJob).toString = function () { return 'TransferJob(tjUid=' + this.tjUid_1 + ', tjType=' + this.tjType_1 + ', tjStatus=' + this.tjStatus_1 + ', tjName=' + this.tjName_1 + ', tjUuid=' + this.tjUuid_1 + ', tjTableId=' + this.tjTableId_1 + ', tjEntityUid=' + this.tjEntityUid_1.toString() + ', tjTimeCreated=' + this.tjTimeCreated_1.toString() + ', tjCreationType=' + this.tjCreationType_1 + ', tjOiUid=' + this.tjOiUid_1.toString() + ')'; }; protoOf(TransferJob).hashCode = function () { var result = this.tjUid_1; result = imul(result, 31) + this.tjType_1 | 0; result = imul(result, 31) + this.tjStatus_1 | 0; result = imul(result, 31) + (this.tjName_1 == null ? 0 : getStringHashCode(this.tjName_1)) | 0; result = imul(result, 31) + (this.tjUuid_1 == null ? 0 : getStringHashCode(this.tjUuid_1)) | 0; result = imul(result, 31) + this.tjTableId_1 | 0; result = imul(result, 31) + this.tjEntityUid_1.hashCode() | 0; result = imul(result, 31) + this.tjTimeCreated_1.hashCode() | 0; result = imul(result, 31) + this.tjCreationType_1 | 0; result = imul(result, 31) + this.tjOiUid_1.hashCode() | 0; return result; }; protoOf(TransferJob).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJob)) return false; var tmp0_other_with_cast = other instanceof TransferJob ? other : THROW_CCE(); if (!(this.tjUid_1 === tmp0_other_with_cast.tjUid_1)) return false; if (!(this.tjType_1 === tmp0_other_with_cast.tjType_1)) return false; if (!(this.tjStatus_1 === tmp0_other_with_cast.tjStatus_1)) return false; if (!(this.tjName_1 == tmp0_other_with_cast.tjName_1)) return false; if (!(this.tjUuid_1 == tmp0_other_with_cast.tjUuid_1)) return false; if (!(this.tjTableId_1 === tmp0_other_with_cast.tjTableId_1)) return false; if (!this.tjEntityUid_1.equals(tmp0_other_with_cast.tjEntityUid_1)) return false; if (!this.tjTimeCreated_1.equals(tmp0_other_with_cast.tjTimeCreated_1)) return false; if (!(this.tjCreationType_1 === tmp0_other_with_cast.tjCreationType_1)) return false; if (!this.tjOiUid_1.equals(tmp0_other_with_cast.tjOiUid_1)) return false; return true; }; function Companion_129() { Companion_instance_129 = this; } protoOf(Companion_129).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_125(); }; var Companion_instance_129; function Companion_getInstance_133() { if (Companion_instance_129 == null) new Companion_129(); return Companion_instance_129; } function $serializer_125() { $serializer_instance_125 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobError', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('tjeId', true); tmp0_serialDesc.addElement_5pzumi_k$('tjeTjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjeTime', true); tmp0_serialDesc.addElement_5pzumi_k$('tjeErrorStr', true); tmp0_serialDesc.addElement_5pzumi_k$('tjeDismissed', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_125).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_125).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_125).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = null; var tmp8_local4 = false; var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return TransferJobError_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_125).serialize_db2s82_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tjeId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.tjeId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tjeTjUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.tjeTjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.tjeTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.tjeTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.tjeErrorStr_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.tjeErrorStr_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tjeDismissed_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 4, value.tjeDismissed_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_125).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_db2s82_k$(encoder, value instanceof TransferJobError ? value : THROW_CCE()); }; var $serializer_instance_125; function $serializer_getInstance_125() { if ($serializer_instance_125 == null) new $serializer_125(); return $serializer_instance_125; } function TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_125().descriptor_1); } if (0 === (seen1 & 1)) $this.tjeId_1 = 0; else $this.tjeId_1 = tjeId; if (0 === (seen1 & 2)) $this.tjeTjUid_1 = 0; else $this.tjeTjUid_1 = tjeTjUid; if (0 === (seen1 & 4)) $this.tjeTime_1 = new Long(0, 0); else $this.tjeTime_1 = tjeTime; if (0 === (seen1 & 8)) $this.tjeErrorStr_1 = null; else $this.tjeErrorStr_1 = tjeErrorStr; if (0 === (seen1 & 16)) $this.tjeDismissed_1 = false; else $this.tjeDismissed_1 = tjeDismissed; return $this; } function TransferJobError_init_$Create$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker) { return TransferJobError_init_$Init$(seen1, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, serializationConstructorMarker, objectCreate(protoOf(TransferJobError))); } function TransferJobError(tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) { Companion_getInstance_133(); tjeId = tjeId === VOID ? 0 : tjeId; tjeTjUid = tjeTjUid === VOID ? 0 : tjeTjUid; tjeTime = tjeTime === VOID ? new Long(0, 0) : tjeTime; tjeErrorStr = tjeErrorStr === VOID ? null : tjeErrorStr; tjeDismissed = tjeDismissed === VOID ? false : tjeDismissed; this.tjeId_1 = tjeId; this.tjeTjUid_1 = tjeTjUid; this.tjeTime_1 = tjeTime; this.tjeErrorStr_1 = tjeErrorStr; this.tjeDismissed_1 = tjeDismissed; } protoOf(TransferJobError).set_tjeId_6xtfx7_k$ = function (_set____db54di) { this.tjeId_1 = _set____db54di; }; protoOf(TransferJobError).get_tjeId_iz3dvl_k$ = function () { return this.tjeId_1; }; protoOf(TransferJobError).set_tjeTjUid_v9j1hc_k$ = function (_set____db54di) { this.tjeTjUid_1 = _set____db54di; }; protoOf(TransferJobError).get_tjeTjUid_fifln8_k$ = function () { return this.tjeTjUid_1; }; protoOf(TransferJobError).set_tjeTime_zfk0cf_k$ = function (_set____db54di) { this.tjeTime_1 = _set____db54di; }; protoOf(TransferJobError).get_tjeTime_k4dgb1_k$ = function () { return this.tjeTime_1; }; protoOf(TransferJobError).set_tjeErrorStr_i9bjvg_k$ = function (_set____db54di) { this.tjeErrorStr_1 = _set____db54di; }; protoOf(TransferJobError).get_tjeErrorStr_ox66c1_k$ = function () { return this.tjeErrorStr_1; }; protoOf(TransferJobError).set_tjeDismissed_xr611e_k$ = function (_set____db54di) { this.tjeDismissed_1 = _set____db54di; }; protoOf(TransferJobError).get_tjeDismissed_5yod8j_k$ = function () { return this.tjeDismissed_1; }; protoOf(TransferJobError).component1_7eebsc_k$ = function () { return this.tjeId_1; }; protoOf(TransferJobError).component2_7eebsb_k$ = function () { return this.tjeTjUid_1; }; protoOf(TransferJobError).component3_7eebsa_k$ = function () { return this.tjeTime_1; }; protoOf(TransferJobError).component4_7eebs9_k$ = function () { return this.tjeErrorStr_1; }; protoOf(TransferJobError).component5_7eebs8_k$ = function () { return this.tjeDismissed_1; }; protoOf(TransferJobError).copy_crg4cz_k$ = function (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) { return new TransferJobError(tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed); }; protoOf(TransferJobError).copy$default_averf7_k$ = function (tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed, $super) { tjeId = tjeId === VOID ? this.tjeId_1 : tjeId; tjeTjUid = tjeTjUid === VOID ? this.tjeTjUid_1 : tjeTjUid; tjeTime = tjeTime === VOID ? this.tjeTime_1 : tjeTime; tjeErrorStr = tjeErrorStr === VOID ? this.tjeErrorStr_1 : tjeErrorStr; tjeDismissed = tjeDismissed === VOID ? this.tjeDismissed_1 : tjeDismissed; return $super === VOID ? this.copy_crg4cz_k$(tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed) : $super.copy_crg4cz_k$.call(this, tjeId, tjeTjUid, tjeTime, tjeErrorStr, tjeDismissed); }; protoOf(TransferJobError).toString = function () { return 'TransferJobError(tjeId=' + this.tjeId_1 + ', tjeTjUid=' + this.tjeTjUid_1 + ', tjeTime=' + this.tjeTime_1.toString() + ', tjeErrorStr=' + this.tjeErrorStr_1 + ', tjeDismissed=' + this.tjeDismissed_1 + ')'; }; protoOf(TransferJobError).hashCode = function () { var result = this.tjeId_1; result = imul(result, 31) + this.tjeTjUid_1 | 0; result = imul(result, 31) + this.tjeTime_1.hashCode() | 0; result = imul(result, 31) + (this.tjeErrorStr_1 == null ? 0 : getStringHashCode(this.tjeErrorStr_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.tjeDismissed_1) | 0; return result; }; protoOf(TransferJobError).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobError)) return false; var tmp0_other_with_cast = other instanceof TransferJobError ? other : THROW_CCE(); if (!(this.tjeId_1 === tmp0_other_with_cast.tjeId_1)) return false; if (!(this.tjeTjUid_1 === tmp0_other_with_cast.tjeTjUid_1)) return false; if (!this.tjeTime_1.equals(tmp0_other_with_cast.tjeTime_1)) return false; if (!(this.tjeErrorStr_1 == tmp0_other_with_cast.tjeErrorStr_1)) return false; if (!(this.tjeDismissed_1 === tmp0_other_with_cast.tjeDismissed_1)) return false; return true; }; function Companion_130() { Companion_instance_130 = this; } protoOf(Companion_130).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_126(); }; var Companion_instance_130; function Companion_getInstance_134() { if (Companion_instance_130 == null) new Companion_130(); return Companion_instance_130; } function $serializer_126() { $serializer_instance_126 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.TransferJobItem', this, 14); tmp0_serialDesc.addElement_5pzumi_k$('tjiUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiTjUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjTotalSize', true); tmp0_serialDesc.addElement_5pzumi_k$('tjTransferred', true); tmp0_serialDesc.addElement_5pzumi_k$('tjAttemptCount', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiSrc', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiDest', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiType', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiTableId', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiEntityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiEntityEtag', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiLockIdToRelease', true); tmp0_serialDesc.addElement_5pzumi_k$('tjiPartialTmpFile', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_126).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_126).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_126).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = 0; var tmp5_local1 = 0; var tmp6_local2 = new Long(0, 0); var tmp7_local3 = new Long(0, 0); var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = 0; var tmp13_local9 = 0; var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = new Long(0, 0); var tmp17_local13 = null; var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp18_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); return TransferJobItem_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, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_126).serialize_12gi7d_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !(value.tjiUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 0, value.tjiUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.tjiTjUid_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 1, value.tjiTjUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.tjTotalSize_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.tjTotalSize_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.tjTransferred_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.tjTransferred_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.tjAttemptCount_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.tjAttemptCount_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.tjiSrc_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.tjiSrc_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.tjiDest_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.tjiDest_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.tjiType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.tjiType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.tjiStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 8, value.tjiStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.tjiTableId_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.tjiTableId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.tjiEntityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.tjiEntityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.tjiEntityEtag_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.tjiEntityEtag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !value.tjiLockIdToRelease_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 12, value.tjiLockIdToRelease_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.tjiPartialTmpFile_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, StringSerializer_getInstance(), value.tjiPartialTmpFile_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_126).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_12gi7d_k$(encoder, value instanceof TransferJobItem ? value : THROW_CCE()); }; var $serializer_instance_126; function $serializer_getInstance_126() { if ($serializer_instance_126 == null) new $serializer_126(); return $serializer_instance_126; } function TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_126().descriptor_1); } if (0 === (seen1 & 1)) $this.tjiUid_1 = 0; else $this.tjiUid_1 = tjiUid; if (0 === (seen1 & 2)) $this.tjiTjUid_1 = 0; else $this.tjiTjUid_1 = tjiTjUid; if (0 === (seen1 & 4)) $this.tjTotalSize_1 = new Long(0, 0); else $this.tjTotalSize_1 = tjTotalSize; if (0 === (seen1 & 8)) $this.tjTransferred_1 = new Long(0, 0); else $this.tjTransferred_1 = tjTransferred; if (0 === (seen1 & 16)) $this.tjAttemptCount_1 = 0; else $this.tjAttemptCount_1 = tjAttemptCount; if (0 === (seen1 & 32)) $this.tjiSrc_1 = null; else $this.tjiSrc_1 = tjiSrc; if (0 === (seen1 & 64)) $this.tjiDest_1 = null; else $this.tjiDest_1 = tjiDest; if (0 === (seen1 & 128)) $this.tjiType_1 = 0; else $this.tjiType_1 = tjiType; if (0 === (seen1 & 256)) $this.tjiStatus_1 = 0; else $this.tjiStatus_1 = tjiStatus; if (0 === (seen1 & 512)) $this.tjiTableId_1 = 0; else $this.tjiTableId_1 = tjiTableId; if (0 === (seen1 & 1024)) $this.tjiEntityUid_1 = new Long(0, 0); else $this.tjiEntityUid_1 = tjiEntityUid; if (0 === (seen1 & 2048)) $this.tjiEntityEtag_1 = new Long(0, 0); else $this.tjiEntityEtag_1 = tjiEntityEtag; if (0 === (seen1 & 4096)) $this.tjiLockIdToRelease_1 = new Long(0, 0); else $this.tjiLockIdToRelease_1 = tjiLockIdToRelease; if (0 === (seen1 & 8192)) $this.tjiPartialTmpFile_1 = null; else $this.tjiPartialTmpFile_1 = tjiPartialTmpFile; return $this; } function TransferJobItem_init_$Create$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker) { return TransferJobItem_init_$Init$(seen1, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, serializationConstructorMarker, objectCreate(protoOf(TransferJobItem))); } function TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) { Companion_getInstance_134(); tjiUid = tjiUid === VOID ? 0 : tjiUid; tjiTjUid = tjiTjUid === VOID ? 0 : tjiTjUid; tjTotalSize = tjTotalSize === VOID ? new Long(0, 0) : tjTotalSize; tjTransferred = tjTransferred === VOID ? new Long(0, 0) : tjTransferred; tjAttemptCount = tjAttemptCount === VOID ? 0 : tjAttemptCount; tjiSrc = tjiSrc === VOID ? null : tjiSrc; tjiDest = tjiDest === VOID ? null : tjiDest; tjiType = tjiType === VOID ? 0 : tjiType; tjiStatus = tjiStatus === VOID ? 0 : tjiStatus; tjiTableId = tjiTableId === VOID ? 0 : tjiTableId; tjiEntityUid = tjiEntityUid === VOID ? new Long(0, 0) : tjiEntityUid; tjiEntityEtag = tjiEntityEtag === VOID ? new Long(0, 0) : tjiEntityEtag; tjiLockIdToRelease = tjiLockIdToRelease === VOID ? new Long(0, 0) : tjiLockIdToRelease; tjiPartialTmpFile = tjiPartialTmpFile === VOID ? null : tjiPartialTmpFile; this.tjiUid_1 = tjiUid; this.tjiTjUid_1 = tjiTjUid; this.tjTotalSize_1 = tjTotalSize; this.tjTransferred_1 = tjTransferred; this.tjAttemptCount_1 = tjAttemptCount; this.tjiSrc_1 = tjiSrc; this.tjiDest_1 = tjiDest; this.tjiType_1 = tjiType; this.tjiStatus_1 = tjiStatus; this.tjiTableId_1 = tjiTableId; this.tjiEntityUid_1 = tjiEntityUid; this.tjiEntityEtag_1 = tjiEntityEtag; this.tjiLockIdToRelease_1 = tjiLockIdToRelease; this.tjiPartialTmpFile_1 = tjiPartialTmpFile; } protoOf(TransferJobItem).set_tjiUid_myc2qa_k$ = function (_set____db54di) { this.tjiUid_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiUid_jz3bfq_k$ = function () { return this.tjiUid_1; }; protoOf(TransferJobItem).set_tjiTjUid_udatks_k$ = function (_set____db54di) { this.tjiTjUid_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiTjUid_hem380_k$ = function () { return this.tjiTjUid_1; }; protoOf(TransferJobItem).set_tjTotalSize_7pxuqc_k$ = function (_set____db54di) { this.tjTotalSize_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjTotalSize_ab321y_k$ = function () { return this.tjTotalSize_1; }; protoOf(TransferJobItem).set_tjTransferred_3nl9gr_k$ = function (_set____db54di) { this.tjTransferred_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjTransferred_bpsx1j_k$ = function () { return this.tjTransferred_1; }; protoOf(TransferJobItem).set_tjAttemptCount_igjael_k$ = function (_set____db54di) { this.tjAttemptCount_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjAttemptCount_ojcg69_k$ = function () { return this.tjAttemptCount_1; }; protoOf(TransferJobItem).set_tjiSrc_jzibvt_k$ = function (_set____db54di) { this.tjiSrc_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiSrc_jz3a62_k$ = function () { return this.tjiSrc_1; }; protoOf(TransferJobItem).set_tjiDest_cnj5xd_k$ = function (_set____db54di) { this.tjiDest_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiDest_k2gkj8_k$ = function () { return this.tjiDest_1; }; protoOf(TransferJobItem).set_tjiType_zua7c_k$ = function (_set____db54di) { this.tjiType_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiType_k25xzw_k$ = function () { return this.tjiType_1; }; protoOf(TransferJobItem).set_tjiStatus_vw3q8w_k$ = function (_set____db54di) { this.tjiStatus_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiStatus_sz7fvo_k$ = function () { return this.tjiStatus_1; }; protoOf(TransferJobItem).set_tjiTableId_bnu1h_k$ = function (_set____db54di) { this.tjiTableId_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiTableId_urzu1r_k$ = function () { return this.tjiTableId_1; }; protoOf(TransferJobItem).set_tjiEntityUid_rwqonb_k$ = function (_set____db54di) { this.tjiEntityUid_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiEntityUid_lx6if1_k$ = function () { return this.tjiEntityUid_1; }; protoOf(TransferJobItem).set_tjiEntityEtag_l7x60g_k$ = function (_set____db54di) { this.tjiEntityEtag_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiEntityEtag_uq8p6q_k$ = function () { return this.tjiEntityEtag_1; }; protoOf(TransferJobItem).set_tjiLockIdToRelease_gx0a0i_k$ = function (_set____db54di) { this.tjiLockIdToRelease_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiLockIdToRelease_peqr38_k$ = function () { return this.tjiLockIdToRelease_1; }; protoOf(TransferJobItem).set_tjiPartialTmpFile_3ekqa9_k$ = function (_set____db54di) { this.tjiPartialTmpFile_1 = _set____db54di; }; protoOf(TransferJobItem).get_tjiPartialTmpFile_vfy1es_k$ = function () { return this.tjiPartialTmpFile_1; }; protoOf(TransferJobItem).component1_7eebsc_k$ = function () { return this.tjiUid_1; }; protoOf(TransferJobItem).component2_7eebsb_k$ = function () { return this.tjiTjUid_1; }; protoOf(TransferJobItem).component3_7eebsa_k$ = function () { return this.tjTotalSize_1; }; protoOf(TransferJobItem).component4_7eebs9_k$ = function () { return this.tjTransferred_1; }; protoOf(TransferJobItem).component5_7eebs8_k$ = function () { return this.tjAttemptCount_1; }; protoOf(TransferJobItem).component6_7eebs7_k$ = function () { return this.tjiSrc_1; }; protoOf(TransferJobItem).component7_7eebs6_k$ = function () { return this.tjiDest_1; }; protoOf(TransferJobItem).component8_7eebs5_k$ = function () { return this.tjiType_1; }; protoOf(TransferJobItem).component9_7eebs4_k$ = function () { return this.tjiStatus_1; }; protoOf(TransferJobItem).component10_gazzfo_k$ = function () { return this.tjiTableId_1; }; protoOf(TransferJobItem).component11_gazzfn_k$ = function () { return this.tjiEntityUid_1; }; protoOf(TransferJobItem).component12_gazzfm_k$ = function () { return this.tjiEntityEtag_1; }; protoOf(TransferJobItem).component13_gazzfl_k$ = function () { return this.tjiLockIdToRelease_1; }; protoOf(TransferJobItem).component14_gazzfk_k$ = function () { return this.tjiPartialTmpFile_1; }; protoOf(TransferJobItem).copy_rsjlo_k$ = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) { return new TransferJobItem(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile); }; protoOf(TransferJobItem).copy$default_dgkv9y_k$ = function (tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile, $super) { tjiUid = tjiUid === VOID ? this.tjiUid_1 : tjiUid; tjiTjUid = tjiTjUid === VOID ? this.tjiTjUid_1 : tjiTjUid; tjTotalSize = tjTotalSize === VOID ? this.tjTotalSize_1 : tjTotalSize; tjTransferred = tjTransferred === VOID ? this.tjTransferred_1 : tjTransferred; tjAttemptCount = tjAttemptCount === VOID ? this.tjAttemptCount_1 : tjAttemptCount; tjiSrc = tjiSrc === VOID ? this.tjiSrc_1 : tjiSrc; tjiDest = tjiDest === VOID ? this.tjiDest_1 : tjiDest; tjiType = tjiType === VOID ? this.tjiType_1 : tjiType; tjiStatus = tjiStatus === VOID ? this.tjiStatus_1 : tjiStatus; tjiTableId = tjiTableId === VOID ? this.tjiTableId_1 : tjiTableId; tjiEntityUid = tjiEntityUid === VOID ? this.tjiEntityUid_1 : tjiEntityUid; tjiEntityEtag = tjiEntityEtag === VOID ? this.tjiEntityEtag_1 : tjiEntityEtag; tjiLockIdToRelease = tjiLockIdToRelease === VOID ? this.tjiLockIdToRelease_1 : tjiLockIdToRelease; tjiPartialTmpFile = tjiPartialTmpFile === VOID ? this.tjiPartialTmpFile_1 : tjiPartialTmpFile; return $super === VOID ? this.copy_rsjlo_k$(tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile) : $super.copy_rsjlo_k$.call(this, tjiUid, tjiTjUid, tjTotalSize, tjTransferred, tjAttemptCount, tjiSrc, tjiDest, tjiType, tjiStatus, tjiTableId, tjiEntityUid, tjiEntityEtag, tjiLockIdToRelease, tjiPartialTmpFile); }; protoOf(TransferJobItem).toString = function () { return 'TransferJobItem(tjiUid=' + this.tjiUid_1 + ', tjiTjUid=' + this.tjiTjUid_1 + ', tjTotalSize=' + this.tjTotalSize_1.toString() + ', tjTransferred=' + this.tjTransferred_1.toString() + ', tjAttemptCount=' + this.tjAttemptCount_1 + ', tjiSrc=' + this.tjiSrc_1 + ', tjiDest=' + this.tjiDest_1 + ', tjiType=' + this.tjiType_1 + ', tjiStatus=' + this.tjiStatus_1 + ', tjiTableId=' + this.tjiTableId_1 + ', tjiEntityUid=' + this.tjiEntityUid_1.toString() + ', tjiEntityEtag=' + this.tjiEntityEtag_1.toString() + ', tjiLockIdToRelease=' + this.tjiLockIdToRelease_1.toString() + ', tjiPartialTmpFile=' + this.tjiPartialTmpFile_1 + ')'; }; protoOf(TransferJobItem).hashCode = function () { var result = this.tjiUid_1; result = imul(result, 31) + this.tjiTjUid_1 | 0; result = imul(result, 31) + this.tjTotalSize_1.hashCode() | 0; result = imul(result, 31) + this.tjTransferred_1.hashCode() | 0; result = imul(result, 31) + this.tjAttemptCount_1 | 0; result = imul(result, 31) + (this.tjiSrc_1 == null ? 0 : getStringHashCode(this.tjiSrc_1)) | 0; result = imul(result, 31) + (this.tjiDest_1 == null ? 0 : getStringHashCode(this.tjiDest_1)) | 0; result = imul(result, 31) + this.tjiType_1 | 0; result = imul(result, 31) + this.tjiStatus_1 | 0; result = imul(result, 31) + this.tjiTableId_1 | 0; result = imul(result, 31) + this.tjiEntityUid_1.hashCode() | 0; result = imul(result, 31) + this.tjiEntityEtag_1.hashCode() | 0; result = imul(result, 31) + this.tjiLockIdToRelease_1.hashCode() | 0; result = imul(result, 31) + (this.tjiPartialTmpFile_1 == null ? 0 : getStringHashCode(this.tjiPartialTmpFile_1)) | 0; return result; }; protoOf(TransferJobItem).equals = function (other) { if (this === other) return true; if (!(other instanceof TransferJobItem)) return false; var tmp0_other_with_cast = other instanceof TransferJobItem ? other : THROW_CCE(); if (!(this.tjiUid_1 === tmp0_other_with_cast.tjiUid_1)) return false; if (!(this.tjiTjUid_1 === tmp0_other_with_cast.tjiTjUid_1)) return false; if (!this.tjTotalSize_1.equals(tmp0_other_with_cast.tjTotalSize_1)) return false; if (!this.tjTransferred_1.equals(tmp0_other_with_cast.tjTransferred_1)) return false; if (!(this.tjAttemptCount_1 === tmp0_other_with_cast.tjAttemptCount_1)) return false; if (!(this.tjiSrc_1 == tmp0_other_with_cast.tjiSrc_1)) return false; if (!(this.tjiDest_1 == tmp0_other_with_cast.tjiDest_1)) return false; if (!(this.tjiType_1 === tmp0_other_with_cast.tjiType_1)) return false; if (!(this.tjiStatus_1 === tmp0_other_with_cast.tjiStatus_1)) return false; if (!(this.tjiTableId_1 === tmp0_other_with_cast.tjiTableId_1)) return false; if (!this.tjiEntityUid_1.equals(tmp0_other_with_cast.tjiEntityUid_1)) return false; if (!this.tjiEntityEtag_1.equals(tmp0_other_with_cast.tjiEntityEtag_1)) return false; if (!this.tjiLockIdToRelease_1.equals(tmp0_other_with_cast.tjiLockIdToRelease_1)) return false; if (!(this.tjiPartialTmpFile_1 == tmp0_other_with_cast.tjiPartialTmpFile_1)) return false; return true; }; function Companion_131() { Companion_instance_131 = this; } protoOf(Companion_131).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_127(); }; var Companion_instance_131; function Companion_getInstance_135() { if (Companion_instance_131 == null) new Companion_131(); return Companion_instance_131; } function $serializer_127() { $serializer_instance_127 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UidAndLabel', this, 2); tmp0_serialDesc.addElement_5pzumi_k$('uid', true); tmp0_serialDesc.addElement_5pzumi_k$('labelName', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_127).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_127).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_127).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp6_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; } else while (tmp1_flag) { tmp2_index = tmp6_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp6_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp6_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp6_input.endStructure_1xqz0n_k$(tmp0_desc); return UidAndLabel_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null); }; protoOf($serializer_127).serialize_2cmucf_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.uid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.uid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.labelName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.labelName_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_127).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_2cmucf_k$(encoder, value instanceof UidAndLabel ? value : THROW_CCE()); }; var $serializer_instance_127; function $serializer_getInstance_127() { if ($serializer_instance_127 == null) new $serializer_127(); return $serializer_instance_127; } function UidAndLabel_init_$Init$(seen1, uid, labelName, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_127().descriptor_1); } if (0 === (seen1 & 1)) $this.uid_1 = new Long(0, 0); else $this.uid_1 = uid; if (0 === (seen1 & 2)) $this.labelName_1 = null; else $this.labelName_1 = labelName; return $this; } function UidAndLabel_init_$Create$(seen1, uid, labelName, serializationConstructorMarker) { return UidAndLabel_init_$Init$(seen1, uid, labelName, serializationConstructorMarker, objectCreate(protoOf(UidAndLabel))); } function UidAndLabel() { Companion_getInstance_135(); this.uid_1 = new Long(0, 0); this.labelName_1 = null; } protoOf(UidAndLabel).set_uid_lbehe3_k$ = function (_set____db54di) { this.uid_1 = _set____db54di; }; protoOf(UidAndLabel).get_uid_18iuqh_k$ = function () { return this.uid_1; }; protoOf(UidAndLabel).set_labelName_l2tf85_k$ = function (_set____db54di) { this.labelName_1 = _set____db54di; }; protoOf(UidAndLabel).get_labelName_1jf3ey_k$ = function () { return this.labelName_1; }; function Companion_132() { Companion_instance_132 = this; } protoOf(Companion_132).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_128(); }; var Companion_instance_132; function Companion_getInstance_136() { if (Companion_instance_132 == null) new Companion_132(); return Companion_instance_132; } function $serializer_128() { $serializer_instance_128 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UmAccount', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('personUid', false); tmp0_serialDesc.addElement_5pzumi_k$('username', true); tmp0_serialDesc.addElement_5pzumi_k$('auth', true); tmp0_serialDesc.addElement_5pzumi_k$('endpointUrl', true); tmp0_serialDesc.addElement_5pzumi_k$('firstName', true); tmp0_serialDesc.addElement_5pzumi_k$('lastName', true); tmp0_serialDesc.addElement_5pzumi_k$('admin', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_128).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_128).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance()]; }; protoOf($serializer_128).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = false; var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return UmAccount_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_128).serialize_2rt7g9_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.personUid_1); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.username_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.username_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.auth_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.auth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.endpointUrl_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.endpointUrl_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.firstName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.firstName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.lastName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.lastName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.admin_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 6, value.admin_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_128).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_2rt7g9_k$(encoder, value instanceof UmAccount ? value : THROW_CCE()); }; var $serializer_instance_128; function $serializer_getInstance_128() { if ($serializer_instance_128 == null) new $serializer_128(); return $serializer_instance_128; } function UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, $this) { if (!(1 === (1 & seen1))) { throwMissingFieldException(seen1, 1, $serializer_getInstance_128().descriptor_1); } $this.personUid_1 = personUid; if (0 === (seen1 & 2)) $this.username_1 = null; else $this.username_1 = username; if (0 === (seen1 & 4)) $this.auth_1 = null; else $this.auth_1 = auth; if (0 === (seen1 & 8)) $this.endpointUrl_1 = ''; else $this.endpointUrl_1 = endpointUrl; if (0 === (seen1 & 16)) $this.firstName_1 = null; else $this.firstName_1 = firstName; if (0 === (seen1 & 32)) $this.lastName_1 = null; else $this.lastName_1 = lastName; if (0 === (seen1 & 64)) $this.admin_1 = false; else $this.admin_1 = admin; return $this; } function UmAccount_init_$Create$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker) { return UmAccount_init_$Init$(seen1, personUid, username, auth, endpointUrl, firstName, lastName, admin, serializationConstructorMarker, objectCreate(protoOf(UmAccount))); } function UmAccount(personUid, username, auth, endpointUrl, firstName, lastName, admin) { Companion_getInstance_136(); username = username === VOID ? null : username; auth = auth === VOID ? null : auth; endpointUrl = endpointUrl === VOID ? '' : endpointUrl; firstName = firstName === VOID ? null : firstName; lastName = lastName === VOID ? null : lastName; admin = admin === VOID ? false : admin; this.personUid_1 = personUid; this.username_1 = username; this.auth_1 = auth; this.endpointUrl_1 = endpointUrl; this.firstName_1 = firstName; this.lastName_1 = lastName; this.admin_1 = admin; } protoOf(UmAccount).set_personUid_j3idds_k$ = function (_set____db54di) { this.personUid_1 = _set____db54di; }; protoOf(UmAccount).get_personUid_mmhd76_k$ = function () { return this.personUid_1; }; protoOf(UmAccount).set_username_tgnlmk_k$ = function (_set____db54di) { this.username_1 = _set____db54di; }; protoOf(UmAccount).get_username_ytz5i7_k$ = function () { return this.username_1; }; protoOf(UmAccount).set_auth_b8k972_k$ = function (_set____db54di) { this.auth_1 = _set____db54di; }; protoOf(UmAccount).get_auth_woj2sx_k$ = function () { return this.auth_1; }; protoOf(UmAccount).set_endpointUrl_p5lj8z_k$ = function (_set____db54di) { this.endpointUrl_1 = _set____db54di; }; protoOf(UmAccount).get_endpointUrl_4w19sf_k$ = function () { return this.endpointUrl_1; }; protoOf(UmAccount).set_firstName_1gvsrr_k$ = function (_set____db54di) { this.firstName_1 = _set____db54di; }; protoOf(UmAccount).get_firstName_aplxv6_k$ = function () { return this.firstName_1; }; protoOf(UmAccount).set_lastName_6ukpbb_k$ = function (_set____db54di) { this.lastName_1 = _set____db54di; }; protoOf(UmAccount).get_lastName_f360wa_k$ = function () { return this.lastName_1; }; protoOf(UmAccount).set_admin_llzh0j_k$ = function (_set____db54di) { this.admin_1 = _set____db54di; }; protoOf(UmAccount).get_admin_iojndy_k$ = function () { return this.admin_1; }; protoOf(UmAccount).toPerson_v1b6fk_k$ = function () { var account = this; // Inline function 'kotlin.apply' call var this_0 = new Person(); // Inline function 'kotlin.contracts.contract' call // Inline function 'com.ustadmobile.lib.db.entities.UmAccount.toPerson.' call this_0.set_personUid_j3idds_k$(account.personUid_1); this_0.set_username_tgnlmk_k$(account.username_1); this_0.set_firstNames_audc9u_k$(account.firstName_1); this_0.set_lastName_6ukpbb_k$(account.lastName_1); this_0.set_admin_llzh0j_k$(account.admin_1); return this_0; }; protoOf(UmAccount).component1_7eebsc_k$ = function () { return this.personUid_1; }; protoOf(UmAccount).component2_7eebsb_k$ = function () { return this.username_1; }; protoOf(UmAccount).component3_7eebsa_k$ = function () { return this.auth_1; }; protoOf(UmAccount).component4_7eebs9_k$ = function () { return this.endpointUrl_1; }; protoOf(UmAccount).component5_7eebs8_k$ = function () { return this.firstName_1; }; protoOf(UmAccount).component6_7eebs7_k$ = function () { return this.lastName_1; }; protoOf(UmAccount).component7_7eebs6_k$ = function () { return this.admin_1; }; protoOf(UmAccount).copy_f98n24_k$ = function (personUid, username, auth, endpointUrl, firstName, lastName, admin) { return new UmAccount(personUid, username, auth, endpointUrl, firstName, lastName, admin); }; protoOf(UmAccount).copy$default_txjub7_k$ = function (personUid, username, auth, endpointUrl, firstName, lastName, admin, $super) { personUid = personUid === VOID ? this.personUid_1 : personUid; username = username === VOID ? this.username_1 : username; auth = auth === VOID ? this.auth_1 : auth; endpointUrl = endpointUrl === VOID ? this.endpointUrl_1 : endpointUrl; firstName = firstName === VOID ? this.firstName_1 : firstName; lastName = lastName === VOID ? this.lastName_1 : lastName; admin = admin === VOID ? this.admin_1 : admin; return $super === VOID ? this.copy_f98n24_k$(personUid, username, auth, endpointUrl, firstName, lastName, admin) : $super.copy_f98n24_k$.call(this, personUid, username, auth, endpointUrl, firstName, lastName, admin); }; protoOf(UmAccount).toString = function () { return 'UmAccount(personUid=' + this.personUid_1.toString() + ', username=' + this.username_1 + ', auth=' + this.auth_1 + ', endpointUrl=' + this.endpointUrl_1 + ', firstName=' + this.firstName_1 + ', lastName=' + this.lastName_1 + ', admin=' + this.admin_1 + ')'; }; protoOf(UmAccount).hashCode = function () { var result = this.personUid_1.hashCode(); result = imul(result, 31) + (this.username_1 == null ? 0 : getStringHashCode(this.username_1)) | 0; result = imul(result, 31) + (this.auth_1 == null ? 0 : getStringHashCode(this.auth_1)) | 0; result = imul(result, 31) + getStringHashCode(this.endpointUrl_1) | 0; result = imul(result, 31) + (this.firstName_1 == null ? 0 : getStringHashCode(this.firstName_1)) | 0; result = imul(result, 31) + (this.lastName_1 == null ? 0 : getStringHashCode(this.lastName_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.admin_1) | 0; return result; }; protoOf(UmAccount).equals = function (other) { if (this === other) return true; if (!(other instanceof UmAccount)) return false; var tmp0_other_with_cast = other instanceof UmAccount ? other : THROW_CCE(); if (!this.personUid_1.equals(tmp0_other_with_cast.personUid_1)) return false; if (!(this.username_1 == tmp0_other_with_cast.username_1)) return false; if (!(this.auth_1 == tmp0_other_with_cast.auth_1)) return false; if (!(this.endpointUrl_1 === tmp0_other_with_cast.endpointUrl_1)) return false; if (!(this.firstName_1 == tmp0_other_with_cast.firstName_1)) return false; if (!(this.lastName_1 == tmp0_other_with_cast.lastName_1)) return false; if (!(this.admin_1 === tmp0_other_with_cast.admin_1)) return false; return true; }; function Companion_133() { Companion_instance_133 = this; this.TABLE_ID_1 = 679; this.TYPE_STANDARD_1 = 1; this.TYPE_UPSTREAM_1 = 2; this.TYPE_GUEST_1 = 4; this.TYPE_TEMP_LOCAL_1 = 8; this.STATUS_ACTIVE_1 = 1; this.STATUS_NEEDS_REAUTH_1 = 2; this.STATUS_LOGGED_OUT_1 = 4; this.REASON_LOGGED_OUT_1 = 1; this.REASON_CONSENT_REVOKED_1 = 2; this.REASON_PASSWORD_CHANGED_1 = 3; } protoOf(Companion_133).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_133).get_TYPE_STANDARD_e68pvr_k$ = function () { return this.TYPE_STANDARD_1; }; protoOf(Companion_133).get_TYPE_UPSTREAM_6m7xm1_k$ = function () { return this.TYPE_UPSTREAM_1; }; protoOf(Companion_133).get_TYPE_GUEST_f1ls78_k$ = function () { return this.TYPE_GUEST_1; }; protoOf(Companion_133).get_TYPE_TEMP_LOCAL_1rarok_k$ = function () { return this.TYPE_TEMP_LOCAL_1; }; protoOf(Companion_133).get_STATUS_ACTIVE_f4k4s6_k$ = function () { return this.STATUS_ACTIVE_1; }; protoOf(Companion_133).get_STATUS_NEEDS_REAUTH_tkrndt_k$ = function () { return this.STATUS_NEEDS_REAUTH_1; }; protoOf(Companion_133).get_STATUS_LOGGED_OUT_9pijbf_k$ = function () { return this.STATUS_LOGGED_OUT_1; }; protoOf(Companion_133).get_REASON_LOGGED_OUT_kp8ov1_k$ = function () { return this.REASON_LOGGED_OUT_1; }; protoOf(Companion_133).get_REASON_CONSENT_REVOKED_7ymjif_k$ = function () { return this.REASON_CONSENT_REVOKED_1; }; protoOf(Companion_133).get_REASON_PASSWORD_CHANGED_ger7fi_k$ = function () { return this.REASON_PASSWORD_CHANGED_1; }; protoOf(Companion_133).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_129(); }; var Companion_instance_133; function Companion_getInstance_137() { if (Companion_instance_133 == null) new Companion_133(); return Companion_instance_133; } function $serializer_129() { $serializer_instance_129 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.UserSession', this, 13); tmp0_serialDesc.addElement_5pzumi_k$('usUid', true); tmp0_serialDesc.addElement_5pzumi_k$('usPcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('usLcsn', true); tmp0_serialDesc.addElement_5pzumi_k$('usLcb', true); tmp0_serialDesc.addElement_5pzumi_k$('usLct', true); tmp0_serialDesc.addElement_5pzumi_k$('usPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('usClientNodeId', true); tmp0_serialDesc.addElement_5pzumi_k$('usStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('usEndTime', true); tmp0_serialDesc.addElement_5pzumi_k$('usStatus', true); tmp0_serialDesc.addElement_5pzumi_k$('usReason', true); tmp0_serialDesc.addElement_5pzumi_k$('usAuth', true); tmp0_serialDesc.addElement_5pzumi_k$('usSessionType', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_129).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_129).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance()]; }; protoOf($serializer_129).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = new Long(0, 0); var tmp12_local8 = new Long(0, 0); var tmp13_local9 = 0; var tmp14_local10 = 0; var tmp15_local11 = null; var tmp16_local12 = 0; var tmp17_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp17_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; } else while (tmp1_flag) { tmp2_index = tmp17_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp17_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp17_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, StringSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp17_input.decodeIntElement_941u6a_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp17_input.endStructure_1xqz0n_k$(tmp0_desc); return UserSession_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, tmp16_local12, null); }; protoOf($serializer_129).serialize_otyrtp_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.usUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.usUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.usPcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.usPcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.usLcsn_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.usLcsn_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.usLcb_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.usLcb_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.usLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.usLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.usPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.usPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.usClientNodeId_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.usClientNodeId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.usStartTime_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.usStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.usEndTime_1.equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.usEndTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.usStatus_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 9, value.usStatus_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.usReason_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.usReason_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.usAuth_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, StringSerializer_getInstance(), value.usAuth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.usSessionType_1 === 1)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 12, value.usSessionType_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_129).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_otyrtp_k$(encoder, value instanceof UserSession ? value : THROW_CCE()); }; var $serializer_instance_129; function $serializer_getInstance_129() { if ($serializer_instance_129 == null) new $serializer_129(); return $serializer_instance_129; } function UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_129().descriptor_1); } if (0 === (seen1 & 1)) $this.usUid_1 = new Long(0, 0); else $this.usUid_1 = usUid; if (0 === (seen1 & 2)) $this.usPcsn_1 = new Long(0, 0); else $this.usPcsn_1 = usPcsn; if (0 === (seen1 & 4)) $this.usLcsn_1 = new Long(0, 0); else $this.usLcsn_1 = usLcsn; if (0 === (seen1 & 8)) $this.usLcb_1 = new Long(0, 0); else $this.usLcb_1 = usLcb; if (0 === (seen1 & 16)) $this.usLct_1 = new Long(0, 0); else $this.usLct_1 = usLct; if (0 === (seen1 & 32)) $this.usPersonUid_1 = new Long(0, 0); else $this.usPersonUid_1 = usPersonUid; if (0 === (seen1 & 64)) $this.usClientNodeId_1 = new Long(0, 0); else $this.usClientNodeId_1 = usClientNodeId; if (0 === (seen1 & 128)) $this.usStartTime_1 = new Long(0, 0); else $this.usStartTime_1 = usStartTime; if (0 === (seen1 & 256)) $this.usEndTime_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); else $this.usEndTime_1 = usEndTime; if (0 === (seen1 & 512)) $this.usStatus_1 = 0; else $this.usStatus_1 = usStatus; if (0 === (seen1 & 1024)) $this.usReason_1 = 0; else $this.usReason_1 = usReason; if (0 === (seen1 & 2048)) $this.usAuth_1 = null; else $this.usAuth_1 = usAuth; if (0 === (seen1 & 4096)) $this.usSessionType_1 = 1; else $this.usSessionType_1 = usSessionType; return $this; } function UserSession_init_$Create$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker) { return UserSession_init_$Init$(seen1, usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType, serializationConstructorMarker, objectCreate(protoOf(UserSession))); } function UserSession() { Companion_getInstance_137(); this.usUid_1 = new Long(0, 0); this.usPcsn_1 = new Long(0, 0); this.usLcsn_1 = new Long(0, 0); this.usLcb_1 = new Long(0, 0); this.usLct_1 = new Long(0, 0); this.usPersonUid_1 = new Long(0, 0); this.usClientNodeId_1 = new Long(0, 0); this.usStartTime_1 = new Long(0, 0); this.usEndTime_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); this.usStatus_1 = 0; this.usReason_1 = 0; this.usAuth_1 = null; this.usSessionType_1 = 1; } protoOf(UserSession).set_usUid_uz0ydl_k$ = function (_set____db54di) { this.usUid_1 = _set____db54di; }; protoOf(UserSession).get_usUid_izsm95_k$ = function () { return this.usUid_1; }; protoOf(UserSession).set_usPcsn_2whoxh_k$ = function (_set____db54di) { this.usPcsn_1 = _set____db54di; }; protoOf(UserSession).get_usPcsn_kknf4l_k$ = function () { return this.usPcsn_1; }; protoOf(UserSession).set_usLcsn_209h0x_k$ = function (_set____db54di) { this.usLcsn_1 = _set____db54di; }; protoOf(UserSession).get_usLcsn_kkkv6h_k$ = function () { return this.usLcsn_1; }; protoOf(UserSession).set_usLcb_lomlg2_k$ = function (_set____db54di) { this.usLcb_1 = _set____db54di; }; protoOf(UserSession).get_usLcb_izsffo_k$ = function () { return this.usLcb_1; }; protoOf(UserSession).set_usLct_vosbms_k$ = function (_set____db54di) { this.usLct_1 = _set____db54di; }; protoOf(UserSession).get_usLct_izsfg6_k$ = function () { return this.usLct_1; }; protoOf(UserSession).set_usPersonUid_tlsji_k$ = function (_set____db54di) { this.usPersonUid_1 = _set____db54di; }; protoOf(UserSession).get_usPersonUid_p037ak_k$ = function () { return this.usPersonUid_1; }; protoOf(UserSession).set_usClientNodeId_ydzvad_k$ = function (_set____db54di) { this.usClientNodeId_1 = _set____db54di; }; protoOf(UserSession).get_usClientNodeId_yobpw1_k$ = function () { return this.usClientNodeId_1; }; protoOf(UserSession).set_usStartTime_u7c7u2_k$ = function (_set____db54di) { this.usStartTime_1 = _set____db54di; }; protoOf(UserSession).get_usStartTime_3anvo8_k$ = function () { return this.usStartTime_1; }; protoOf(UserSession).set_usEndTime_mkqy5r_k$ = function (_set____db54di) { this.usEndTime_1 = _set____db54di; }; protoOf(UserSession).get_usEndTime_v7cna7_k$ = function () { return this.usEndTime_1; }; protoOf(UserSession).set_usStatus_1hwltn_k$ = function (_set____db54di) { this.usStatus_1 = _set____db54di; }; protoOf(UserSession).get_usStatus_qc1n21_k$ = function () { return this.usStatus_1; }; protoOf(UserSession).set_usReason_bwzm6v_k$ = function (_set____db54di) { this.usReason_1 = _set____db54di; }; protoOf(UserSession).get_usReason_pmr2vf_k$ = function () { return this.usReason_1; }; protoOf(UserSession).set_usAuth_u14j5g_k$ = function (_set____db54di) { this.usAuth_1 = _set____db54di; }; protoOf(UserSession).get_usAuth_kke7ov_k$ = function () { return this.usAuth_1; }; protoOf(UserSession).set_usSessionType_diqz59_k$ = function (_set____db54di) { this.usSessionType_1 = _set____db54di; }; protoOf(UserSession).get_usSessionType_c3pu47_k$ = function () { return this.usSessionType_1; }; function UserSessionAndPerson(person, personPicture, userSession) { person = person === VOID ? null : person; personPicture = personPicture === VOID ? null : personPicture; userSession = userSession === VOID ? null : userSession; this.person_1 = person; this.personPicture_1 = personPicture; this.userSession_1 = userSession; } protoOf(UserSessionAndPerson).set_person_xr31gf_k$ = function (_set____db54di) { this.person_1 = _set____db54di; }; protoOf(UserSessionAndPerson).get_person_i0c866_k$ = function () { return this.person_1; }; protoOf(UserSessionAndPerson).set_personPicture_c5dce7_k$ = function (_set____db54di) { this.personPicture_1 = _set____db54di; }; protoOf(UserSessionAndPerson).get_personPicture_te1agw_k$ = function () { return this.personPicture_1; }; protoOf(UserSessionAndPerson).set_userSession_ftoebf_k$ = function (_set____db54di) { this.userSession_1 = _set____db54di; }; protoOf(UserSessionAndPerson).get_userSession_tatogu_k$ = function () { return this.userSession_1; }; protoOf(UserSessionAndPerson).component1_7eebsc_k$ = function () { return this.person_1; }; protoOf(UserSessionAndPerson).component2_7eebsb_k$ = function () { return this.personPicture_1; }; protoOf(UserSessionAndPerson).component3_7eebsa_k$ = function () { return this.userSession_1; }; protoOf(UserSessionAndPerson).copy_iwdoa0_k$ = function (person, personPicture, userSession) { return new UserSessionAndPerson(person, personPicture, userSession); }; protoOf(UserSessionAndPerson).copy$default_gt7l0h_k$ = function (person, personPicture, userSession, $super) { person = person === VOID ? this.person_1 : person; personPicture = personPicture === VOID ? this.personPicture_1 : personPicture; userSession = userSession === VOID ? this.userSession_1 : userSession; return $super === VOID ? this.copy_iwdoa0_k$(person, personPicture, userSession) : $super.copy_iwdoa0_k$.call(this, person, personPicture, userSession); }; protoOf(UserSessionAndPerson).toString = function () { return 'UserSessionAndPerson(person=' + this.person_1 + ', personPicture=' + this.personPicture_1 + ', userSession=' + this.userSession_1 + ')'; }; protoOf(UserSessionAndPerson).hashCode = function () { var result = this.person_1 == null ? 0 : this.person_1.hashCode(); result = imul(result, 31) + (this.personPicture_1 == null ? 0 : this.personPicture_1.hashCode()) | 0; result = imul(result, 31) + (this.userSession_1 == null ? 0 : hashCode(this.userSession_1)) | 0; return result; }; protoOf(UserSessionAndPerson).equals = function (other) { if (this === other) return true; if (!(other instanceof UserSessionAndPerson)) return false; var tmp0_other_with_cast = other instanceof UserSessionAndPerson ? other : THROW_CCE(); if (!equals(this.person_1, tmp0_other_with_cast.person_1)) return false; if (!equals(this.personPicture_1, tmp0_other_with_cast.personPicture_1)) return false; if (!equals(this.userSession_1, tmp0_other_with_cast.userSession_1)) return false; return true; }; function Companion_134() { Companion_instance_134 = this; this.TYPE_UNSET_1 = 0; this.TYPE_TRUE_FALSE_1 = 1; this.TYPE_CHOICE_1 = 2; this.TYPE_FILL_IN_1 = 3; this.TYPE_LONG_FILL_IN_1 = 4; this.TYPE_MATCHING_1 = 5; this.TYPE_PERFORMANCE_1 = 6; this.TYPE_SEQUENCING_1 = 7; this.TYPE_LIKERT_1 = 8; this.TYPE_NUMERIC_1 = 9; this.TYPE_OTHER_1 = 10; this.TABLE_ID_1 = 64; } protoOf(Companion_134).get_TYPE_UNSET_eu0ur7_k$ = function () { return this.TYPE_UNSET_1; }; protoOf(Companion_134).get_TYPE_TRUE_FALSE_xtwdou_k$ = function () { return this.TYPE_TRUE_FALSE_1; }; protoOf(Companion_134).get_TYPE_CHOICE_sqvgf1_k$ = function () { return this.TYPE_CHOICE_1; }; protoOf(Companion_134).get_TYPE_FILL_IN_c7a0f9_k$ = function () { return this.TYPE_FILL_IN_1; }; protoOf(Companion_134).get_TYPE_LONG_FILL_IN_htkb8a_k$ = function () { return this.TYPE_LONG_FILL_IN_1; }; protoOf(Companion_134).get_TYPE_MATCHING_uyytvr_k$ = function () { return this.TYPE_MATCHING_1; }; protoOf(Companion_134).get_TYPE_PERFORMANCE_xx60d0_k$ = function () { return this.TYPE_PERFORMANCE_1; }; protoOf(Companion_134).get_TYPE_SEQUENCING_z7frly_k$ = function () { return this.TYPE_SEQUENCING_1; }; protoOf(Companion_134).get_TYPE_LIKERT_x0r80l_k$ = function () { return this.TYPE_LIKERT_1; }; protoOf(Companion_134).get_TYPE_NUMERIC_6qtaz3_k$ = function () { return this.TYPE_NUMERIC_1; }; protoOf(Companion_134).get_TYPE_OTHER_ex80jw_k$ = function () { return this.TYPE_OTHER_1; }; protoOf(Companion_134).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_134).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_130(); }; var Companion_instance_134; function Companion_getInstance_138() { if (Companion_instance_134 == null) new Companion_134(); return Companion_instance_134; } function $serializer_130() { $serializer_instance_130 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityEntity', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('actUid', true); tmp0_serialDesc.addElement_5pzumi_k$('actIdIri', true); tmp0_serialDesc.addElement_5pzumi_k$('actType', true); tmp0_serialDesc.addElement_5pzumi_k$('actMoreInfo', true); tmp0_serialDesc.addElement_5pzumi_k$('actInteractionType', true); tmp0_serialDesc.addElement_5pzumi_k$('actCorrectResponsePatterns', true); tmp0_serialDesc.addElement_5pzumi_k$('actLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_130).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_130).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_130).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = null; var tmp7_local3 = null; var tmp8_local4 = 0; var tmp9_local5 = null; var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ActivityEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_130).serialize_5kspb_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.actUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.actUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.actIdIri_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.actIdIri_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.actType_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.actType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.actMoreInfo_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.actMoreInfo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.actInteractionType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.actInteractionType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.actCorrectResponsePatterns_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.actCorrectResponsePatterns_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.actLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.actLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_130).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_5kspb_k$(encoder, value instanceof ActivityEntity ? value : THROW_CCE()); }; var $serializer_instance_130; function $serializer_getInstance_130() { if ($serializer_instance_130 == null) new $serializer_130(); return $serializer_instance_130; } function ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_130().descriptor_1); } if (0 === (seen1 & 1)) $this.actUid_1 = new Long(0, 0); else $this.actUid_1 = actUid; if (0 === (seen1 & 2)) $this.actIdIri_1 = null; else $this.actIdIri_1 = actIdIri; if (0 === (seen1 & 4)) $this.actType_1 = null; else $this.actType_1 = actType; if (0 === (seen1 & 8)) $this.actMoreInfo_1 = null; else $this.actMoreInfo_1 = actMoreInfo; if (0 === (seen1 & 16)) $this.actInteractionType_1 = 0; else $this.actInteractionType_1 = actInteractionType; if (0 === (seen1 & 32)) $this.actCorrectResponsePatterns_1 = null; else $this.actCorrectResponsePatterns_1 = actCorrectResponsePatterns; if (0 === (seen1 & 64)) $this.actLct_1 = new Long(0, 0); else $this.actLct_1 = actLct; return $this; } function ActivityEntity_init_$Create$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker) { return ActivityEntity_init_$Init$(seen1, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, serializationConstructorMarker, objectCreate(protoOf(ActivityEntity))); } function ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) { Companion_getInstance_138(); actUid = actUid === VOID ? new Long(0, 0) : actUid; actIdIri = actIdIri === VOID ? null : actIdIri; actType = actType === VOID ? null : actType; actMoreInfo = actMoreInfo === VOID ? null : actMoreInfo; actInteractionType = actInteractionType === VOID ? 0 : actInteractionType; actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? null : actCorrectResponsePatterns; actLct = actLct === VOID ? new Long(0, 0) : actLct; this.actUid_1 = actUid; this.actIdIri_1 = actIdIri; this.actType_1 = actType; this.actMoreInfo_1 = actMoreInfo; this.actInteractionType_1 = actInteractionType; this.actCorrectResponsePatterns_1 = actCorrectResponsePatterns; this.actLct_1 = actLct; } protoOf(ActivityEntity).set_actUid_q0bwkj_k$ = function (_set____db54di) { this.actUid_1 = _set____db54di; }; protoOf(ActivityEntity).get_actUid_avkynb_k$ = function () { return this.actUid_1; }; protoOf(ActivityEntity).set_actIdIri_5ttk1l_k$ = function (_set____db54di) { this.actIdIri_1 = _set____db54di; }; protoOf(ActivityEntity).get_actIdIri_bcbmho_k$ = function () { return this.actIdIri_1; }; protoOf(ActivityEntity).set_actType_a6ke9k_k$ = function (_set____db54di) { this.actType_1 = _set____db54di; }; protoOf(ActivityEntity).get_actType_hyiqkd_k$ = function () { return this.actType_1; }; protoOf(ActivityEntity).set_actMoreInfo_1gakyp_k$ = function (_set____db54di) { this.actMoreInfo_1 = _set____db54di; }; protoOf(ActivityEntity).get_actMoreInfo_gclkvg_k$ = function () { return this.actMoreInfo_1; }; protoOf(ActivityEntity).set_actInteractionType_gf7tn3_k$ = function (_set____db54di) { this.actInteractionType_1 = _set____db54di; }; protoOf(ActivityEntity).get_actInteractionType_fg57ul_k$ = function () { return this.actInteractionType_1; }; protoOf(ActivityEntity).set_actCorrectResponsePatterns_j78agu_k$ = function (_set____db54di) { this.actCorrectResponsePatterns_1 = _set____db54di; }; protoOf(ActivityEntity).get_actCorrectResponsePatterns_vnfhy3_k$ = function () { return this.actCorrectResponsePatterns_1; }; protoOf(ActivityEntity).set_actLct_ydmoja_k$ = function (_set____db54di) { this.actLct_1 = _set____db54di; }; protoOf(ActivityEntity).get_actLct_avkruc_k$ = function () { return this.actLct_1; }; protoOf(ActivityEntity).component1_7eebsc_k$ = function () { return this.actUid_1; }; protoOf(ActivityEntity).component2_7eebsb_k$ = function () { return this.actIdIri_1; }; protoOf(ActivityEntity).component3_7eebsa_k$ = function () { return this.actType_1; }; protoOf(ActivityEntity).component4_7eebs9_k$ = function () { return this.actMoreInfo_1; }; protoOf(ActivityEntity).component5_7eebs8_k$ = function () { return this.actInteractionType_1; }; protoOf(ActivityEntity).component6_7eebs7_k$ = function () { return this.actCorrectResponsePatterns_1; }; protoOf(ActivityEntity).component7_7eebs6_k$ = function () { return this.actLct_1; }; protoOf(ActivityEntity).copy_cfkvnj_k$ = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) { return new ActivityEntity(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct); }; protoOf(ActivityEntity).copy$default_o7j060_k$ = function (actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct, $super) { actUid = actUid === VOID ? this.actUid_1 : actUid; actIdIri = actIdIri === VOID ? this.actIdIri_1 : actIdIri; actType = actType === VOID ? this.actType_1 : actType; actMoreInfo = actMoreInfo === VOID ? this.actMoreInfo_1 : actMoreInfo; actInteractionType = actInteractionType === VOID ? this.actInteractionType_1 : actInteractionType; actCorrectResponsePatterns = actCorrectResponsePatterns === VOID ? this.actCorrectResponsePatterns_1 : actCorrectResponsePatterns; actLct = actLct === VOID ? this.actLct_1 : actLct; return $super === VOID ? this.copy_cfkvnj_k$(actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct) : $super.copy_cfkvnj_k$.call(this, actUid, actIdIri, actType, actMoreInfo, actInteractionType, actCorrectResponsePatterns, actLct); }; protoOf(ActivityEntity).toString = function () { return 'ActivityEntity(actUid=' + this.actUid_1.toString() + ', actIdIri=' + this.actIdIri_1 + ', actType=' + this.actType_1 + ', actMoreInfo=' + this.actMoreInfo_1 + ', actInteractionType=' + this.actInteractionType_1 + ', actCorrectResponsePatterns=' + this.actCorrectResponsePatterns_1 + ', actLct=' + this.actLct_1.toString() + ')'; }; protoOf(ActivityEntity).hashCode = function () { var result = this.actUid_1.hashCode(); result = imul(result, 31) + (this.actIdIri_1 == null ? 0 : getStringHashCode(this.actIdIri_1)) | 0; result = imul(result, 31) + (this.actType_1 == null ? 0 : getStringHashCode(this.actType_1)) | 0; result = imul(result, 31) + (this.actMoreInfo_1 == null ? 0 : getStringHashCode(this.actMoreInfo_1)) | 0; result = imul(result, 31) + this.actInteractionType_1 | 0; result = imul(result, 31) + (this.actCorrectResponsePatterns_1 == null ? 0 : getStringHashCode(this.actCorrectResponsePatterns_1)) | 0; result = imul(result, 31) + this.actLct_1.hashCode() | 0; return result; }; protoOf(ActivityEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityEntity ? other : THROW_CCE(); if (!this.actUid_1.equals(tmp0_other_with_cast.actUid_1)) return false; if (!(this.actIdIri_1 == tmp0_other_with_cast.actIdIri_1)) return false; if (!(this.actType_1 == tmp0_other_with_cast.actType_1)) return false; if (!(this.actMoreInfo_1 == tmp0_other_with_cast.actMoreInfo_1)) return false; if (!(this.actInteractionType_1 === tmp0_other_with_cast.actInteractionType_1)) return false; if (!(this.actCorrectResponsePatterns_1 == tmp0_other_with_cast.actCorrectResponsePatterns_1)) return false; if (!this.actLct_1.equals(tmp0_other_with_cast.actLct_1)) return false; return true; }; function Companion_135() { Companion_instance_135 = this; this.TABLE_ID_1 = 6405; } protoOf(Companion_135).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; var Companion_instance_135; function Companion_getInstance_139() { if (Companion_instance_135 == null) new Companion_135(); return Companion_instance_135; } function ActivityExtensionEntity(aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) { Companion_getInstance_139(); aeeActivityUid = aeeActivityUid === VOID ? new Long(0, 0) : aeeActivityUid; aeeKeyHash = aeeKeyHash === VOID ? new Long(0, 0) : aeeKeyHash; aeeKey = aeeKey === VOID ? null : aeeKey; aeeJson = aeeJson === VOID ? null : aeeJson; aeeLastMod = aeeLastMod === VOID ? new Long(0, 0) : aeeLastMod; aeeIsDeleted = aeeIsDeleted === VOID ? false : aeeIsDeleted; this.aeeActivityUid_1 = aeeActivityUid; this.aeeKeyHash_1 = aeeKeyHash; this.aeeKey_1 = aeeKey; this.aeeJson_1 = aeeJson; this.aeeLastMod_1 = aeeLastMod; this.aeeIsDeleted_1 = aeeIsDeleted; } protoOf(ActivityExtensionEntity).set_aeeActivityUid_enlk3l_k$ = function (_set____db54di) { this.aeeActivityUid_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeActivityUid_pqtxzd_k$ = function () { return this.aeeActivityUid_1; }; protoOf(ActivityExtensionEntity).set_aeeKeyHash_4zn2yz_k$ = function (_set____db54di) { this.aeeKeyHash_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeKeyHash_36cfhn_k$ = function () { return this.aeeKeyHash_1; }; protoOf(ActivityExtensionEntity).set_aeeKey_kxecuc_k$ = function (_set____db54di) { this.aeeKey_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeKey_awerjb_k$ = function () { return this.aeeKey_1; }; protoOf(ActivityExtensionEntity).set_aeeJson_m69skr_k$ = function (_set____db54di) { this.aeeJson_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeJson_h8ux0g_k$ = function () { return this.aeeJson_1; }; protoOf(ActivityExtensionEntity).set_aeeLastMod_aeo67e_k$ = function (_set____db54di) { this.aeeLastMod_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeLastMod_9jca38_k$ = function () { return this.aeeLastMod_1; }; protoOf(ActivityExtensionEntity).set_aeeIsDeleted_xn2fkm_k$ = function (_set____db54di) { this.aeeIsDeleted_1 = _set____db54di; }; protoOf(ActivityExtensionEntity).get_aeeIsDeleted_enh4vd_k$ = function () { return this.aeeIsDeleted_1; }; protoOf(ActivityExtensionEntity).component1_7eebsc_k$ = function () { return this.aeeActivityUid_1; }; protoOf(ActivityExtensionEntity).component2_7eebsb_k$ = function () { return this.aeeKeyHash_1; }; protoOf(ActivityExtensionEntity).component3_7eebsa_k$ = function () { return this.aeeKey_1; }; protoOf(ActivityExtensionEntity).component4_7eebs9_k$ = function () { return this.aeeJson_1; }; protoOf(ActivityExtensionEntity).component5_7eebs8_k$ = function () { return this.aeeLastMod_1; }; protoOf(ActivityExtensionEntity).component6_7eebs7_k$ = function () { return this.aeeIsDeleted_1; }; protoOf(ActivityExtensionEntity).copy_69cnvm_k$ = function (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) { return new ActivityExtensionEntity(aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted); }; protoOf(ActivityExtensionEntity).copy$default_k30sj1_k$ = function (aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted, $super) { aeeActivityUid = aeeActivityUid === VOID ? this.aeeActivityUid_1 : aeeActivityUid; aeeKeyHash = aeeKeyHash === VOID ? this.aeeKeyHash_1 : aeeKeyHash; aeeKey = aeeKey === VOID ? this.aeeKey_1 : aeeKey; aeeJson = aeeJson === VOID ? this.aeeJson_1 : aeeJson; aeeLastMod = aeeLastMod === VOID ? this.aeeLastMod_1 : aeeLastMod; aeeIsDeleted = aeeIsDeleted === VOID ? this.aeeIsDeleted_1 : aeeIsDeleted; return $super === VOID ? this.copy_69cnvm_k$(aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted) : $super.copy_69cnvm_k$.call(this, aeeActivityUid, aeeKeyHash, aeeKey, aeeJson, aeeLastMod, aeeIsDeleted); }; protoOf(ActivityExtensionEntity).toString = function () { return 'ActivityExtensionEntity(aeeActivityUid=' + this.aeeActivityUid_1.toString() + ', aeeKeyHash=' + this.aeeKeyHash_1.toString() + ', aeeKey=' + this.aeeKey_1 + ', aeeJson=' + this.aeeJson_1 + ', aeeLastMod=' + this.aeeLastMod_1.toString() + ', aeeIsDeleted=' + this.aeeIsDeleted_1 + ')'; }; protoOf(ActivityExtensionEntity).hashCode = function () { var result = this.aeeActivityUid_1.hashCode(); result = imul(result, 31) + this.aeeKeyHash_1.hashCode() | 0; result = imul(result, 31) + (this.aeeKey_1 == null ? 0 : getStringHashCode(this.aeeKey_1)) | 0; result = imul(result, 31) + (this.aeeJson_1 == null ? 0 : getStringHashCode(this.aeeJson_1)) | 0; result = imul(result, 31) + this.aeeLastMod_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.aeeIsDeleted_1) | 0; return result; }; protoOf(ActivityExtensionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityExtensionEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityExtensionEntity ? other : THROW_CCE(); if (!this.aeeActivityUid_1.equals(tmp0_other_with_cast.aeeActivityUid_1)) return false; if (!this.aeeKeyHash_1.equals(tmp0_other_with_cast.aeeKeyHash_1)) return false; if (!(this.aeeKey_1 == tmp0_other_with_cast.aeeKey_1)) return false; if (!(this.aeeJson_1 == tmp0_other_with_cast.aeeJson_1)) return false; if (!this.aeeLastMod_1.equals(tmp0_other_with_cast.aeeLastMod_1)) return false; if (!(this.aeeIsDeleted_1 === tmp0_other_with_cast.aeeIsDeleted_1)) return false; return true; }; function Companion_136() { Companion_instance_136 = this; this.PROP_CHOICES_1 = 1; this.PROP_SCALE_1 = 2; this.PROP_SOURCE_1 = 3; this.PROP_TARGET_1 = 4; this.PROP_STEPS_1 = 5; this.TABLE_ID_1 = 6401; } protoOf(Companion_136).get_PROP_CHOICES_g9s69t_k$ = function () { return this.PROP_CHOICES_1; }; protoOf(Companion_136).get_PROP_SCALE_f5dfs9_k$ = function () { return this.PROP_SCALE_1; }; protoOf(Companion_136).get_PROP_SOURCE_rs67ta_k$ = function () { return this.PROP_SOURCE_1; }; protoOf(Companion_136).get_PROP_TARGET_s1gkuc_k$ = function () { return this.PROP_TARGET_1; }; protoOf(Companion_136).get_PROP_STEPS_f52hxo_k$ = function () { return this.PROP_STEPS_1; }; protoOf(Companion_136).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_136).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_131(); }; var Companion_instance_136; function Companion_getInstance_140() { if (Companion_instance_136 == null) new Companion_136(); return Companion_instance_136; } function $serializer_131() { $serializer_instance_131 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityInteractionEntity', this, 6); tmp0_serialDesc.addElement_5pzumi_k$('aieActivityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('aieHash', true); tmp0_serialDesc.addElement_5pzumi_k$('aieProp', true); tmp0_serialDesc.addElement_5pzumi_k$('aieId', true); tmp0_serialDesc.addElement_5pzumi_k$('aieLastMod', true); tmp0_serialDesc.addElement_5pzumi_k$('aieIsDeleted', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_131).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_131).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_131).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = 0; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = false; var tmp10_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp10_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; } else while (tmp1_flag) { tmp2_index = tmp10_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp10_input.decodeIntElement_941u6a_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp10_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp10_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp10_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp10_input.endStructure_1xqz0n_k$(tmp0_desc); return ActivityInteractionEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null); }; protoOf($serializer_131).serialize_s13vep_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.aieActivityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.aieActivityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.aieHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.aieHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.aieProp_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 2, value.aieProp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.aieId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.aieId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.aieLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.aieLastMod_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.aieIsDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 5, value.aieIsDeleted_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_131).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_s13vep_k$(encoder, value instanceof ActivityInteractionEntity ? value : THROW_CCE()); }; var $serializer_instance_131; function $serializer_getInstance_131() { if ($serializer_instance_131 == null) new $serializer_131(); return $serializer_instance_131; } function ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_131().descriptor_1); } if (0 === (seen1 & 1)) $this.aieActivityUid_1 = new Long(0, 0); else $this.aieActivityUid_1 = aieActivityUid; if (0 === (seen1 & 2)) $this.aieHash_1 = new Long(0, 0); else $this.aieHash_1 = aieHash; if (0 === (seen1 & 4)) $this.aieProp_1 = 0; else $this.aieProp_1 = aieProp; if (0 === (seen1 & 8)) $this.aieId_1 = null; else $this.aieId_1 = aieId; if (0 === (seen1 & 16)) $this.aieLastMod_1 = new Long(0, 0); else $this.aieLastMod_1 = aieLastMod; if (0 === (seen1 & 32)) $this.aieIsDeleted_1 = false; else $this.aieIsDeleted_1 = aieIsDeleted; return $this; } function ActivityInteractionEntity_init_$Create$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker) { return ActivityInteractionEntity_init_$Init$(seen1, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, serializationConstructorMarker, objectCreate(protoOf(ActivityInteractionEntity))); } function ActivityInteractionEntity(aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) { Companion_getInstance_140(); aieActivityUid = aieActivityUid === VOID ? new Long(0, 0) : aieActivityUid; aieHash = aieHash === VOID ? new Long(0, 0) : aieHash; aieProp = aieProp === VOID ? 0 : aieProp; aieId = aieId === VOID ? null : aieId; aieLastMod = aieLastMod === VOID ? new Long(0, 0) : aieLastMod; aieIsDeleted = aieIsDeleted === VOID ? false : aieIsDeleted; this.aieActivityUid_1 = aieActivityUid; this.aieHash_1 = aieHash; this.aieProp_1 = aieProp; this.aieId_1 = aieId; this.aieLastMod_1 = aieLastMod; this.aieIsDeleted_1 = aieIsDeleted; } protoOf(ActivityInteractionEntity).set_aieActivityUid_kwji4d_k$ = function (_set____db54di) { this.aieActivityUid_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieActivityUid_6c3d59_k$ = function () { return this.aieActivityUid_1; }; protoOf(ActivityInteractionEntity).set_aieHash_tjkngw_k$ = function (_set____db54di) { this.aieHash_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieHash_fcq2ny_k$ = function () { return this.aieHash_1; }; protoOf(ActivityInteractionEntity).set_aieProp_rbvdtx_k$ = function (_set____db54di) { this.aieProp_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieProp_fckm95_k$ = function () { return this.aieProp_1; }; protoOf(ActivityInteractionEntity).set_aieId_d3k14s_k$ = function (_set____db54di) { this.aieId_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieId_iomnm7_k$ = function () { return this.aieId_1; }; protoOf(ActivityInteractionEntity).set_aieLastMod_tm63u6_k$ = function (_set____db54di) { this.aieLastMod_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieLastMod_w14avs_k$ = function () { return this.aieLastMod_1; }; protoOf(ActivityInteractionEntity).set_aieIsDeleted_vbjgey_k$ = function (_set____db54di) { this.aieIsDeleted_1 = _set____db54di; }; protoOf(ActivityInteractionEntity).get_aieIsDeleted_8jbcwr_k$ = function () { return this.aieIsDeleted_1; }; protoOf(ActivityInteractionEntity).component1_7eebsc_k$ = function () { return this.aieActivityUid_1; }; protoOf(ActivityInteractionEntity).component2_7eebsb_k$ = function () { return this.aieHash_1; }; protoOf(ActivityInteractionEntity).component3_7eebsa_k$ = function () { return this.aieProp_1; }; protoOf(ActivityInteractionEntity).component4_7eebs9_k$ = function () { return this.aieId_1; }; protoOf(ActivityInteractionEntity).component5_7eebs8_k$ = function () { return this.aieLastMod_1; }; protoOf(ActivityInteractionEntity).component6_7eebs7_k$ = function () { return this.aieIsDeleted_1; }; protoOf(ActivityInteractionEntity).copy_1w3vf1_k$ = function (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) { return new ActivityInteractionEntity(aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted); }; protoOf(ActivityInteractionEntity).copy$default_wc82mn_k$ = function (aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted, $super) { aieActivityUid = aieActivityUid === VOID ? this.aieActivityUid_1 : aieActivityUid; aieHash = aieHash === VOID ? this.aieHash_1 : aieHash; aieProp = aieProp === VOID ? this.aieProp_1 : aieProp; aieId = aieId === VOID ? this.aieId_1 : aieId; aieLastMod = aieLastMod === VOID ? this.aieLastMod_1 : aieLastMod; aieIsDeleted = aieIsDeleted === VOID ? this.aieIsDeleted_1 : aieIsDeleted; return $super === VOID ? this.copy_1w3vf1_k$(aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted) : $super.copy_1w3vf1_k$.call(this, aieActivityUid, aieHash, aieProp, aieId, aieLastMod, aieIsDeleted); }; protoOf(ActivityInteractionEntity).toString = function () { return 'ActivityInteractionEntity(aieActivityUid=' + this.aieActivityUid_1.toString() + ', aieHash=' + this.aieHash_1.toString() + ', aieProp=' + this.aieProp_1 + ', aieId=' + this.aieId_1 + ', aieLastMod=' + this.aieLastMod_1.toString() + ', aieIsDeleted=' + this.aieIsDeleted_1 + ')'; }; protoOf(ActivityInteractionEntity).hashCode = function () { var result = this.aieActivityUid_1.hashCode(); result = imul(result, 31) + this.aieHash_1.hashCode() | 0; result = imul(result, 31) + this.aieProp_1 | 0; result = imul(result, 31) + (this.aieId_1 == null ? 0 : getStringHashCode(this.aieId_1)) | 0; result = imul(result, 31) + this.aieLastMod_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.aieIsDeleted_1) | 0; return result; }; protoOf(ActivityInteractionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityInteractionEntity)) return false; var tmp0_other_with_cast = other instanceof ActivityInteractionEntity ? other : THROW_CCE(); if (!this.aieActivityUid_1.equals(tmp0_other_with_cast.aieActivityUid_1)) return false; if (!this.aieHash_1.equals(tmp0_other_with_cast.aieHash_1)) return false; if (!(this.aieProp_1 === tmp0_other_with_cast.aieProp_1)) return false; if (!(this.aieId_1 == tmp0_other_with_cast.aieId_1)) return false; if (!this.aieLastMod_1.equals(tmp0_other_with_cast.aieLastMod_1)) return false; if (!(this.aieIsDeleted_1 === tmp0_other_with_cast.aieIsDeleted_1)) return false; return true; }; function Companion_137() { Companion_instance_137 = this; this.TABLE_ID_1 = 6442; this.PROPNAME_NAME_1 = 'name'; this.PROPNAME_DESCRIPTION_1 = 'description'; } protoOf(Companion_137).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_137).get_PROPNAME_NAME_f37mvn_k$ = function () { return this.PROPNAME_NAME_1; }; protoOf(Companion_137).get_PROPNAME_DESCRIPTION_ae0f6c_k$ = function () { return this.PROPNAME_DESCRIPTION_1; }; protoOf(Companion_137).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_132(); }; var Companion_instance_137; function Companion_getInstance_141() { if (Companion_instance_137 == null) new Companion_137(); return Companion_instance_137; } function $serializer_132() { $serializer_instance_132 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActivityLangMapEntry', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('almeActivityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('almeHash', true); tmp0_serialDesc.addElement_5pzumi_k$('almeLangCode', true); tmp0_serialDesc.addElement_5pzumi_k$('almePropName', true); tmp0_serialDesc.addElement_5pzumi_k$('almeValue', true); tmp0_serialDesc.addElement_5pzumi_k$('almeAieHash', true); tmp0_serialDesc.addElement_5pzumi_k$('almeLastMod', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_132).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_132).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_132).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return ActivityLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_132).serialize_bn525u_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.almeActivityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.almeActivityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.almeHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.almeHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.almeLangCode_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.almeLangCode_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.almePropName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.almePropName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.almeValue_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.almeValue_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.almeAieHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.almeAieHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.almeLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.almeLastMod_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_132).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_bn525u_k$(encoder, value instanceof ActivityLangMapEntry ? value : THROW_CCE()); }; var $serializer_instance_132; function $serializer_getInstance_132() { if ($serializer_instance_132 == null) new $serializer_132(); return $serializer_instance_132; } function ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_132().descriptor_1); } if (0 === (seen1 & 1)) $this.almeActivityUid_1 = new Long(0, 0); else $this.almeActivityUid_1 = almeActivityUid; if (0 === (seen1 & 2)) $this.almeHash_1 = new Long(0, 0); else $this.almeHash_1 = almeHash; if (0 === (seen1 & 4)) $this.almeLangCode_1 = null; else $this.almeLangCode_1 = almeLangCode; if (0 === (seen1 & 8)) $this.almePropName_1 = null; else $this.almePropName_1 = almePropName; if (0 === (seen1 & 16)) $this.almeValue_1 = null; else $this.almeValue_1 = almeValue; if (0 === (seen1 & 32)) $this.almeAieHash_1 = new Long(0, 0); else $this.almeAieHash_1 = almeAieHash; if (0 === (seen1 & 64)) $this.almeLastMod_1 = new Long(0, 0); else $this.almeLastMod_1 = almeLastMod; return $this; } function ActivityLangMapEntry_init_$Create$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker) { return ActivityLangMapEntry_init_$Init$(seen1, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, serializationConstructorMarker, objectCreate(protoOf(ActivityLangMapEntry))); } function ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) { Companion_getInstance_141(); almeActivityUid = almeActivityUid === VOID ? new Long(0, 0) : almeActivityUid; almeHash = almeHash === VOID ? new Long(0, 0) : almeHash; almeLangCode = almeLangCode === VOID ? null : almeLangCode; almePropName = almePropName === VOID ? null : almePropName; almeValue = almeValue === VOID ? null : almeValue; almeAieHash = almeAieHash === VOID ? new Long(0, 0) : almeAieHash; almeLastMod = almeLastMod === VOID ? new Long(0, 0) : almeLastMod; this.almeActivityUid_1 = almeActivityUid; this.almeHash_1 = almeHash; this.almeLangCode_1 = almeLangCode; this.almePropName_1 = almePropName; this.almeValue_1 = almeValue; this.almeAieHash_1 = almeAieHash; this.almeLastMod_1 = almeLastMod; } protoOf(ActivityLangMapEntry).set_almeActivityUid_b53eeb_k$ = function (_set____db54di) { this.almeActivityUid_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeActivityUid_o9qzhn_k$ = function () { return this.almeActivityUid_1; }; protoOf(ActivityLangMapEntry).set_almeHash_yja2gg_k$ = function (_set____db54di) { this.almeHash_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeHash_1iqfeu_k$ = function () { return this.almeHash_1; }; protoOf(ActivityLangMapEntry).set_almeLangCode_omlfr0_k$ = function (_set____db54di) { this.almeLangCode_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeLangCode_45kvbt_k$ = function () { return this.almeLangCode_1; }; protoOf(ActivityLangMapEntry).set_almePropName_bcr8q1_k$ = function (_set____db54di) { this.almePropName_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almePropName_64a396_k$ = function () { return this.almePropName_1; }; protoOf(ActivityLangMapEntry).set_almeValue_ynoy12_k$ = function (_set____db54di) { this.almeValue_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeValue_o41rph_k$ = function () { return this.almeValue_1; }; protoOf(ActivityLangMapEntry).set_almeAieHash_gievt9_k$ = function (_set____db54di) { this.almeAieHash_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeAieHash_4fnbb5_k$ = function () { return this.almeAieHash_1; }; protoOf(ActivityLangMapEntry).set_almeLastMod_eesr1u_k$ = function (_set____db54di) { this.almeLastMod_1 = _set____db54di; }; protoOf(ActivityLangMapEntry).get_almeLastMod_beliu8_k$ = function () { return this.almeLastMod_1; }; protoOf(ActivityLangMapEntry).component1_7eebsc_k$ = function () { return this.almeActivityUid_1; }; protoOf(ActivityLangMapEntry).component2_7eebsb_k$ = function () { return this.almeHash_1; }; protoOf(ActivityLangMapEntry).component3_7eebsa_k$ = function () { return this.almeLangCode_1; }; protoOf(ActivityLangMapEntry).component4_7eebs9_k$ = function () { return this.almePropName_1; }; protoOf(ActivityLangMapEntry).component5_7eebs8_k$ = function () { return this.almeValue_1; }; protoOf(ActivityLangMapEntry).component6_7eebs7_k$ = function () { return this.almeAieHash_1; }; protoOf(ActivityLangMapEntry).component7_7eebs6_k$ = function () { return this.almeLastMod_1; }; protoOf(ActivityLangMapEntry).copy_avhhk0_k$ = function (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) { return new ActivityLangMapEntry(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod); }; protoOf(ActivityLangMapEntry).copy$default_83tn1s_k$ = function (almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod, $super) { almeActivityUid = almeActivityUid === VOID ? this.almeActivityUid_1 : almeActivityUid; almeHash = almeHash === VOID ? this.almeHash_1 : almeHash; almeLangCode = almeLangCode === VOID ? this.almeLangCode_1 : almeLangCode; almePropName = almePropName === VOID ? this.almePropName_1 : almePropName; almeValue = almeValue === VOID ? this.almeValue_1 : almeValue; almeAieHash = almeAieHash === VOID ? this.almeAieHash_1 : almeAieHash; almeLastMod = almeLastMod === VOID ? this.almeLastMod_1 : almeLastMod; return $super === VOID ? this.copy_avhhk0_k$(almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod) : $super.copy_avhhk0_k$.call(this, almeActivityUid, almeHash, almeLangCode, almePropName, almeValue, almeAieHash, almeLastMod); }; protoOf(ActivityLangMapEntry).toString = function () { return 'ActivityLangMapEntry(almeActivityUid=' + this.almeActivityUid_1.toString() + ', almeHash=' + this.almeHash_1.toString() + ', almeLangCode=' + this.almeLangCode_1 + ', almePropName=' + this.almePropName_1 + ', almeValue=' + this.almeValue_1 + ', almeAieHash=' + this.almeAieHash_1.toString() + ', almeLastMod=' + this.almeLastMod_1.toString() + ')'; }; protoOf(ActivityLangMapEntry).hashCode = function () { var result = this.almeActivityUid_1.hashCode(); result = imul(result, 31) + this.almeHash_1.hashCode() | 0; result = imul(result, 31) + (this.almeLangCode_1 == null ? 0 : getStringHashCode(this.almeLangCode_1)) | 0; result = imul(result, 31) + (this.almePropName_1 == null ? 0 : getStringHashCode(this.almePropName_1)) | 0; result = imul(result, 31) + (this.almeValue_1 == null ? 0 : getStringHashCode(this.almeValue_1)) | 0; result = imul(result, 31) + this.almeAieHash_1.hashCode() | 0; result = imul(result, 31) + this.almeLastMod_1.hashCode() | 0; return result; }; protoOf(ActivityLangMapEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof ActivityLangMapEntry)) return false; var tmp0_other_with_cast = other instanceof ActivityLangMapEntry ? other : THROW_CCE(); if (!this.almeActivityUid_1.equals(tmp0_other_with_cast.almeActivityUid_1)) return false; if (!this.almeHash_1.equals(tmp0_other_with_cast.almeHash_1)) return false; if (!(this.almeLangCode_1 == tmp0_other_with_cast.almeLangCode_1)) return false; if (!(this.almePropName_1 == tmp0_other_with_cast.almePropName_1)) return false; if (!(this.almeValue_1 == tmp0_other_with_cast.almeValue_1)) return false; if (!this.almeAieHash_1.equals(tmp0_other_with_cast.almeAieHash_1)) return false; if (!this.almeLastMod_1.equals(tmp0_other_with_cast.almeLastMod_1)) return false; return true; }; function Companion_138() { Companion_instance_138 = this; this.TABLE_ID_1 = 68; } protoOf(Companion_138).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_138).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_133(); }; var Companion_instance_138; function Companion_getInstance_142() { if (Companion_instance_138 == null) new Companion_138(); return Companion_instance_138; } function $serializer_133() { $serializer_instance_133 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.ActorEntity', this, 11); tmp0_serialDesc.addElement_5pzumi_k$('actorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('actorPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('actorName', true); tmp0_serialDesc.addElement_5pzumi_k$('actorMbox', true); tmp0_serialDesc.addElement_5pzumi_k$('actorMbox_sha1sum', true); tmp0_serialDesc.addElement_5pzumi_k$('actorOpenid', true); tmp0_serialDesc.addElement_5pzumi_k$('actorAccountName', true); tmp0_serialDesc.addElement_5pzumi_k$('actorAccountHomePage', true); tmp0_serialDesc.addElement_5pzumi_k$('actorEtag', true); tmp0_serialDesc.addElement_5pzumi_k$('actorLct', true); tmp0_serialDesc.addElement_5pzumi_k$('actorObjectType', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_133).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_133).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), IntSerializer_getInstance()]; }; protoOf($serializer_133).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = null; var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_local7 = null; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = 0; var tmp15_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp15_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; } else while (tmp1_flag) { tmp2_index = tmp15_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, StringSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp15_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 7, StringSerializer_getInstance(), tmp11_local7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp15_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp15_input.decodeIntElement_941u6a_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp15_input.endStructure_1xqz0n_k$(tmp0_desc); return ActorEntity_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_133).serialize_v55765_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.actorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.actorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.actorPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.actorPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.actorName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.actorName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.actorMbox_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.actorMbox_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.actorMbox_sha1sum_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 4, StringSerializer_getInstance(), value.actorMbox_sha1sum_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.actorOpenid_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, StringSerializer_getInstance(), value.actorOpenid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.actorAccountName_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, StringSerializer_getInstance(), value.actorAccountName_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.actorAccountHomePage_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 7, StringSerializer_getInstance(), value.actorAccountHomePage_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.actorEtag_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.actorEtag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.actorLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.actorLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.actorObjectType_1 === XapiEntityObjectTypeFlags_getInstance().get_AGENT_i6evgc_k$())) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 10, value.actorObjectType_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_133).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_v55765_k$(encoder, value instanceof ActorEntity ? value : THROW_CCE()); }; var $serializer_instance_133; function $serializer_getInstance_133() { if ($serializer_instance_133 == null) new $serializer_133(); return $serializer_instance_133; } function ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_133().descriptor_1); } if (0 === (seen1 & 1)) $this.actorUid_1 = new Long(0, 0); else $this.actorUid_1 = actorUid; if (0 === (seen1 & 2)) $this.actorPersonUid_1 = new Long(0, 0); else $this.actorPersonUid_1 = actorPersonUid; if (0 === (seen1 & 4)) $this.actorName_1 = null; else $this.actorName_1 = actorName; if (0 === (seen1 & 8)) $this.actorMbox_1 = null; else $this.actorMbox_1 = actorMbox; if (0 === (seen1 & 16)) $this.actorMbox_sha1sum_1 = null; else $this.actorMbox_sha1sum_1 = actorMbox_sha1sum; if (0 === (seen1 & 32)) $this.actorOpenid_1 = null; else $this.actorOpenid_1 = actorOpenid; if (0 === (seen1 & 64)) $this.actorAccountName_1 = null; else $this.actorAccountName_1 = actorAccountName; if (0 === (seen1 & 128)) $this.actorAccountHomePage_1 = null; else $this.actorAccountHomePage_1 = actorAccountHomePage; if (0 === (seen1 & 256)) $this.actorEtag_1 = new Long(0, 0); else $this.actorEtag_1 = actorEtag; if (0 === (seen1 & 512)) $this.actorLct_1 = new Long(0, 0); else $this.actorLct_1 = actorLct; if (0 === (seen1 & 1024)) $this.actorObjectType_1 = XapiEntityObjectTypeFlags_getInstance().get_AGENT_i6evgc_k$(); else $this.actorObjectType_1 = actorObjectType; return $this; } function ActorEntity_init_$Create$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker) { return ActorEntity_init_$Init$(seen1, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, serializationConstructorMarker, objectCreate(protoOf(ActorEntity))); } function ActorEntity(actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) { Companion_getInstance_142(); actorUid = actorUid === VOID ? new Long(0, 0) : actorUid; actorPersonUid = actorPersonUid === VOID ? new Long(0, 0) : actorPersonUid; actorName = actorName === VOID ? null : actorName; actorMbox = actorMbox === VOID ? null : actorMbox; actorMbox_sha1sum = actorMbox_sha1sum === VOID ? null : actorMbox_sha1sum; actorOpenid = actorOpenid === VOID ? null : actorOpenid; actorAccountName = actorAccountName === VOID ? null : actorAccountName; actorAccountHomePage = actorAccountHomePage === VOID ? null : actorAccountHomePage; actorEtag = actorEtag === VOID ? new Long(0, 0) : actorEtag; actorLct = actorLct === VOID ? new Long(0, 0) : actorLct; actorObjectType = actorObjectType === VOID ? XapiEntityObjectTypeFlags_getInstance().get_AGENT_i6evgc_k$() : actorObjectType; this.actorUid_1 = actorUid; this.actorPersonUid_1 = actorPersonUid; this.actorName_1 = actorName; this.actorMbox_1 = actorMbox; this.actorMbox_sha1sum_1 = actorMbox_sha1sum; this.actorOpenid_1 = actorOpenid; this.actorAccountName_1 = actorAccountName; this.actorAccountHomePage_1 = actorAccountHomePage; this.actorEtag_1 = actorEtag; this.actorLct_1 = actorLct; this.actorObjectType_1 = actorObjectType; } protoOf(ActorEntity).set_actorUid_wjpps6_k$ = function (_set____db54di) { this.actorUid_1 = _set____db54di; }; protoOf(ActorEntity).get_actorUid_bxgzj8_k$ = function () { return this.actorUid_1; }; protoOf(ActorEntity).set_actorPersonUid_sqwdrv_k$ = function (_set____db54di) { this.actorPersonUid_1 = _set____db54di; }; protoOf(ActorEntity).get_actorPersonUid_fdd67l_k$ = function () { return this.actorPersonUid_1; }; protoOf(ActorEntity).set_actorName_t0c818_k$ = function (_set____db54di) { this.actorName_1 = _set____db54di; }; protoOf(ActorEntity).get_actorName_enxp4n_k$ = function () { return this.actorName_1; }; protoOf(ActorEntity).set_actorMbox_otojz5_k$ = function (_set____db54di) { this.actorMbox_1 = _set____db54di; }; protoOf(ActorEntity).get_actorMbox_enx2y2_k$ = function () { return this.actorMbox_1; }; protoOf(ActorEntity).set_actorMbox_sha1sum_2m4at6_k$ = function (_set____db54di) { this.actorMbox_sha1sum_1 = _set____db54di; }; protoOf(ActorEntity).get_actorMbox_sha1sum_wa7f5_k$ = function () { return this.actorMbox_sha1sum_1; }; protoOf(ActorEntity).set_actorOpenid_iurhfq_k$ = function (_set____db54di) { this.actorOpenid_1 = _set____db54di; }; protoOf(ActorEntity).get_actorOpenid_tjemdt_k$ = function () { return this.actorOpenid_1; }; protoOf(ActorEntity).set_actorAccountName_yw5pfb_k$ = function (_set____db54di) { this.actorAccountName_1 = _set____db54di; }; protoOf(ActorEntity).get_actorAccountName_o5fzl8_k$ = function () { return this.actorAccountName_1; }; protoOf(ActorEntity).set_actorAccountHomePage_r9422c_k$ = function (_set____db54di) { this.actorAccountHomePage_1 = _set____db54di; }; protoOf(ActorEntity).get_actorAccountHomePage_53pq8h_k$ = function () { return this.actorAccountHomePage_1; }; protoOf(ActorEntity).set_actorEtag_jhzarz_k$ = function (_set____db54di) { this.actorEtag_1 = _set____db54di; }; protoOf(ActorEntity).get_actorEtag_ensc1t_k$ = function () { return this.actorEtag_1; }; protoOf(ActorEntity).set_actorLct_u43k87_k$ = function (_set____db54di) { this.actorLct_1 = _set____db54di; }; protoOf(ActorEntity).get_actorLct_bxgsq9_k$ = function () { return this.actorLct_1; }; protoOf(ActorEntity).set_actorObjectType_1zrrft_k$ = function (_set____db54di) { this.actorObjectType_1 = _set____db54di; }; protoOf(ActorEntity).get_actorObjectType_r4jksl_k$ = function () { return this.actorObjectType_1; }; protoOf(ActorEntity).component1_7eebsc_k$ = function () { return this.actorUid_1; }; protoOf(ActorEntity).component2_7eebsb_k$ = function () { return this.actorPersonUid_1; }; protoOf(ActorEntity).component3_7eebsa_k$ = function () { return this.actorName_1; }; protoOf(ActorEntity).component4_7eebs9_k$ = function () { return this.actorMbox_1; }; protoOf(ActorEntity).component5_7eebs8_k$ = function () { return this.actorMbox_sha1sum_1; }; protoOf(ActorEntity).component6_7eebs7_k$ = function () { return this.actorOpenid_1; }; protoOf(ActorEntity).component7_7eebs6_k$ = function () { return this.actorAccountName_1; }; protoOf(ActorEntity).component8_7eebs5_k$ = function () { return this.actorAccountHomePage_1; }; protoOf(ActorEntity).component9_7eebs4_k$ = function () { return this.actorEtag_1; }; protoOf(ActorEntity).component10_gazzfo_k$ = function () { return this.actorLct_1; }; protoOf(ActorEntity).component11_gazzfn_k$ = function () { return this.actorObjectType_1; }; protoOf(ActorEntity).copy_4qrdm5_k$ = function (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) { return new ActorEntity(actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType); }; protoOf(ActorEntity).copy$default_ubhiai_k$ = function (actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType, $super) { actorUid = actorUid === VOID ? this.actorUid_1 : actorUid; actorPersonUid = actorPersonUid === VOID ? this.actorPersonUid_1 : actorPersonUid; actorName = actorName === VOID ? this.actorName_1 : actorName; actorMbox = actorMbox === VOID ? this.actorMbox_1 : actorMbox; actorMbox_sha1sum = actorMbox_sha1sum === VOID ? this.actorMbox_sha1sum_1 : actorMbox_sha1sum; actorOpenid = actorOpenid === VOID ? this.actorOpenid_1 : actorOpenid; actorAccountName = actorAccountName === VOID ? this.actorAccountName_1 : actorAccountName; actorAccountHomePage = actorAccountHomePage === VOID ? this.actorAccountHomePage_1 : actorAccountHomePage; actorEtag = actorEtag === VOID ? this.actorEtag_1 : actorEtag; actorLct = actorLct === VOID ? this.actorLct_1 : actorLct; actorObjectType = actorObjectType === VOID ? this.actorObjectType_1 : actorObjectType; return $super === VOID ? this.copy_4qrdm5_k$(actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType) : $super.copy_4qrdm5_k$.call(this, actorUid, actorPersonUid, actorName, actorMbox, actorMbox_sha1sum, actorOpenid, actorAccountName, actorAccountHomePage, actorEtag, actorLct, actorObjectType); }; protoOf(ActorEntity).toString = function () { return 'ActorEntity(actorUid=' + this.actorUid_1.toString() + ', actorPersonUid=' + this.actorPersonUid_1.toString() + ', actorName=' + this.actorName_1 + ', actorMbox=' + this.actorMbox_1 + ', actorMbox_sha1sum=' + this.actorMbox_sha1sum_1 + ', actorOpenid=' + this.actorOpenid_1 + ', actorAccountName=' + this.actorAccountName_1 + ', actorAccountHomePage=' + this.actorAccountHomePage_1 + ', actorEtag=' + this.actorEtag_1.toString() + ', actorLct=' + this.actorLct_1.toString() + ', actorObjectType=' + this.actorObjectType_1 + ')'; }; protoOf(ActorEntity).hashCode = function () { var result = this.actorUid_1.hashCode(); result = imul(result, 31) + this.actorPersonUid_1.hashCode() | 0; result = imul(result, 31) + (this.actorName_1 == null ? 0 : getStringHashCode(this.actorName_1)) | 0; result = imul(result, 31) + (this.actorMbox_1 == null ? 0 : getStringHashCode(this.actorMbox_1)) | 0; result = imul(result, 31) + (this.actorMbox_sha1sum_1 == null ? 0 : getStringHashCode(this.actorMbox_sha1sum_1)) | 0; result = imul(result, 31) + (this.actorOpenid_1 == null ? 0 : getStringHashCode(this.actorOpenid_1)) | 0; result = imul(result, 31) + (this.actorAccountName_1 == null ? 0 : getStringHashCode(this.actorAccountName_1)) | 0; result = imul(result, 31) + (this.actorAccountHomePage_1 == null ? 0 : getStringHashCode(this.actorAccountHomePage_1)) | 0; result = imul(result, 31) + this.actorEtag_1.hashCode() | 0; result = imul(result, 31) + this.actorLct_1.hashCode() | 0; result = imul(result, 31) + this.actorObjectType_1 | 0; return result; }; protoOf(ActorEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof ActorEntity)) return false; var tmp0_other_with_cast = other instanceof ActorEntity ? other : THROW_CCE(); if (!this.actorUid_1.equals(tmp0_other_with_cast.actorUid_1)) return false; if (!this.actorPersonUid_1.equals(tmp0_other_with_cast.actorPersonUid_1)) return false; if (!(this.actorName_1 == tmp0_other_with_cast.actorName_1)) return false; if (!(this.actorMbox_1 == tmp0_other_with_cast.actorMbox_1)) return false; if (!(this.actorMbox_sha1sum_1 == tmp0_other_with_cast.actorMbox_sha1sum_1)) return false; if (!(this.actorOpenid_1 == tmp0_other_with_cast.actorOpenid_1)) return false; if (!(this.actorAccountName_1 == tmp0_other_with_cast.actorAccountName_1)) return false; if (!(this.actorAccountHomePage_1 == tmp0_other_with_cast.actorAccountHomePage_1)) return false; if (!this.actorEtag_1.equals(tmp0_other_with_cast.actorEtag_1)) return false; if (!this.actorLct_1.equals(tmp0_other_with_cast.actorLct_1)) return false; if (!(this.actorObjectType_1 === tmp0_other_with_cast.actorObjectType_1)) return false; return true; }; function Companion_139() { Companion_instance_139 = this; this.TABLE_ID_1 = 4232; } protoOf(Companion_139).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_139).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_134(); }; var Companion_instance_139; function Companion_getInstance_143() { if (Companion_instance_139 == null) new Companion_139(); return Companion_instance_139; } function $serializer_134() { $serializer_instance_134 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.GroupMemberActorJoin', this, 3); tmp0_serialDesc.addElement_5pzumi_k$('gmajGroupActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('gmajMemberActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('gmajLastMod', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_134).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_134).childSerializers_5ghqw5_k$ = 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_134).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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.beginStructure_yljocp_k$(tmp0_desc); if (tmp7_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; } else while (tmp1_flag) { tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp7_input.endStructure_1xqz0n_k$(tmp0_desc); return GroupMemberActorJoin_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null); }; protoOf($serializer_134).serialize_160ecl_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.gmajGroupActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.gmajGroupActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.gmajMemberActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.gmajMemberActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.gmajLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.gmajLastMod_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_134).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_160ecl_k$(encoder, value instanceof GroupMemberActorJoin ? value : THROW_CCE()); }; var $serializer_instance_134; function $serializer_getInstance_134() { if ($serializer_instance_134 == null) new $serializer_134(); return $serializer_instance_134; } function GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_134().descriptor_1); } if (0 === (seen1 & 1)) $this.gmajGroupActorUid_1 = new Long(0, 0); else $this.gmajGroupActorUid_1 = gmajGroupActorUid; if (0 === (seen1 & 2)) $this.gmajMemberActorUid_1 = new Long(0, 0); else $this.gmajMemberActorUid_1 = gmajMemberActorUid; if (0 === (seen1 & 4)) $this.gmajLastMod_1 = new Long(0, 0); else $this.gmajLastMod_1 = gmajLastMod; return $this; } function GroupMemberActorJoin_init_$Create$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker) { return GroupMemberActorJoin_init_$Init$(seen1, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, serializationConstructorMarker, objectCreate(protoOf(GroupMemberActorJoin))); } function GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) { Companion_getInstance_143(); gmajGroupActorUid = gmajGroupActorUid === VOID ? new Long(0, 0) : gmajGroupActorUid; gmajMemberActorUid = gmajMemberActorUid === VOID ? new Long(0, 0) : gmajMemberActorUid; gmajLastMod = gmajLastMod === VOID ? new Long(0, 0) : gmajLastMod; this.gmajGroupActorUid_1 = gmajGroupActorUid; this.gmajMemberActorUid_1 = gmajMemberActorUid; this.gmajLastMod_1 = gmajLastMod; } protoOf(GroupMemberActorJoin).set_gmajGroupActorUid_t579cg_k$ = function (_set____db54di) { this.gmajGroupActorUid_1 = _set____db54di; }; protoOf(GroupMemberActorJoin).get_gmajGroupActorUid_48ehxa_k$ = function () { return this.gmajGroupActorUid_1; }; protoOf(GroupMemberActorJoin).set_gmajMemberActorUid_fnocj_k$ = function (_set____db54di) { this.gmajMemberActorUid_1 = _set____db54di; }; protoOf(GroupMemberActorJoin).get_gmajMemberActorUid_c3ucz7_k$ = function () { return this.gmajMemberActorUid_1; }; protoOf(GroupMemberActorJoin).set_gmajLastMod_ign14y_k$ = function (_set____db54di) { this.gmajLastMod_1 = _set____db54di; }; protoOf(GroupMemberActorJoin).get_gmajLastMod_mhnib0_k$ = function () { return this.gmajLastMod_1; }; protoOf(GroupMemberActorJoin).component1_7eebsc_k$ = function () { return this.gmajGroupActorUid_1; }; protoOf(GroupMemberActorJoin).component2_7eebsb_k$ = function () { return this.gmajMemberActorUid_1; }; protoOf(GroupMemberActorJoin).component3_7eebsa_k$ = function () { return this.gmajLastMod_1; }; protoOf(GroupMemberActorJoin).copy_irvfc7_k$ = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) { return new GroupMemberActorJoin(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod); }; protoOf(GroupMemberActorJoin).copy$default_edkswc_k$ = function (gmajGroupActorUid, gmajMemberActorUid, gmajLastMod, $super) { gmajGroupActorUid = gmajGroupActorUid === VOID ? this.gmajGroupActorUid_1 : gmajGroupActorUid; gmajMemberActorUid = gmajMemberActorUid === VOID ? this.gmajMemberActorUid_1 : gmajMemberActorUid; gmajLastMod = gmajLastMod === VOID ? this.gmajLastMod_1 : gmajLastMod; return $super === VOID ? this.copy_irvfc7_k$(gmajGroupActorUid, gmajMemberActorUid, gmajLastMod) : $super.copy_irvfc7_k$.call(this, gmajGroupActorUid, gmajMemberActorUid, gmajLastMod); }; protoOf(GroupMemberActorJoin).toString = function () { return 'GroupMemberActorJoin(gmajGroupActorUid=' + this.gmajGroupActorUid_1.toString() + ', gmajMemberActorUid=' + this.gmajMemberActorUid_1.toString() + ', gmajLastMod=' + this.gmajLastMod_1.toString() + ')'; }; protoOf(GroupMemberActorJoin).hashCode = function () { var result = this.gmajGroupActorUid_1.hashCode(); result = imul(result, 31) + this.gmajMemberActorUid_1.hashCode() | 0; result = imul(result, 31) + this.gmajLastMod_1.hashCode() | 0; return result; }; protoOf(GroupMemberActorJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof GroupMemberActorJoin)) return false; var tmp0_other_with_cast = other instanceof GroupMemberActorJoin ? other : THROW_CCE(); if (!this.gmajGroupActorUid_1.equals(tmp0_other_with_cast.gmajGroupActorUid_1)) return false; if (!this.gmajMemberActorUid_1.equals(tmp0_other_with_cast.gmajMemberActorUid_1)) return false; if (!this.gmajLastMod_1.equals(tmp0_other_with_cast.gmajLastMod_1)) return false; return true; }; function Companion_140() { Companion_instance_140 = this; this.TABLE_ID_1 = 121422; } protoOf(Companion_140).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_140).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_135(); }; var Companion_instance_140; function Companion_getInstance_144() { if (Companion_instance_140 == null) new Companion_140(); return Companion_instance_140; } function $serializer_135() { $serializer_instance_135 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateDeleteCommand', this, 7); tmp0_serialDesc.addElement_5pzumi_k$('sdcActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcHash', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcActivityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcStateId', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcLastMod', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcRegistrationHi', true); tmp0_serialDesc.addElement_5pzumi_k$('sdcRegistrationLo', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_135).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_135).childSerializers_5ghqw5_k$ = 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(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance())]; }; protoOf($serializer_135).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = null; var tmp10_local6 = null; var tmp11_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp11_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; } else while (tmp1_flag) { tmp2_index = tmp11_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp11_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 5, LongSerializer_getInstance(), tmp9_local5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp11_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 6, LongSerializer_getInstance(), tmp10_local6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp11_input.endStructure_1xqz0n_k$(tmp0_desc); return StateDeleteCommand_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, null); }; protoOf($serializer_135).serialize_8bdzhu_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.sdcActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.sdcActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.sdcHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.sdcHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.sdcActivityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.sdcActivityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.sdcStateId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.sdcStateId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.sdcLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.sdcLastMod_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !(value.sdcRegistrationHi_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 5, LongSerializer_getInstance(), value.sdcRegistrationHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.sdcRegistrationLo_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 6, LongSerializer_getInstance(), value.sdcRegistrationLo_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_135).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_8bdzhu_k$(encoder, value instanceof StateDeleteCommand ? value : THROW_CCE()); }; var $serializer_instance_135; function $serializer_getInstance_135() { if ($serializer_instance_135 == null) new $serializer_135(); return $serializer_instance_135; } function StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_135().descriptor_1); } if (0 === (seen1 & 1)) $this.sdcActorUid_1 = new Long(0, 0); else $this.sdcActorUid_1 = sdcActorUid; if (0 === (seen1 & 2)) $this.sdcHash_1 = new Long(0, 0); else $this.sdcHash_1 = sdcHash; if (0 === (seen1 & 4)) $this.sdcActivityUid_1 = new Long(0, 0); else $this.sdcActivityUid_1 = sdcActivityUid; if (0 === (seen1 & 8)) $this.sdcStateId_1 = null; else $this.sdcStateId_1 = sdcStateId; if (0 === (seen1 & 16)) $this.sdcLastMod_1 = new Long(0, 0); else $this.sdcLastMod_1 = sdcLastMod; if (0 === (seen1 & 32)) $this.sdcRegistrationHi_1 = null; else $this.sdcRegistrationHi_1 = sdcRegistrationHi; if (0 === (seen1 & 64)) $this.sdcRegistrationLo_1 = null; else $this.sdcRegistrationLo_1 = sdcRegistrationLo; return $this; } function StateDeleteCommand_init_$Create$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker) { return StateDeleteCommand_init_$Init$(seen1, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, serializationConstructorMarker, objectCreate(protoOf(StateDeleteCommand))); } function StateDeleteCommand(sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) { Companion_getInstance_144(); sdcActorUid = sdcActorUid === VOID ? new Long(0, 0) : sdcActorUid; sdcHash = sdcHash === VOID ? new Long(0, 0) : sdcHash; sdcActivityUid = sdcActivityUid === VOID ? new Long(0, 0) : sdcActivityUid; sdcStateId = sdcStateId === VOID ? null : sdcStateId; sdcLastMod = sdcLastMod === VOID ? new Long(0, 0) : sdcLastMod; sdcRegistrationHi = sdcRegistrationHi === VOID ? null : sdcRegistrationHi; sdcRegistrationLo = sdcRegistrationLo === VOID ? null : sdcRegistrationLo; this.sdcActorUid_1 = sdcActorUid; this.sdcHash_1 = sdcHash; this.sdcActivityUid_1 = sdcActivityUid; this.sdcStateId_1 = sdcStateId; this.sdcLastMod_1 = sdcLastMod; this.sdcRegistrationHi_1 = sdcRegistrationHi; this.sdcRegistrationLo_1 = sdcRegistrationLo; } protoOf(StateDeleteCommand).set_sdcActorUid_ujci5u_k$ = function (_set____db54di) { this.sdcActorUid_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcActorUid_xozwuc_k$ = function () { return this.sdcActorUid_1; }; protoOf(StateDeleteCommand).set_sdcHash_m99pfp_k$ = function (_set____db54di) { this.sdcHash_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcHash_xcr69j_k$ = function () { return this.sdcHash_1; }; protoOf(StateDeleteCommand).set_sdcActivityUid_j3m7zm_k$ = function (_set____db54di) { this.sdcActivityUid_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcActivityUid_hw3jug_k$ = function () { return this.sdcActivityUid_1; }; protoOf(StateDeleteCommand).set_sdcStateId_4c0deo_k$ = function (_set____db54di) { this.sdcStateId_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcStateId_yqyxs3_k$ = function () { return this.sdcStateId_1; }; protoOf(StateDeleteCommand).set_sdcLastMod_lrjbw9_k$ = function (_set____db54di) { this.sdcLastMod_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcLastMod_5onzi5_k$ = function () { return this.sdcLastMod_1; }; protoOf(StateDeleteCommand).set_sdcRegistrationHi_nzosxo_k$ = function (_set____db54di) { this.sdcRegistrationHi_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcRegistrationHi_n4a6kj_k$ = function () { return this.sdcRegistrationHi_1; }; protoOf(StateDeleteCommand).set_sdcRegistrationLo_6ny92y_k$ = function (_set____db54di) { this.sdcRegistrationLo_1 = _set____db54di; }; protoOf(StateDeleteCommand).get_sdcRegistrationLo_n4a6o5_k$ = function () { return this.sdcRegistrationLo_1; }; protoOf(StateDeleteCommand).component1_7eebsc_k$ = function () { return this.sdcActorUid_1; }; protoOf(StateDeleteCommand).component2_7eebsb_k$ = function () { return this.sdcHash_1; }; protoOf(StateDeleteCommand).component3_7eebsa_k$ = function () { return this.sdcActivityUid_1; }; protoOf(StateDeleteCommand).component4_7eebs9_k$ = function () { return this.sdcStateId_1; }; protoOf(StateDeleteCommand).component5_7eebs8_k$ = function () { return this.sdcLastMod_1; }; protoOf(StateDeleteCommand).component6_7eebs7_k$ = function () { return this.sdcRegistrationHi_1; }; protoOf(StateDeleteCommand).component7_7eebs6_k$ = function () { return this.sdcRegistrationLo_1; }; protoOf(StateDeleteCommand).copy_b1eq5i_k$ = function (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) { return new StateDeleteCommand(sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo); }; protoOf(StateDeleteCommand).copy$default_ubzxiu_k$ = function (sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo, $super) { sdcActorUid = sdcActorUid === VOID ? this.sdcActorUid_1 : sdcActorUid; sdcHash = sdcHash === VOID ? this.sdcHash_1 : sdcHash; sdcActivityUid = sdcActivityUid === VOID ? this.sdcActivityUid_1 : sdcActivityUid; sdcStateId = sdcStateId === VOID ? this.sdcStateId_1 : sdcStateId; sdcLastMod = sdcLastMod === VOID ? this.sdcLastMod_1 : sdcLastMod; sdcRegistrationHi = sdcRegistrationHi === VOID ? this.sdcRegistrationHi_1 : sdcRegistrationHi; sdcRegistrationLo = sdcRegistrationLo === VOID ? this.sdcRegistrationLo_1 : sdcRegistrationLo; return $super === VOID ? this.copy_b1eq5i_k$(sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo) : $super.copy_b1eq5i_k$.call(this, sdcActorUid, sdcHash, sdcActivityUid, sdcStateId, sdcLastMod, sdcRegistrationHi, sdcRegistrationLo); }; protoOf(StateDeleteCommand).toString = function () { return 'StateDeleteCommand(sdcActorUid=' + this.sdcActorUid_1.toString() + ', sdcHash=' + this.sdcHash_1.toString() + ', sdcActivityUid=' + this.sdcActivityUid_1.toString() + ', sdcStateId=' + this.sdcStateId_1 + ', sdcLastMod=' + this.sdcLastMod_1.toString() + ', sdcRegistrationHi=' + toString_0(this.sdcRegistrationHi_1) + ', sdcRegistrationLo=' + toString_0(this.sdcRegistrationLo_1) + ')'; }; protoOf(StateDeleteCommand).hashCode = function () { var result = this.sdcActorUid_1.hashCode(); result = imul(result, 31) + this.sdcHash_1.hashCode() | 0; result = imul(result, 31) + this.sdcActivityUid_1.hashCode() | 0; result = imul(result, 31) + (this.sdcStateId_1 == null ? 0 : getStringHashCode(this.sdcStateId_1)) | 0; result = imul(result, 31) + this.sdcLastMod_1.hashCode() | 0; result = imul(result, 31) + (this.sdcRegistrationHi_1 == null ? 0 : this.sdcRegistrationHi_1.hashCode()) | 0; result = imul(result, 31) + (this.sdcRegistrationLo_1 == null ? 0 : this.sdcRegistrationLo_1.hashCode()) | 0; return result; }; protoOf(StateDeleteCommand).equals = function (other) { if (this === other) return true; if (!(other instanceof StateDeleteCommand)) return false; var tmp0_other_with_cast = other instanceof StateDeleteCommand ? other : THROW_CCE(); if (!this.sdcActorUid_1.equals(tmp0_other_with_cast.sdcActorUid_1)) return false; if (!this.sdcHash_1.equals(tmp0_other_with_cast.sdcHash_1)) return false; if (!this.sdcActivityUid_1.equals(tmp0_other_with_cast.sdcActivityUid_1)) return false; if (!(this.sdcStateId_1 == tmp0_other_with_cast.sdcStateId_1)) return false; if (!this.sdcLastMod_1.equals(tmp0_other_with_cast.sdcLastMod_1)) return false; if (!equals(this.sdcRegistrationHi_1, tmp0_other_with_cast.sdcRegistrationHi_1)) return false; if (!equals(this.sdcRegistrationLo_1, tmp0_other_with_cast.sdcRegistrationLo_1)) return false; return true; }; function Companion_141() { Companion_instance_141 = this; this.TABLE_ID_1 = 3289; } protoOf(Companion_141).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_141).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_136(); }; var Companion_instance_141; function Companion_getInstance_145() { if (Companion_instance_141 == null) new Companion_141(); return Companion_instance_141; } function $serializer_136() { $serializer_instance_136 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StateEntity', this, 14); tmp0_serialDesc.addElement_5pzumi_k$('seActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('seHash', true); tmp0_serialDesc.addElement_5pzumi_k$('seActivityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('seStateId', true); tmp0_serialDesc.addElement_5pzumi_k$('seLastMod', true); tmp0_serialDesc.addElement_5pzumi_k$('seTimeStored', true); tmp0_serialDesc.addElement_5pzumi_k$('seContentType', true); tmp0_serialDesc.addElement_5pzumi_k$('seCompressed', true); tmp0_serialDesc.addElement_5pzumi_k$('seContent', true); tmp0_serialDesc.addElement_5pzumi_k$('seDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('seRegistrationHi', true); tmp0_serialDesc.addElement_5pzumi_k$('seRegistrationLo', true); tmp0_serialDesc.addElement_5pzumi_k$('seH5PPreloaded', true); tmp0_serialDesc.addElement_5pzumi_k$('seH5PSubContentId', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_136).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_136).childSerializers_5ghqw5_k$ = 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(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), IntSerializer_getInstance(), StringSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(LongSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_136).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = null; var tmp11_local7 = 0; var tmp12_local8 = null; var tmp13_local9 = false; var tmp14_local10 = null; var tmp15_local11 = null; var tmp16_local12 = false; var tmp17_local13 = null; var tmp18_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp18_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; } else while (tmp1_flag) { tmp2_index = tmp18_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp18_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp18_input.decodeIntElement_941u6a_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp18_input.decodeStringElement_3oenpg_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, LongSerializer_getInstance(), tmp14_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, LongSerializer_getInstance(), tmp15_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp18_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp18_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, StringSerializer_getInstance(), tmp17_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp18_input.endStructure_1xqz0n_k$(tmp0_desc); return StateEntity_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, tmp16_local12, tmp17_local13, null); }; protoOf($serializer_136).serialize_9odqbz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.seActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.seActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.seHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.seHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.seActivityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.seActivityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.seStateId_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 3, value.seStateId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.seLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.seLastMod_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.seTimeStored_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.seTimeStored_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !(value.seContentType_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 6, value.seContentType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.seCompressed_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 7, value.seCompressed_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !(value.seContent_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 8, value.seContent_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !(value.seDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 9, value.seDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.seRegistrationHi_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, LongSerializer_getInstance(), value.seRegistrationHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.seRegistrationLo_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, LongSerializer_getInstance(), value.seRegistrationLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.seH5PPreloaded_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 12, value.seH5PPreloaded_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.seH5PSubContentId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, StringSerializer_getInstance(), value.seH5PSubContentId_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_136).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_9odqbz_k$(encoder, value instanceof StateEntity ? value : THROW_CCE()); }; var $serializer_instance_136; function $serializer_getInstance_136() { if ($serializer_instance_136 == null) new $serializer_136(); return $serializer_instance_136; } function StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_136().descriptor_1); } if (0 === (seen1 & 1)) $this.seActorUid_1 = new Long(0, 0); else $this.seActorUid_1 = seActorUid; if (0 === (seen1 & 2)) $this.seHash_1 = new Long(0, 0); else $this.seHash_1 = seHash; if (0 === (seen1 & 4)) $this.seActivityUid_1 = new Long(0, 0); else $this.seActivityUid_1 = seActivityUid; if (0 === (seen1 & 8)) $this.seStateId_1 = ''; else $this.seStateId_1 = seStateId; if (0 === (seen1 & 16)) $this.seLastMod_1 = new Long(0, 0); else $this.seLastMod_1 = seLastMod; if (0 === (seen1 & 32)) $this.seTimeStored_1 = new Long(0, 0); else $this.seTimeStored_1 = seTimeStored; if (0 === (seen1 & 64)) $this.seContentType_1 = ''; else $this.seContentType_1 = seContentType; if (0 === (seen1 & 128)) $this.seCompressed_1 = 0; else $this.seCompressed_1 = seCompressed; if (0 === (seen1 & 256)) $this.seContent_1 = ''; else $this.seContent_1 = seContent; if (0 === (seen1 & 512)) $this.seDeleted_1 = false; else $this.seDeleted_1 = seDeleted; if (0 === (seen1 & 1024)) $this.seRegistrationHi_1 = null; else $this.seRegistrationHi_1 = seRegistrationHi; if (0 === (seen1 & 2048)) $this.seRegistrationLo_1 = null; else $this.seRegistrationLo_1 = seRegistrationLo; if (0 === (seen1 & 4096)) $this.seH5PPreloaded_1 = false; else $this.seH5PPreloaded_1 = seH5PPreloaded; if (0 === (seen1 & 8192)) $this.seH5PSubContentId_1 = null; else $this.seH5PSubContentId_1 = seH5PSubContentId; return $this; } function StateEntity_init_$Create$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker) { return StateEntity_init_$Init$(seen1, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, serializationConstructorMarker, objectCreate(protoOf(StateEntity))); } function StateEntity(seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) { Companion_getInstance_145(); seActorUid = seActorUid === VOID ? new Long(0, 0) : seActorUid; seHash = seHash === VOID ? new Long(0, 0) : seHash; seActivityUid = seActivityUid === VOID ? new Long(0, 0) : seActivityUid; seStateId = seStateId === VOID ? '' : seStateId; seLastMod = seLastMod === VOID ? new Long(0, 0) : seLastMod; seTimeStored = seTimeStored === VOID ? new Long(0, 0) : seTimeStored; seContentType = seContentType === VOID ? '' : seContentType; seCompressed = seCompressed === VOID ? 0 : seCompressed; seContent = seContent === VOID ? '' : seContent; seDeleted = seDeleted === VOID ? false : seDeleted; seRegistrationHi = seRegistrationHi === VOID ? null : seRegistrationHi; seRegistrationLo = seRegistrationLo === VOID ? null : seRegistrationLo; seH5PPreloaded = seH5PPreloaded === VOID ? false : seH5PPreloaded; seH5PSubContentId = seH5PSubContentId === VOID ? null : seH5PSubContentId; this.seActorUid_1 = seActorUid; this.seHash_1 = seHash; this.seActivityUid_1 = seActivityUid; this.seStateId_1 = seStateId; this.seLastMod_1 = seLastMod; this.seTimeStored_1 = seTimeStored; this.seContentType_1 = seContentType; this.seCompressed_1 = seCompressed; this.seContent_1 = seContent; this.seDeleted_1 = seDeleted; this.seRegistrationHi_1 = seRegistrationHi; this.seRegistrationLo_1 = seRegistrationLo; this.seH5PPreloaded_1 = seH5PPreloaded; this.seH5PSubContentId_1 = seH5PSubContentId; } protoOf(StateEntity).set_seActorUid_jihbg_k$ = function (_set____db54di) { this.seActorUid_1 = _set____db54di; }; protoOf(StateEntity).get_seActorUid_tr8kiy_k$ = function () { return this.seActorUid_1; }; protoOf(StateEntity).set_seHash_wek43l_k$ = function (_set____db54di) { this.seHash_1 = _set____db54di; }; protoOf(StateEntity).get_seHash_jepwnd_k$ = function () { return this.seHash_1; }; protoOf(StateEntity).set_seActivityUid_s47jpw_k$ = function (_set____db54di) { this.seActivityUid_1 = _set____db54di; }; protoOf(StateEntity).get_seActivityUid_ny2k12_k$ = function () { return this.seActivityUid_1; }; protoOf(StateEntity).set_seStateId_7jplxp_k$ = function (_set____db54di) { this.seStateId_1 = _set____db54di; }; protoOf(StateEntity).get_seStateId_okwh5b_k$ = function () { return this.seStateId_1; }; protoOf(StateEntity).set_seLastMod_rbj81t_k$ = function (_set____db54di) { this.seLastMod_1 = _set____db54di; }; protoOf(StateEntity).get_seLastMod_60knjl_k$ = function () { return this.seLastMod_1; }; protoOf(StateEntity).set_seTimeStored_hhu2kf_k$ = function (_set____db54di) { this.seTimeStored_1 = _set____db54di; }; protoOf(StateEntity).get_seTimeStored_68pib9_k$ = function () { return this.seTimeStored_1; }; protoOf(StateEntity).set_seContentType_m6nc6_k$ = function (_set____db54di) { this.seContentType_1 = _set____db54di; }; protoOf(StateEntity).get_seContentType_woisfs_k$ = function () { return this.seContentType_1; }; protoOf(StateEntity).set_seCompressed_jbdkrc_k$ = function (_set____db54di) { this.seCompressed_1 = _set____db54di; }; protoOf(StateEntity).get_seCompressed_pgx744_k$ = function () { return this.seCompressed_1; }; protoOf(StateEntity).set_seContent_9n5b28_k$ = function (_set____db54di) { this.seContent_1 = _set____db54di; }; protoOf(StateEntity).get_seContent_mj4ftq_k$ = function () { return this.seContent_1; }; protoOf(StateEntity).set_seDeleted_300q0l_k$ = function (_set____db54di) { this.seDeleted_1 = _set____db54di; }; protoOf(StateEntity).get_seDeleted_wfpn0e_k$ = function () { return this.seDeleted_1; }; protoOf(StateEntity).set_seRegistrationHi_1ij56m_k$ = function (_set____db54di) { this.seRegistrationHi_1 = _set____db54di; }; protoOf(StateEntity).get_seRegistrationHi_h747u3_k$ = function () { return this.seRegistrationHi_1; }; protoOf(StateEntity).set_seRegistrationLo_iu9p1c_k$ = function (_set____db54di) { this.seRegistrationLo_1 = _set____db54di; }; protoOf(StateEntity).get_seRegistrationLo_h747qh_k$ = function () { return this.seRegistrationLo_1; }; protoOf(StateEntity).set_seH5PPreloaded_fnkoin_k$ = function (_set____db54di) { this.seH5PPreloaded_1 = _set____db54di; }; protoOf(StateEntity).get_seH5PPreloaded_ujtkw0_k$ = function () { return this.seH5PPreloaded_1; }; protoOf(StateEntity).set_seH5PSubContentId_ax8zwv_k$ = function (_set____db54di) { this.seH5PSubContentId_1 = _set____db54di; }; protoOf(StateEntity).get_seH5PSubContentId_clqi6c_k$ = function () { return this.seH5PSubContentId_1; }; protoOf(StateEntity).component1_7eebsc_k$ = function () { return this.seActorUid_1; }; protoOf(StateEntity).component2_7eebsb_k$ = function () { return this.seHash_1; }; protoOf(StateEntity).component3_7eebsa_k$ = function () { return this.seActivityUid_1; }; protoOf(StateEntity).component4_7eebs9_k$ = function () { return this.seStateId_1; }; protoOf(StateEntity).component5_7eebs8_k$ = function () { return this.seLastMod_1; }; protoOf(StateEntity).component6_7eebs7_k$ = function () { return this.seTimeStored_1; }; protoOf(StateEntity).component7_7eebs6_k$ = function () { return this.seContentType_1; }; protoOf(StateEntity).component8_7eebs5_k$ = function () { return this.seCompressed_1; }; protoOf(StateEntity).component9_7eebs4_k$ = function () { return this.seContent_1; }; protoOf(StateEntity).component10_gazzfo_k$ = function () { return this.seDeleted_1; }; protoOf(StateEntity).component11_gazzfn_k$ = function () { return this.seRegistrationHi_1; }; protoOf(StateEntity).component12_gazzfm_k$ = function () { return this.seRegistrationLo_1; }; protoOf(StateEntity).component13_gazzfl_k$ = function () { return this.seH5PPreloaded_1; }; protoOf(StateEntity).component14_gazzfk_k$ = function () { return this.seH5PSubContentId_1; }; protoOf(StateEntity).copy_b4l6wm_k$ = function (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) { return new StateEntity(seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId); }; protoOf(StateEntity).copy$default_ux8csi_k$ = function (seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId, $super) { seActorUid = seActorUid === VOID ? this.seActorUid_1 : seActorUid; seHash = seHash === VOID ? this.seHash_1 : seHash; seActivityUid = seActivityUid === VOID ? this.seActivityUid_1 : seActivityUid; seStateId = seStateId === VOID ? this.seStateId_1 : seStateId; seLastMod = seLastMod === VOID ? this.seLastMod_1 : seLastMod; seTimeStored = seTimeStored === VOID ? this.seTimeStored_1 : seTimeStored; seContentType = seContentType === VOID ? this.seContentType_1 : seContentType; seCompressed = seCompressed === VOID ? this.seCompressed_1 : seCompressed; seContent = seContent === VOID ? this.seContent_1 : seContent; seDeleted = seDeleted === VOID ? this.seDeleted_1 : seDeleted; seRegistrationHi = seRegistrationHi === VOID ? this.seRegistrationHi_1 : seRegistrationHi; seRegistrationLo = seRegistrationLo === VOID ? this.seRegistrationLo_1 : seRegistrationLo; seH5PPreloaded = seH5PPreloaded === VOID ? this.seH5PPreloaded_1 : seH5PPreloaded; seH5PSubContentId = seH5PSubContentId === VOID ? this.seH5PSubContentId_1 : seH5PSubContentId; return $super === VOID ? this.copy_b4l6wm_k$(seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId) : $super.copy_b4l6wm_k$.call(this, seActorUid, seHash, seActivityUid, seStateId, seLastMod, seTimeStored, seContentType, seCompressed, seContent, seDeleted, seRegistrationHi, seRegistrationLo, seH5PPreloaded, seH5PSubContentId); }; protoOf(StateEntity).toString = function () { return 'StateEntity(seActorUid=' + this.seActorUid_1.toString() + ', seHash=' + this.seHash_1.toString() + ', seActivityUid=' + this.seActivityUid_1.toString() + ', seStateId=' + this.seStateId_1 + ', seLastMod=' + this.seLastMod_1.toString() + ', seTimeStored=' + this.seTimeStored_1.toString() + ', seContentType=' + this.seContentType_1 + ', seCompressed=' + this.seCompressed_1 + ', seContent=' + this.seContent_1 + ', seDeleted=' + this.seDeleted_1 + ', seRegistrationHi=' + toString_0(this.seRegistrationHi_1) + ', seRegistrationLo=' + toString_0(this.seRegistrationLo_1) + ', seH5PPreloaded=' + this.seH5PPreloaded_1 + ', seH5PSubContentId=' + this.seH5PSubContentId_1 + ')'; }; protoOf(StateEntity).hashCode = function () { var result = this.seActorUid_1.hashCode(); result = imul(result, 31) + this.seHash_1.hashCode() | 0; result = imul(result, 31) + this.seActivityUid_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.seStateId_1) | 0; result = imul(result, 31) + this.seLastMod_1.hashCode() | 0; result = imul(result, 31) + this.seTimeStored_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.seContentType_1) | 0; result = imul(result, 31) + this.seCompressed_1 | 0; result = imul(result, 31) + getStringHashCode(this.seContent_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.seDeleted_1) | 0; result = imul(result, 31) + (this.seRegistrationHi_1 == null ? 0 : this.seRegistrationHi_1.hashCode()) | 0; result = imul(result, 31) + (this.seRegistrationLo_1 == null ? 0 : this.seRegistrationLo_1.hashCode()) | 0; result = imul(result, 31) + getBooleanHashCode(this.seH5PPreloaded_1) | 0; result = imul(result, 31) + (this.seH5PSubContentId_1 == null ? 0 : getStringHashCode(this.seH5PSubContentId_1)) | 0; return result; }; protoOf(StateEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StateEntity)) return false; var tmp0_other_with_cast = other instanceof StateEntity ? other : THROW_CCE(); if (!this.seActorUid_1.equals(tmp0_other_with_cast.seActorUid_1)) return false; if (!this.seHash_1.equals(tmp0_other_with_cast.seHash_1)) return false; if (!this.seActivityUid_1.equals(tmp0_other_with_cast.seActivityUid_1)) return false; if (!(this.seStateId_1 === tmp0_other_with_cast.seStateId_1)) return false; if (!this.seLastMod_1.equals(tmp0_other_with_cast.seLastMod_1)) return false; if (!this.seTimeStored_1.equals(tmp0_other_with_cast.seTimeStored_1)) return false; if (!(this.seContentType_1 === tmp0_other_with_cast.seContentType_1)) return false; if (!(this.seCompressed_1 === tmp0_other_with_cast.seCompressed_1)) return false; if (!(this.seContent_1 === tmp0_other_with_cast.seContent_1)) return false; if (!(this.seDeleted_1 === tmp0_other_with_cast.seDeleted_1)) return false; if (!equals(this.seRegistrationHi_1, tmp0_other_with_cast.seRegistrationHi_1)) return false; if (!equals(this.seRegistrationLo_1, tmp0_other_with_cast.seRegistrationLo_1)) return false; if (!(this.seH5PPreloaded_1 === tmp0_other_with_cast.seH5PPreloaded_1)) return false; if (!(this.seH5PSubContentId_1 == tmp0_other_with_cast.seH5PSubContentId_1)) return false; return true; }; function Companion_142() { Companion_instance_142 = this; this.TYPE_PARENT_1 = 1; this.TYPE_GROUPING_1 = 2; this.TYPE_CATEGORY_1 = 3; this.TYPE_OTHER_1 = 4; this.TABLE_ID_1 = 44044; } protoOf(Companion_142).get_TYPE_PARENT_ysntnq_k$ = function () { return this.TYPE_PARENT_1; }; protoOf(Companion_142).get_TYPE_GROUPING_ri9ltt_k$ = function () { return this.TYPE_GROUPING_1; }; protoOf(Companion_142).get_TYPE_CATEGORY_z1o9ty_k$ = function () { return this.TYPE_CATEGORY_1; }; protoOf(Companion_142).get_TYPE_OTHER_ex80jw_k$ = function () { return this.TYPE_OTHER_1; }; protoOf(Companion_142).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; var Companion_instance_142; function Companion_getInstance_146() { if (Companion_instance_142 == null) new Companion_142(); return Companion_instance_142; } function StatementContextActivityJoin(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) { Companion_getInstance_146(); scajFromStatementIdHi = scajFromStatementIdHi === VOID ? new Long(0, 0) : scajFromStatementIdHi; scajFromStatementIdLo = scajFromStatementIdLo === VOID ? new Long(0, 0) : scajFromStatementIdLo; scajToHash = scajToHash === VOID ? new Long(0, 0) : scajToHash; scajContextType = scajContextType === VOID ? 0 : scajContextType; scajToActivityUid = scajToActivityUid === VOID ? new Long(0, 0) : scajToActivityUid; scajToActivityId = scajToActivityId === VOID ? null : scajToActivityId; scajEtag = scajEtag === VOID ? new Long(1, 0) : scajEtag; this.scajFromStatementIdHi_1 = scajFromStatementIdHi; this.scajFromStatementIdLo_1 = scajFromStatementIdLo; this.scajToHash_1 = scajToHash; this.scajContextType_1 = scajContextType; this.scajToActivityUid_1 = scajToActivityUid; this.scajToActivityId_1 = scajToActivityId; this.scajEtag_1 = scajEtag; } protoOf(StatementContextActivityJoin).set_scajFromStatementIdHi_xv9hil_k$ = function (_set____db54di) { this.scajFromStatementIdHi_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajFromStatementIdHi_qulo69_k$ = function () { return this.scajFromStatementIdHi_1; }; protoOf(StatementContextActivityJoin).set_scajFromStatementIdLo_3iszsf_k$ = function (_set____db54di) { this.scajFromStatementIdLo_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajFromStatementIdLo_qulo2n_k$ = function () { return this.scajFromStatementIdLo_1; }; protoOf(StatementContextActivityJoin).set_scajToHash_icqxof_k$ = function (_set____db54di) { this.scajToHash_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajToHash_pj4nzp_k$ = function () { return this.scajToHash_1; }; protoOf(StatementContextActivityJoin).set_scajContextType_yrssz9_k$ = function (_set____db54di) { this.scajContextType_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajContextType_dvqb8n_k$ = function () { return this.scajContextType_1; }; protoOf(StatementContextActivityJoin).set_scajToActivityUid_5fdjzi_k$ = function (_set____db54di) { this.scajToActivityUid_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajToActivityUid_smm9b8_k$ = function () { return this.scajToActivityUid_1; }; protoOf(StatementContextActivityJoin).set_scajToActivityId_z87bw_k$ = function (_set____db54di) { this.scajToActivityId_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajToActivityId_f460ft_k$ = function () { return this.scajToActivityId_1; }; protoOf(StatementContextActivityJoin).set_scajEtag_frphwt_k$ = function (_set____db54di) { this.scajEtag_1 = _set____db54di; }; protoOf(StatementContextActivityJoin).get_scajEtag_ofj8qf_k$ = function () { return this.scajEtag_1; }; protoOf(StatementContextActivityJoin).component1_7eebsc_k$ = function () { return this.scajFromStatementIdHi_1; }; protoOf(StatementContextActivityJoin).component2_7eebsb_k$ = function () { return this.scajFromStatementIdLo_1; }; protoOf(StatementContextActivityJoin).component3_7eebsa_k$ = function () { return this.scajToHash_1; }; protoOf(StatementContextActivityJoin).component4_7eebs9_k$ = function () { return this.scajContextType_1; }; protoOf(StatementContextActivityJoin).component5_7eebs8_k$ = function () { return this.scajToActivityUid_1; }; protoOf(StatementContextActivityJoin).component6_7eebs7_k$ = function () { return this.scajToActivityId_1; }; protoOf(StatementContextActivityJoin).component7_7eebs6_k$ = function () { return this.scajEtag_1; }; protoOf(StatementContextActivityJoin).copy_foo81y_k$ = function (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) { return new StatementContextActivityJoin(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag); }; protoOf(StatementContextActivityJoin).copy$default_nvmg1o_k$ = function (scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag, $super) { scajFromStatementIdHi = scajFromStatementIdHi === VOID ? this.scajFromStatementIdHi_1 : scajFromStatementIdHi; scajFromStatementIdLo = scajFromStatementIdLo === VOID ? this.scajFromStatementIdLo_1 : scajFromStatementIdLo; scajToHash = scajToHash === VOID ? this.scajToHash_1 : scajToHash; scajContextType = scajContextType === VOID ? this.scajContextType_1 : scajContextType; scajToActivityUid = scajToActivityUid === VOID ? this.scajToActivityUid_1 : scajToActivityUid; scajToActivityId = scajToActivityId === VOID ? this.scajToActivityId_1 : scajToActivityId; scajEtag = scajEtag === VOID ? this.scajEtag_1 : scajEtag; return $super === VOID ? this.copy_foo81y_k$(scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag) : $super.copy_foo81y_k$.call(this, scajFromStatementIdHi, scajFromStatementIdLo, scajToHash, scajContextType, scajToActivityUid, scajToActivityId, scajEtag); }; protoOf(StatementContextActivityJoin).toString = function () { return 'StatementContextActivityJoin(scajFromStatementIdHi=' + this.scajFromStatementIdHi_1.toString() + ', scajFromStatementIdLo=' + this.scajFromStatementIdLo_1.toString() + ', scajToHash=' + this.scajToHash_1.toString() + ', scajContextType=' + this.scajContextType_1 + ', scajToActivityUid=' + this.scajToActivityUid_1.toString() + ', scajToActivityId=' + this.scajToActivityId_1 + ', scajEtag=' + this.scajEtag_1.toString() + ')'; }; protoOf(StatementContextActivityJoin).hashCode = function () { var result = this.scajFromStatementIdHi_1.hashCode(); result = imul(result, 31) + this.scajFromStatementIdLo_1.hashCode() | 0; result = imul(result, 31) + this.scajToHash_1.hashCode() | 0; result = imul(result, 31) + this.scajContextType_1 | 0; result = imul(result, 31) + this.scajToActivityUid_1.hashCode() | 0; result = imul(result, 31) + (this.scajToActivityId_1 == null ? 0 : getStringHashCode(this.scajToActivityId_1)) | 0; result = imul(result, 31) + this.scajEtag_1.hashCode() | 0; return result; }; protoOf(StatementContextActivityJoin).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementContextActivityJoin)) return false; var tmp0_other_with_cast = other instanceof StatementContextActivityJoin ? other : THROW_CCE(); if (!this.scajFromStatementIdHi_1.equals(tmp0_other_with_cast.scajFromStatementIdHi_1)) return false; if (!this.scajFromStatementIdLo_1.equals(tmp0_other_with_cast.scajFromStatementIdLo_1)) return false; if (!this.scajToHash_1.equals(tmp0_other_with_cast.scajToHash_1)) return false; if (!(this.scajContextType_1 === tmp0_other_with_cast.scajContextType_1)) return false; if (!this.scajToActivityUid_1.equals(tmp0_other_with_cast.scajToActivityUid_1)) return false; if (!(this.scajToActivityId_1 == tmp0_other_with_cast.scajToActivityId_1)) return false; if (!this.scajEtag_1.equals(tmp0_other_with_cast.scajEtag_1)) return false; return true; }; function Companion_143() { Companion_instance_143 = this; this.TABLE_ID_1 = 60; this.RESULT_UNSET_1 = 0; this.RESULT_SUCCESS_1 = 2; this.RESULT_FAILURE_1 = 1; this.CONTENT_COMPLETE_1 = 100; this.CONTENT_INCOMPLETE_1 = 101; this.CONTENT_PASSED_1 = 102; this.CONTENT_FAILED_1 = 103; } protoOf(Companion_143).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_143).get_RESULT_UNSET_481jkg_k$ = function () { return this.RESULT_UNSET_1; }; protoOf(Companion_143).get_RESULT_SUCCESS_yt0dl6_k$ = function () { return this.RESULT_SUCCESS_1; }; protoOf(Companion_143).get_RESULT_FAILURE_nbcsz3_k$ = function () { return this.RESULT_FAILURE_1; }; protoOf(Companion_143).get_CONTENT_COMPLETE_auihnc_k$ = function () { return this.CONTENT_COMPLETE_1; }; protoOf(Companion_143).get_CONTENT_INCOMPLETE_98uop9_k$ = function () { return this.CONTENT_INCOMPLETE_1; }; protoOf(Companion_143).get_CONTENT_PASSED_nk3ra9_k$ = function () { return this.CONTENT_PASSED_1; }; protoOf(Companion_143).get_CONTENT_FAILED_saqiac_k$ = function () { return this.CONTENT_FAILED_1; }; protoOf(Companion_143).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_137(); }; var Companion_instance_143; function Companion_getInstance_147() { if (Companion_instance_143 == null) new Companion_143(); return Companion_instance_143; } function $serializer_137() { $serializer_instance_137 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntity', this, 36); tmp0_serialDesc.addElement_5pzumi_k$('statementIdHi', true); tmp0_serialDesc.addElement_5pzumi_k$('statementIdLo', true); tmp0_serialDesc.addElement_5pzumi_k$('statementActorPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementVerbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementObjectType', true); tmp0_serialDesc.addElement_5pzumi_k$('statementObjectUid1', true); tmp0_serialDesc.addElement_5pzumi_k$('statementObjectUid2', true); tmp0_serialDesc.addElement_5pzumi_k$('statementActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('authorityActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('teamUid', true); tmp0_serialDesc.addElement_5pzumi_k$('resultCompletion', true); tmp0_serialDesc.addElement_5pzumi_k$('resultSuccess', true); tmp0_serialDesc.addElement_5pzumi_k$('resultScoreScaled', true); tmp0_serialDesc.addElement_5pzumi_k$('resultScoreRaw', true); tmp0_serialDesc.addElement_5pzumi_k$('resultScoreMin', true); tmp0_serialDesc.addElement_5pzumi_k$('resultScoreMax', true); tmp0_serialDesc.addElement_5pzumi_k$('resultDuration', true); tmp0_serialDesc.addElement_5pzumi_k$('resultResponse', true); tmp0_serialDesc.addElement_5pzumi_k$('timestamp', true); tmp0_serialDesc.addElement_5pzumi_k$('stored', true); tmp0_serialDesc.addElement_5pzumi_k$('contextRegistrationHi', true); tmp0_serialDesc.addElement_5pzumi_k$('contextRegistrationLo', true); tmp0_serialDesc.addElement_5pzumi_k$('contextRegistrationHash', true); tmp0_serialDesc.addElement_5pzumi_k$('contextPlatform', true); tmp0_serialDesc.addElement_5pzumi_k$('contextStatementRefIdHi', true); tmp0_serialDesc.addElement_5pzumi_k$('contextStatementRefIdLo', true); tmp0_serialDesc.addElement_5pzumi_k$('contextInstructorActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementLct', true); tmp0_serialDesc.addElement_5pzumi_k$('extensionProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('completionOrProgress', true); tmp0_serialDesc.addElement_5pzumi_k$('statementContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementLearnerGroupUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementCbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('statementDoorNode', true); tmp0_serialDesc.addElement_5pzumi_k$('isSubStatement', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_137).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_137).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), IntSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(BooleanSerializer_getInstance()), get_nullable(BooleanSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(FloatSerializer_getInstance()), get_nullable(LongSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), BooleanSerializer_getInstance()]; }; protoOf($serializer_137).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_bitMask1 = 0; var tmp5_local0 = new Long(0, 0); var tmp6_local1 = new Long(0, 0); var tmp7_local2 = new Long(0, 0); var tmp8_local3 = new Long(0, 0); var tmp9_local4 = 0; var tmp10_local5 = new Long(0, 0); var tmp11_local6 = new Long(0, 0); var tmp12_local7 = new Long(0, 0); var tmp13_local8 = new Long(0, 0); var tmp14_local9 = new Long(0, 0); var tmp15_local10 = null; var tmp16_local11 = null; var tmp17_local12 = null; var tmp18_local13 = null; var tmp19_local14 = null; var tmp20_local15 = null; var tmp21_local16 = null; var tmp22_local17 = null; var tmp23_local18 = new Long(0, 0); var tmp24_local19 = new Long(0, 0); var tmp25_local20 = new Long(0, 0); var tmp26_local21 = new Long(0, 0); var tmp27_local22 = new Long(0, 0); var tmp28_local23 = null; var tmp29_local24 = new Long(0, 0); var tmp30_local25 = new Long(0, 0); var tmp31_local26 = new Long(0, 0); var tmp32_local27 = new Long(0, 0); var tmp33_local28 = null; var tmp34_local29 = false; var tmp35_local30 = new Long(0, 0); var tmp36_local31 = new Long(0, 0); var tmp37_local32 = new Long(0, 0); var tmp38_local33 = new Long(0, 0); var tmp39_local34 = new Long(0, 0); var tmp40_local35 = false; var tmp41_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp41_input.decodeSequentially_xlblqy_k$()) { tmp5_local0 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp6_local1 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp7_local2 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp8_local3 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp9_local4 = tmp41_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp10_local5 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp11_local6 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp12_local7 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp13_local8 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp14_local9 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp15_local10 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp16_local11 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp17_local12 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp18_local13 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp19_local14 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp20_local15 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp21_local16 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp22_local17 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp23_local18 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; tmp24_local19 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; tmp25_local20 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; tmp26_local21 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; tmp27_local22 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; tmp28_local23 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; tmp29_local24 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; tmp30_local25 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; tmp31_local26 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; tmp32_local27 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; tmp33_local28 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, IntSerializer_getInstance(), tmp33_local28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; tmp34_local29 = tmp41_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; tmp35_local30 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; tmp36_local31 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; tmp37_local32 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 32); tmp4_bitMask1 = tmp4_bitMask1 | 1; tmp38_local33 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 33); tmp4_bitMask1 = tmp4_bitMask1 | 2; tmp39_local34 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 34); tmp4_bitMask1 = tmp4_bitMask1 | 4; tmp40_local35 = tmp41_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 35); tmp4_bitMask1 = tmp4_bitMask1 | 8; } else while (tmp1_flag) { tmp2_index = tmp41_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp5_local0 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp6_local1 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp7_local2 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp8_local3 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp9_local4 = tmp41_input.decodeIntElement_941u6a_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp10_local5 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp11_local6 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp12_local7 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp13_local8 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp14_local9 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp15_local10 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 10, BooleanSerializer_getInstance(), tmp15_local10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp16_local11 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 11, BooleanSerializer_getInstance(), tmp16_local11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp17_local12 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 12, FloatSerializer_getInstance(), tmp17_local12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp18_local13 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 13, FloatSerializer_getInstance(), tmp18_local13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp19_local14 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 14, FloatSerializer_getInstance(), tmp19_local14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp20_local15 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 15, FloatSerializer_getInstance(), tmp20_local15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp21_local16 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, LongSerializer_getInstance(), tmp21_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp22_local17 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 17, StringSerializer_getInstance(), tmp22_local17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp23_local18 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; case 19: tmp24_local19 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 19); tmp3_bitMask0 = tmp3_bitMask0 | 524288; break; case 20: tmp25_local20 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 20); tmp3_bitMask0 = tmp3_bitMask0 | 1048576; break; case 21: tmp26_local21 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 21); tmp3_bitMask0 = tmp3_bitMask0 | 2097152; break; case 22: tmp27_local22 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 22); tmp3_bitMask0 = tmp3_bitMask0 | 4194304; break; case 23: tmp28_local23 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 23, StringSerializer_getInstance(), tmp28_local23); tmp3_bitMask0 = tmp3_bitMask0 | 8388608; break; case 24: tmp29_local24 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 24); tmp3_bitMask0 = tmp3_bitMask0 | 16777216; break; case 25: tmp30_local25 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 25); tmp3_bitMask0 = tmp3_bitMask0 | 33554432; break; case 26: tmp31_local26 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 26); tmp3_bitMask0 = tmp3_bitMask0 | 67108864; break; case 27: tmp32_local27 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 27); tmp3_bitMask0 = tmp3_bitMask0 | 134217728; break; case 28: tmp33_local28 = tmp41_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 28, IntSerializer_getInstance(), tmp33_local28); tmp3_bitMask0 = tmp3_bitMask0 | 268435456; break; case 29: tmp34_local29 = tmp41_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 29); tmp3_bitMask0 = tmp3_bitMask0 | 536870912; break; case 30: tmp35_local30 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 30); tmp3_bitMask0 = tmp3_bitMask0 | 1073741824; break; case 31: tmp36_local31 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 31); tmp3_bitMask0 = tmp3_bitMask0 | -2147483648; break; case 32: tmp37_local32 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 32); tmp4_bitMask1 = tmp4_bitMask1 | 1; break; case 33: tmp38_local33 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 33); tmp4_bitMask1 = tmp4_bitMask1 | 2; break; case 34: tmp39_local34 = tmp41_input.decodeLongElement_994anb_k$(tmp0_desc, 34); tmp4_bitMask1 = tmp4_bitMask1 | 4; break; case 35: tmp40_local35 = tmp41_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 35); tmp4_bitMask1 = tmp4_bitMask1 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp41_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementEntity_init_$Create$(tmp3_bitMask0, tmp4_bitMask1, tmp5_local0, tmp6_local1, tmp7_local2, tmp8_local3, tmp9_local4, tmp10_local5, tmp11_local6, tmp12_local7, tmp13_local8, tmp14_local9, tmp15_local10, tmp16_local11, tmp17_local12, tmp18_local13, tmp19_local14, tmp20_local15, tmp21_local16, tmp22_local17, tmp23_local18, tmp24_local19, tmp25_local20, tmp26_local21, tmp27_local22, tmp28_local23, tmp29_local24, tmp30_local25, tmp31_local26, tmp32_local27, tmp33_local28, tmp34_local29, tmp35_local30, tmp36_local31, tmp37_local32, tmp38_local33, tmp39_local34, tmp40_local35, null); }; protoOf($serializer_137).serialize_7uxmzx_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.statementIdHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.statementIdHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.statementIdLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.statementIdLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.statementActorPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.statementActorPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.statementVerbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.statementVerbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !(value.statementObjectType_1 === 0)) { tmp1_output.encodeIntElement_krhhce_k$(tmp0_desc, 4, value.statementObjectType_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.statementObjectUid1__1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.statementObjectUid1__1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.statementObjectUid2__1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.statementObjectUid2__1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !value.statementActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 7, value.statementActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.authorityActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.authorityActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.teamUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.teamUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !(value.resultCompletion_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 10, BooleanSerializer_getInstance(), value.resultCompletion_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !(value.resultSuccess_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 11, BooleanSerializer_getInstance(), value.resultSuccess_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.resultScoreScaled_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 12, FloatSerializer_getInstance(), value.resultScoreScaled_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !(value.resultScoreRaw_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 13, FloatSerializer_getInstance(), value.resultScoreRaw_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !(value.resultScoreMin_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 14, FloatSerializer_getInstance(), value.resultScoreMin_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !(value.resultScoreMax_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 15, FloatSerializer_getInstance(), value.resultScoreMax_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.resultDuration_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, LongSerializer_getInstance(), value.resultDuration_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.resultResponse_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 17, StringSerializer_getInstance(), value.resultResponse_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !value.timestamp_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 18, value.timestamp_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 19) ? true : !value.stored_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 19, value.stored_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 20) ? true : !value.contextRegistrationHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 20, value.contextRegistrationHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 21) ? true : !value.contextRegistrationLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 21, value.contextRegistrationLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 22) ? true : !value.contextRegistrationHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 22, value.contextRegistrationHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 23) ? true : !(value.contextPlatform_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 23, StringSerializer_getInstance(), value.contextPlatform_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 24) ? true : !value.contextStatementRefIdHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 24, value.contextStatementRefIdHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 25) ? true : !value.contextStatementRefIdLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 25, value.contextStatementRefIdLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 26) ? true : !value.contextInstructorActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 26, value.contextInstructorActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 27) ? true : !value.statementLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 27, value.statementLct_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 28) ? true : !(value.extensionProgress_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 28, IntSerializer_getInstance(), value.extensionProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 29) ? true : !(value.completionOrProgress_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 29, value.completionOrProgress_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 30) ? true : !value.statementContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 30, value.statementContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 31) ? true : !value.statementLearnerGroupUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 31, value.statementLearnerGroupUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 32) ? true : !value.statementClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 32, value.statementClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 33) ? true : !value.statementCbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 33, value.statementCbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 34) ? true : !value.statementDoorNode_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 34, value.statementDoorNode_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 35) ? true : !(value.isSubStatement_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 35, value.isSubStatement_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_137).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_7uxmzx_k$(encoder, value instanceof StatementEntity ? value : THROW_CCE()); }; var $serializer_instance_137; function $serializer_getInstance_137() { if ($serializer_instance_137 == null) new $serializer_137(); return $serializer_instance_137; } function StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, $this) { if (!!(!(0 === (0 & seen1)) | !(0 === (0 & seen2)))) { // Inline function 'kotlin.intArrayOf' call var tmp = new Int32Array([seen1, seen2]); // Inline function 'kotlin.intArrayOf' call var tmp$ret$1 = new Int32Array([0, 0]); throwArrayMissingFieldException(tmp, tmp$ret$1, $serializer_getInstance_137().descriptor_1); } if (0 === (seen1 & 1)) $this.statementIdHi_1 = new Long(0, 0); else $this.statementIdHi_1 = statementIdHi; if (0 === (seen1 & 2)) $this.statementIdLo_1 = new Long(0, 0); else $this.statementIdLo_1 = statementIdLo; if (0 === (seen1 & 4)) $this.statementActorPersonUid_1 = new Long(0, 0); else $this.statementActorPersonUid_1 = statementActorPersonUid; if (0 === (seen1 & 8)) $this.statementVerbUid_1 = new Long(0, 0); else $this.statementVerbUid_1 = statementVerbUid; if (0 === (seen1 & 16)) $this.statementObjectType_1 = 0; else $this.statementObjectType_1 = statementObjectType; if (0 === (seen1 & 32)) $this.statementObjectUid1__1 = new Long(0, 0); else $this.statementObjectUid1__1 = statementObjectUid1; if (0 === (seen1 & 64)) $this.statementObjectUid2__1 = new Long(0, 0); else $this.statementObjectUid2__1 = statementObjectUid2; if (0 === (seen1 & 128)) $this.statementActorUid_1 = new Long(0, 0); else $this.statementActorUid_1 = statementActorUid; if (0 === (seen1 & 256)) $this.authorityActorUid_1 = new Long(0, 0); else $this.authorityActorUid_1 = authorityActorUid; if (0 === (seen1 & 512)) $this.teamUid_1 = new Long(0, 0); else $this.teamUid_1 = teamUid; if (0 === (seen1 & 1024)) $this.resultCompletion_1 = null; else $this.resultCompletion_1 = resultCompletion; if (0 === (seen1 & 2048)) $this.resultSuccess_1 = null; else $this.resultSuccess_1 = resultSuccess; if (0 === (seen1 & 4096)) $this.resultScoreScaled_1 = null; else $this.resultScoreScaled_1 = resultScoreScaled; if (0 === (seen1 & 8192)) $this.resultScoreRaw_1 = null; else $this.resultScoreRaw_1 = resultScoreRaw; if (0 === (seen1 & 16384)) $this.resultScoreMin_1 = null; else $this.resultScoreMin_1 = resultScoreMin; if (0 === (seen1 & 32768)) $this.resultScoreMax_1 = null; else $this.resultScoreMax_1 = resultScoreMax; if (0 === (seen1 & 65536)) $this.resultDuration_1 = null; else $this.resultDuration_1 = resultDuration; if (0 === (seen1 & 131072)) $this.resultResponse_1 = null; else $this.resultResponse_1 = resultResponse; if (0 === (seen1 & 262144)) $this.timestamp_1 = new Long(0, 0); else $this.timestamp_1 = timestamp; if (0 === (seen1 & 524288)) $this.stored_1 = new Long(0, 0); else $this.stored_1 = stored; if (0 === (seen1 & 1048576)) $this.contextRegistrationHi_1 = new Long(0, 0); else $this.contextRegistrationHi_1 = contextRegistrationHi; if (0 === (seen1 & 2097152)) $this.contextRegistrationLo_1 = new Long(0, 0); else $this.contextRegistrationLo_1 = contextRegistrationLo; if (0 === (seen1 & 4194304)) $this.contextRegistrationHash_1 = new Long(0, 0); else $this.contextRegistrationHash_1 = contextRegistrationHash; if (0 === (seen1 & 8388608)) $this.contextPlatform_1 = null; else $this.contextPlatform_1 = contextPlatform; if (0 === (seen1 & 16777216)) $this.contextStatementRefIdHi_1 = new Long(0, 0); else $this.contextStatementRefIdHi_1 = contextStatementRefIdHi; if (0 === (seen1 & 33554432)) $this.contextStatementRefIdLo_1 = new Long(0, 0); else $this.contextStatementRefIdLo_1 = contextStatementRefIdLo; if (0 === (seen1 & 67108864)) $this.contextInstructorActorUid_1 = new Long(0, 0); else $this.contextInstructorActorUid_1 = contextInstructorActorUid; if (0 === (seen1 & 134217728)) $this.statementLct_1 = new Long(0, 0); else $this.statementLct_1 = statementLct; if (0 === (seen1 & 268435456)) $this.extensionProgress_1 = null; else $this.extensionProgress_1 = extensionProgress; if (0 === (seen1 & 536870912)) $this.completionOrProgress_1 = false; else $this.completionOrProgress_1 = completionOrProgress; if (0 === (seen1 & 1073741824)) $this.statementContentEntryUid_1 = new Long(0, 0); else $this.statementContentEntryUid_1 = statementContentEntryUid; if (0 === (seen1 & -2147483648)) $this.statementLearnerGroupUid_1 = new Long(0, 0); else $this.statementLearnerGroupUid_1 = statementLearnerGroupUid; if (0 === (seen2 & 1)) $this.statementClazzUid_1 = new Long(0, 0); else $this.statementClazzUid_1 = statementClazzUid; if (0 === (seen2 & 2)) $this.statementCbUid_1 = new Long(0, 0); else $this.statementCbUid_1 = statementCbUid; if (0 === (seen2 & 4)) $this.statementDoorNode_1 = new Long(0, 0); else $this.statementDoorNode_1 = statementDoorNode; if (0 === (seen2 & 8)) $this.isSubStatement_1 = false; else $this.isSubStatement_1 = isSubStatement; return $this; } function StatementEntity_init_$Create$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker) { return StatementEntity_init_$Init$(seen1, seen2, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntity))); } function StatementEntity(statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) { Companion_getInstance_147(); statementIdHi = statementIdHi === VOID ? new Long(0, 0) : statementIdHi; statementIdLo = statementIdLo === VOID ? new Long(0, 0) : statementIdLo; statementActorPersonUid = statementActorPersonUid === VOID ? new Long(0, 0) : statementActorPersonUid; statementVerbUid = statementVerbUid === VOID ? new Long(0, 0) : statementVerbUid; statementObjectType = statementObjectType === VOID ? 0 : statementObjectType; statementObjectUid1 = statementObjectUid1 === VOID ? new Long(0, 0) : statementObjectUid1; statementObjectUid2 = statementObjectUid2 === VOID ? new Long(0, 0) : statementObjectUid2; statementActorUid = statementActorUid === VOID ? new Long(0, 0) : statementActorUid; authorityActorUid = authorityActorUid === VOID ? new Long(0, 0) : authorityActorUid; teamUid = teamUid === VOID ? new Long(0, 0) : teamUid; resultCompletion = resultCompletion === VOID ? null : resultCompletion; resultSuccess = resultSuccess === VOID ? null : resultSuccess; resultScoreScaled = resultScoreScaled === VOID ? null : resultScoreScaled; resultScoreRaw = resultScoreRaw === VOID ? null : resultScoreRaw; resultScoreMin = resultScoreMin === VOID ? null : resultScoreMin; resultScoreMax = resultScoreMax === VOID ? null : resultScoreMax; resultDuration = resultDuration === VOID ? null : resultDuration; resultResponse = resultResponse === VOID ? null : resultResponse; timestamp = timestamp === VOID ? new Long(0, 0) : timestamp; stored = stored === VOID ? new Long(0, 0) : stored; contextRegistrationHi = contextRegistrationHi === VOID ? new Long(0, 0) : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? new Long(0, 0) : contextRegistrationLo; contextRegistrationHash = contextRegistrationHash === VOID ? new Long(0, 0) : contextRegistrationHash; contextPlatform = contextPlatform === VOID ? null : contextPlatform; contextStatementRefIdHi = contextStatementRefIdHi === VOID ? new Long(0, 0) : contextStatementRefIdHi; contextStatementRefIdLo = contextStatementRefIdLo === VOID ? new Long(0, 0) : contextStatementRefIdLo; contextInstructorActorUid = contextInstructorActorUid === VOID ? new Long(0, 0) : contextInstructorActorUid; statementLct = statementLct === VOID ? new Long(0, 0) : statementLct; extensionProgress = extensionProgress === VOID ? null : extensionProgress; completionOrProgress = completionOrProgress === VOID ? false : completionOrProgress; statementContentEntryUid = statementContentEntryUid === VOID ? new Long(0, 0) : statementContentEntryUid; statementLearnerGroupUid = statementLearnerGroupUid === VOID ? new Long(0, 0) : statementLearnerGroupUid; statementClazzUid = statementClazzUid === VOID ? new Long(0, 0) : statementClazzUid; statementCbUid = statementCbUid === VOID ? new Long(0, 0) : statementCbUid; statementDoorNode = statementDoorNode === VOID ? new Long(0, 0) : statementDoorNode; isSubStatement = isSubStatement === VOID ? false : isSubStatement; this.statementIdHi_1 = statementIdHi; this.statementIdLo_1 = statementIdLo; this.statementActorPersonUid_1 = statementActorPersonUid; this.statementVerbUid_1 = statementVerbUid; this.statementObjectType_1 = statementObjectType; this.statementObjectUid1__1 = statementObjectUid1; this.statementObjectUid2__1 = statementObjectUid2; this.statementActorUid_1 = statementActorUid; this.authorityActorUid_1 = authorityActorUid; this.teamUid_1 = teamUid; this.resultCompletion_1 = resultCompletion; this.resultSuccess_1 = resultSuccess; this.resultScoreScaled_1 = resultScoreScaled; this.resultScoreRaw_1 = resultScoreRaw; this.resultScoreMin_1 = resultScoreMin; this.resultScoreMax_1 = resultScoreMax; this.resultDuration_1 = resultDuration; this.resultResponse_1 = resultResponse; this.timestamp_1 = timestamp; this.stored_1 = stored; this.contextRegistrationHi_1 = contextRegistrationHi; this.contextRegistrationLo_1 = contextRegistrationLo; this.contextRegistrationHash_1 = contextRegistrationHash; this.contextPlatform_1 = contextPlatform; this.contextStatementRefIdHi_1 = contextStatementRefIdHi; this.contextStatementRefIdLo_1 = contextStatementRefIdLo; this.contextInstructorActorUid_1 = contextInstructorActorUid; this.statementLct_1 = statementLct; this.extensionProgress_1 = extensionProgress; this.completionOrProgress_1 = completionOrProgress; this.statementContentEntryUid_1 = statementContentEntryUid; this.statementLearnerGroupUid_1 = statementLearnerGroupUid; this.statementClazzUid_1 = statementClazzUid; this.statementCbUid_1 = statementCbUid; this.statementDoorNode_1 = statementDoorNode; this.isSubStatement_1 = isSubStatement; } protoOf(StatementEntity).set_statementIdHi_ht84ts_k$ = function (_set____db54di) { this.statementIdHi_1 = _set____db54di; }; protoOf(StatementEntity).get_statementIdHi_5i876q_k$ = function () { return this.statementIdHi_1; }; protoOf(StatementEntity).set_statementIdLo_mvfff6_k$ = function (_set____db54di) { this.statementIdLo_1 = _set____db54di; }; protoOf(StatementEntity).get_statementIdLo_5i87ac_k$ = function () { return this.statementIdLo_1; }; protoOf(StatementEntity).set_statementActorPersonUid_6n8j8m_k$ = function (_set____db54di) { this.statementActorPersonUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementActorPersonUid_s001n8_k$ = function () { return this.statementActorPersonUid_1; }; protoOf(StatementEntity).set_statementVerbUid_acgosh_k$ = function (_set____db54di) { this.statementVerbUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementVerbUid_7g8du3_k$ = function () { return this.statementVerbUid_1; }; protoOf(StatementEntity).set_statementObjectType_hm60m5_k$ = function (_set____db54di) { this.statementObjectType_1 = _set____db54di; }; protoOf(StatementEntity).get_statementObjectType_2adnr3_k$ = function () { return this.statementObjectType_1; }; protoOf(StatementEntity).set_statementObjectUid1_z8y5lg_k$ = function (_set____db54di) { this.statementObjectUid1__1 = _set____db54di; }; protoOf(StatementEntity).get_statementObjectUid1_2adyjq_k$ = function () { return this.statementObjectUid1__1; }; protoOf(StatementEntity).set_statementObjectUid2_rwu0tx_k$ = function (_set____db54di) { this.statementObjectUid2__1 = _set____db54di; }; protoOf(StatementEntity).get_statementObjectUid2_2adyjr_k$ = function () { return this.statementObjectUid2__1; }; protoOf(StatementEntity).set_statementActorUid_qhujin_k$ = function (_set____db54di) { this.statementActorUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementActorUid_noqeip_k$ = function () { return this.statementActorUid_1; }; protoOf(StatementEntity).set_authorityActorUid_6x95v_k$ = function (_set____db54di) { this.authorityActorUid_1 = _set____db54di; }; protoOf(StatementEntity).get_authorityActorUid_2sx1hx_k$ = function () { return this.authorityActorUid_1; }; protoOf(StatementEntity).set_teamUid_1x72ew_k$ = function (_set____db54di) { this.teamUid_1 = _set____db54di; }; protoOf(StatementEntity).get_teamUid_mjd6wm_k$ = function () { return this.teamUid_1; }; protoOf(StatementEntity).set_resultCompletion_5f1e16_k$ = function (_set____db54di) { this.resultCompletion_1 = _set____db54di; }; protoOf(StatementEntity).get_resultCompletion_gquu72_k$ = function () { return this.resultCompletion_1; }; protoOf(StatementEntity).set_resultSuccess_mdy2on_k$ = function (_set____db54di) { this.resultSuccess_1 = _set____db54di; }; protoOf(StatementEntity).get_resultSuccess_nwwgl9_k$ = function () { return this.resultSuccess_1; }; protoOf(StatementEntity).set_resultScoreScaled_wa4hlp_k$ = function (_set____db54di) { this.resultScoreScaled_1 = _set____db54di; }; protoOf(StatementEntity).get_resultScoreScaled_3to03e_k$ = function () { return this.resultScoreScaled_1; }; protoOf(StatementEntity).set_resultScoreRaw_cy7vjv_k$ = function (_set____db54di) { this.resultScoreRaw_1 = _set____db54di; }; protoOf(StatementEntity).get_resultScoreRaw_e67ipw_k$ = function () { return this.resultScoreRaw_1; }; protoOf(StatementEntity).set_resultScoreMin_eitzkr_k$ = function (_set____db54di) { this.resultScoreMin_1 = _set____db54di; }; protoOf(StatementEntity).get_resultScoreMin_e67m8q_k$ = function () { return this.resultScoreMin_1; }; protoOf(StatementEntity).set_resultScoreMax_38p03b_k$ = function (_set____db54di) { this.resultScoreMax_1 = _set____db54di; }; protoOf(StatementEntity).get_resultScoreMax_e67mfc_k$ = function () { return this.resultScoreMax_1; }; protoOf(StatementEntity).set_resultDuration_v7t3k3_k$ = function (_set____db54di) { this.resultDuration_1 = _set____db54di; }; protoOf(StatementEntity).get_resultDuration_vxz2l6_k$ = function () { return this.resultDuration_1; }; protoOf(StatementEntity).set_resultResponse_8cpijo_k$ = function (_set____db54di) { this.resultResponse_1 = _set____db54di; }; protoOf(StatementEntity).get_resultResponse_brrjw9_k$ = function () { return this.resultResponse_1; }; protoOf(StatementEntity).set_timestamp_eha0cb_k$ = function (_set____db54di) { this.timestamp_1 = _set____db54di; }; protoOf(StatementEntity).get_timestamp_9fccx9_k$ = function () { return this.timestamp_1; }; protoOf(StatementEntity).set_stored_dr5tz2_k$ = function (_set____db54di) { this.stored_1 = _set____db54di; }; protoOf(StatementEntity).get_stored_jno2b0_k$ = function () { return this.stored_1; }; protoOf(StatementEntity).set_contextRegistrationHi_74s32q_k$ = function (_set____db54di) { this.contextRegistrationHi_1 = _set____db54di; }; protoOf(StatementEntity).get_contextRegistrationHi_dkx0jk_k$ = function () { return this.contextRegistrationHi_1; }; protoOf(StatementEntity).set_contextRegistrationLo_xjvh68_k$ = function (_set____db54di) { this.contextRegistrationLo_1 = _set____db54di; }; protoOf(StatementEntity).get_contextRegistrationLo_dkx0fy_k$ = function () { return this.contextRegistrationLo_1; }; protoOf(StatementEntity).set_contextRegistrationHash_i5l9gb_k$ = function (_set____db54di) { this.contextRegistrationHash_1 = _set____db54di; }; protoOf(StatementEntity).get_contextRegistrationHash_ibeibx_k$ = function () { return this.contextRegistrationHash_1; }; protoOf(StatementEntity).set_contextPlatform_1fcrke_k$ = function (_set____db54di) { this.contextPlatform_1 = _set____db54di; }; protoOf(StatementEntity).get_contextPlatform_7ahoih_k$ = function () { return this.contextPlatform_1; }; protoOf(StatementEntity).set_contextStatementRefIdHi_a6xqz8_k$ = function (_set____db54di) { this.contextStatementRefIdHi_1 = _set____db54di; }; protoOf(StatementEntity).get_contextStatementRefIdHi_c24rvq_k$ = function () { return this.contextStatementRefIdHi_1; }; protoOf(StatementEntity).set_contextStatementRefIdLo_k5iqqy_k$ = function (_set____db54di) { this.contextStatementRefIdLo_1 = _set____db54di; }; protoOf(StatementEntity).get_contextStatementRefIdLo_c24rzc_k$ = function () { return this.contextStatementRefIdLo_1; }; protoOf(StatementEntity).set_contextInstructorActorUid_l3lkc_k$ = function (_set____db54di) { this.contextInstructorActorUid_1 = _set____db54di; }; protoOf(StatementEntity).get_contextInstructorActorUid_qx6uo2_k$ = function () { return this.contextInstructorActorUid_1; }; protoOf(StatementEntity).set_statementLct_j41a6r_k$ = function (_set____db54di) { this.statementLct_1 = _set____db54di; }; protoOf(StatementEntity).get_statementLct_4eku6h_k$ = function () { return this.statementLct_1; }; protoOf(StatementEntity).set_extensionProgress_iqe2j8_k$ = function (_set____db54di) { this.extensionProgress_1 = _set____db54di; }; protoOf(StatementEntity).get_extensionProgress_sopfj7_k$ = function () { return this.extensionProgress_1; }; protoOf(StatementEntity).set_completionOrProgress_lw0kjw_k$ = function (_set____db54di) { this.completionOrProgress_1 = _set____db54di; }; protoOf(StatementEntity).get_completionOrProgress_n546lx_k$ = function () { return this.completionOrProgress_1; }; protoOf(StatementEntity).set_statementContentEntryUid_h38zbt_k$ = function (_set____db54di) { this.statementContentEntryUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementContentEntryUid_8usy29_k$ = function () { return this.statementContentEntryUid_1; }; protoOf(StatementEntity).set_statementLearnerGroupUid_2c7m5q_k$ = function (_set____db54di) { this.statementLearnerGroupUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementLearnerGroupUid_r54b0c_k$ = function () { return this.statementLearnerGroupUid_1; }; protoOf(StatementEntity).set_statementClazzUid_hmeo30_k$ = function (_set____db54di) { this.statementClazzUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementClazzUid_8hg8ci_k$ = function () { return this.statementClazzUid_1; }; protoOf(StatementEntity).set_statementCbUid_uxmitd_k$ = function (_set____db54di) { this.statementCbUid_1 = _set____db54di; }; protoOf(StatementEntity).get_statementCbUid_sjib0r_k$ = function () { return this.statementCbUid_1; }; protoOf(StatementEntity).set_statementDoorNode_yzgvvo_k$ = function (_set____db54di) { this.statementDoorNode_1 = _set____db54di; }; protoOf(StatementEntity).get_statementDoorNode_6a62y_k$ = function () { return this.statementDoorNode_1; }; protoOf(StatementEntity).set_isSubStatement_3kaenz_k$ = function (_set____db54di) { this.isSubStatement_1 = _set____db54di; }; protoOf(StatementEntity).get_isSubStatement_kxok82_k$ = function () { return this.isSubStatement_1; }; protoOf(StatementEntity).component1_7eebsc_k$ = function () { return this.statementIdHi_1; }; protoOf(StatementEntity).component2_7eebsb_k$ = function () { return this.statementIdLo_1; }; protoOf(StatementEntity).component3_7eebsa_k$ = function () { return this.statementActorPersonUid_1; }; protoOf(StatementEntity).component4_7eebs9_k$ = function () { return this.statementVerbUid_1; }; protoOf(StatementEntity).component5_7eebs8_k$ = function () { return this.statementObjectType_1; }; protoOf(StatementEntity).component6_7eebs7_k$ = function () { return this.statementObjectUid1__1; }; protoOf(StatementEntity).component7_7eebs6_k$ = function () { return this.statementObjectUid2__1; }; protoOf(StatementEntity).component8_7eebs5_k$ = function () { return this.statementActorUid_1; }; protoOf(StatementEntity).component9_7eebs4_k$ = function () { return this.authorityActorUid_1; }; protoOf(StatementEntity).component10_gazzfo_k$ = function () { return this.teamUid_1; }; protoOf(StatementEntity).component11_gazzfn_k$ = function () { return this.resultCompletion_1; }; protoOf(StatementEntity).component12_gazzfm_k$ = function () { return this.resultSuccess_1; }; protoOf(StatementEntity).component13_gazzfl_k$ = function () { return this.resultScoreScaled_1; }; protoOf(StatementEntity).component14_gazzfk_k$ = function () { return this.resultScoreRaw_1; }; protoOf(StatementEntity).component15_gazzfj_k$ = function () { return this.resultScoreMin_1; }; protoOf(StatementEntity).component16_gazzfi_k$ = function () { return this.resultScoreMax_1; }; protoOf(StatementEntity).component17_gazzfh_k$ = function () { return this.resultDuration_1; }; protoOf(StatementEntity).component18_gazzfg_k$ = function () { return this.resultResponse_1; }; protoOf(StatementEntity).component19_gazzff_k$ = function () { return this.timestamp_1; }; protoOf(StatementEntity).component20_gazzet_k$ = function () { return this.stored_1; }; protoOf(StatementEntity).component21_gazzes_k$ = function () { return this.contextRegistrationHi_1; }; protoOf(StatementEntity).component22_gazzer_k$ = function () { return this.contextRegistrationLo_1; }; protoOf(StatementEntity).component23_gazzeq_k$ = function () { return this.contextRegistrationHash_1; }; protoOf(StatementEntity).component24_gazzep_k$ = function () { return this.contextPlatform_1; }; protoOf(StatementEntity).component25_gazzeo_k$ = function () { return this.contextStatementRefIdHi_1; }; protoOf(StatementEntity).component26_gazzen_k$ = function () { return this.contextStatementRefIdLo_1; }; protoOf(StatementEntity).component27_gazzem_k$ = function () { return this.contextInstructorActorUid_1; }; protoOf(StatementEntity).component28_gazzel_k$ = function () { return this.statementLct_1; }; protoOf(StatementEntity).component29_gazzek_k$ = function () { return this.extensionProgress_1; }; protoOf(StatementEntity).component30_gazzdy_k$ = function () { return this.completionOrProgress_1; }; protoOf(StatementEntity).component31_gazzdx_k$ = function () { return this.statementContentEntryUid_1; }; protoOf(StatementEntity).component32_gazzdw_k$ = function () { return this.statementLearnerGroupUid_1; }; protoOf(StatementEntity).component33_gazzdv_k$ = function () { return this.statementClazzUid_1; }; protoOf(StatementEntity).component34_gazzdu_k$ = function () { return this.statementCbUid_1; }; protoOf(StatementEntity).component35_gazzdt_k$ = function () { return this.statementDoorNode_1; }; protoOf(StatementEntity).component36_gazzds_k$ = function () { return this.isSubStatement_1; }; protoOf(StatementEntity).copy_bl0wob_k$ = function (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) { return new StatementEntity(statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement); }; protoOf(StatementEntity).copy$default_ceb90r_k$ = function (statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement, $super) { statementIdHi = statementIdHi === VOID ? this.statementIdHi_1 : statementIdHi; statementIdLo = statementIdLo === VOID ? this.statementIdLo_1 : statementIdLo; statementActorPersonUid = statementActorPersonUid === VOID ? this.statementActorPersonUid_1 : statementActorPersonUid; statementVerbUid = statementVerbUid === VOID ? this.statementVerbUid_1 : statementVerbUid; statementObjectType = statementObjectType === VOID ? this.statementObjectType_1 : statementObjectType; statementObjectUid1 = statementObjectUid1 === VOID ? this.statementObjectUid1__1 : statementObjectUid1; statementObjectUid2 = statementObjectUid2 === VOID ? this.statementObjectUid2__1 : statementObjectUid2; statementActorUid = statementActorUid === VOID ? this.statementActorUid_1 : statementActorUid; authorityActorUid = authorityActorUid === VOID ? this.authorityActorUid_1 : authorityActorUid; teamUid = teamUid === VOID ? this.teamUid_1 : teamUid; resultCompletion = resultCompletion === VOID ? this.resultCompletion_1 : resultCompletion; resultSuccess = resultSuccess === VOID ? this.resultSuccess_1 : resultSuccess; resultScoreScaled = resultScoreScaled === VOID ? this.resultScoreScaled_1 : resultScoreScaled; resultScoreRaw = resultScoreRaw === VOID ? this.resultScoreRaw_1 : resultScoreRaw; resultScoreMin = resultScoreMin === VOID ? this.resultScoreMin_1 : resultScoreMin; resultScoreMax = resultScoreMax === VOID ? this.resultScoreMax_1 : resultScoreMax; resultDuration = resultDuration === VOID ? this.resultDuration_1 : resultDuration; resultResponse = resultResponse === VOID ? this.resultResponse_1 : resultResponse; timestamp = timestamp === VOID ? this.timestamp_1 : timestamp; stored = stored === VOID ? this.stored_1 : stored; contextRegistrationHi = contextRegistrationHi === VOID ? this.contextRegistrationHi_1 : contextRegistrationHi; contextRegistrationLo = contextRegistrationLo === VOID ? this.contextRegistrationLo_1 : contextRegistrationLo; contextRegistrationHash = contextRegistrationHash === VOID ? this.contextRegistrationHash_1 : contextRegistrationHash; contextPlatform = contextPlatform === VOID ? this.contextPlatform_1 : contextPlatform; contextStatementRefIdHi = contextStatementRefIdHi === VOID ? this.contextStatementRefIdHi_1 : contextStatementRefIdHi; contextStatementRefIdLo = contextStatementRefIdLo === VOID ? this.contextStatementRefIdLo_1 : contextStatementRefIdLo; contextInstructorActorUid = contextInstructorActorUid === VOID ? this.contextInstructorActorUid_1 : contextInstructorActorUid; statementLct = statementLct === VOID ? this.statementLct_1 : statementLct; extensionProgress = extensionProgress === VOID ? this.extensionProgress_1 : extensionProgress; completionOrProgress = completionOrProgress === VOID ? this.completionOrProgress_1 : completionOrProgress; statementContentEntryUid = statementContentEntryUid === VOID ? this.statementContentEntryUid_1 : statementContentEntryUid; statementLearnerGroupUid = statementLearnerGroupUid === VOID ? this.statementLearnerGroupUid_1 : statementLearnerGroupUid; statementClazzUid = statementClazzUid === VOID ? this.statementClazzUid_1 : statementClazzUid; statementCbUid = statementCbUid === VOID ? this.statementCbUid_1 : statementCbUid; statementDoorNode = statementDoorNode === VOID ? this.statementDoorNode_1 : statementDoorNode; isSubStatement = isSubStatement === VOID ? this.isSubStatement_1 : isSubStatement; return $super === VOID ? this.copy_bl0wob_k$(statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement) : $super.copy_bl0wob_k$.call(this, statementIdHi, statementIdLo, statementActorPersonUid, statementVerbUid, statementObjectType, statementObjectUid1, statementObjectUid2, statementActorUid, authorityActorUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistrationHi, contextRegistrationLo, contextRegistrationHash, contextPlatform, contextStatementRefIdHi, contextStatementRefIdLo, contextInstructorActorUid, statementLct, extensionProgress, completionOrProgress, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid, statementCbUid, statementDoorNode, isSubStatement); }; protoOf(StatementEntity).toString = function () { return 'StatementEntity(statementIdHi=' + this.statementIdHi_1.toString() + ', statementIdLo=' + this.statementIdLo_1.toString() + ', statementActorPersonUid=' + this.statementActorPersonUid_1.toString() + ', statementVerbUid=' + this.statementVerbUid_1.toString() + ', statementObjectType=' + this.statementObjectType_1 + ', statementObjectUid1=' + this.statementObjectUid1__1.toString() + ', statementObjectUid2=' + this.statementObjectUid2__1.toString() + ', statementActorUid=' + this.statementActorUid_1.toString() + ', authorityActorUid=' + this.authorityActorUid_1.toString() + ', teamUid=' + this.teamUid_1.toString() + ', resultCompletion=' + this.resultCompletion_1 + ', resultSuccess=' + this.resultSuccess_1 + ', resultScoreScaled=' + this.resultScoreScaled_1 + ', resultScoreRaw=' + this.resultScoreRaw_1 + ', resultScoreMin=' + this.resultScoreMin_1 + ', resultScoreMax=' + this.resultScoreMax_1 + ', resultDuration=' + toString_0(this.resultDuration_1) + ', resultResponse=' + this.resultResponse_1 + ', timestamp=' + this.timestamp_1.toString() + ', stored=' + this.stored_1.toString() + ', contextRegistrationHi=' + this.contextRegistrationHi_1.toString() + ', contextRegistrationLo=' + this.contextRegistrationLo_1.toString() + ', contextRegistrationHash=' + this.contextRegistrationHash_1.toString() + ', contextPlatform=' + this.contextPlatform_1 + ', contextStatementRefIdHi=' + this.contextStatementRefIdHi_1.toString() + ', contextStatementRefIdLo=' + this.contextStatementRefIdLo_1.toString() + ', contextInstructorActorUid=' + this.contextInstructorActorUid_1.toString() + ', statementLct=' + this.statementLct_1.toString() + ', extensionProgress=' + this.extensionProgress_1 + ', completionOrProgress=' + this.completionOrProgress_1 + ', statementContentEntryUid=' + this.statementContentEntryUid_1.toString() + ', statementLearnerGroupUid=' + this.statementLearnerGroupUid_1.toString() + ', statementClazzUid=' + this.statementClazzUid_1.toString() + ', statementCbUid=' + this.statementCbUid_1.toString() + ', statementDoorNode=' + this.statementDoorNode_1.toString() + ', isSubStatement=' + this.isSubStatement_1 + ')'; }; protoOf(StatementEntity).hashCode = function () { var result = this.statementIdHi_1.hashCode(); result = imul(result, 31) + this.statementIdLo_1.hashCode() | 0; result = imul(result, 31) + this.statementActorPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.statementVerbUid_1.hashCode() | 0; result = imul(result, 31) + this.statementObjectType_1 | 0; result = imul(result, 31) + this.statementObjectUid1__1.hashCode() | 0; result = imul(result, 31) + this.statementObjectUid2__1.hashCode() | 0; result = imul(result, 31) + this.statementActorUid_1.hashCode() | 0; result = imul(result, 31) + this.authorityActorUid_1.hashCode() | 0; result = imul(result, 31) + this.teamUid_1.hashCode() | 0; result = imul(result, 31) + (this.resultCompletion_1 == null ? 0 : getBooleanHashCode(this.resultCompletion_1)) | 0; result = imul(result, 31) + (this.resultSuccess_1 == null ? 0 : getBooleanHashCode(this.resultSuccess_1)) | 0; result = imul(result, 31) + (this.resultScoreScaled_1 == null ? 0 : getNumberHashCode(this.resultScoreScaled_1)) | 0; result = imul(result, 31) + (this.resultScoreRaw_1 == null ? 0 : getNumberHashCode(this.resultScoreRaw_1)) | 0; result = imul(result, 31) + (this.resultScoreMin_1 == null ? 0 : getNumberHashCode(this.resultScoreMin_1)) | 0; result = imul(result, 31) + (this.resultScoreMax_1 == null ? 0 : getNumberHashCode(this.resultScoreMax_1)) | 0; result = imul(result, 31) + (this.resultDuration_1 == null ? 0 : this.resultDuration_1.hashCode()) | 0; result = imul(result, 31) + (this.resultResponse_1 == null ? 0 : getStringHashCode(this.resultResponse_1)) | 0; result = imul(result, 31) + this.timestamp_1.hashCode() | 0; result = imul(result, 31) + this.stored_1.hashCode() | 0; result = imul(result, 31) + this.contextRegistrationHi_1.hashCode() | 0; result = imul(result, 31) + this.contextRegistrationLo_1.hashCode() | 0; result = imul(result, 31) + this.contextRegistrationHash_1.hashCode() | 0; result = imul(result, 31) + (this.contextPlatform_1 == null ? 0 : getStringHashCode(this.contextPlatform_1)) | 0; result = imul(result, 31) + this.contextStatementRefIdHi_1.hashCode() | 0; result = imul(result, 31) + this.contextStatementRefIdLo_1.hashCode() | 0; result = imul(result, 31) + this.contextInstructorActorUid_1.hashCode() | 0; result = imul(result, 31) + this.statementLct_1.hashCode() | 0; result = imul(result, 31) + (this.extensionProgress_1 == null ? 0 : this.extensionProgress_1) | 0; result = imul(result, 31) + getBooleanHashCode(this.completionOrProgress_1) | 0; result = imul(result, 31) + this.statementContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + this.statementLearnerGroupUid_1.hashCode() | 0; result = imul(result, 31) + this.statementClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.statementCbUid_1.hashCode() | 0; result = imul(result, 31) + this.statementDoorNode_1.hashCode() | 0; result = imul(result, 31) + getBooleanHashCode(this.isSubStatement_1) | 0; return result; }; protoOf(StatementEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntity)) return false; var tmp0_other_with_cast = other instanceof StatementEntity ? other : THROW_CCE(); if (!this.statementIdHi_1.equals(tmp0_other_with_cast.statementIdHi_1)) return false; if (!this.statementIdLo_1.equals(tmp0_other_with_cast.statementIdLo_1)) return false; if (!this.statementActorPersonUid_1.equals(tmp0_other_with_cast.statementActorPersonUid_1)) return false; if (!this.statementVerbUid_1.equals(tmp0_other_with_cast.statementVerbUid_1)) return false; if (!(this.statementObjectType_1 === tmp0_other_with_cast.statementObjectType_1)) return false; if (!this.statementObjectUid1__1.equals(tmp0_other_with_cast.statementObjectUid1__1)) return false; if (!this.statementObjectUid2__1.equals(tmp0_other_with_cast.statementObjectUid2__1)) return false; if (!this.statementActorUid_1.equals(tmp0_other_with_cast.statementActorUid_1)) return false; if (!this.authorityActorUid_1.equals(tmp0_other_with_cast.authorityActorUid_1)) return false; if (!this.teamUid_1.equals(tmp0_other_with_cast.teamUid_1)) return false; if (!(this.resultCompletion_1 == tmp0_other_with_cast.resultCompletion_1)) return false; if (!(this.resultSuccess_1 == tmp0_other_with_cast.resultSuccess_1)) return false; if (!equals(this.resultScoreScaled_1, tmp0_other_with_cast.resultScoreScaled_1)) return false; if (!equals(this.resultScoreRaw_1, tmp0_other_with_cast.resultScoreRaw_1)) return false; if (!equals(this.resultScoreMin_1, tmp0_other_with_cast.resultScoreMin_1)) return false; if (!equals(this.resultScoreMax_1, tmp0_other_with_cast.resultScoreMax_1)) return false; if (!equals(this.resultDuration_1, tmp0_other_with_cast.resultDuration_1)) return false; if (!(this.resultResponse_1 == tmp0_other_with_cast.resultResponse_1)) return false; if (!this.timestamp_1.equals(tmp0_other_with_cast.timestamp_1)) return false; if (!this.stored_1.equals(tmp0_other_with_cast.stored_1)) return false; if (!this.contextRegistrationHi_1.equals(tmp0_other_with_cast.contextRegistrationHi_1)) return false; if (!this.contextRegistrationLo_1.equals(tmp0_other_with_cast.contextRegistrationLo_1)) return false; if (!this.contextRegistrationHash_1.equals(tmp0_other_with_cast.contextRegistrationHash_1)) return false; if (!(this.contextPlatform_1 == tmp0_other_with_cast.contextPlatform_1)) return false; if (!this.contextStatementRefIdHi_1.equals(tmp0_other_with_cast.contextStatementRefIdHi_1)) return false; if (!this.contextStatementRefIdLo_1.equals(tmp0_other_with_cast.contextStatementRefIdLo_1)) return false; if (!this.contextInstructorActorUid_1.equals(tmp0_other_with_cast.contextInstructorActorUid_1)) return false; if (!this.statementLct_1.equals(tmp0_other_with_cast.statementLct_1)) return false; if (!(this.extensionProgress_1 == tmp0_other_with_cast.extensionProgress_1)) return false; if (!(this.completionOrProgress_1 === tmp0_other_with_cast.completionOrProgress_1)) return false; if (!this.statementContentEntryUid_1.equals(tmp0_other_with_cast.statementContentEntryUid_1)) return false; if (!this.statementLearnerGroupUid_1.equals(tmp0_other_with_cast.statementLearnerGroupUid_1)) return false; if (!this.statementClazzUid_1.equals(tmp0_other_with_cast.statementClazzUid_1)) return false; if (!this.statementCbUid_1.equals(tmp0_other_with_cast.statementCbUid_1)) return false; if (!this.statementDoorNode_1.equals(tmp0_other_with_cast.statementDoorNode_1)) return false; if (!(this.isSubStatement_1 === tmp0_other_with_cast.isSubStatement_1)) return false; return true; }; function Companion_144() { Companion_instance_144 = this; this.TABLE_ID_1 = 602; } protoOf(Companion_144).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_144).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_138(); }; var Companion_instance_144; function Companion_getInstance_148() { if (Companion_instance_144 == null) new Companion_144(); return Companion_instance_144; } function $serializer_138() { $serializer_instance_138 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.StatementEntityJson', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('stmtJsonIdHi', true); tmp0_serialDesc.addElement_5pzumi_k$('stmtJsonIdLo', true); tmp0_serialDesc.addElement_5pzumi_k$('stmtEtag', true); tmp0_serialDesc.addElement_5pzumi_k$('fullStatement', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_138).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_138).childSerializers_5ghqw5_k$ = 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(), get_nullable(StringSerializer_getInstance())]; }; protoOf($serializer_138).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = null; var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return StatementEntityJson_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_138).serialize_ffljud_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.stmtJsonIdHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.stmtJsonIdHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.stmtJsonIdLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.stmtJsonIdLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.stmtEtag_1.equals(new Long(1, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.stmtEtag_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.fullStatement_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.fullStatement_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_138).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_ffljud_k$(encoder, value instanceof StatementEntityJson ? value : THROW_CCE()); }; var $serializer_instance_138; function $serializer_getInstance_138() { if ($serializer_instance_138 == null) new $serializer_138(); return $serializer_instance_138; } function StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_138().descriptor_1); } if (0 === (seen1 & 1)) $this.stmtJsonIdHi_1 = new Long(0, 0); else $this.stmtJsonIdHi_1 = stmtJsonIdHi; if (0 === (seen1 & 2)) $this.stmtJsonIdLo_1 = new Long(0, 0); else $this.stmtJsonIdLo_1 = stmtJsonIdLo; if (0 === (seen1 & 4)) $this.stmtEtag_1 = new Long(1, 0); else $this.stmtEtag_1 = stmtEtag; if (0 === (seen1 & 8)) $this.fullStatement_1 = null; else $this.fullStatement_1 = fullStatement; return $this; } function StatementEntityJson_init_$Create$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker) { return StatementEntityJson_init_$Init$(seen1, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, serializationConstructorMarker, objectCreate(protoOf(StatementEntityJson))); } function StatementEntityJson(stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) { Companion_getInstance_148(); stmtJsonIdHi = stmtJsonIdHi === VOID ? new Long(0, 0) : stmtJsonIdHi; stmtJsonIdLo = stmtJsonIdLo === VOID ? new Long(0, 0) : stmtJsonIdLo; stmtEtag = stmtEtag === VOID ? new Long(1, 0) : stmtEtag; fullStatement = fullStatement === VOID ? null : fullStatement; this.stmtJsonIdHi_1 = stmtJsonIdHi; this.stmtJsonIdLo_1 = stmtJsonIdLo; this.stmtEtag_1 = stmtEtag; this.fullStatement_1 = fullStatement; } protoOf(StatementEntityJson).set_stmtJsonIdHi_sfel1x_k$ = function (_set____db54di) { this.stmtJsonIdHi_1 = _set____db54di; }; protoOf(StatementEntityJson).get_stmtJsonIdHi_ij7qkr_k$ = function () { return this.stmtJsonIdHi_1; }; protoOf(StatementEntityJson).set_stmtJsonIdLo_c98z71_k$ = function (_set____db54di) { this.stmtJsonIdLo_1 = _set____db54di; }; protoOf(StatementEntityJson).get_stmtJsonIdLo_ij7qh5_k$ = function () { return this.stmtJsonIdLo_1; }; protoOf(StatementEntityJson).set_stmtEtag_c4jmxo_k$ = function (_set____db54di) { this.stmtEtag_1 = _set____db54di; }; protoOf(StatementEntityJson).get_stmtEtag_4c4qpm_k$ = function () { return this.stmtEtag_1; }; protoOf(StatementEntityJson).set_fullStatement_tuiij8_k$ = function (_set____db54di) { this.fullStatement_1 = _set____db54di; }; protoOf(StatementEntityJson).get_fullStatement_rdb5o7_k$ = function () { return this.fullStatement_1; }; protoOf(StatementEntityJson).component1_7eebsc_k$ = function () { return this.stmtJsonIdHi_1; }; protoOf(StatementEntityJson).component2_7eebsb_k$ = function () { return this.stmtJsonIdLo_1; }; protoOf(StatementEntityJson).component3_7eebsa_k$ = function () { return this.stmtEtag_1; }; protoOf(StatementEntityJson).component4_7eebs9_k$ = function () { return this.fullStatement_1; }; protoOf(StatementEntityJson).copy_3yxvn2_k$ = function (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) { return new StatementEntityJson(stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement); }; protoOf(StatementEntityJson).copy$default_509wvc_k$ = function (stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement, $super) { stmtJsonIdHi = stmtJsonIdHi === VOID ? this.stmtJsonIdHi_1 : stmtJsonIdHi; stmtJsonIdLo = stmtJsonIdLo === VOID ? this.stmtJsonIdLo_1 : stmtJsonIdLo; stmtEtag = stmtEtag === VOID ? this.stmtEtag_1 : stmtEtag; fullStatement = fullStatement === VOID ? this.fullStatement_1 : fullStatement; return $super === VOID ? this.copy_3yxvn2_k$(stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement) : $super.copy_3yxvn2_k$.call(this, stmtJsonIdHi, stmtJsonIdLo, stmtEtag, fullStatement); }; protoOf(StatementEntityJson).toString = function () { return 'StatementEntityJson(stmtJsonIdHi=' + this.stmtJsonIdHi_1.toString() + ', stmtJsonIdLo=' + this.stmtJsonIdLo_1.toString() + ', stmtEtag=' + this.stmtEtag_1.toString() + ', fullStatement=' + this.fullStatement_1 + ')'; }; protoOf(StatementEntityJson).hashCode = function () { var result = this.stmtJsonIdHi_1.hashCode(); result = imul(result, 31) + this.stmtJsonIdLo_1.hashCode() | 0; result = imul(result, 31) + this.stmtEtag_1.hashCode() | 0; result = imul(result, 31) + (this.fullStatement_1 == null ? 0 : getStringHashCode(this.fullStatement_1)) | 0; return result; }; protoOf(StatementEntityJson).equals = function (other) { if (this === other) return true; if (!(other instanceof StatementEntityJson)) return false; var tmp0_other_with_cast = other instanceof StatementEntityJson ? other : THROW_CCE(); if (!this.stmtJsonIdHi_1.equals(tmp0_other_with_cast.stmtJsonIdHi_1)) return false; if (!this.stmtJsonIdLo_1.equals(tmp0_other_with_cast.stmtJsonIdLo_1)) return false; if (!this.stmtEtag_1.equals(tmp0_other_with_cast.stmtEtag_1)) return false; if (!(this.fullStatement_1 == tmp0_other_with_cast.fullStatement_1)) return false; return true; }; function Companion_145() { Companion_instance_145 = this; this.TABLE_ID_1 = 62; this.VERB_COMPLETED_URL_1 = 'http://adlnet.gov/expapi/verbs/completed'; this.VERB_PASSED_URL_1 = 'http://adlnet.gov/expapi/verbs/passed'; this.VERB_FAILED_URL_1 = 'http://adlnet.gov/expapi/verbs/failed'; this.VERB_EXPERIENCED_URL_1 = 'http://adlnet.gov/expapi/verbs/experienced'; } protoOf(Companion_145).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_145).get_VERB_COMPLETED_URL_b56l5w_k$ = function () { return this.VERB_COMPLETED_URL_1; }; protoOf(Companion_145).get_VERB_PASSED_URL_vwz749_k$ = function () { return this.VERB_PASSED_URL_1; }; protoOf(Companion_145).get_VERB_FAILED_URL_z8fzi4_k$ = function () { return this.VERB_FAILED_URL_1; }; protoOf(Companion_145).get_VERB_EXPERIENCED_URL_gon225_k$ = function () { return this.VERB_EXPERIENCED_URL_1; }; protoOf(Companion_145).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_139(); }; var Companion_instance_145; function Companion_getInstance_149() { if (Companion_instance_145 == null) new Companion_145(); return Companion_instance_145; } function $serializer_139() { $serializer_instance_139 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbEntity', this, 4); tmp0_serialDesc.addElement_5pzumi_k$('verbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('verbUrlId', true); tmp0_serialDesc.addElement_5pzumi_k$('verbDeleted', true); tmp0_serialDesc.addElement_5pzumi_k$('verbLct', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_139).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_139).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), LongSerializer_getInstance()]; }; protoOf($serializer_139).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_1; var tmp1_flag = true; var tmp2_index = 0; var tmp3_bitMask0 = 0; var tmp4_local0 = new Long(0, 0); var tmp5_local1 = null; var tmp6_local2 = false; var tmp7_local3 = new Long(0, 0); var tmp8_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp8_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; } else while (tmp1_flag) { tmp2_index = tmp8_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp8_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp8_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp8_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp8_input.endStructure_1xqz0n_k$(tmp0_desc); return VerbEntity_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null); }; protoOf($serializer_139).serialize_xs6bzz_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.verbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.verbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !(value.verbUrlId_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 1, StringSerializer_getInstance(), value.verbUrlId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.verbDeleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 2, value.verbDeleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.verbLct_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.verbLct_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_139).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_xs6bzz_k$(encoder, value instanceof VerbEntity ? value : THROW_CCE()); }; var $serializer_instance_139; function $serializer_getInstance_139() { if ($serializer_instance_139 == null) new $serializer_139(); return $serializer_instance_139; } function VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_139().descriptor_1); } if (0 === (seen1 & 1)) $this.verbUid_1 = new Long(0, 0); else $this.verbUid_1 = verbUid; if (0 === (seen1 & 2)) $this.verbUrlId_1 = null; else $this.verbUrlId_1 = verbUrlId; if (0 === (seen1 & 4)) $this.verbDeleted_1 = false; else $this.verbDeleted_1 = verbDeleted; if (0 === (seen1 & 8)) $this.verbLct_1 = new Long(0, 0); else $this.verbLct_1 = verbLct; return $this; } function VerbEntity_init_$Create$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker) { return VerbEntity_init_$Init$(seen1, verbUid, verbUrlId, verbDeleted, verbLct, serializationConstructorMarker, objectCreate(protoOf(VerbEntity))); } function VerbEntity(verbUid, verbUrlId, verbDeleted, verbLct) { Companion_getInstance_149(); verbUid = verbUid === VOID ? new Long(0, 0) : verbUid; verbUrlId = verbUrlId === VOID ? null : verbUrlId; verbDeleted = verbDeleted === VOID ? false : verbDeleted; verbLct = verbLct === VOID ? new Long(0, 0) : verbLct; this.verbUid_1 = verbUid; this.verbUrlId_1 = verbUrlId; this.verbDeleted_1 = verbDeleted; this.verbLct_1 = verbLct; } protoOf(VerbEntity).set_verbUid_nmxeq2_k$ = function (_set____db54di) { this.verbUid_1 = _set____db54di; }; protoOf(VerbEntity).get_verbUid_72kurs_k$ = function () { return this.verbUid_1; }; protoOf(VerbEntity).set_verbUrlId_xpu76x_k$ = function (_set____db54di) { this.verbUrlId_1 = _set____db54di; }; protoOf(VerbEntity).get_verbUrlId_n3xvha_k$ = function () { return this.verbUrlId_1; }; protoOf(VerbEntity).set_verbDeleted_a4kb3c_k$ = function (_set____db54di) { this.verbDeleted_1 = _set____db54di; }; protoOf(VerbEntity).get_verbDeleted_i3hmy7_k$ = function () { return this.verbDeleted_1; }; protoOf(VerbEntity).set_verbLct_w086ot_k$ = function (_set____db54di) { this.verbLct_1 = _set____db54di; }; protoOf(VerbEntity).get_verbLct_72knyt_k$ = function () { return this.verbLct_1; }; protoOf(VerbEntity).component1_7eebsc_k$ = function () { return this.verbUid_1; }; protoOf(VerbEntity).component2_7eebsb_k$ = function () { return this.verbUrlId_1; }; protoOf(VerbEntity).component3_7eebsa_k$ = function () { return this.verbDeleted_1; }; protoOf(VerbEntity).component4_7eebs9_k$ = function () { return this.verbLct_1; }; protoOf(VerbEntity).copy_9bjddx_k$ = function (verbUid, verbUrlId, verbDeleted, verbLct) { return new VerbEntity(verbUid, verbUrlId, verbDeleted, verbLct); }; protoOf(VerbEntity).copy$default_xrq915_k$ = function (verbUid, verbUrlId, verbDeleted, verbLct, $super) { verbUid = verbUid === VOID ? this.verbUid_1 : verbUid; verbUrlId = verbUrlId === VOID ? this.verbUrlId_1 : verbUrlId; verbDeleted = verbDeleted === VOID ? this.verbDeleted_1 : verbDeleted; verbLct = verbLct === VOID ? this.verbLct_1 : verbLct; return $super === VOID ? this.copy_9bjddx_k$(verbUid, verbUrlId, verbDeleted, verbLct) : $super.copy_9bjddx_k$.call(this, verbUid, verbUrlId, verbDeleted, verbLct); }; protoOf(VerbEntity).toString = function () { return 'VerbEntity(verbUid=' + this.verbUid_1.toString() + ', verbUrlId=' + this.verbUrlId_1 + ', verbDeleted=' + this.verbDeleted_1 + ', verbLct=' + this.verbLct_1.toString() + ')'; }; protoOf(VerbEntity).hashCode = function () { var result = this.verbUid_1.hashCode(); result = imul(result, 31) + (this.verbUrlId_1 == null ? 0 : getStringHashCode(this.verbUrlId_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.verbDeleted_1) | 0; result = imul(result, 31) + this.verbLct_1.hashCode() | 0; return result; }; protoOf(VerbEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbEntity)) return false; var tmp0_other_with_cast = other instanceof VerbEntity ? other : THROW_CCE(); if (!this.verbUid_1.equals(tmp0_other_with_cast.verbUid_1)) return false; if (!(this.verbUrlId_1 == tmp0_other_with_cast.verbUrlId_1)) return false; if (!(this.verbDeleted_1 === tmp0_other_with_cast.verbDeleted_1)) return false; if (!this.verbLct_1.equals(tmp0_other_with_cast.verbLct_1)) return false; return true; }; function Companion_146() { Companion_instance_146 = this; this.TABLE_ID_1 = 620; } protoOf(Companion_146).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_146).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_140(); }; var Companion_instance_146; function Companion_getInstance_150() { if (Companion_instance_146 == null) new Companion_146(); return Companion_instance_146; } function $serializer_140() { $serializer_instance_140 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.VerbLangMapEntry', this, 5); tmp0_serialDesc.addElement_5pzumi_k$('vlmeVerbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('vlmeLangHash', true); tmp0_serialDesc.addElement_5pzumi_k$('vlmeLangCode', true); tmp0_serialDesc.addElement_5pzumi_k$('vlmeEntryString', true); tmp0_serialDesc.addElement_5pzumi_k$('vlmeLastModified', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_140).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_140).childSerializers_5ghqw5_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call return [LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance()), LongSerializer_getInstance()]; }; protoOf($serializer_140).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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 = null; var tmp7_local3 = null; var tmp8_local4 = new Long(0, 0); var tmp9_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp9_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; } else while (tmp1_flag) { tmp2_index = tmp9_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp9_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp9_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp9_input.endStructure_1xqz0n_k$(tmp0_desc); return VerbLangMapEntry_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null); }; protoOf($serializer_140).serialize_8zc402_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.vlmeVerbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.vlmeVerbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.vlmeLangHash_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.vlmeLangHash_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !(value.vlmeLangCode_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 2, StringSerializer_getInstance(), value.vlmeLangCode_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !(value.vlmeEntryString_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 3, StringSerializer_getInstance(), value.vlmeEntryString_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.vlmeLastModified_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.vlmeLastModified_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_140).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_8zc402_k$(encoder, value instanceof VerbLangMapEntry ? value : THROW_CCE()); }; var $serializer_instance_140; function $serializer_getInstance_140() { if ($serializer_instance_140 == null) new $serializer_140(); return $serializer_instance_140; } function VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_140().descriptor_1); } if (0 === (seen1 & 1)) $this.vlmeVerbUid_1 = new Long(0, 0); else $this.vlmeVerbUid_1 = vlmeVerbUid; if (0 === (seen1 & 2)) $this.vlmeLangHash_1 = new Long(0, 0); else $this.vlmeLangHash_1 = vlmeLangHash; if (0 === (seen1 & 4)) $this.vlmeLangCode_1 = null; else $this.vlmeLangCode_1 = vlmeLangCode; if (0 === (seen1 & 8)) $this.vlmeEntryString_1 = null; else $this.vlmeEntryString_1 = vlmeEntryString; if (0 === (seen1 & 16)) $this.vlmeLastModified_1 = new Long(0, 0); else $this.vlmeLastModified_1 = vlmeLastModified; return $this; } function VerbLangMapEntry_init_$Create$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker) { return VerbLangMapEntry_init_$Init$(seen1, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, serializationConstructorMarker, objectCreate(protoOf(VerbLangMapEntry))); } function VerbLangMapEntry(vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) { Companion_getInstance_150(); vlmeVerbUid = vlmeVerbUid === VOID ? new Long(0, 0) : vlmeVerbUid; vlmeLangHash = vlmeLangHash === VOID ? new Long(0, 0) : vlmeLangHash; vlmeLangCode = vlmeLangCode === VOID ? null : vlmeLangCode; vlmeEntryString = vlmeEntryString === VOID ? null : vlmeEntryString; vlmeLastModified = vlmeLastModified === VOID ? new Long(0, 0) : vlmeLastModified; this.vlmeVerbUid_1 = vlmeVerbUid; this.vlmeLangHash_1 = vlmeLangHash; this.vlmeLangCode_1 = vlmeLangCode; this.vlmeEntryString_1 = vlmeEntryString; this.vlmeLastModified_1 = vlmeLastModified; } protoOf(VerbLangMapEntry).set_vlmeVerbUid_t3b07c_k$ = function (_set____db54di) { this.vlmeVerbUid_1 = _set____db54di; }; protoOf(VerbLangMapEntry).get_vlmeVerbUid_x6n4ii_k$ = function () { return this.vlmeVerbUid_1; }; protoOf(VerbLangMapEntry).set_vlmeLangHash_dt707d_k$ = function (_set____db54di) { this.vlmeLangHash_1 = _set____db54di; }; protoOf(VerbLangMapEntry).get_vlmeLangHash_ucpi99_k$ = function () { return this.vlmeLangHash_1; }; protoOf(VerbLangMapEntry).set_vlmeLangCode_4ynuj3_k$ = function (_set____db54di) { this.vlmeLangCode_1 = _set____db54di; }; protoOf(VerbLangMapEntry).get_vlmeLangCode_ucsf66_k$ = function () { return this.vlmeLangCode_1; }; protoOf(VerbLangMapEntry).set_vlmeEntryString_ugbsv_k$ = function (_set____db54di) { this.vlmeEntryString_1 = _set____db54di; }; protoOf(VerbLangMapEntry).get_vlmeEntryString_1krxpw_k$ = function () { return this.vlmeEntryString_1; }; protoOf(VerbLangMapEntry).set_vlmeLastModified_xbp1o4_k$ = function (_set____db54di) { this.vlmeLastModified_1 = _set____db54di; }; protoOf(VerbLangMapEntry).get_vlmeLastModified_uc3wq_k$ = function () { return this.vlmeLastModified_1; }; protoOf(VerbLangMapEntry).component1_7eebsc_k$ = function () { return this.vlmeVerbUid_1; }; protoOf(VerbLangMapEntry).component2_7eebsb_k$ = function () { return this.vlmeLangHash_1; }; protoOf(VerbLangMapEntry).component3_7eebsa_k$ = function () { return this.vlmeLangCode_1; }; protoOf(VerbLangMapEntry).component4_7eebs9_k$ = function () { return this.vlmeEntryString_1; }; protoOf(VerbLangMapEntry).component5_7eebs8_k$ = function () { return this.vlmeLastModified_1; }; protoOf(VerbLangMapEntry).copy_htstpj_k$ = function (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) { return new VerbLangMapEntry(vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified); }; protoOf(VerbLangMapEntry).copy$default_emy9ov_k$ = function (vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified, $super) { vlmeVerbUid = vlmeVerbUid === VOID ? this.vlmeVerbUid_1 : vlmeVerbUid; vlmeLangHash = vlmeLangHash === VOID ? this.vlmeLangHash_1 : vlmeLangHash; vlmeLangCode = vlmeLangCode === VOID ? this.vlmeLangCode_1 : vlmeLangCode; vlmeEntryString = vlmeEntryString === VOID ? this.vlmeEntryString_1 : vlmeEntryString; vlmeLastModified = vlmeLastModified === VOID ? this.vlmeLastModified_1 : vlmeLastModified; return $super === VOID ? this.copy_htstpj_k$(vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified) : $super.copy_htstpj_k$.call(this, vlmeVerbUid, vlmeLangHash, vlmeLangCode, vlmeEntryString, vlmeLastModified); }; protoOf(VerbLangMapEntry).toString = function () { return 'VerbLangMapEntry(vlmeVerbUid=' + this.vlmeVerbUid_1.toString() + ', vlmeLangHash=' + this.vlmeLangHash_1.toString() + ', vlmeLangCode=' + this.vlmeLangCode_1 + ', vlmeEntryString=' + this.vlmeEntryString_1 + ', vlmeLastModified=' + this.vlmeLastModified_1.toString() + ')'; }; protoOf(VerbLangMapEntry).hashCode = function () { var result = this.vlmeVerbUid_1.hashCode(); result = imul(result, 31) + this.vlmeLangHash_1.hashCode() | 0; result = imul(result, 31) + (this.vlmeLangCode_1 == null ? 0 : getStringHashCode(this.vlmeLangCode_1)) | 0; result = imul(result, 31) + (this.vlmeEntryString_1 == null ? 0 : getStringHashCode(this.vlmeEntryString_1)) | 0; result = imul(result, 31) + this.vlmeLastModified_1.hashCode() | 0; return result; }; protoOf(VerbLangMapEntry).equals = function (other) { if (this === other) return true; if (!(other instanceof VerbLangMapEntry)) return false; var tmp0_other_with_cast = other instanceof VerbLangMapEntry ? other : THROW_CCE(); if (!this.vlmeVerbUid_1.equals(tmp0_other_with_cast.vlmeVerbUid_1)) return false; if (!this.vlmeLangHash_1.equals(tmp0_other_with_cast.vlmeLangHash_1)) return false; if (!(this.vlmeLangCode_1 == tmp0_other_with_cast.vlmeLangCode_1)) return false; if (!(this.vlmeEntryString_1 == tmp0_other_with_cast.vlmeEntryString_1)) return false; if (!this.vlmeLastModified_1.equals(tmp0_other_with_cast.vlmeLastModified_1)) return false; return true; }; function XapiEntityObjectTypeFlags() { XapiEntityObjectTypeFlags_instance = this; this.AGENT_1 = 1; this.GROUP_1 = 2; this.STATEMENT_REF_1 = 3; this.SUBSTATEMENT_1 = 4; this.ACTIVITY_1 = 5; this.STATEMENT_1 = 6; } protoOf(XapiEntityObjectTypeFlags).get_AGENT_i6evgc_k$ = function () { return this.AGENT_1; }; protoOf(XapiEntityObjectTypeFlags).get_GROUP_i9wvg6_k$ = function () { return this.GROUP_1; }; protoOf(XapiEntityObjectTypeFlags).get_STATEMENT_REF_dyl606_k$ = function () { return this.STATEMENT_REF_1; }; protoOf(XapiEntityObjectTypeFlags).get_SUBSTATEMENT_9w3erc_k$ = function () { return this.SUBSTATEMENT_1; }; protoOf(XapiEntityObjectTypeFlags).get_ACTIVITY_os7lqw_k$ = function () { return this.ACTIVITY_1; }; protoOf(XapiEntityObjectTypeFlags).get_STATEMENT_k458rq_k$ = function () { return this.STATEMENT_1; }; var XapiEntityObjectTypeFlags_instance; function XapiEntityObjectTypeFlags_getInstance() { if (XapiEntityObjectTypeFlags_instance == null) new XapiEntityObjectTypeFlags(); return XapiEntityObjectTypeFlags_instance; } function Companion_147() { Companion_instance_147 = this; this.TABLE_ID_1 = 400122; } protoOf(Companion_147).get_TABLE_ID_xo2mej_k$ = function () { return this.TABLE_ID_1; }; protoOf(Companion_147).serializer_9w0wvi_k$ = function () { return $serializer_getInstance_141(); }; var Companion_instance_147; function Companion_getInstance_151() { if (Companion_instance_147 == null) new Companion_147(); return Companion_instance_147; } function $serializer_141() { $serializer_instance_141 = this; var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.ustadmobile.lib.db.entities.xapi.XapiSessionEntity', this, 19); tmp0_serialDesc.addElement_5pzumi_k$('xseUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseLastMod', true); tmp0_serialDesc.addElement_5pzumi_k$('xseRegistrationHi', true); tmp0_serialDesc.addElement_5pzumi_k$('xseRegistrationLo', true); tmp0_serialDesc.addElement_5pzumi_k$('xseUsUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseAccountPersonUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseActorUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseAccountUsername', true); tmp0_serialDesc.addElement_5pzumi_k$('xseClazzUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseCbUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseContentEntryUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseContentEntryVersionUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseRootActivityId', true); tmp0_serialDesc.addElement_5pzumi_k$('xseRootActivityUid', true); tmp0_serialDesc.addElement_5pzumi_k$('xseStartTime', true); tmp0_serialDesc.addElement_5pzumi_k$('xseExpireTime', true); tmp0_serialDesc.addElement_5pzumi_k$('xseAuth', true); tmp0_serialDesc.addElement_5pzumi_k$('xseCompleted', true); tmp0_serialDesc.addElement_5pzumi_k$('knownActorUidToPersonUids', true); this.descriptor_1 = tmp0_serialDesc; } protoOf($serializer_141).get_descriptor_wjt6a0_k$ = function () { return this.descriptor_1; }; protoOf($serializer_141).childSerializers_5ghqw5_k$ = 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(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), StringSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), LongSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), BooleanSerializer_getInstance(), StringSerializer_getInstance()]; }; protoOf($serializer_141).deserialize_sy6x50_k$ = function (decoder) { var tmp0_desc = this.descriptor_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_local3 = new Long(0, 0); var tmp8_local4 = new Long(0, 0); var tmp9_local5 = new Long(0, 0); var tmp10_local6 = new Long(0, 0); var tmp11_local7 = null; var tmp12_local8 = new Long(0, 0); var tmp13_local9 = new Long(0, 0); var tmp14_local10 = new Long(0, 0); var tmp15_local11 = new Long(0, 0); var tmp16_local12 = null; var tmp17_local13 = new Long(0, 0); var tmp18_local14 = new Long(0, 0); var tmp19_local15 = new Long(0, 0); var tmp20_local16 = null; var tmp21_local17 = false; var tmp22_local18 = null; var tmp23_input = decoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp23_input.decodeSequentially_xlblqy_k$()) { tmp4_local0 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; tmp5_local1 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; tmp6_local2 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; tmp7_local3 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; tmp9_local5 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; tmp10_local6 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; tmp11_local7 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; tmp13_local9 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; tmp14_local10 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; tmp16_local12 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; tmp17_local13 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; tmp18_local14 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; tmp19_local15 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; tmp21_local17 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; } else while (tmp1_flag) { tmp2_index = tmp23_input.decodeElementIndex_bstkhp_k$(tmp0_desc); switch (tmp2_index) { case -1: tmp1_flag = false; break; case 0: tmp4_local0 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 0); tmp3_bitMask0 = tmp3_bitMask0 | 1; break; case 1: tmp5_local1 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 1); tmp3_bitMask0 = tmp3_bitMask0 | 2; break; case 2: tmp6_local2 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 2); tmp3_bitMask0 = tmp3_bitMask0 | 4; break; case 3: tmp7_local3 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 3); tmp3_bitMask0 = tmp3_bitMask0 | 8; break; case 4: tmp8_local4 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 4); tmp3_bitMask0 = tmp3_bitMask0 | 16; break; case 5: tmp9_local5 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 5); tmp3_bitMask0 = tmp3_bitMask0 | 32; break; case 6: tmp10_local6 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 6); tmp3_bitMask0 = tmp3_bitMask0 | 64; break; case 7: tmp11_local7 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 7); tmp3_bitMask0 = tmp3_bitMask0 | 128; break; case 8: tmp12_local8 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 8); tmp3_bitMask0 = tmp3_bitMask0 | 256; break; case 9: tmp13_local9 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 9); tmp3_bitMask0 = tmp3_bitMask0 | 512; break; case 10: tmp14_local10 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 10); tmp3_bitMask0 = tmp3_bitMask0 | 1024; break; case 11: tmp15_local11 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 11); tmp3_bitMask0 = tmp3_bitMask0 | 2048; break; case 12: tmp16_local12 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 12); tmp3_bitMask0 = tmp3_bitMask0 | 4096; break; case 13: tmp17_local13 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 13); tmp3_bitMask0 = tmp3_bitMask0 | 8192; break; case 14: tmp18_local14 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 14); tmp3_bitMask0 = tmp3_bitMask0 | 16384; break; case 15: tmp19_local15 = tmp23_input.decodeLongElement_994anb_k$(tmp0_desc, 15); tmp3_bitMask0 = tmp3_bitMask0 | 32768; break; case 16: tmp20_local16 = tmp23_input.decodeNullableSerializableElement_k2y6ab_k$(tmp0_desc, 16, StringSerializer_getInstance(), tmp20_local16); tmp3_bitMask0 = tmp3_bitMask0 | 65536; break; case 17: tmp21_local17 = tmp23_input.decodeBooleanElement_vuyhtj_k$(tmp0_desc, 17); tmp3_bitMask0 = tmp3_bitMask0 | 131072; break; case 18: tmp22_local18 = tmp23_input.decodeStringElement_3oenpg_k$(tmp0_desc, 18); tmp3_bitMask0 = tmp3_bitMask0 | 262144; break; default: throw UnknownFieldException_init_$Create$(tmp2_index); } } tmp23_input.endStructure_1xqz0n_k$(tmp0_desc); return XapiSessionEntity_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, tmp16_local12, tmp17_local13, tmp18_local14, tmp19_local15, tmp20_local16, tmp21_local17, tmp22_local18, null); }; protoOf($serializer_141).serialize_u57k9a_k$ = function (encoder, value) { var tmp0_desc = this.descriptor_1; var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc); if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 0) ? true : !value.xseUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 0, value.xseUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 1) ? true : !value.xseLastMod_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 1, value.xseLastMod_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.xseRegistrationHi_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 2, value.xseRegistrationHi_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 3) ? true : !value.xseRegistrationLo_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 3, value.xseRegistrationLo_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 4) ? true : !value.xseUsUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 4, value.xseUsUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 5) ? true : !value.xseAccountPersonUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 5, value.xseAccountPersonUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 6) ? true : !value.xseActorUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 6, value.xseActorUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 7) ? true : !(value.xseAccountUsername_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 7, value.xseAccountUsername_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 8) ? true : !value.xseClazzUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 8, value.xseClazzUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 9) ? true : !value.xseCbUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 9, value.xseCbUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 10) ? true : !value.xseContentEntryUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 10, value.xseContentEntryUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 11) ? true : !value.xseContentEntryVersionUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 11, value.xseContentEntryVersionUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 12) ? true : !(value.xseRootActivityId_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 12, value.xseRootActivityId_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 13) ? true : !value.xseRootActivityUid_1.equals(new Long(0, 0))) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 13, value.xseRootActivityUid_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 14) ? true : !value.xseStartTime_1.equals(systemTimeInMillis())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 14, value.xseStartTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 15) ? true : !value.xseExpireTime_1.equals(Companion_getInstance().get_MAX_VALUE_54a9lf_k$())) { tmp1_output.encodeLongElement_cega27_k$(tmp0_desc, 15, value.xseExpireTime_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 16) ? true : !(value.xseAuth_1 == null)) { tmp1_output.encodeNullableSerializableElement_5lquiv_k$(tmp0_desc, 16, StringSerializer_getInstance(), value.xseAuth_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 17) ? true : !(value.xseCompleted_1 === false)) { tmp1_output.encodeBooleanElement_ydht7q_k$(tmp0_desc, 17, value.xseCompleted_1); } if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 18) ? true : !(value.knownActorUidToPersonUids_1 === '')) { tmp1_output.encodeStringElement_1n5wu2_k$(tmp0_desc, 18, value.knownActorUidToPersonUids_1); } tmp1_output.endStructure_1xqz0n_k$(tmp0_desc); }; protoOf($serializer_141).serialize_5ase3y_k$ = function (encoder, value) { return this.serialize_u57k9a_k$(encoder, value instanceof XapiSessionEntity ? value : THROW_CCE()); }; var $serializer_instance_141; function $serializer_getInstance_141() { if ($serializer_instance_141 == null) new $serializer_141(); return $serializer_instance_141; } function XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, $this) { if (!(0 === (0 & seen1))) { throwMissingFieldException(seen1, 0, $serializer_getInstance_141().descriptor_1); } if (0 === (seen1 & 1)) $this.xseUid_1 = new Long(0, 0); else $this.xseUid_1 = xseUid; if (0 === (seen1 & 2)) $this.xseLastMod_1 = new Long(0, 0); else $this.xseLastMod_1 = xseLastMod; if (0 === (seen1 & 4)) $this.xseRegistrationHi_1 = new Long(0, 0); else $this.xseRegistrationHi_1 = xseRegistrationHi; if (0 === (seen1 & 8)) $this.xseRegistrationLo_1 = new Long(0, 0); else $this.xseRegistrationLo_1 = xseRegistrationLo; if (0 === (seen1 & 16)) $this.xseUsUid_1 = new Long(0, 0); else $this.xseUsUid_1 = xseUsUid; if (0 === (seen1 & 32)) $this.xseAccountPersonUid_1 = new Long(0, 0); else $this.xseAccountPersonUid_1 = xseAccountPersonUid; if (0 === (seen1 & 64)) $this.xseActorUid_1 = new Long(0, 0); else $this.xseActorUid_1 = xseActorUid; if (0 === (seen1 & 128)) $this.xseAccountUsername_1 = ''; else $this.xseAccountUsername_1 = xseAccountUsername; if (0 === (seen1 & 256)) $this.xseClazzUid_1 = new Long(0, 0); else $this.xseClazzUid_1 = xseClazzUid; if (0 === (seen1 & 512)) $this.xseCbUid_1 = new Long(0, 0); else $this.xseCbUid_1 = xseCbUid; if (0 === (seen1 & 1024)) $this.xseContentEntryUid_1 = new Long(0, 0); else $this.xseContentEntryUid_1 = xseContentEntryUid; if (0 === (seen1 & 2048)) $this.xseContentEntryVersionUid_1 = new Long(0, 0); else $this.xseContentEntryVersionUid_1 = xseContentEntryVersionUid; if (0 === (seen1 & 4096)) $this.xseRootActivityId_1 = ''; else $this.xseRootActivityId_1 = xseRootActivityId; if (0 === (seen1 & 8192)) $this.xseRootActivityUid_1 = new Long(0, 0); else $this.xseRootActivityUid_1 = xseRootActivityUid; if (0 === (seen1 & 16384)) $this.xseStartTime_1 = systemTimeInMillis(); else $this.xseStartTime_1 = xseStartTime; if (0 === (seen1 & 32768)) $this.xseExpireTime_1 = Companion_getInstance().get_MAX_VALUE_54a9lf_k$(); else $this.xseExpireTime_1 = xseExpireTime; if (0 === (seen1 & 65536)) $this.xseAuth_1 = null; else $this.xseAuth_1 = xseAuth; if (0 === (seen1 & 131072)) $this.xseCompleted_1 = false; else $this.xseCompleted_1 = xseCompleted; if (0 === (seen1 & 262144)) $this.knownActorUidToPersonUids_1 = ''; else $this.knownActorUidToPersonUids_1 = knownActorUidToPersonUids; return $this; } function XapiSessionEntity_init_$Create$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker) { return XapiSessionEntity_init_$Init$(seen1, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, serializationConstructorMarker, objectCreate(protoOf(XapiSessionEntity))); } function XapiSessionEntity(xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) { Companion_getInstance_151(); xseUid = xseUid === VOID ? new Long(0, 0) : xseUid; xseLastMod = xseLastMod === VOID ? new Long(0, 0) : xseLastMod; xseRegistrationHi = xseRegistrationHi === VOID ? new Long(0, 0) : xseRegistrationHi; xseRegistrationLo = xseRegistrationLo === VOID ? new Long(0, 0) : xseRegistrationLo; xseUsUid = xseUsUid === VOID ? new Long(0, 0) : xseUsUid; xseAccountPersonUid = xseAccountPersonUid === VOID ? new Long(0, 0) : xseAccountPersonUid; xseActorUid = xseActorUid === VOID ? new Long(0, 0) : xseActorUid; xseAccountUsername = xseAccountUsername === VOID ? '' : xseAccountUsername; xseClazzUid = xseClazzUid === VOID ? new Long(0, 0) : xseClazzUid; xseCbUid = xseCbUid === VOID ? new Long(0, 0) : xseCbUid; xseContentEntryUid = xseContentEntryUid === VOID ? new Long(0, 0) : xseContentEntryUid; xseContentEntryVersionUid = xseContentEntryVersionUid === VOID ? new Long(0, 0) : xseContentEntryVersionUid; xseRootActivityId = xseRootActivityId === VOID ? '' : xseRootActivityId; xseRootActivityUid = xseRootActivityUid === VOID ? new Long(0, 0) : xseRootActivityUid; xseStartTime = xseStartTime === VOID ? systemTimeInMillis() : xseStartTime; xseExpireTime = xseExpireTime === VOID ? Companion_getInstance().get_MAX_VALUE_54a9lf_k$() : xseExpireTime; xseAuth = xseAuth === VOID ? null : xseAuth; xseCompleted = xseCompleted === VOID ? false : xseCompleted; knownActorUidToPersonUids = knownActorUidToPersonUids === VOID ? '' : knownActorUidToPersonUids; this.xseUid_1 = xseUid; this.xseLastMod_1 = xseLastMod; this.xseRegistrationHi_1 = xseRegistrationHi; this.xseRegistrationLo_1 = xseRegistrationLo; this.xseUsUid_1 = xseUsUid; this.xseAccountPersonUid_1 = xseAccountPersonUid; this.xseActorUid_1 = xseActorUid; this.xseAccountUsername_1 = xseAccountUsername; this.xseClazzUid_1 = xseClazzUid; this.xseCbUid_1 = xseCbUid; this.xseContentEntryUid_1 = xseContentEntryUid; this.xseContentEntryVersionUid_1 = xseContentEntryVersionUid; this.xseRootActivityId_1 = xseRootActivityId; this.xseRootActivityUid_1 = xseRootActivityUid; this.xseStartTime_1 = xseStartTime; this.xseExpireTime_1 = xseExpireTime; this.xseAuth_1 = xseAuth; this.xseCompleted_1 = xseCompleted; this.knownActorUidToPersonUids_1 = knownActorUidToPersonUids; } protoOf(XapiSessionEntity).set_xseUid_xqodut_k$ = function (_set____db54di) { this.xseUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseUid_m05een_k$ = function () { return this.xseUid_1; }; protoOf(XapiSessionEntity).set_xseLastMod_w9w0bj_k$ = function (_set____db54di) { this.xseLastMod_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseLastMod_dil4ob_k$ = function () { return this.xseLastMod_1; }; protoOf(XapiSessionEntity).set_xseRegistrationHi_livn1l_k$ = function (_set____db54di) { this.xseRegistrationHi_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseRegistrationHi_csgwpx_k$ = function () { return this.xseRegistrationHi_1; }; protoOf(XapiSessionEntity).set_xseRegistrationLo_8tkuol_k$ = function (_set____db54di) { this.xseRegistrationLo_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseRegistrationLo_csgwmb_k$ = function () { return this.xseRegistrationLo_1; }; protoOf(XapiSessionEntity).set_xseUsUid_wjqc9z_k$ = function (_set____db54di) { this.xseUsUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseUsUid_l78mj3_k$ = function () { return this.xseUsUid_1; }; protoOf(XapiSessionEntity).set_xseAccountPersonUid_75ci5f_k$ = function (_set____db54di) { this.xseAccountPersonUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseAccountPersonUid_gx93sh_k$ = function () { return this.xseAccountPersonUid_1; }; protoOf(XapiSessionEntity).set_xseActorUid_az9r3q_k$ = function (_set____db54di) { this.xseActorUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseActorUid_ac5zdw_k$ = function () { return this.xseActorUid_1; }; protoOf(XapiSessionEntity).set_xseAccountUsername_xnyhv8_k$ = function (_set____db54di) { this.xseAccountUsername_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseAccountUsername_q0miri_k$ = function () { return this.xseAccountUsername_1; }; protoOf(XapiSessionEntity).set_xseClazzUid_jupmjd_k$ = function (_set____db54di) { this.xseClazzUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseClazzUid_sirfq1_k$ = function () { return this.xseClazzUid_1; }; protoOf(XapiSessionEntity).set_xseCbUid_j6bskm_k$ = function (_set____db54di) { this.xseCbUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseCbUid_lhfrzk_k$ = function () { return this.xseCbUid_1; }; protoOf(XapiSessionEntity).set_xseContentEntryUid_ivjsss_k$ = function (_set____db54di) { this.xseContentEntryUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseContentEntryUid_t2vuyy_k$ = function () { return this.xseContentEntryUid_1; }; protoOf(XapiSessionEntity).set_xseContentEntryVersionUid_8k3d5s_k$ = function (_set____db54di) { this.xseContentEntryVersionUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseContentEntryVersionUid_4ralu_k$ = function () { return this.xseContentEntryVersionUid_1; }; protoOf(XapiSessionEntity).set_xseRootActivityId_j3mrld_k$ = function (_set____db54di) { this.xseRootActivityId_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseRootActivityId_lo9kxf_k$ = function () { return this.xseRootActivityId_1; }; protoOf(XapiSessionEntity).set_xseRootActivityUid_bha510_k$ = function (_set____db54di) { this.xseRootActivityUid_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseRootActivityUid_wm89wi_k$ = function () { return this.xseRootActivityUid_1; }; protoOf(XapiSessionEntity).set_xseStartTime_j1ibd0_k$ = function (_set____db54di) { this.xseStartTime_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseStartTime_6ouvwy_k$ = function () { return this.xseStartTime_1; }; protoOf(XapiSessionEntity).set_xseExpireTime_9vzz4r_k$ = function (_set____db54di) { this.xseExpireTime_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseExpireTime_i2mabx_k$ = function () { return this.xseExpireTime_1; }; protoOf(XapiSessionEntity).set_xseAuth_fcq8u_k$ = function (_set____db54di) { this.xseAuth_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseAuth_s6tniv_k$ = function () { return this.xseAuth_1; }; protoOf(XapiSessionEntity).set_xseCompleted_7xiybb_k$ = function (_set____db54di) { this.xseCompleted_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_xseCompleted_5bllgq_k$ = function () { return this.xseCompleted_1; }; protoOf(XapiSessionEntity).set_knownActorUidToPersonUids_xhqu2y_k$ = function (_set____db54di) { this.knownActorUidToPersonUids_1 = _set____db54di; }; protoOf(XapiSessionEntity).get_knownActorUidToPersonUids_9ca7s8_k$ = function () { return this.knownActorUidToPersonUids_1; }; protoOf(XapiSessionEntity).component1_7eebsc_k$ = function () { return this.xseUid_1; }; protoOf(XapiSessionEntity).component2_7eebsb_k$ = function () { return this.xseLastMod_1; }; protoOf(XapiSessionEntity).component3_7eebsa_k$ = function () { return this.xseRegistrationHi_1; }; protoOf(XapiSessionEntity).component4_7eebs9_k$ = function () { return this.xseRegistrationLo_1; }; protoOf(XapiSessionEntity).component5_7eebs8_k$ = function () { return this.xseUsUid_1; }; protoOf(XapiSessionEntity).component6_7eebs7_k$ = function () { return this.xseAccountPersonUid_1; }; protoOf(XapiSessionEntity).component7_7eebs6_k$ = function () { return this.xseActorUid_1; }; protoOf(XapiSessionEntity).component8_7eebs5_k$ = function () { return this.xseAccountUsername_1; }; protoOf(XapiSessionEntity).component9_7eebs4_k$ = function () { return this.xseClazzUid_1; }; protoOf(XapiSessionEntity).component10_gazzfo_k$ = function () { return this.xseCbUid_1; }; protoOf(XapiSessionEntity).component11_gazzfn_k$ = function () { return this.xseContentEntryUid_1; }; protoOf(XapiSessionEntity).component12_gazzfm_k$ = function () { return this.xseContentEntryVersionUid_1; }; protoOf(XapiSessionEntity).component13_gazzfl_k$ = function () { return this.xseRootActivityId_1; }; protoOf(XapiSessionEntity).component14_gazzfk_k$ = function () { return this.xseRootActivityUid_1; }; protoOf(XapiSessionEntity).component15_gazzfj_k$ = function () { return this.xseStartTime_1; }; protoOf(XapiSessionEntity).component16_gazzfi_k$ = function () { return this.xseExpireTime_1; }; protoOf(XapiSessionEntity).component17_gazzfh_k$ = function () { return this.xseAuth_1; }; protoOf(XapiSessionEntity).component18_gazzfg_k$ = function () { return this.xseCompleted_1; }; protoOf(XapiSessionEntity).component19_gazzff_k$ = function () { return this.knownActorUidToPersonUids_1; }; protoOf(XapiSessionEntity).copy_v8531f_k$ = function (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) { return new XapiSessionEntity(xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids); }; protoOf(XapiSessionEntity).copy$default_cz04t7_k$ = function (xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids, $super) { xseUid = xseUid === VOID ? this.xseUid_1 : xseUid; xseLastMod = xseLastMod === VOID ? this.xseLastMod_1 : xseLastMod; xseRegistrationHi = xseRegistrationHi === VOID ? this.xseRegistrationHi_1 : xseRegistrationHi; xseRegistrationLo = xseRegistrationLo === VOID ? this.xseRegistrationLo_1 : xseRegistrationLo; xseUsUid = xseUsUid === VOID ? this.xseUsUid_1 : xseUsUid; xseAccountPersonUid = xseAccountPersonUid === VOID ? this.xseAccountPersonUid_1 : xseAccountPersonUid; xseActorUid = xseActorUid === VOID ? this.xseActorUid_1 : xseActorUid; xseAccountUsername = xseAccountUsername === VOID ? this.xseAccountUsername_1 : xseAccountUsername; xseClazzUid = xseClazzUid === VOID ? this.xseClazzUid_1 : xseClazzUid; xseCbUid = xseCbUid === VOID ? this.xseCbUid_1 : xseCbUid; xseContentEntryUid = xseContentEntryUid === VOID ? this.xseContentEntryUid_1 : xseContentEntryUid; xseContentEntryVersionUid = xseContentEntryVersionUid === VOID ? this.xseContentEntryVersionUid_1 : xseContentEntryVersionUid; xseRootActivityId = xseRootActivityId === VOID ? this.xseRootActivityId_1 : xseRootActivityId; xseRootActivityUid = xseRootActivityUid === VOID ? this.xseRootActivityUid_1 : xseRootActivityUid; xseStartTime = xseStartTime === VOID ? this.xseStartTime_1 : xseStartTime; xseExpireTime = xseExpireTime === VOID ? this.xseExpireTime_1 : xseExpireTime; xseAuth = xseAuth === VOID ? this.xseAuth_1 : xseAuth; xseCompleted = xseCompleted === VOID ? this.xseCompleted_1 : xseCompleted; knownActorUidToPersonUids = knownActorUidToPersonUids === VOID ? this.knownActorUidToPersonUids_1 : knownActorUidToPersonUids; return $super === VOID ? this.copy_v8531f_k$(xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids) : $super.copy_v8531f_k$.call(this, xseUid, xseLastMod, xseRegistrationHi, xseRegistrationLo, xseUsUid, xseAccountPersonUid, xseActorUid, xseAccountUsername, xseClazzUid, xseCbUid, xseContentEntryUid, xseContentEntryVersionUid, xseRootActivityId, xseRootActivityUid, xseStartTime, xseExpireTime, xseAuth, xseCompleted, knownActorUidToPersonUids); }; protoOf(XapiSessionEntity).toString = function () { return 'XapiSessionEntity(xseUid=' + this.xseUid_1.toString() + ', xseLastMod=' + this.xseLastMod_1.toString() + ', xseRegistrationHi=' + this.xseRegistrationHi_1.toString() + ', xseRegistrationLo=' + this.xseRegistrationLo_1.toString() + ', xseUsUid=' + this.xseUsUid_1.toString() + ', xseAccountPersonUid=' + this.xseAccountPersonUid_1.toString() + ', xseActorUid=' + this.xseActorUid_1.toString() + ', xseAccountUsername=' + this.xseAccountUsername_1 + ', xseClazzUid=' + this.xseClazzUid_1.toString() + ', xseCbUid=' + this.xseCbUid_1.toString() + ', xseContentEntryUid=' + this.xseContentEntryUid_1.toString() + ', xseContentEntryVersionUid=' + this.xseContentEntryVersionUid_1.toString() + ', xseRootActivityId=' + this.xseRootActivityId_1 + ', xseRootActivityUid=' + this.xseRootActivityUid_1.toString() + ', xseStartTime=' + this.xseStartTime_1.toString() + ', xseExpireTime=' + this.xseExpireTime_1.toString() + ', xseAuth=' + this.xseAuth_1 + ', xseCompleted=' + this.xseCompleted_1 + ', knownActorUidToPersonUids=' + this.knownActorUidToPersonUids_1 + ')'; }; protoOf(XapiSessionEntity).hashCode = function () { var result = this.xseUid_1.hashCode(); result = imul(result, 31) + this.xseLastMod_1.hashCode() | 0; result = imul(result, 31) + this.xseRegistrationHi_1.hashCode() | 0; result = imul(result, 31) + this.xseRegistrationLo_1.hashCode() | 0; result = imul(result, 31) + this.xseUsUid_1.hashCode() | 0; result = imul(result, 31) + this.xseAccountPersonUid_1.hashCode() | 0; result = imul(result, 31) + this.xseActorUid_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.xseAccountUsername_1) | 0; result = imul(result, 31) + this.xseClazzUid_1.hashCode() | 0; result = imul(result, 31) + this.xseCbUid_1.hashCode() | 0; result = imul(result, 31) + this.xseContentEntryUid_1.hashCode() | 0; result = imul(result, 31) + this.xseContentEntryVersionUid_1.hashCode() | 0; result = imul(result, 31) + getStringHashCode(this.xseRootActivityId_1) | 0; result = imul(result, 31) + this.xseRootActivityUid_1.hashCode() | 0; result = imul(result, 31) + this.xseStartTime_1.hashCode() | 0; result = imul(result, 31) + this.xseExpireTime_1.hashCode() | 0; result = imul(result, 31) + (this.xseAuth_1 == null ? 0 : getStringHashCode(this.xseAuth_1)) | 0; result = imul(result, 31) + getBooleanHashCode(this.xseCompleted_1) | 0; result = imul(result, 31) + getStringHashCode(this.knownActorUidToPersonUids_1) | 0; return result; }; protoOf(XapiSessionEntity).equals = function (other) { if (this === other) return true; if (!(other instanceof XapiSessionEntity)) return false; var tmp0_other_with_cast = other instanceof XapiSessionEntity ? other : THROW_CCE(); if (!this.xseUid_1.equals(tmp0_other_with_cast.xseUid_1)) return false; if (!this.xseLastMod_1.equals(tmp0_other_with_cast.xseLastMod_1)) return false; if (!this.xseRegistrationHi_1.equals(tmp0_other_with_cast.xseRegistrationHi_1)) return false; if (!this.xseRegistrationLo_1.equals(tmp0_other_with_cast.xseRegistrationLo_1)) return false; if (!this.xseUsUid_1.equals(tmp0_other_with_cast.xseUsUid_1)) return false; if (!this.xseAccountPersonUid_1.equals(tmp0_other_with_cast.xseAccountPersonUid_1)) return false; if (!this.xseActorUid_1.equals(tmp0_other_with_cast.xseActorUid_1)) return false; if (!(this.xseAccountUsername_1 === tmp0_other_with_cast.xseAccountUsername_1)) return false; if (!this.xseClazzUid_1.equals(tmp0_other_with_cast.xseClazzUid_1)) return false; if (!this.xseCbUid_1.equals(tmp0_other_with_cast.xseCbUid_1)) return false; if (!this.xseContentEntryUid_1.equals(tmp0_other_with_cast.xseContentEntryUid_1)) return false; if (!this.xseContentEntryVersionUid_1.equals(tmp0_other_with_cast.xseContentEntryVersionUid_1)) return false; if (!(this.xseRootActivityId_1 === tmp0_other_with_cast.xseRootActivityId_1)) return false; if (!this.xseRootActivityUid_1.equals(tmp0_other_with_cast.xseRootActivityUid_1)) return false; if (!this.xseStartTime_1.equals(tmp0_other_with_cast.xseStartTime_1)) return false; if (!this.xseExpireTime_1.equals(tmp0_other_with_cast.xseExpireTime_1)) return false; if (!(this.xseAuth_1 == tmp0_other_with_cast.xseAuth_1)) return false; if (!(this.xseCompleted_1 === tmp0_other_with_cast.xseCompleted_1)) return false; if (!(this.knownActorUidToPersonUids_1 === tmp0_other_with_cast.knownActorUidToPersonUids_1)) return false; return true; }; function addSyncCallback(_this__u8e3s4, nodeIdAndAuth) { _this__u8e3s4.addCallback_kclapb_k$(new SyncNodeIdCallback(nodeIdAndAuth.get_nodeId_h7ho7a_k$())); return _this__u8e3s4; } //region block: post-declaration protoOf($serializer).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_0).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_1).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_2).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_3).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_4).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_5).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_6).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_7).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_8).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_9).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_10).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_11).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_12).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_13).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_14).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_15).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_16).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_17).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_18).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_19).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_20).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_21).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_22).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_23).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_24).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_25).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_26).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_27).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_28).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_29).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_30).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_31).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_32).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_33).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_34).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_35).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_36).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_37).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_38).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_39).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_40).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_41).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_42).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_43).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_44).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_45).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_46).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_47).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_48).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_49).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_50).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_51).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_52).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_53).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_54).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_55).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_56).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_57).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_58).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_59).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_60).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_61).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_62).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_63).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_64).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_65).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_66).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_67).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_68).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_69).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_70).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_71).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_72).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_73).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_74).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_75).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_76).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_77).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_78).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_79).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_80).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_81).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_82).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_83).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_84).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_85).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_86).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_87).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_88).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_89).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_90).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_91).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_92).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_93).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_94).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_95).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_96).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_97).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_98).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_99).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_100).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_101).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_102).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_103).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_104).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_105).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_106).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_107).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_108).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_109).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_110).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_111).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_112).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_113).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_114).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_115).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_116).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_117).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_118).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_119).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_120).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_121).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_122).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_123).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_124).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_125).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_126).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_127).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_128).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_129).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_130).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_131).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_132).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_133).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_134).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_135).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_136).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_137).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_138).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_139).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_140).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; protoOf($serializer_141).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers; //endregion //region block: init UNSET_DISTANT_FUTURE = new Long(-289930240, 1689); //endregion //region block: exports _.$_$ = _.$_$ || {}; _.$_$.a = get_MIGRATION_144_145_CLIENT; _.$_$.b = get_MIGRATION_148_149_NO_OFFLINE_ITEMS; _.$_$.c = get_MIGRATION_155_156_CLIENT; _.$_$.d = get_MIGRATION_161_162_CLIENT; _.$_$.e = get_MIGRATION_169_170_CLIENT; _.$_$.f = addSyncCallback; _.$_$.g = migrationList; _.$_$.h = get_MIGRATE_USERNAME_CLIENT; _.$_$.i = get_UNSET_DISTANT_FUTURE; _.$_$.j = UmAppDatabase; _.$_$.k = asStatementReportRow; _.$_$.l = AssignmentPermissionAndActiveUserSubmitterUid; _.$_$.m = BlockStatus; _.$_$.n = ClazzAndDetailPermissions; _.$_$.o = ClazzAndDisplayDetails; _.$_$.p = ClazzNameAndTerminology; _.$_$.q = CommentsAndName; _.$_$.r = ContentEntryAndContentJob; _.$_$.s = ContentEntryAndDetail; _.$_$.t = ContentEntryAndListDetail; _.$_$.u = CourseAssignmentMarkAndMarkerName; _.$_$.v = CourseBlockAndAssignment; _.$_$.w = CourseBlockAndEditEntities; _.$_$.x = CourseBlockAndPicture; _.$_$.y = DiscussionPostAndPosterNames; _.$_$.z = EditAndViewPermission; _.$_$.a1 = MessageAndOtherPerson; _.$_$.b1 = OfflineItemAndState; _.$_$.c1 = PermissionPair; _.$_$.d1 = PermissionTriple; _.$_$.e1 = PersonAndClazzLogAttendanceRecord; _.$_$.f1 = PersonAndListDisplayDetails; _.$_$.g1 = PersonAndPicture; _.$_$.h1 = PersonNames; _.$_$.i1 = SiteTermsAndLangName; _.$_$.j1 = StatementReportRow; _.$_$.k1 = StudentAndBlockStatuses; _.$_$.l1 = SubmissionAndFiles; _.$_$.m1 = shallowCopy_12; _.$_$.n1 = shallowCopy_0; _.$_$.o1 = shallowCopy_18; _.$_$.p1 = shallowCopy_1; _.$_$.q1 = shallowCopy_9; _.$_$.r1 = shallowCopy_6; _.$_$.s1 = shallowCopy_10; _.$_$.t1 = shallowCopy_7; _.$_$.u1 = shallowCopy_16; _.$_$.v1 = shallowCopy_11; _.$_$.w1 = shallowCopy_15; _.$_$.x1 = shallowCopy_5; _.$_$.y1 = shallowCopy_4; _.$_$.z1 = shallowCopy_2; _.$_$.a2 = shallowCopy_17; _.$_$.b2 = shallowCopy; _.$_$.c2 = shallowCopy_19; _.$_$.d2 = shallowCopy_14; _.$_$.e2 = shallowCopy_8; _.$_$.f2 = shallowCopy_3; _.$_$.g2 = shallowCopy_13; _.$_$.h2 = ActivityEntity; _.$_$.i2 = ActivityExtensionEntity; _.$_$.j2 = ActivityInteractionEntity; _.$_$.k2 = ActivityLangMapEntry; _.$_$.l2 = ActorEntity; _.$_$.m2 = GroupMemberActorJoin; _.$_$.n2 = StatementContextActivityJoin; _.$_$.o2 = StatementEntityJson; _.$_$.p2 = StatementEntity; _.$_$.q2 = VerbEntity; _.$_$.r2 = VerbLangMapEntry; _.$_$.s2 = XapiSessionEntity; _.$_$.t2 = AssignmentProgressSummary; _.$_$.u2 = AssignmentSubmitterAndAllocations; _.$_$.v2 = AssignmentSubmitterSummary; _.$_$.w2 = AverageCourseAssignmentMark; _.$_$.x2 = ClazzAssignmentCourseBlockAndSubmitterUid; _.$_$.y2 = ClazzAssignment; _.$_$.z2 = ClazzEnrolmentWithLeavingReason; _.$_$.a3 = ClazzLogAttendanceRecord; _.$_$.b3 = ClazzLog; _.$_$.c3 = ClazzWithHolidayCalendarAndAndTerminology; _.$_$.d3 = Clazz; _.$_$.e3 = Comments; _.$_$.f3 = ContentEntryButtonModel; _.$_$.g3 = ContentEntryImportJob; _.$_$.h3 = ContentEntryParentChildJoin; _.$_$.i3 = ContentEntryPicture2; _.$_$.j3 = ContentEntryRelatedEntryJoinWithLanguage; _.$_$.k3 = ContentEntryStatementScoreProgress; _.$_$.l3 = ContentEntryVersion; _.$_$.m3 = ContentEntry; _.$_$.n3 = CourseAssignmentMark; _.$_$.o3 = CourseAssignmentSubmissionFile; _.$_$.p3 = CourseAssignmentSubmission; _.$_$.q3 = CourseBlockPicture; _.$_$.r3 = CourseBlock; _.$_$.s3 = CourseGroupMemberAndName; _.$_$.t3 = CourseGroupMember; _.$_$.u3 = CourseGroupSet; _.$_$.v3 = CoursePermission; _.$_$.w3 = CoursePicture; _.$_$.x3 = CourseTerminology; _.$_$.y3 = DiscussionPost; _.$_$.z3 = EnrolmentRequest; _.$_$.a4 = ErrorReport; _.$_$.b4 = HolidayCalendarWithNumEntries; _.$_$.c4 = HolidayCalendar; _.$_$.d4 = Holiday; _.$_$.e4 = Language; _.$_$.f4 = LeavingReason; _.$_$.g4 = Message; _.$_$.h4 = OfflineItem; _.$_$.i4 = PeerReviewerAllocation; _.$_$.j4 = PersonAndDisplayDetail; _.$_$.k4 = PersonAuth2; _.$_$.l4 = PersonGroup; _.$_$.m4 = PersonParentJoinAndMinorPerson; _.$_$.n4 = PersonParentJoin; _.$_$.o4 = PersonPicture; _.$_$.p4 = Person; _.$_$.q4 = ReportQueryResult; _.$_$.r4 = Report; _.$_$.s4 = Schedule; _.$_$.t4 = ScopedGrant; _.$_$.u4 = SiteTermsWithLanguage; _.$_$.v4 = SiteTerms; _.$_$.w4 = Site; _.$_$.x4 = SystemPermission; _.$_$.y4 = TransferJobItem; _.$_$.z4 = TransferJob; _.$_$.a5 = UmAccount; _.$_$.b5 = UserSession; _.$_$.c5 = TransferJobItemStatus_COMPLETE_getInstance; _.$_$.d5 = TransferJobItemStatus_FAILED_getInstance; _.$_$.e5 = TransferJobItemStatus_IN_PROGRESS_getInstance; _.$_$.f5 = deactivateByUids_1; _.$_$.g5 = deactivateByUids; _.$_$.h5 = deactivateByUids_0; _.$_$.i5 = ClazzEnrolment_init_$Create$_0; _.$_$.j5 = PersonGroupMember_init_$Create$; _.$_$.k5 = ClazzAssignmentDaoCommon_getInstance; _.$_$.l5 = ClazzDaoCommon_getInstance; _.$_$.m5 = ClazzEnrolmentDaoCommon_getInstance; _.$_$.n5 = ContentEntryDaoCommon_getInstance; _.$_$.o5 = CourseAssignmentMarkDaoCommon_getInstance; _.$_$.p5 = CourseGroupSetDaoConstants_getInstance; _.$_$.q5 = LanguageDaoCommon_getInstance; _.$_$.r5 = PersonDaoCommon_getInstance; _.$_$.s5 = PermissionFlags_getInstance; _.$_$.t5 = UmAppDatabaseJsImplementations_getInstance; _.$_$.u5 = SessionTimeAndProgressInfoConst_getInstance; _.$_$.v5 = StatementConst_getInstance; _.$_$.w5 = AttemptsPersonListConst_getInstance; _.$_$.x5 = Companion_getInstance_13; _.$_$.y5 = Companion_getInstance_17; _.$_$.z5 = $serializer_getInstance_18; _.$_$.a6 = Companion_getInstance_23; _.$_$.b6 = Companion_getInstance_37; _.$_$.c6 = $serializer_getInstance_37; _.$_$.d6 = Companion_getInstance_46; _.$_$.e6 = Companion_getInstance_138; _.$_$.f6 = Companion_getInstance_140; _.$_$.g6 = Companion_getInstance_141; _.$_$.h6 = Companion_getInstance_142; _.$_$.i6 = Companion_getInstance_146; _.$_$.j6 = Companion_getInstance_147; _.$_$.k6 = XapiEntityObjectTypeFlags_getInstance; _.$_$.l6 = $serializer_getInstance_141; _.$_$.m6 = Companion_getInstance_151; _.$_$.n6 = Companion_getInstance_53; _.$_$.o6 = Companion_getInstance_57; _.$_$.p6 = Companion_getInstance_58; _.$_$.q6 = Companion_getInstance_60; _.$_$.r6 = Companion_getInstance_62; _.$_$.s6 = Companion_getInstance_64; _.$_$.t6 = Companion_getInstance_65; _.$_$.u6 = $serializer_getInstance_61; _.$_$.v6 = Companion_getInstance_68; _.$_$.w6 = Companion_getInstance_73; _.$_$.x6 = $serializer_getInstance_68; _.$_$.y6 = Companion_getInstance_75; _.$_$.z6 = Companion_getInstance_76; _.$_$.a7 = $serializer_getInstance_71; _.$_$.b7 = Companion_getInstance_78; _.$_$.c7 = Companion_getInstance_83; _.$_$.d7 = $serializer_getInstance_77; _.$_$.e7 = Companion_getInstance_87; _.$_$.f7 = Companion_getInstance_88; _.$_$.g7 = Companion_getInstance_89; _.$_$.h7 = Companion_getInstance_90; _.$_$.i7 = Companion_getInstance_91; _.$_$.j7 = Companion_getInstance_92; _.$_$.k7 = Companion_getInstance_93; _.$_$.l7 = Companion_getInstance_94; _.$_$.m7 = Companion_getInstance_95; _.$_$.n7 = $serializer_getInstance_89; _.$_$.o7 = Companion_getInstance_96; _.$_$.p7 = Companion_getInstance_97; _.$_$.q7 = Companion_getInstance_98; _.$_$.r7 = Companion_getInstance_100; _.$_$.s7 = Companion_getInstance_107; _.$_$.t7 = Companion_getInstance_110; _.$_$.u7 = $serializer_getInstance_104; _.$_$.v7 = Companion_getInstance_111; _.$_$.w7 = Companion_getInstance_114; _.$_$.x7 = Companion_getInstance_115; _.$_$.y7 = $serializer_getInstance_109; _.$_$.z7 = Companion_getInstance_117; _.$_$.a8 = Companion_getInstance_118; _.$_$.b8 = $serializer_getInstance_111; _.$_$.c8 = Companion_getInstance_119; _.$_$.d8 = Companion_getInstance_120; _.$_$.e8 = $serializer_getInstance_114; _.$_$.f8 = Companion_getInstance_122; _.$_$.g8 = Companion_getInstance_125; _.$_$.h8 = Companion_getInstance_126; _.$_$.i8 = Companion_getInstance_131; _.$_$.j8 = Companion_getInstance_132; _.$_$.k8 = $serializer_getInstance_129; _.$_$.l8 = Companion_getInstance_137; //endregion return _; }(module.exports, require('./door-door-runtime.js'), require('./kotlin-kotlin-stdlib.js'), require('./multiplatform-paging-root-paging-common.js'), require('./ktor-ktor-client-core.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./Napier-napier-js-ir.js'))); //# sourceMappingURL=UstadMobile-lib-database.js.map